bootstrap: remove the --version requirement from ancillary tools
[gnulib.git] / ChangeLog
1 2013-08-29  Pádraig Brady  <P@draigBrady.com>
2
3         bootstrap: remove the --version requirement from ancillary tools
4         * build-aux/bootstrap (check_exists): A new refactored function to
5         determine if a command exists.
6         (find_tool): Use the new function which does not require the
7         --version option to be supported.
8         (check_versions): Use the new function.
9
10 2013-08-26  Simon Josefsson  <simon@josefsson.org>
11
12         gc: support HMAC-SHA256 and HMAC-SHA512.
13         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
14         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
15         functions.
16         (gc_hmac_md5): Use symbolic constant.
17         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18         (gc_hmac_sha256, gc_hmac_sha512): New functions.
19         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
20         * m4/sha256.m4: Protect against empty expansion.
21         * m4/sha512.m4: Likewise.
22         * lib/hmac-sha256.c: New file.
23         * lib/hmac-sha512.c: Likewise.
24         * m4/gc-hmac-sha256.m4: Likewise.
25         * m4/gc-hmac-sha512.m4: Likewise.
26         * m4/gc-sha256.m4: Likewise.
27         * m4/gc-sha512.m4: Likewise.
28         * modules/crypto/gc-hmac-sha256: Likewise.
29         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30         * modules/crypto/gc-hmac-sha512: Likewise.
31         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32         * modules/crypto/hmac-sha256: Likewise.
33         * modules/crypto/hmac-sha256-tests: Likewise.
34         * modules/crypto/hmac-sha512: Likewise.
35         * modules/crypto/hmac-sha512-tests: Likewise.
36         * tests/test-gc-hmac-sha256.c: Likewise.
37         * tests/test-gc-hmac-sha512.c: Likewise
38         * tests/test-hmac-sha256.c: Likewise.
39         * tests/test-hmac-sha512.c: Likewise
40
41 2013-08-24  Daiki Ueno  <ueno@gnu.org>
42
43         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
44         of AC_CHECK_DECLS.
45
46 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47
48         selinux-at: omit unnecessary include
49         * lib/selinux-at.c: Don't include dosname.h; not needed, since
50         this source file doesn't use its macros, and subsidiary files that
51         use the macros already include it.
52
53 2013-08-21  Eric Blake  <eblake@redhat.com>
54
55         d-ino: avoid false negative on symlink
56         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
57         Reported by Stephane Chazelas.
58
59 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
60
61         bootstrap: port to OpenBSD sed
62         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
63         does not interpret `-' as a file argument to mean stdin.
64
65 2013-08-15  Eric Blake  <eblake@redhat.com>
66
67         warnings: minor optimization
68         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
69
70         warnings: check -Wfoo rather than -Wno-foo
71         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
72         -Wno-, test if the compiler recognizes the positive form instead.
73
74 2013-08-15  Karl Berry  <karl@gnu.org>
75
76         * config/srclist-update: add option "doclicense" to placate
77         pulling *.texi files from Emacs.  Write terse usage
78         documentation at the top.
79
80 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
81
82         xvasprintf-tests: port to GCC with hardening flags
83         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
84         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
85         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
86
87 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88
89         fpending: port to recent Cygwin change to stdio_ext.h
90         Reported by LRN in
91         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
92         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
93         just declare __fpending unless it's a macro.
94         A duplicate decl shouldn't hurt.
95         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
96         call compiles and links, instead of separately checking for
97         decl and lib function.
98         * modules/fpending (configure-ac):
99         Adjust to fpending.m4's renaming of shell variable.
100
101 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102
103         sys_time: port to OpenBSD
104         * lib/sys_time.in.h: Simply delegate to the system's header
105         in the BSDish cases as well.  Problem reported by Mike Miller in
106         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
107         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
108         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
109         wider than time_t.
110
111 2013-08-09  Pádraig Brady <P@draigBrady.com>
112
113         bootstrap: support checksum utils having -c but not --status
114         * build-aux/bootstrap: Only look for sha1sum if updating po files.
115         Add sha1 to the list of supported checksum utils since it's now
116         supported through adjustments below.
117         (update_po_files): Remove the use of --status
118         in a way that will suppress all error messages, but since this is
119         only used to minimize updates, it shouldn't cause an issue.
120         Exit early if there is a problem updating the po file checksums.
121         (find_tool): Remove the check for --version support as this
122         is optional as per commit 86186b17.  Don't even check for the
123         presence of the command as if that is needed, it's supported
124         through configuring prerequisites in bootstrap.conf.
125         Prompt that when a tool isn't found, one can define an environment
126         variable to add to the hardcoded search list.
127
128 2013-08-05  Jim Meyering  <meyering@fb.com>
129
130         regex: port to non-glibc/lock-using systems
131         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
132         system with GNULIB_LOCK would fail due to absence of the
133         included "glthread/lock.h".  This would affect any package
134         for which the "lock" module is used only by the regex module,
135         and not explicitly used.
136         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
137         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
138         Add a dependency on the "lock" module.
139
140 2013-07-20  Daiki Ueno  <ueno@gnu.org>
141
142         localecharset: make locale_charset thread-safe on Mac OS X
143         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
144         instead of MB_CUR_MAX.
145
146 2013-07-20  Daiki Ueno  <ueno@gnu.org>
147
148         gettext: update to version 0.18.3
149         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
150         require AC_PROG_SED to allow user to specify custom sed command when
151         generating en@quot PO file.
152
153 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
154
155         bootstrap: use correct source when copying build-aux files
156         * build-aux/bootstrap (gnulib_extra_files): This variable is
157         relative to upstream gnulib layout, not downstream.
158
159 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
160
161         tmpdir: fix bug in VMS port
162         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
163         See Steven M. Schweda in
164         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
165
166 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
167
168         tmpdir: port to VMS, to // != /, and to long dirs
169         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
170         __secure_getenv, so that we're more like the glibc version.
171         All uses changed.
172         (path_search): Don't put slash after directory if __VMS.
173         Problem reported by Steven M. Schweda in
174         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
175         Simplify code to add slash; no need for a loop.
176         Do not remove trailing slash from "//".
177         Do not assume dlen <= INT_MAX.
178
179 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
180
181         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
182         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
183         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
184         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
185
186         accept4, dup3, pipe2: port to Cygwin
187         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
188         * lib/accept4.c (accept4) [O_BINARY]:
189         * lib/dup3.c (dup3) [O_BINARY]:
190         * lib/pipe2.c (pipe2) [O_BINARY]:
191         Use set_binary_mode, not setmode.
192         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
193         * modules/binary-io (Depends-on): Remove module indicator.
194         These last two bits undo the previous change to pipe2 and binary-io.
195
196 2013-07-09  Pádraig Brady  <P@draigBrady.com>
197
198         mountlist: add support for deallocating returned list entries
199         * lib/mountlist.c (free_mount_entry): A new exported function
200         to deallocate a mount list entry.
201         (read_file_system_list): Refactor to use the new deallocation function.
202         Suggested by Anton Ovchinnikov.
203
204 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
205
206         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
207         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
208         * lib/stdalign.in.h (_Alignas, _Alignof):
209         Port to FreeBSD 9.1, and to C11 and C++11.
210         (_Alignas): Also support ICC.
211         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
212         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
213
214 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
215
216         fnmatch: don't goto over declaration
217         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
218         undefined behavior for goto over a declaration.
219         Problem reported by Charlie Brown in
220         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
221
222         pipe2: decouple from binary-io a bit
223         This is for Emacs, which needs pipe2 but not binary-io.
224         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
225         * modules/binary-io (Depends-on): Add module indicator.
226
227 2013-07-03  Eric Blake  <eblake@redhat.com>
228
229         mgetgroups: relax license to LGPLv2+
230         * modules/getugroups (License): Change from GPLv3+.
231         * modules/mgetgroups (License): Likewise.
232         * modules/getgroups (License): Change from LGPLv3+.
233
234         xalloc-oversized: relax license to LGPLv2+
235         * modules/xalloc-oversized (License): Change from GPLv3+.
236
237         nproc: relax license to LGPLv2+
238         * modules/nproc (License): Change from LGPLv3+.
239
240         bootstrap: honor --no-git
241         * build-aux/bootstrap: Don't even try to use git when user is
242         pointing to a static checkout.
243
244 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
245
246         ignore-value: port to gcc -pedantic
247         * lib/ignore-value.h (ignore_value):
248         Port to gcc -pedantic, by using __extension__.
249         Reindent as per usual gnulib style nowadays.
250         Simplify GCC version check.
251
252 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
253
254         extern-inline: port to gcc -std=c89
255         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
256         Do not use __gnu_inline__ if pedantic and pre-C99.
257
258 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
259
260         doc: document extern-inline
261         * doc/extern-inline.texi: New file.
262         * doc/gnulib.texi (alloca-opt): Include it.
263         * m4/extern-inline.m4: Move some comments to documentation,
264         and others closer to what they describe.
265
266         doc: chatter less
267         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
268         (updated-stamp): Use it.  This causes 'make' to output just
269         one file name rather than zillions.
270
271         fflush, fseeko: port to musl cross-compiles
272         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
273         on some implementation that (1) is not known to be buggy,
274         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
275         cross-compiled to so we can't easily check for lack of
276         conformance.  This is for cross-compiling to musl.
277         Reported by Rich Felker in
278         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
279         * m4/fclose.m4 (gl_FUNC_FCLOSE):
280         * m4/fflush.m4 (gl_FUNC_FFLUSH):
281         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
282         Adjust to above change.
283         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
284         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
285         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
286         known not to work, or unknown.
287
288 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
289
290         msvc-inval: port to mingw-w64
291         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
292         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
293         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
294
295 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
296
297         getcwd-lgpl: port to Tru64
298         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
299         Problem reported by Steven M. Schweda in
300         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
301
302         tests: port large-fd POSIX spawn tests to OS X
303         Problem reported by Daiki Ueno in
304         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
305         * tests/test-posix_spawn_file_actions_addclose.c:
306         * tests/test-posix_spawn_file_actions_adddup2.c:
307         * tests/test-posix_spawn_file_actions_addopen.c:
308         Include <limits.h>, for OPEN_MAX, if available.
309         (big_fd): New static function.
310         (main): Use it.
311
312 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
313
314         tests/nap.h: use an adaptive delay to avoid ctime update issues
315         The recent change in nap.h (5191133e) decreased the probability of lost
316         races to about a third, however such problems could still be observed
317         in virtual machines and openSUSE's OBS.
318         Before, nap() detected the needed time once empirically and then used
319         that delay (together with a small correction multiplier) in further
320         calls.  This problem has been reported and discussed several times,
321         including guesses about possible kernel issues:
322         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
323         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
324         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
325         http://bugs.gnu.org/12820
326         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
327         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
328         Now, nap() avoids the race alltogether by verifying on a reference
329         file whether a timestamp difference has happened.
330         * tests/nap.h (nap_fd): Define file descriptor variable for the
331         witness file.
332         (nap_works): Change return value to bool.  Change passing
333         the old file's status by value instead of by reference as this function
334         does no longer update that timestamp; rename the function argument from
335         st to old_st.  Remove the local variables cdiff and mdiff because that
336         function now returns true/false instead of the precise delay.
337         (guess_delay): Remove function.
338         (clear_tmp_file): Add new function to close and unlink the witness file.
339         (nap): Instead of re-using the delay which has been calculated during
340         the first call, avoid the race by actually verifying that a timestamp
341         difference can be observed on the current file system.  Use an adaptive
342         approach for the delay to minimize execution time.  Assert that the
343         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
344         = 2^31 - 1 = 2.1s.
345         Use atexit to call clear_tmp_file when the process terminates.
346
347 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
348
349         sig2str: port to C++
350         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
351         Reported by Daniel J Sebald in
352         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
353
354 2013-05-30  Eric Blake  <eblake@redhat.com>
355
356         docs: mention cygwin shortcoming in <sys/un.h>
357         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
358
359         vasnprintf: silence mingw compiler warning
360         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
361
362 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
363
364         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
365         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
366         This fixes a porting bug I recently reintroduced in regex, and
367         some other instances that I discovered while testing the fix.
368         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
369         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
370         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
371         with an empty argument if this is a pedantic pre-C99 GCC.
372         * lib/verify.h: Do not use _Static_assert if this is a pedantic
373         pre-C11 GCC.
374
375         regex: adapt to locking regime instead of depending on pthread
376         Instead of depending on pthread, adapt to whatever thread
377         modules are in use.  Problem reported by Ludovic Courtès in
378         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
379         and by Mats Erik Andersson in
380         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
381         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
382         Support either the 'lock' module, or the 'pthread' module, or
383         no module.
384         (lock_lock, lock_unlock): New macros.
385         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
386         * modules/lock, modules/pthread (configure.ac): Add module indicator.
387         * modules/regex (Depends-on): Remove pthread.
388
389 2013-05-22  Eric Blake  <eblake@redhat.com>
390
391         getgroups: document portability issues
392         * doc/glibc-functions/initgroups.texi (initgroups): Mention
393         multithread safety.
394         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
395         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
396         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
397         getugroups.
398         * doc/posix-functions/getgroups.texi (getgroups): Mention
399         multithread safety and mgetgroups.
400
401 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
402
403         test-lchown, test-chown: also skip test if chown fails with EPERM
404         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
405         skip this test, to handle FAT file systems.
406         * tests/test-chown.h (test_chown): Likewise.
407
408 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
409
410         regex: fix dfa race in multithreaded uses
411         Problem reported by Ludovic Courtès in
412         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
413         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
414         New macros.  All uses of __libc_lock_define, __libc_lock_init
415         changed to use the first two of these.
416         (__libc_lock_lock, __libc_lock_unlock): New macros, for
417         non-glibc platforms.
418         (struct re_dfa_t): Define the lock unconditionally.
419         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
420         '#ifdef _LIBC"s.
421         * modules/regex (Depends-on): Add pthread, if we use the
422         included regex.
423
424         * lib/regcomp.c: Do actions that are not needed for glibc,
425         but may be needed elsewhere.
426         (regfree, re_compile_internal): Destroy the lock.
427         (re_compile_internal): Check for lock-initialization failure.
428
429         malloca: port to compilers that reject size-zero arrays
430         This fixes a bug introduced in my previous patch.
431         * lib/malloca.c (struct preliminary_header): Use an int
432         rather than a character array of size int; that's simpler.
433         (struct header): Remove, replacing with ...
434         (union header): New type.  This avoids the need for declaring a
435         character array of size zero, which is not allowed on some platforms.
436         All uses changed.
437
438 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
439
440         parse-datetime, tests: don't use "string" + int
441         Recent versions of 'clang' complain about C source code that
442         uses expressions of the form '"string literal" + integer',
443         I guess on the theory that it's confusing for readers who are
444         used to C++.  On those grounds I suppose it's OK to make this
445         minor style change.
446         * lib/parse-datetime.y (parse_datetime):
447         * tests/test-fchdir.c (main):
448         * tests/test-snprintf-posix.h (test_function):
449         * tests/test-snprintf.c (main):
450         * tests/test-vasnprintf-posix.c (test_function):
451         * tests/test-vasnprintf.c (test_function):
452         * tests/test-vsnprintf.c (main):
453         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
454         Rewrite '"str" + E' to '&"str"[E]'.
455
456 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
457
458         argmatch: port to C++
459         * lib/argmatch.h [__cplusplus]: Add extern "C".
460
461         argp: typo fix
462         * lib/argp-help.c: Typo in comment.
463
464 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
465
466         manywarnings: update for GCC 4.8.0
467         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
468         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
469         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
470         -Wmissing-noreturn, as they are duplicates of other warnings.
471         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
472         was documented to be flaky in earlier versions of GCC.
473
474         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
475         * tests/test-spawn.c (main):
476         * tests/test-sys_socket.c (main):
477         * tests/test-sys_wait.c (main):
478         Don't have a switch value that isn't covered by a case.
479
480         getaddrinfo-tests: port --enable-gcc-warnings to clang
481         * tests/test-getaddrinfo.c (simple):
482         Avoid casts from looser to stricter-aligned pointers.
483
484         thread: port --enable-gcc-warnings to clang
485         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
486         Include <signal.h>, to pacify a warning about pthread_sigmask.
487
488         stdio: use __REDIRECT for fwrite, fwrite_unlocked
489         * lib/stdio.in.h (fwrite):
490         When working around bug 11959, use __REDIRECT rather than '#define
491         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
492         fix the -Wunused-value issue with clang, and it works with GCC too.
493         Problem with targeting reported by Eric Blake in
494         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
495         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
496         debugging the fwrite issue.
497
498         stdio: port --enable-gcc-warnings to clang
499         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
500         since the GCC workaround for fwrite does not pacify clang.
501
502         sig2str: port --enable-gcc-warnings to clang
503         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
504
505         obstack: port --enable-gcc-warnings to clang
506         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
507         Avoid casts from looser to stricter-aligned pointers.
508
509         memchr2: port --enable-gcc-warnings to clang
510         * lib/memchr2.c (memchr2):
511         Avoid casts from looser to stricter-aligned pointers.
512
513         mbsstr: port --enable-gcc-warnings to clang
514         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
515         Avoid casts from looser to stricter-aligned pointers.
516
517         malloca: port --enable-gcc-warnings to clang
518         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
519         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
520
521         inttostr: port --enable-gcc-warnings to clang
522         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
523
524         warnings: port to clang
525         Problem reported by Daniel P. Berrange via Eric Blake in
526         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
527         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
528         (gl_WARN_ADD): Use it.
529
530 2013-05-11  Jim Meyering  <meyering@fb.com>
531
532         quotearg: do not read beyond end of buffer
533         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
534         end of an ARG for which no length was specified.  With an N-byte
535         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
536         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
537         via coreutils' misc/sort-debug-keys.sh test and detected by running
538         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
539         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
540         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
541         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
542         characters correctly."
543
544 2013-05-11  Daiki Ueno  <ueno@gnu.org>
545
546         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
547         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
548         compilation target is Mac OS X 10.6.
549         Problem reported by parafin and Andoni Morales in
550         <http://savannah.gnu.org/bugs/?37844> and
551         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
552
553 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
554
555         mkdir-p: remove assumptions about umask and mode
556         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
557         umask is 0, or that MODE is a subset of MODE_BITS.
558
559 2013-05-10  Eric Blake  <eblake@redhat.com>
560
561         maint.mk: catch more abuse of HAVE_DECL in syntax-check
562         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
563
564 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
565
566         deps: require Automake >= 1.9.6 in generated Makefile fragments
567
568         That is the same minimal version required in the DEPENDENCIES file.
569         Moreover, the old code generated a requirement of Automake >= 1.5,
570         and that is an insanely outdated version.
571
572         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
573         * tests/havelib/rpathlx/Makefile.am: Likewise.
574         * tests/havelib/rpathly/Makefile.am: Likewise.
575         * tests/havelib/rpathlyx/Makefile.am: Likewise.
576         * tests/havelib/rpathlz/Makefile.am: Likewise.
577         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
578         * tests/havelib/rpathx/Makefile.am: Likewise.
579         * tests/havelib/rpathy/Makefile.am: Likewise.
580         * tests/havelib/rpathz/Makefile.am: Likewise.
581
582 2013-05-08  Eric Blake  <eblake@redhat.com>
583
584         bootstrap: AC_INIT may have more than four parameters
585         * build-aux/bootstrap (extract_package_name): Correctly extract
586         non-empty tarname field.  Avoid range in regex.
587         Based on a report by Sami Kerola <kerolasa@iki.fi>.
588
589 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
590
591         qacl: port to MS-Windows port of GNU Emacs
592         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
593         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
594         port of GNU Emacs.  Problem reported by Eli Zaretskii in
595         <http://bugs.gnu.org/14295#14>.
596
597 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
598
599         acl: include quote.h
600         * lib/copy-acl.c: Include quote.h.
601         * lib/set-acl.c: Likewise.
602
603 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
604
605         fchownat, renameat, unlinkat: update statat dependencies
606         These modules use statat and lstatat, not fstatat; so depend on
607         the statat module, which was split out recently from fstatat.
608         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
609         * modules/renameat: Likewise.  Also delete fstat.
610         URL: http://bugs.gentoo.org/468790
611
612 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
613
614         Assume gnulib is checked out from Git, not CVS
615
616         In fact, access to the gnulib repository through CVS has been
617         disabled, or more precisely, got broken and was never restored; see:
618         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
619
620         Note that support for CVS is not removed completely and unthinkingly
621         by this change: only support for CVS checkouts of gnulib itself is
622         removed.  For example, the 'bootstrap' script still cater to .cvsingore
623         files and CVS directories, for the benefit of those poor gnulib clients
624         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
625
626         * gnulib-tool: Simplify accordingly.
627         * posix-modules: Likewise.
628         * MODULES.html.sh: Likewise.
629         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
630         repository.
631         * doc/gnulib-intro.texi: Likewise.
632         * doc/gnulib-readme.texi: Likewise.
633         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
634         sample '.gitignore' file rather than a sample '.cvsignore'.
635         * NEWS: Update.
636         * m4/extensions.m4: While at it, remove a comment mistakenly referring
637         to "CVS Autoconf" rather than "git Autoconf".
638
639 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
640
641         utimensat-tests, etc.: try to fix some races
642         Problem reported by Bernhard Voelker in
643         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
644         I don't know whether this patch fixes that race condition, but it
645         fixes *some* race conditions, so it should be a win.
646         * modules/chown-tests (Depends-on):
647         * modules/fchownat-tests (Depends-on):
648         * modules/fdutimensat-tests (Depends-on):
649         * modules/futimens-tests (Depends-on):
650         * modules/lchown-tests (Depends-on):
651         * modules/stat-time-tests (Depends-on):
652         * modules/utimens-tests (Depends-on):
653         * modules/utimensat-tests (Depends-on):
654         Depend on nanosleep, not usleep.
655         * modules/chown-tests (test_chown_LDADD):
656         * modules/lchown-tests (test_lchown_LDADD):
657         * modules/stat-time-tests (test_stat_time_LDADD):
658         New macro.
659         * modules/fchownat-tests (test_fchownat_LDADD):
660         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
661         * modules/futimens-tests (test_futimens_LDADD):
662         * modules/utimens-tests (test_utimens_LDADD):
663         * modules/utimensat-tests (test_utimensat_LDADD):
664         Add $(LIB_NANOSLEEP).
665         * modules/stat-time-tests (Files): Add tests/nap.h.
666         * tests/nap.h: Include <limits.h>, for INT_MAX.
667         (lt_mtime): Remove.
668         (diff_timespec): New function.
669         (get_stat): Rename from get_mtime.  All callers changed.
670         (nap_works): Determine the needed delay by inspecting the
671         file system's timestamp jumps; this should be more reliable.
672         Look at both mtime and ctime, and take the maximum of the two jumps.
673         (nap_works, guess_delay):
674         Return a nanosecond cound, not a microsecond count.
675         All callers changed.
676         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
677         failure.
678         (nap): Multiply the guess by 1.125, to accommodate the case where
679         the file system's clock is a bit slower than nanosleep's clock.
680         * tests/test-stat-time.c (BASE): New macro.
681         Include nap.h.
682         (nap): Remove; nap.h now defines this.  This removes a duplicate
683         implementation of 'nap'.
684
685         utimens, utimensat: work around Solaris UTIME_OMIT bug
686         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
687         Linux kernel 2.6.32 does.  Work around it in the same way.
688         * doc/posix-functions/futimens.texi (futimens):
689         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
690         * lib/utimens.c (fdutimens, lutimens):
691         * lib/utimensat.c (rpl_utimensat): Work around the bug.
692
693         gettext: now it's your responsibility to add -I$(top_builddir)/intl
694         Formerly, it was your responsibility to do this for all Makefile.ams
695         other than Gnulib's.  Now it's your responsibility to do it for
696         Gnulib's Makefile.am, too.
697         * NEWS: Document this.
698         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
699
700         acl: include errno.h to get errno
701         Reported by Daiki Ueno in
702         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
703         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
704
705 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
706
707         tests: don't assume getdtablesize () <= 10000000
708         * modules/cloexec-tests:
709         * modules/dup2-tests:
710         * modules/dup3-tests:
711         * modules/nonblocking-tests:
712         * modules/posix_spawn_file_actions_addclose-tests:
713         * modules/posix_spawn_file_actions_adddup2-tests:
714         * modules/posix_spawn_file_actions_addopen-tests:
715         * modules/unistd-safer-tests:
716         Depend on the getdtablesize module.
717         * tests/test-cloexec.c:
718         * tests/test-dup-safer.c:
719         * tests/test-dup2.c:
720         * tests/test-dup3.c:
721         * tests/test-fcntl.c:
722         * tests/test-nonblocking.c:
723         * tests/test-posix_spawn_file_actions_addclose.c:
724         * tests/test-posix_spawn_file_actions_adddup2.c:
725         * tests/test-posix_spawn_file_actions_addopen.c:
726         Don't assume getdtablesize () <= 10000000.
727
728 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
729
730         extern-inline: work around bug in Sun c99
731         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
732         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
733
734 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
735
736         qacl: new module, broken out from the acl module
737         This is for GNU Emacs, which wants the acl functions but does
738         not want 'error' invoked when they fail.
739         * lib/acl-internal.h: Do not include error.h, quote.h.
740         (ENOSYS, ENOTSUP): Remove; no longer needed.
741         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
742         * lib/acl.h: Include <stdbool.h>.
743         (acl_errno_valid): New function.
744         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
745         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
746         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
747         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
748         (ACL_INTERNAL_INLINE): Remove; no longer needed.
749         * lib/file-has-acl.c (file_has_acl):
750         * lib/qcopy-acl.c (qcopy_acl):
751         * lib/qset-acl.c (qset_acl):
752         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
753         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
754         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
755         lib/file-has-acl.c, m4/acl.m4 to qacl module.
756         Add lib/set-acl.c.
757         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
758         Add qacl.
759         (configure.ac): Move gl_FUNC_ACL to qacl module.
760         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
761         Rename set-mode-acl.c to set-acl.c.
762         * lib/acl-errno-valid.c: New file.
763         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
764         copy_acl function remains in copy-acl.c.
765         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
766         (_): Remove; not needed.
767         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
768         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
769         * modules/qacl: New file, moved from the old modules/acl.
770         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
771         Remove set-mode-acl.c, copy-acl.c.
772         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
773
774         alignof, intprops, malloca: port better to IBM's C compiler
775         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
776         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
777         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
778
779 2013-04-25  Daiki Ueno  <ueno@gnu.org>
780
781         wctype-h: fix gettext link error on mingw
782         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
783         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
784         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
785         rpl_towupper and rpl_towupper.
786
787 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
788
789         regex-tests, regex: allow glibc re_search behavior
790         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
791         re_search input data to make the multi-character collating element
792         in it clearly visible, and treat re_search return code 0 as valid.
793         * m4/regex.m4 (gl_REGEX): Likewise.
794
795 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
796
797         stdalign: doc fix
798         * doc/posix-headers/stdalign.texi (stdalign.h):
799         Gnulib doesn't support '_Alignof expr'.
800
801 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
802
803         stdalign: port to stricter ISO C11
804         ISO C11 says that _Alignof's operand must be a parenthesized type.
805         Problem reported by Eli Zaretskii in
806         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
807         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
808         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
809
810 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
811
812         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
813         Problem reported by Marco Atzeri in
814         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
815         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
816         Simply delegate to the system <sys/select.h> in this case too.
817         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
818         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
819         be needed on Solaris either.
820         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
821         Simply delegate to the system <sys/time.h> in this case.
822
823 2013-03-19  Karl Berry  <karl@gnu.org>
824
825         * build-aux/gnupload: check for erroneous (with gnupload) use of
826         ftp-upload.gnu.org, tweak help.
827
828 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
829
830         copy-file, rpmatch: fix problems found by cppcheck
831         Reported by Arno Onken in
832         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
833         * lib/rpmatch.c (try): Fix memory leak.
834         * lib/copy-file.c: Include "ignore-value.h".
835         (qcopy_file_preserving): Ignore chown value.
836         * modules/copy-file (Depends-on): Add ignore-value.
837
838 2013-01-27  Jim Meyering  <jim@meyering.net>
839
840         prefix-gnulib-mk: give better diagnostics
841         * build-aux/prefix-gnulib-mk: Don't just "die".
842         Give better diagnostics upon failure.
843
844 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
845
846         putenv: port to Solaris 10
847         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
848         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
849         is not what is wanted here.
850         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
851         declaration, not for its existence.
852
853 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
854
855         mktime: fix configure typo
856         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
857
858 2013-03-12  Eric Blake  <eblake@redhat.com>
859
860         regex-tests: skip UTF-8 test on mingw
861         * modules/regex-tests (Depends-on): Add localcharset.
862         * tests/test-regex.c (main): Use it to skip test on mingw.
863
864 2013-03-11  Eric Blake  <eblake@redhat.com>
865
866         tests: make it easier to bypass alarm time in debugger
867         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
868         * tests/test-memmem.c (main): Likewise.
869         * tests/test-passfd.c (main): Likewise.
870         * tests/test-ptsname.c (main): Likewise.
871         * tests/test-ptsname_r.c (main): Likewise.
872         * tests/test-strcasestr.c (main): Likewise.
873         * tests/test-strstr.c (main): Likewise.
874
875         regex: port to mingw's recent addition of undeclared alarm
876         * doc/posix-functions/alarm.texi (alarm): Document that alarm
877         exists but still doesn't work in newer mingw.
878         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
879         not existence.  Ensure SIGALRM is not trapped.
880         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
881         * m4/regex.m4 (gl_REGEX): Likewise.
882         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
883         * tests/test-regex.c (main): Use correct probe for alarm.
884
885         putenv: avoid compilation warning on mingw
886         * lib/putenv.c (_unsetenv): Protect variable declaration.
887         (putenv): Fix indentation.
888
889 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
890
891         unistd: don't prevent Tru64 Unix from using gnulib strtod.
892         * lib/unistd.in.h: be careful not to include un-needed system
893         stdlib.h from here, because that prevents gnulib stdlib.h from
894         defining rpl_strtod correctly.
895
896 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
897
898         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
899         changesets, but for the 'precision 0' test.
900         * tests/test-vasprintf-posix.c (test_function): Don't insist on
901         round-to-even, since POSIX says rounding is implementation-defined
902         and OS X 10.8.2 rounds 1.51 to 1 here.
903
904         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
905         changeset.
906         * tests/test-vasprintf-posix.c (test_function): Don't insist on
907         round-to-even, since POSIX says rounding is implementation-defined
908         and OS X 10.8.2 rounds 1.5 to 1 here.
909
910 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
911
912         vasnprintf-posix-tests: allow rounding 1.5 to 1
913         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
914         round-to-even, since POSIX says rounding is implementation-defined
915         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
916         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
917
918         bootstrap: port to FreeBSD
919         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
920         that treat '--' differently.  Reported by Mats Erik Andersson in
921         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
922
923 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
924
925         regex: rename remaining __attribute calls to __attribute__.
926         2012-02-25 changed definition of __attribute, but left some uses
927         unchanged, preventing compilation of regex module on most non-gcc
928         environments.
929         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
930         (lookup_collation_sequence_value, build_range_exp)
931         (build_collating_symbol): Set attributes with newly renamed
932         __attribute__ decorator.
933         * lib/regex_internal.c (re_string_peek_byte_case)
934         (re_node_set_compare, re_node_set_contains): Likewise.
935         * lib/regexec.c (acquire_init_state_context): Likewise.
936
937 2013-03-06  Bruno Haible  <bruno@clisp.org>
938
939         execute: Revert last change, but use a different condition.
940         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
941         on Windows.
942
943 2013-03-05  Eric Blake  <eblake@redhat.com>
944
945         execute: drop dead code
946         * lib/execute.c (nonintr_close, nonintr_open): Delete.
947
948 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
949
950         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
951         * m4/non-recursive-gnulib-prefix-hack.m4
952         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
953         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
954         <http://bugs.gnu.org/10305#237>.
955
956 2013-03-04  Eric Blake  <eblake@redhat.com>
957
958         test-getsockopt: avoid compiler warning
959         * tests/test-getsockopt.c (includes): Ensure close is declared.
960
961 2013-03-02  Bruno Haible  <bruno@clisp.org>
962
963         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
964         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
965
966 2013-03-02  Bruno Haible  <bruno@clisp.org>
967
968         gettext: Update to version 0.18.2.
969         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
970         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
971                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
972
973 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
974
975         regex: merge patches from libc
976
977         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
978         * lib/regex_internal.h (__attribute__): Rename from __attribute.
979         All uses changed.
980         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
981         (re_string_wchar_at, re_string_elem_size_at):
982         Mark function as possibly unused.
983
984         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
985         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
986         elements compare against the byte sequence of it, not its name.
987
988 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
989
990         putenv: port better to native Windows
991         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
992         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
993         (_unsetenv): Use _putenv if available.
994         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
995         a bit less likely to cause damage.
996         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
997         Fix the wrong value with SetEnvironmentVariable.
998         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
999         code better.
1000
1001 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1002
1003         regex: ignore old-style-definition warnings
1004         * lib/regex.c: Add pragma to ignore these warnings.
1005         Problem reported for GNU tar by Pavel Raiskup.
1006
1007 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         getcwd: support coreutils better
1010         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1011         but this might not be correct in coreutils, which disables
1012         the raw decl checks.  Problem reported by Nagendra in
1013         <http://bugs.gnu.org/10305#192>.
1014         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1016         Test the getcwd function, not any macro, since getcwd.c wants the
1017         function.
1018         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1019         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1020         compile, as might happen if there's a macro but no function.
1021
1022         strtod: support coreutils better
1023         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1024         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1025         disables the raw decl checks.  This assumes there is an underlying
1026         strtod, but that's a safe assumption these days.
1027         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1028
1029         mountlist: port to HP NonStop
1030         Reported by Joachim Schmitz in
1031         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1032         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1033         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1034
1035 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         extern-inline: avoid compilation error with HP-UX cc
1038         Reported by Richard Lloyd in
1039         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1040         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1041         Suppress extern inline with HP-UX cc.  This should be safe,
1042         though it may hurt performance.  Perhaps someone with some HP-UX
1043         experience can come up with a higher-performance fix.
1044
1045 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1046
1047         putenv: fix heap corruption with mixed putenv/_putenv
1048         Problem reported by Michael Goffioul in
1049         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1050         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1051         Rely on _putenv to allocate the new environment.
1052         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1053         * modules/putenv (configure.ac): Use it.
1054
1055 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         unsetenv etc.: port to Solaris 11 + GNU Emacs
1058         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1059         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1060         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1061         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1062         idea but is too painful to fix right now), and without this gnulib
1063         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1064         compiling unsetenv.c on Solaris 11.  Fix the problem for
1065         unsetenv.c, and fix other similar occurrences.
1066
1067 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         secure_getenv: fix C++ declaration typo
1070         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1071         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1072         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1073
1074 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         careadlinkat: stop exporting careadlinkatcwd
1077         Only Emacs used it directly, and Emacs no longer needs it.
1078         * NEWS: Document this simplification.
1079         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1080         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1081         for readlink.
1082         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1083         Don't include stdlib.h; no longer needed.
1084         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1085         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1086         * modules/areadlink (Depends-on): Add readlink.
1087         (Maintainer): Add self.
1088         * modules/careadlinkat (Depends-on): Remove readlink.
1089
1090         extensions: port better to HP-UX
1091         This is merged from git Autoconf.
1092         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1093         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1094         so that it's compatible with the value used when compiling.
1095
1096         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1097         Problem reported by Mats Erik Andersson in
1098         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1099         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1100         openpty function exists, not merely when we intend to replace it.
1101         This corrects the 2013-01-31 patch, which mistakenly defined
1102         HAVE_OPENPTY even on hosts that lacked it.
1103
1104 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         secure_getenv: fix include typo
1107         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1108
1109         secure_getenv: port better to FreeBSD and Solaris
1110         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1111         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1112         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1113         This works better on BSDish platforms.
1114         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1115         Test for issetugid if __secure_getenv is missing.
1116
1117 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1120         Some of these changes are merged in from git Autoconf.
1121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1122         When deciding whether to define _XOPEN_SOURCE, inspect the
1123         preprocessor macro __hpux instead of the more-heavyweight
1124         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1125         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1126         as the key for __EXTENSIONS__.
1127
1128         unistd: avoid namespace pollution on non-glibc systems
1129         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1130         This avoids namespace pollution on non-glibc systems, by causing
1131         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1132         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1133         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1134
1135 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1136
1137         tmpdir: use secure_getenv
1138         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1139         Define to secure_getenv, not getenv.
1140         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1141         as that's now secure_getenv's job.
1142         * modules/tmpdir (Depends-on): Add secure_getenv.
1143
1144         tempname: use secure_getenv
1145         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1146         Define to secure_getenv, not getenv.
1147         * modules/tempname (Depends-on):
1148         Add secure_getenv.
1149
1150         secure_getenv: new module
1151         * MODULES.html.sh (Extra functions based on ANSI C 89):
1152         Add secure_getenv.
1153         * doc/glibc-functions/secure_getenv.texi: New file.
1154         * doc/gnulib.texi: Include it.
1155         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1156         New files.
1157         * lib/stdlib.in.h (secure_getenv): New decl.
1158         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1159         * modules/stdlib (stdlib.h):
1160         Add secure_getenv checks.
1161
1162 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1165         Reported for OS X 10.8.2 by Assaf Gordon in
1166         <http://bugs.gnu.org/13516>.
1167         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1168         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1169         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1170         so that they can be kept in sync more easily.  Avoid PATH_MAX
1171         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1172         mkdir or chdir failure.
1173         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1174         lib/getcwd.c.
1175         (test_abort_bug): Do not test for the deep directory bug unless we
1176         have openat support.  Avoid PATH_MAX test on the Hurd.
1177
1178         regex-tests, regex: fix bug: memset undeclared
1179         * tests/test-regex.c: Don't include regex.h twice.  Include
1180         string.h, to declare memset.  Christensen's report also mentioned
1181         this issue.
1182         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1183         test-regex.c, to avoid future problems like this.  Remove
1184         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1185         twice.
1186
1187         regex-tests: fix link errors on older Solaris
1188         These need to link with @LIBINTL@ to get libintl_gettext.
1189         Problem reported by Tom G. Christensen in
1190         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1191         * modules/regex-tests (test_regex_LDADD): New macro.
1192
1193 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1194
1195         regex-tests: new module
1196         * modules/regex-tests, tests/test-regex.c: New files.
1197
1198         regex: fix off-by-one error in configure test
1199         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1200
1201 2013-01-31  Eric Blake  <eblake@redhat.com>
1202
1203         regex: avoid infinite configure test
1204         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1205
1206 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1207
1208         openpty: fix bug where HAVE_OPENPTY wasn't defined
1209         See the thread starting at:
1210         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1211         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1212         openpty function exists, not merely when we intend to replace it.
1213
1214 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1215
1216         sys_time: port to Solaris 2.6
1217         There is a circularity problem on Solaris 2.6, where <time.h> includes
1218         <sys/time.h> for struct timespec.  The include nesting is gnulib
1219         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1220         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1221         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1222         <sys/siginfo.h>; the last, innermost file needs struct
1223         timestruc_t, which is defined in <sys/time.h>, which has not been
1224         fully parsed.  Problem reported by Tom G. Christensen in
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1226         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1227         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1228         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1229         uses split double-inclusion guards.
1230
1231 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1232
1233         regex: test for buffer overrun
1234         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1235         for the just-fixed regex bug.
1236
1237 2013-01-29  Andreas Schwab  <schwab@suse.de>
1238
1239         regex: fix buffer overrun in regexp matcher [BZ #15078]
1240         * lib/regexec.c (extend_buffers): Add parameter min_len.
1241         (check_matching): Pass minimum needed length.
1242         (clean_state_log_if_needed): Likewise.
1243         (get_subexp): Likewise.
1244
1245 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1246
1247         mountlist: don't consider "devtmpfs" as dummy
1248         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1249         as there is storage associcated with it.
1250
1251 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1252
1253         futimens-tests, utimens-tests: Depend on gettext.
1254         This works around a problem introduced in my 2013-01-12 patch,
1255         which added @LIBINTL@ to these modules.
1256         * modules/futimens-tests (Depends-on):
1257         * modules/utimens-tests (Depends-on): Add gettext.
1258
1259 2013-01-26  Eric Blake  <eblake@redhat.com>
1260
1261         test-getpeername: fix typo
1262         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1263
1264 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1265
1266         bootstrap: remove the need for a sorted .gitignore file
1267         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1268         rename to insert_if_absent(), so that we don't need or generate
1269         a sorted .gitignore file.  We do require a .gitignore with no
1270         existing duplicate entries and enforce that.
1271         (sort_patterns): Remove this function as we now use the simpler
1272         technigue of inserting blacklist entries at the top of the file,
1273         assuming gnulib won't be inserting !whitelist entries.
1274
1275 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1276
1277         readlinkat: don't depend on gl_FUNC_OPENAT
1278         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1279         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1280         renameat.m4, symlinkat.m4; but one thing at a time.
1281
1282         statat: new module, split out from fstatat
1283         GNU Emacs needs the POSIX-specified fstatat, but not the
1284         gnulib-specified statat and lstat.  Split the latter two into a
1285         new module 'statat'.
1286         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1287         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1288         Rename from FSTATAT_INLINE. All uses changed.
1289         * modules/fstatat (Files): Remove lib/statat.c.
1290         (gl_MODULE_INDICATOR([fstatat])): Remove.
1291         (lib_SOURCES): Remove.
1292         (Maintainer): Add self.
1293         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1294         * tests/test-fstatat.c (BASE): Don't define if already defined.
1295         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1296
1297 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         tests: don't assume fd 99 is closed
1300         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1301         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1302         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1303         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1304         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1305         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1306         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1307         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1308         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1309         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1310         * tests/test-fwrite.c, tests/test-getpeername.c:
1311         * tests/test-getsockname.c, tests/test-getsockopt.c:
1312         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1313         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1314         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1315         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1316         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1317         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1318         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1319         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1320         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1321         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1322         Close file descriptor 99, instead of assuming it's already closed.
1323
1324 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1325
1326         stpncpy: port to OS X 10.8
1327         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1328         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1329
1330 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1331
1332         unistd: port to recent mingw
1333         * lib/unistd.in.h: Remove special invocation convention for mingw,
1334         which breaks for the latest mingw version.  See John W. Eaton in
1335         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1336
1337         largefile: port better to Mac OS X 10.5
1338         This patch is backported from Autoconf git.
1339         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1340         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1341         with ino_t size being different for configuration time versus
1342         build/run time.  Problem reported by PHO in
1343         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1344
1345 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1346
1347         doc: clarify -Werror
1348         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1349         clarify that it's intended for developers, not for ordinary builds,
1350         and mention --enable-gcc-warnings as one possible use.
1351
1352 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1353
1354         stdint: fix build with Android's Bionic fox x86
1355         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1356         was already included as _SSIZE_T_DEFINED_ might also be defined
1357         in include/machine/_types.h, which is included by stdio.h
1358
1359 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1360
1361         net_if-tests: port to Solaris 7 + GCC 3.4.6
1362         Problem reported by Tom G. Christensen in
1363         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1364         * tests/test-net_if.c (ni): Move to next the code that uses it,
1365         so that it's declared only if needed.
1366
1367 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1368
1369         net_if-tests: port to older Solaris
1370         Problem reported by Tom G. Christensen in
1371         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1372         * modules/net_if-tests (NET_IF_LIB): New substitution.
1373         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1374         (HAVE_IF_NAMEINDEX): New C macro.
1375         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1376
1377         system-quote-tests: port to older Solaris
1378         Problem reported by Tom G. Christensen in
1379         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1380         * tests/test-system-quote-child.c (fopen, fread): Undef.
1381
1382         c-xvasprintf etc.: fix link errors on older Solaris
1383         These need to link with @LIBINTL@ to get libintl_gettext.
1384         Problem reported by Tom G. Christensen in
1385         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1386         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1387         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1388         * modules/futimens-tests (test_futimens_LDADD):
1389         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1390
1391 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         locale: port to Solaris 2.6 and 7 + GNU gettext
1394         * lib/locale.in.h: Just include_next <locale.h> when
1395         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1396         when combining the localename module with GNU gettext 0.18.2.
1397         Problem reported by Tom G. Christensen in
1398         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1399
1400 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1401
1402         stdlib: port to Solaris 2.6
1403         Also, the code worked on Solaris 7 through 9 only by accident.
1404         Problem reported by Tom G. Christensen in
1405         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1406         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1407         simply include the system stdlib.h.
1408         * lib/getopt.in.h (__need_system_stdlib_h):
1409         * lib/pthread.in.h (__need_system_stdlib_h):
1410         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1411         Define when including <stdlib.h>, to avoid problems at least for
1412         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1413         with the system stdlib.h.
1414
1415 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1416
1417         doc: update main copyright year
1418         * doc/gnulib.texi: Update copyright date.
1419
1420         doc: improve ISO 8601 discussion
1421         * doc/parse-datetime.texi (Combined date and time of day items):
1422         Specify more carefully what formats are supported and what is
1423         done with excess precision.
1424
1425 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1426
1427         doc: avoid small caps
1428         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1429         they're more trouble than they're worth.  Suggested by Karl Berry
1430         in <http://bugs.gnu.org/13360>.
1431
1432         regex: conform to strict C
1433         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1434         From Aharon Robbins.
1435
1436         gnulib-tool: fix incompatibility with autopoint 0.18.2
1437         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1438         Problem reported by Tom G. Christensen in
1439         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1440
1441 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1442
1443         fprintftime: bring back and reword fwrite comment
1444         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1445
1446         stdio: remove now-unnecessary stdio.c
1447         Since stdio.in.h no longer uses inline functions, we no longer
1448         need to compile the extern versions.
1449         * lib/stdio.c: Remove.
1450         * modules/stdio (Files): Remove lib/stdio.c.
1451         (lib_SOURCES): Remove.
1452
1453         unicodeio: depend on stdio, not ignore-value
1454         * lib/unicodeio.c: Do not include ignore-value.h.
1455         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1456         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1457
1458         fprintftime: depend on stdio, not ignore-value
1459         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1460         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1461         since the stdio module arranges to silence that warning now.
1462         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1463
1464 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1465
1466         stdint-tests: Fix expanded-before-required-warning.
1467         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1468
1469 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1470
1471         fwrite: silence __wur only for older glibc versions
1472         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1473         This will help us remove this workaround some time in the far future.
1474
1475 2013-01-03  Eric Blake  <eblake@redhat.com>
1476
1477         fwrite: silence __wur without using inline
1478         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1479         just gcc, and in a way that avoids inline issues.
1480         * modules/stdio (Depends-on): Drop extern-inline.
1481
1482 2013-01-03  Jim Meyering  <jim@meyering.net>
1483
1484         update-copyright: avoid copyright notice date corruption
1485         Given a sequence of copyright year numbers in which the final
1486         one was a two-digit number that happened to be a substring of
1487         a preceding four-digit year number, we would mistakenly update
1488         the substring (from two- to four-digit) rather than the two-digit
1489         number at the end, which, combined with the addition of the current
1490         4-digit year number would yield two 5-digit year numbers, e.g.,
1491         here, it would convert the first "99" to "1999, 2013" rather than
1492         the final one:
1493           1991, 99
1494           11999, 20131, 1999
1495         * build-aux/update-copyright: Tighten a regexp.
1496         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1497         Reported by Joseph Myers in
1498         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1499
1500 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         regex: omit needless signed-pointer casts
1503         * lib/regcomp.c (build_charclass, build_charclass_op):
1504         Use char *, not unsigned char *, for class name and extra.
1505         The char values are always nonnegative so there's no need to
1506         insist on unsigned char * here, and using char * removes the need
1507         for casts.  Reported by Aharon Robbins in
1508         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1509
1510         regex: support Gawk, which never uses alloca
1511         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1512         Do not include in this case.  Gawk doesn't supply a substitute
1513         alloca.h and doesn't need one.
1514
1515         regex: port __libc_lock_define usage to C89
1516         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1517         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1518         does not conform to C89, as it has an empty macro argument.
1519         Reported by Aharon Robbins in
1520         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1521
1522 2013-01-01  Eric Blake  <eblake@redhat.com>
1523
1524         maint: update all copyright year number ranges
1525         Run "make update-copyright".
1526
1527         version-etc: bump copyright year reported in --version
1528         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1529
1530 2012-12-31  Eric Blake  <eblake@redhat.com>
1531
1532         sigprocmask-tests: skip test if pid is unexpectedly large
1533         * tests/test-sigprocmask.c (main): Add range check.
1534
1535         git-version-gen: avoid test -z portability glitch
1536         * build-aux/git-version-gen: Prefer portable test spelling, since
1537         git-version-gen is run on more than just developer machines.
1538
1539 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1540
1541         git-version-gen: add --fallback option to use if git is not present
1542         * build-aux/git-version-gen: Add support for the new option --fallback,
1543         which comes into play when there is no $tarball_version_file and
1544         git is not working.
1545         (scriptversion): Update.
1546
1547         maint.mk: handle missing git with more grace
1548         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1549         Quietly proceed if git is not present.
1550
1551 2012-12-31  Eric Blake  <eblake@redhat.com>
1552
1553         dup2: work around cygwin bug
1554         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1555         * lib/dup2.c (rpl_dup2): Work around it.
1556         * doc/posix-functions/dup2.texi (dup2): Document it.
1557
1558 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         regex: remove unnecessary dependency on localcharset.h
1561         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1562         hasn't been needed for years.
1563         * modules/regex (Depends-on): Remove localcharset.
1564
1565         regex: revert single-byte change
1566         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1567         to this function.  This was alredy fixed in a different way, at
1568         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1569         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1570         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1571
1572         regex: simplify based on Gawk version
1573         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1574         Reported by Aharon Robbins in
1575         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1576
1577 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         regex: check that pattern char is single-byte
1580         Reported by Aharon Robbins in
1581         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1582         * lib/regexec.c (check_node_accept_bytes):
1583         Return 0 if the pattern string has a multibyte character here.
1584
1585         regex: implement rational ranges
1586         Reported by Aharon Robbins in
1587         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1588         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1589         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1590         Implement rational ranges.
1591
1592         regex: avoid redefining __wctype
1593         Reported by Aharon Robbins in
1594         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1595         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1596         #undef before defining.
1597
1598         regex: port to hosts where malloc (0) == NULL
1599         Reported by Aharon Robbins in
1600         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1601         * lib/regex_internal.c (re_node_set_alloc):
1602         Don't assume that malloc (0) yields nonnull.
1603         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1604         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1605         * modules/regex (Files): Add m4/eealloc.m4.
1606
1607         regex: port to C89
1608         Reported by Aharon Robbins in
1609         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1610         * lib/regcomp.c (init_word_char): Declaration before statement.
1611
1612         regex: merge glibc changes
1613         Also, copy the license wording from glibc.  This simplifies
1614         merging changes.  gnulib-tool will change the wording to GPL as
1615         appropriate, when importing it to other packages.  The only
1616         glibc change made since the last merge, which needs merging, is:
1617         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1618         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1619
1620         * users.txt: Add Emacs.
1621
1622         doc: omit mention of version when not needed
1623         * doc/gnulib-intro.texi (Portability and Application Code):
1624         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1625         Don't mention particular dates or versions when not necessary, so
1626         that the documentation won't go out of date so quickly.
1627
1628         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1629
1630 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1631
1632         bootstrap: pass --force to autoreconf.
1633         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1634         Add "--force" so that Automake's ylwrap and other such tools
1635         be updated at each bootstrap invocation.
1636         Use it.
1637
1638 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1641         The earlier patch forgot to update one of the #if conditions, causing
1642         a problem on Debian testing i386 reported by Mats Erik Andersson
1643         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1644         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1645         (__argp_fmtstream_puts, argp_fmtstream_puts)
1646         (__argp_fmtstream_write, argp_fmtstream_write)
1647         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1648
1649         * doc/gnulib-readme.texi: Minor fixups.
1650         (Portability guidelines): Modernize URLs.  Remove some repetition.
1651         (Indent with spaces not TABs): Reword to avoid too-long lines.
1652         Remove some '@ifset standalone' stuff that isn't used.
1653
1654         * doc/gnulib-readme.texi (Portability guidelines):
1655         ctype.h, not ctime.h.
1656
1657         Correct name of POSIX.1-2001.
1658         * doc/posix-functions/fgetc.texi (fgetc):
1659         * doc/posix-functions/fgets.texi (fgets):
1660         * doc/posix-functions/fread.texi (fread):
1661         * doc/posix-functions/fscanf.texi (fscanf):
1662         * doc/posix-functions/getc.texi (getc):
1663         * doc/posix-functions/getchar.texi (getchar):
1664         * doc/posix-functions/scanf.texi (scanf):
1665         POSIX.1-2001, not POSIX-2001.
1666
1667         doc: move README into manual
1668         * README: Move contents to new file doc/gnulib-readme.texi.
1669         Replace with a one-line summary.
1670         * doc/gnulib.texi (Brief Overview): New section,
1671         with old intro preface.  Include gnulib-readme.texi for contents.
1672         (Philosophy): Rename from "Introduction", since this
1673         section no longer introduces the rest.  Write a new preface.
1674         * doc/gnulib-readme.texi: New file, with the old contents of
1675         README texinfo-ized.  This way, the README info appears
1676         in the online and printed manual.
1677
1678 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1679
1680         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1681         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1682         c_vasprintf() prototype.
1683
1684 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1685
1686         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1687         * lib/c-vasprintf.h: Remove stray semicolon.
1688
1689 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1690
1691         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1692         It is obsolete and is planned to be removed from Automake 1.14; see
1693         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1694         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1695         (installdirs-data, installdirs-data-yes):
1696         Use $(MKDIR_P), not $(mkdir_p).
1697         * m4/intl.m4 (AM_INTL_SUBDIR):
1698         * m4/po.m4 (AM_PO_SUBDIRS):
1699         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1700
1701 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1702
1703         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1704         On this platform, we are not optimizing but we are using
1705         the substitute for extern inlines, so compile as if
1706         C99-style extern inline, or a substitute, is available.
1707         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1708         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1709         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1710         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1711         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1712         Declare as ARGP_FS_EI, not as extern.
1713         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1714         (__option_is_short, _option_is_end, __option_is_end)
1715         [!_LIBC && __USE_EXTERN_INLINES]:
1716         Declare as ARGP_EI, not as extern.
1717
1718 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1719
1720         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1721         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1722         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1723         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1724         ...), as the latter is fatal with older Autoconfs.
1725         Problem reported and fix suggested by Eric Blake in thread starting at
1726         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1727
1728 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         AC_PROG_MKDIR_P: don't workaround if not buggy
1731         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1732         Define only for Autoconf versions before 2.62.
1733         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1734         undocumented m4_PACKAGE_VERSION, for consistency with the
1735         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1736         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1737         was introduced in 2.62.
1738
1739 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1740
1741         New 'c-*printf' modules for formatted output in C locale.
1742
1743         New module 'c-vasnprintf'.
1744         * modules/c-vasnprintf: New file.
1745         * lib/c-vasnprintf.c: New file.
1746         * lib/c-vasnprintf.h: New file.
1747
1748         New module 'c-snprintf'.
1749         * modules/c-snprintf: New file.
1750         * modules/c-snprintf-tests: New file.
1751         * lib/c-snprintf.c: New file.
1752         * lib/c-snprintf.h: New file.
1753         * tests/test-c-snprintf.c: New file.
1754         * tests/test-c-snprintf.sh: New file.
1755
1756         New module 'c-vsnprintf'.
1757         * modules/c-vsnprintf: New file.
1758         * modules/c-vsnprintf-tests: New file.
1759         * lib/c-vsnprintf.c: New file.
1760         * lib/c-vsnprintf.h: New file.
1761         * tests/test-c-vsnprintf.c: New file.
1762         * tests/test-c-vsnprintf.sh: New file.
1763
1764         New module 'c-vasprintf'.
1765         * modules/c-vasprintf: New file.
1766         * modules/c-vasprintf-tests: New file.
1767         * lib/c-asprintf.c: New file.
1768         * lib/c-vasprintf.c: New file.
1769         * lib/c-vasprintf.h: New file.
1770         * tests/test-c-vasprintf.c  +: New file.
1771         * tests/test-c-vasprintf.sh: New file.
1772
1773         New module 'c-xvasprintf'.
1774         * modules/c-xvasprintf: New file.
1775         * modules/c-xvasprintf-tests: New file.
1776         * lib/c-xasprintf.c: New file.
1777         * lib/c-xvasprintf.c: New file.
1778         * lib/c-xvasprintf.h: New file.
1779         * tests/test-c-xvasprintf.c: New file.
1780         * tests/test-c-xvasprintf.sh: New file.
1781
1782 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1783
1784         argp: better 'inline'
1785         Use extern-inline module to declare extern inline functions.
1786         This avoids some bogus warning diagnostics.  Problem discovered
1787         when modifying GNU tar to use the manywarnings module.
1788         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1789         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1790         Define based on extern-inline.
1791         * modules/argp (Depends-on): Add extern-inline.
1792
1793 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         filemode, sys_stat: Handle MPX files a la AIX.
1796         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1797         * lib/sys_stat.in.h (S_ISMPX): New macro.
1798         * tests/test-sys_stat.c: Add tests for MPX files.
1799
1800 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1801
1802         x-to-1: honor $PERL
1803         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1804         a chance to use his preferred version of Perl.  This is typically
1805         required by Darwin users whose default /usr/bin/perl does not have all
1806         the libraries required by help2man, and who need to use their MacPorts
1807         installation of Perl instead.
1808
1809 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1810
1811         gnu-web-doc-update: add all the new files, even in new directories
1812         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1813         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1814         Use it.
1815         (main): Don't use cvsutils to get the list of unknown files,
1816         just add all the existing files and directories.
1817
1818 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1819
1820         gnu-web-doc-update: improve --help
1821         * build-aux/gnu-web-doc-update: Move comments into --help.
1822
1823 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1824
1825         mountlist: recognize more "dummy" file systems
1826         * lib/mountlist.c (ME_DUMMY_0):
1827         Add these dummy FS names to the list:
1828         - "debugfs" virtual filesystem for kernel debugging
1829         - "devpts" PTY slave filesystem
1830         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1831         - "fusectl" control filesystem for FUSE
1832         - "mqueue" enumerates POSIX message queues
1833         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1834         - "sysfs" is for exporting kernel objects
1835         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1836
1837 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         extern-inline: avoid incompatibility with Darwin Libc
1840         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1841         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1842         Problem reported by Akim Demaille in
1843         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1844
1845 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1846
1847         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1848         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1849         let it handle password prompting.
1850
1851 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1852
1853         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1854         * lib/canonicalize.c (canonicalize_filename_mode):
1855         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1856         fetching the current directory.  Don't overrun the beginning of
1857         rpath if there's no slashes after the MS-Windows drive letter.
1858
1859 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1860
1861         maint.mk: avoid extra forks
1862         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1863         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1864         So use that instead of "$(shell test -f FILE && echo FILE)".
1865
1866 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         vasnprintf: fix ASCII_ONLY typo
1869         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1870         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1871         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1872         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1873         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1874
1875 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         list, oset, xlist, xoset: fix extern inline issue with C99
1878         This was introduced by my recent changes for 'inline'.
1879         Problem reported for gettext by Daiki Ueno in
1880         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1881         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1882         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1883         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1884         (gl_list_previous_node, gl_list_get_at)
1885         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1886         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1887         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1888         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1889         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1890         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1891         (gl_list_iterator_free, gl_sortedlist_search)
1892         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1893         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1894         (gl_sortedlist_remove):
1895         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1896         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1897         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1898         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1899         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1900         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1901         (gl_list_add_at, gl_sortedlist_add):
1902         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1903         Wrap these extern decls inside "#if 0", because they are implemented
1904         as inline functions, and extern inline is not what's wanted here.
1905         It would simplify these .h files to remove the extern decls entirely,
1906         although a downside would be less-clear separation between
1907         specification and implementation.
1908
1909 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         sys_stat: no 'static inline'
1912         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1914
1915         extern-inline: no 'static inline'
1916         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1917         Do not require AC_C_INLINE.
1918         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1919         'static inline', for older compilers.
1920
1921         snippet/warn-on-use: no 'static inline'
1922         * build-aux/snippet/warn-on-use.h:
1923         Remove unnecessary 'inline' in comment.
1924
1925         rbtree-list, rbtreehash-list: no 'static inline'
1926         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1927         * lib/gl_anytree_list2.h (node_at):
1928         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1929         (gl_oset_first, add_nodes_to_buckets):
1930         Now static, not static inline.
1931
1932         regex: no 'static inline'
1933         * lib/regex_internal.c (calc_state_hash):
1934         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1935         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1936         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1937         Now static, not static inline.
1938         (inline) [__GNUC__ < 3 && _LIBC]:
1939         Remove macro; no longer needed.
1940
1941         xvasprintf: no 'static inline'
1942         * lib/xvasprintf.c (xstrcat):
1943         Now static, not static inline.
1944         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1945         Do not require AC_C_INLINE.
1946
1947         parse-datetime, parse-duration: no 'static inline'
1948         * lib/parse-datetime.y (to_uchar):
1949         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1950         (scale_n_add):
1951         Now static, not static inline.
1952         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1953         * modules/parse-duration (configure.ac):
1954         Do not require AC_C_INLINE.
1955
1956         getaddrinfo: no 'static inline'
1957         * lib/getaddrinfo.c (validate_family):
1958         Now static, not static inline.
1959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1960         Do not require AC_C_INLINE.
1961
1962         ftruncate, fts, lstat, openat, raise: no 'static inline'
1963         * lib/ftruncate.c (chsize_nothrow):
1964         * lib/fts.c (opendirat, diropen):
1965         * lib/lstat.c (orig_lstat):
1966         * lib/openat.c (orig_openat):
1967         * lib/raise.c (raise_nothrow):
1968         Now static, not static inline.
1969         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1970         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1971         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1972         * m4/openat.m4 (gl_PREREQ_OPENAT):
1973         * m4/raise.m4 (gl_PREREQ_RAISE):
1974         Do not require AC_C_INLINE.
1975
1976         fflush, stat: no 'static inline'
1977         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1978         (clear_ungetc_buffer, disable_seek_optimization)
1979         (restore_seek_optimization, update_fpos_cache):
1980         * lib/stat.c (orig_stat):
1981         Now static, not static inline.
1982         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1983         (update_fpos_cache):
1984         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1985         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1986         * m4/stat.m4 (gl_PREREQ_STAT):
1987         Do not require AC_C_INLINE.
1988
1989         error, filevercmp: no 'static inline'
1990         * lib/error.c (is_open, flush_stdout):
1991         * lib/filevercmp.c (order):
1992         Now static, not static inline.
1993         * m4/error.m4 (gl_PREREQ_ERROR):
1994         * modules/filevercmp (configure.ac):
1995         Do not require AC_C_INLINE.
1996
1997         dup, execute, fatal-signal, etc.: no 'static inline'
1998         * lib/dup.c (dup_nothrow):
1999         * lib/execute.c (nonintr_close, nonintr_open):
2000         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2001         * lib/fopen.c (orig_fopen):
2002         * lib/freadseek.c (freadptrinc):
2003         * lib/freopen.c (orig_freopen):
2004         * lib/fstat.c (orig_fstat, fstat_nothrow):
2005         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2006         (get_rusage_as_via_iterator):
2007         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2008         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2009         * lib/isatty.c (_isatty_nothrow):
2010         * lib/open.c (orig_open):
2011         * lib/read.c (read_nothrow):
2012         * lib/sigprocmask.c (signal_nothrow):
2013         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2014         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2015         * lib/wait-process.c (unregister_slave_subprocess):
2016         * lib/write.c (write_nothrow):
2017         Now static, not static inline.
2018         * lib/spawn-pipe.c (nonintr_open): Define only if
2019         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2020         * m4/dup.m4 (gl_PREREQ_DUP):
2021         * m4/execute.m4 (gl_EXECUTE):
2022         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2023         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2024         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2025         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2026         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2027         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2028         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2029         * m4/open.m4 (gl_PREREQ_OPEN):
2030         * m4/read.m4 (gl_PREREQ_READ):
2031         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2032         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2034         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2035         * m4/write.m4 (gl_PREREQ_WRITE):
2036         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2037         Do not require AC_C_INLINE.
2038
2039         c-strtod, memcoll, readutmp: no 'static inline'
2040         * lib/c-strtod.c (c_locale):
2041         * lib/memcoll.c (strcoll_loop):
2042         * lib/readutmp.c (desirable_utmp_entry):
2043         Now static, not static inline.
2044         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2045         * m4/memcoll.m4 (gl_MEMCOLL):
2046         * m4/readutmp.m4 (gl_READUTMP):
2047         Do not require AC_C_INLINE.
2048
2049         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2050         * lib/arctwo.c (to_uchar):
2051         * lib/md4.c (set_uint32):
2052         * lib/md5.c (set_uint32):
2053         * lib/sha1.c (set_uint32):
2054         * lib/sha256.c (set_uint32):
2055         * lib/sha512.c (set_uint64):
2056         Now static, not static inline.  This is a bit simpler, and doesn't
2057         affect performance with GCC and default optimization.
2058         * m4/arctwo.m4 (gl_ARCTWO):
2059         * m4/md4.m4 (gl_MD4):
2060         * m4/md5.m4 (gl_MD5):
2061         * m4/sha1.m4 (gl_SHA1):
2062         * m4/sha256.m4 (gl_SHA256):
2063         * m4/sha512.m4 (gl_SHA512):
2064         Do not require AC_C_INLINE.
2065
2066         cond, lock, thread: better 'inline'
2067         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2068         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2069         New macros.  Use them instead of static inline, for header functions.
2070         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2071         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2072         * lib/glthread/lock.c (gl_waitqueue_init)
2073         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2074         * lib/glthread/thread.c (get_current_thread_handle):
2075         Change 'static inline' to 'inline'.
2076         * lib/glthread/cond.h, lib/glthread/thread.h:
2077         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2078         * m4/cond.m4 (gl_COND):
2079         * m4/lock.m4 (gl_PREREQ_LOCK):
2080         * m4/thread.m4 (gl_THREAD):
2081         Do not require AC_C_INLINE.
2082         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2083
2084         chdir-long, cycle-check, savewd: better 'inline'
2085         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2086         (find_non_slash):
2087         * lib/cycle-check.c (is_zero_or_power_of_two):
2088         * lib/savewd.c (savewd_delegating):
2089         Change 'static inline' to 'inline'.
2090         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2091         Replace all remaining uses of 'static inline' with it.
2092         * lib/savewd.h:
2093         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2094         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2095         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2096         * m4/savewd.m4 (gl_SAVEWD):
2097         Do not require AC_C_INLINE.
2098         * modules/savewd (Depends-on): Add extern-inline.
2099
2100         base32, base64: no need for 'inline'
2101         * lib/base32.c (to_uchar, get_8, decode_8):
2102         * lib/base64.c (to_uchar, get_4, decode_4):
2103         Change 'static inline' to 'inline'.
2104         * m4/base32.m4 (gl_PREREQ_BASE32):
2105         * m4/base64.m4 (gl_PREREQ_BASE64):
2106         Do not require AC_C_INLINE.
2107
2108         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2109         * lib/gl_array_oset.c (gl_array_nx_add_at):
2110         (gl_array_remove_at):
2111         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2112         (add_to_bucket, remove_from_bucket):
2113         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2114         Change 'static inline' to 'static', as it's simpler to omit
2115         'inline' unless there's a significant performance advantage.
2116
2117         list, oset, xlist, xoset, xsublist: simplify via extern inline
2118         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2119         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2120         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2121         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2122         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2123         New macro.  Replace all uses of 'static inline' with it.
2124         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2125         instead of as macros FOO that are defined to static inline
2126         functions FOO_inline.
2127         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2128         * lib/gl_xsublist.c:
2129         Reimplement from scratch, by defining the corresponding *_INLINE
2130         macro and including the corresponding .h file.  This is simpler.
2131         * modules/list, modules/oset, modules/xlist, modules/xoset:
2132         (Files): Remove m4/gl_list.m4.
2133         (configure.ac): Remove gl_LIST.
2134         * m4/gl_list.m4: Remove.
2135         * modules/list, modules/oset, modules/xlist, modules/xoset:
2136         * modules/xsublist:
2137         (Depends-on): Depend on extern-inline, not inline.
2138
2139         xalloc: better 'inline'
2140         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2141         New macro.  Replace all uses of 'static inline' with it.
2142         (static_inline): Remove.
2143         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2144         Let 'extern inline' do the work automatically, instead of doing
2145         it by hand.
2146         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2147         Remove.  All uses removed.
2148         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2149
2150         gethrxtime: better 'inline'
2151         * lib/xtime.c: New file.
2152         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2153         * lib/xtime.h (XTIME_INCLUDE):
2154         New macros.  Replace all uses of 'static inline' with them.
2155         * lib/gethrxtime.c (gethrxtime): Define only if
2156         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2157         this source file is now always compiled, because of the extern inline.
2158         * lib/gethrxtime.h, lib/xtime.h:
2159         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2160         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2161         if gethrtime works, as they're not needed in that case.
2162         (gl_XTIME): Do not require AC_C_INLINE.
2163         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2164         compiled now.  Move the check into gl_GETHRXTIME.
2165         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2166         (Depends-on): Add extern-inline.
2167         (configure.ac): gethrxtime is always compiled now.
2168         (lib_SOURCES): Add gethrxtime.c.
2169
2170         wctype-h: better 'inline'
2171         * lib/wctype-h.c: New file.
2172         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2173         New macro.  Replace all uses of 'static inline' with it.
2174         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2175         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2176         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2177         (Depends-on): Add extern-inline.
2178
2179         unistd: better 'inline'
2180         * lib/unistd.c: New file.
2181         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2182         New macro.  Replace all uses of 'static inline' with it.
2183         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2184         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2185         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2186         (Depends-on): Add extern-inline.
2187
2188         sys_socket: better 'inline'
2189         * lib/sys_socket.c: New file.
2190         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2191         New macro.  Replace all uses of 'static inline' with it.
2192         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2193         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2194         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2195         (Depends-on): Add extern-inline.
2196
2197         stdio: better 'inline'
2198         * lib/stdio.c: New file.
2199         * lib/stdio.in.h (_GL_STDIO_INLINE):
2200         New macro.  Replace all uses of 'static inline' with it.
2201         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2202         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2203         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2204         (Depends-on): Add extern-inline.
2205
2206         sigaction: better 'inline'
2207         * lib/sig-handler.c: New file.
2208         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2209         New macro.  Replace all uses of 'static inline' with it.
2210         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2211         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2212         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2213         (Depends-on): Add extern-inline.
2214
2215         selinux-h: better 'inline'
2216         * lib/se-context.c, lib/se-selinux.c: New files.
2217         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2218         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2219         New macro.  Replace all uses of 'static inline' with it.
2220         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2221         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2222         New macro.  Replace all uses of 'static inline' with it.
2223         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2224         * modules/selinux-h (Files, lib_SOURCES):
2225         Add lib/se-context.c, lib/se-selinux.c.
2226         (Depends-on): Add extern-inline.
2227         (configure.ac): Do not require AC_C_INLINE.
2228
2229         pthread: better 'inline'
2230         * lib/pthread.c: New file.
2231         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2232         New macro.  Replace all uses of 'static inline' with it.
2233         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2234         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2235         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2236         * modules/pthread (Files): Add lib/pthread.c.
2237         (Depends-on): Add extern-inline.
2238
2239         math: better 'inline'
2240         * lib/math.c: New file.
2241         * lib/math.in.h (_GL_MATH_INLINE):
2242         New macro.  Replace all uses of 'static inline' with it.
2243         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2244         * m4/math_h.m4 (gl_MATH_H):
2245         Do not require AC_C_INLINE.
2246         * modules/math (Files, lib_SOURCES):
2247         Add lib/math.c.
2248         (Depends-on): Add extern-inline.
2249
2250         count-one-bits: better 'inline'
2251         * lib/count-one-bits.c: New file.
2252         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2253         New macro.  Replace all uses of 'static inline' with it.
2254         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2255         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2256         Do not require AC_C_INLINE.
2257         * modules/count-one-bits (Files, lib_SOURCES):
2258         Add lib/count-one-bits.c.
2259         (Depends-on): Add extern-inline.
2260
2261         count-leading-zeros: better 'inline'
2262         * lib/count-leading-zeros.c: New file.
2263         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2264         New macro.  Replace all uses of 'static inline' with it.
2265         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2266         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2267         Do not require AC_C_INLINE.
2268         * modules/count-leading-zeros (Files, lib_SOURCES):
2269         Add lib/count-leading-zeros.c.
2270         (Depends-on): Add extern-inline.
2271
2272         bitrotate: better 'inline'
2273         * lib/bitrotate.c: New file.
2274         * lib/bitrotate.h (BITROTATE_INLINE):
2275         New macros.
2276         Replace all uses of 'static inline' with them.
2277         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2278         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2279         (Depends-on): Add extern-inline.
2280         (configure.ac): Do not require AC_C_INLINE.
2281
2282 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2283
2284         maint.mk: avoid gratuitous failure
2285         Reported by Stefano Lattarini in
2286         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2287         * top/maint.mk (public-submodule-commit): Quote more safely.
2288
2289 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2290
2291         canonicalize, canonicalize-lgpl: support MS-Windows file names
2292         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2293         for test cases, which it'd be nice to add at some point.
2294         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2295         * lib/canonicalize.c (canonicalize_filename_mode):
2296         * lib/canonicalize-lgpl.c (__realpath):
2297         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2298         slash is at the beginning of the file name.  Use ISSLASH, instead
2299         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2300         the first character with '/'.  Test for
2301         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2302         with a drive letter.
2303         * lib/canonicalize.c (SLASHES): New macro.
2304         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2305
2306 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2307
2308         fts: introduce FTS_VERBATIM
2309         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2310         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2311         * lib/fts.c (fts_open): Honor it.
2312
2313 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2314
2315         getlogin-tests: allow errno == ENXIO
2316         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2317         with errno == ENXIO (No controlling tty).
2318         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2319         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2320         with errno == ENOENT.  This was reported to happen in various
2321         situations on GNU/Linux.
2322
2323 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2324
2325         getlogin-tests: allow errno == ENOENT
2326         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2327         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2328         when running a test in an Emacs shell buffer.
2329
2330 2012-11-08  Jim Meyering  <jim@meyering.net>
2331
2332         tests/nap.h: avoid warning about unused variable
2333         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2334
2335         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2336         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2337         white space before each of the special-cased file names, to avoid
2338         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2339         in http://bugs.gnu.org/12830.
2340
2341 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2344         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2345         fails with errno == EBADF when fd is opened with O_PATH.
2346         Reported by Jim Meyering in
2347         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2348         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2349         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2350
2351 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2352
2353         test-utimens: speed up by taking shorter naps
2354         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2355         New functions.
2356         (nap): Use them, to do a better job of guessing the delay.
2357         On Fedora 17 with ext4 atop md atop hard disks, this made
2358         test-utimens run 10x faster, because the test napped for
2359         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2360         <http://bugs.gnu.org/12820#11>.
2361
2362 2012-11-07  Jim Meyering  <jim@meyering.net>
2363
2364         mountlist.c: fix a compilation failure
2365         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2366         I introduced while transforming commit v0.0-7683-g613bcb6
2367
2368 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2369
2370         errno: port to LynxOS 178 2.2.2
2371         Problem reported by Joel Brobecker in
2372         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2373         * doc/posix-headers/errno.texi (errno.h): Document this.
2374         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2375         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2376         Supply a string for EILSEQ.
2377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2378
2379 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2382         Linux kernel 2.6.39 introduced O_PATH (see
2383         <http://lwn.net/Articles/433854/>) and this is a better fallback
2384         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2385         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2386         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2387         * lib/fcntl.in.h (O_ACCMODE):
2388         * tests/test-fcntl-h.c (main):
2389         Do not reject O_ACCMODE merely because it has more than the
2390         minimal number of bits, as POSIX allows extensions here.
2391
2392 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2393
2394         mountlist: do not classify a bind-mounted dir entry as "dummy"
2395         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2396         the "none"-testing clause.
2397         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2398         exception for bind-mounted directories.
2399
2400 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2401
2402         quote: provide a means to escape strings with nul characters
2403         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2404         (quote, quote_n): Rename formal arguments for consistency with
2405         quotearg.
2406
2407 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         test-raise: don't assume 199 is an invalid signal
2410         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2411
2412         sh-quote-tests: port to Solaris 9
2413         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2414         Problem reported by Dagobert Michelsen in
2415         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2416
2417 2012-10-28  Jim Meyering  <jim@meyering.net>
2418
2419         maint.mk: rename a new configurable variable
2420         * top/maint.mk (_gl_translatable_string_re): Rename from
2421         translation-markers: _gl_ prefix to insulate from user Makefile code,
2422         and the _re suffix to inform that it's a regular expression.
2423
2424 2012-10-26  Eric Blake  <eblake@redhat.com>
2425
2426         maint.mk: let packages tweak sc_po_check pattern
2427         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2428         finding files with other translation markers.
2429
2430 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2431
2432         euidaccess: speed up 'configure' on GNU hosts
2433         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2434         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2435         it's needed only in this case.  Use AC_CHECK_DECLS, not
2436         AC_CHECK_DECLS_ONCE.
2437         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2438         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2439
2440         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2441
2442 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2443
2444         fchmodat, fchownat, fstatat: port to non-inlining compilers
2445         Problem reported for FreeBSD 9 by Jim Meyering in
2446         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2447         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2448         New files, which define FCHMODAT_INLINE etc.
2449         * lib/fchmodat.c (FCHMODAT_INLINE):
2450         * lib/fchownat.c (FCHOWNAT_INLINE):
2451         * lib/fstatat.c (FSTATAT_INLINE):
2452         Remove, as chmodat.c etc. now do this.
2453         * modules/fchmodat (Files): Add lib/chmodat.c.
2454         * modules/fchownat (Files): Add lib/chownat.c.
2455         * modules/fstatat (Files): Add lib/statat.c.
2456
2457 2012-10-15  Jim Meyering  <jim@meyering.net>
2458
2459         fchmodat.c, fchownat.c: compile-impeding typos
2460         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2461         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2462         Introduced in commit v0.0-7636-gd202279.
2463
2464 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2465
2466         fcntl-h: support GNU flags like O_IGNORE_CTTY
2467         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2468         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2469         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2470         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2471         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2472         Define to 0 if not already defined.
2473         * tests/test-fcntl-h.c: Test these new flags.
2474
2475 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2476
2477         faccessat, etc.: support AT_FDCWD-only use
2478         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2479         this function only if its first argument is AT_FDCWD.
2480         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2481         values other than AT_FDCWD, so it doesn't want all the openat
2482         machinery with fchdir etc.
2483         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2484         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2485         * modules/unlinkat (Files):
2486         Remove lib/openat-priv.h, as at-internal supplies this file.
2487         Removing this file here allows us to support programs like Emacs
2488         that avoid at-internal.
2489
2490         faccessat: speed up 'configure' on mainstream hosts
2491         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2492         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2493         since it's only on unusual platforms that we need to check for
2494         'access', and it's better not to slow 'configure' down on all
2495         platforms.
2496
2497         faccessat: port to Solaris 10
2498         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2499         Needed on Solaris 10, which doesn't have AT_EACCESS,
2500         so we need the Gnulib fcntl.h, which defines it.
2501
2502 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2503         canonicalize: fix C89 compilation
2504         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2505         declarations so C89 is supported.  Also remove the comment
2506         referencing memorty allocation as the suggested feature could
2507         not be implemented as suggested.
2508         Reported by Michael Goffioul.
2509
2510 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2511
2512         group-member: omit unnecessary dependencies
2513         This is for Emacs, which has its own allocator and where we
2514         don't want to use xalloc.
2515         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2516         since we no longer use xmalloc.  Do not include stdbool.h, since
2517         the changes below happen to remove the only use of bool.
2518         (GROUPBUF_SIZE): New constant.
2519         (struct group_info): Remove n_groups member.  Add groupbuf member.
2520         This lets us get the groups without using malloc, usually.
2521         (free_group_info, get_group_info): Adjust to this.
2522         (get_group_info): Return the number of groups found, or -1 on error.
2523         Use plain malloc not xmalloc, and treat its failure as if there
2524         are no groups, as the user already loses in case of error.
2525         (group_member): Simplify, based on changes to get_group_info.
2526         * modules/group-member (Depends-on): Remove dependencies on
2527         xalloc and stdbool.  Add dependency on xalloc-oversized.
2528
2529 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2530
2531         gethrxtime: port to C++
2532         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2533
2534 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2535
2536         ptsname: fix macro-name typo
2537         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2538
2539 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2540
2541         inttostr: Relax license.
2542         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2543
2544 2012-10-03  Eric Blake  <eblake@redhat.com>
2545
2546         ptsname_r: support ptys returned by FreeBSD posix_openpt
2547         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2548         lives in /dev/pts/.
2549
2550 2012-10-02  Eric Blake  <eblake@redhat.com>
2551
2552         pselect: reject invalid file descriptors
2553         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2554         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2555         * modules/pselect (Depends-on): Add dup2.
2556         * doc/posix-functions/pselect.texi (pselect): Document this.
2557
2558         select: reject invalid file descriptors
2559         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2560         * lib/select.c (rpl_select) [!win32]: Work around it.
2561         * modules/select (Depends-on): Add dup2.
2562         * doc/posix-functions/select.texi (select): Document this.
2563
2564         select: enhance test
2565         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2566         New functions.
2567         (test_function): Enhance test.
2568         (do_select_bad_fd): Avoid any stale errno values.
2569
2570         ptsname: reject invalid file descriptors
2571         http://www.austingroupbugs.net/view.php?id=503
2572         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2574         * modules/stdlib (Makefile.am): Replace witness.
2575         * lib/stdlib.in.h (ptsname): Allow for replacement.
2576         * modules/ptsname (configure.ac): Trigger replacement.
2577         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2578
2579 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2580
2581         hash-pjw-bare: new module
2582         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2583         * lib/hash-pjw-bare.h: Likewise.
2584         * modules/hash-pjw-bare: New file.
2585         * MODULES.html.sh (Misc): Add it.
2586
2587 2012-10-02  Eric Blake  <eblake@redhat.com>
2588
2589         manywarnings: cater to more gcc infelicities
2590         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2591         -Wuninitialized without -O.
2592
2593 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2594
2595         select, poll tests: Make setsockopt invocation effective.
2596         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2597         the bind() call.
2598         * tests/test-select.h (open_server_socket): Likewise.
2599
2600 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         sockets, sys_stat: restore AC_C_INLINE
2603         This undoes the 2012-09-22 patch.
2604         * m4/sockets.m4 (gl_SOCKETS):
2605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2606         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2607         and does not support plain 'inline'.  Reported by Bruno Haible in
2608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2609
2610 2012-09-30  Bruno Haible  <bruno@clisp.org>
2611
2612         localeconv tests: Avoid test failure on OpenIndiana.
2613         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2614         skip the 'grouping' and 'mon_grouping' tests.
2615         Reported by Jim Meyering.
2616
2617 2012-09-30  Bruno Haible  <bruno@clisp.org>
2618
2619         havelib: Follow libtool developments.
2620         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2621         Suggested by Simon Josefsson.
2622
2623 2012-09-29  Jim Meyering  <meyering@redhat.com>
2624
2625         fstatat.c: fix a compile-impeding typo
2626         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2627         Introduced in commit v0.0-7636-gd202279.
2628         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2629
2630 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2631
2632         extern-inline: provide a -Wundef safe config.h
2633         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2634         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2635         to produce a -Wundef warning free config.h.
2636
2637 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         hash-pjw: relax license to LGPLv2+
2640         * modules/hash-pjw (License): Relax, with consent of author.
2641
2642 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2643
2644         maint.mk: fix strict vs. lazy variable issues with RELEASE
2645         * top/maint.mk (_equal): New function.
2646         (member_check): Strip the result to avoid spurious spaces.
2647         (url_dir_list): Do not use ifeq, which is strict, as it will
2648         require RELEASE_TYPE to be defined.
2649         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2650         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2651         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2652         (announcement_Cc_beta,announcement_mail_headers_beta)
2653         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2654         (release): Do not depend on $(release-type), as it forces its
2655         evaluation.  Bounce to it.
2656
2657 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2658
2659         maint.mk: formatting changes
2660         * top/maint.mk: Indent bodies of if's.
2661
2662 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2663
2664         maint.mk: factor the validation of RELEASE_TYPE
2665         With help from Jim Meyering.
2666         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2667         * top/maint.mk (_empty, _sp): Move their definition earlier.
2668         (member-check, release-type): New.
2669         Use the latter instead of $(RELEASE_TYPE).
2670         Remove now useless local checks.
2671
2672 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2673
2674         maint.mk: provide "make upload" to ease uploading
2675         See
2676         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2677         Do not depend simply on the current $(VERSION), as there may have been
2678         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2679         as "make release-commit" already does.
2680
2681         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2682         "make TYPE".
2683
2684         * top/maint.mk (upload_command, upload, release): New.
2685         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2686         (VERSION): first word of $(RELEASE) is always right.
2687         (emit_upload_commands): Adjust.
2688         * top/README-release: Update.
2689
2690 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2691
2692         maint.mk: silent rules
2693         With help from Stefano Lattarini.
2694         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2695         (announcement): Use $(AM_V_at).
2696
2697 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2698
2699         localename: port gl_locale_name_thread_unsafe to FreeBSD
2700         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2701         and use the simpler FreeBSD implementation on Mac OS X as well.
2702         Original idea suggested by Ed Maste in
2703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2704
2705 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2706
2707         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2708         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2709         * lib/mbuiter.c, lib/xsize.c: New files.
2710         * lib/binary-io.h (BINARY_IO_INLINE):
2711         * lib/eealloc.h (EEALLOC_INLINE):
2712         * lib/mbfile.h (MBFILE_INLINE):
2713         * lib/mbiter.h (MBITER_INLINE):
2714         * lib/mbuiter.h (MBUITER_INLINE):
2715         * lib/xsize.h (XSIZE_INLINE):
2716         New macros.
2717         Replace all uses of 'static inline' with them.
2718         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2719         * m4/eealloc.m4 (gl_EEALLOC):
2720         * m4/mbfile.m4 (gl_MBFILE):
2721         * m4/mbiter.m4 (gl_MBITER):
2722         * m4/xsize.m4 (gl_XSIZE):
2723         Do not require AC_C_INLINE.
2724         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2725         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2726         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2727         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2728         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2729         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2730         * modules/binary-io, modules/eealloc, modules/mbfile:
2731         * modules/mbiter, modules/mbuiter:
2732         (Depends-on): Add extern-inline.
2733
2734         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2735         * lib/pipe-filter-aux.c: New file.
2736         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2737         Replace all uses of 'static inline' with it.
2738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2739         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2740         (filter_retcode): No real need for inline here.
2741         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2742         (Files): Add lib/pipe-filter-aux.c.
2743         (Depends-on): Add extern-inline.
2744         (configure.ac): Do not require AC_C_INLINE.
2745         (lib_SOURCES): Add pipe-filter-aux.c.
2746
2747         fdutimensat: omit unnecessary AC_C_INLINE
2748         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2749
2750         fchmodat, fchownat, fstatat: use extern-inline
2751         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2752         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2753         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2754         New macros.
2755         * lib/openat.h:
2756         Replace all uses of 'static inline' with them.
2757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2758         * modules/fchmodat, modules/fchownat, modules/fstatat:
2759         * modules/openat-h:
2760         (Depends-on):
2761         Add extern-inline.
2762         (configure.ac): Remove AC_C_INLINE.
2763
2764         acl, mbchar, priv-set: use extern-inline
2765         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2766         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2767         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2768         New macros.
2769         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2770         Replace all uses of 'static inline' with it.
2771         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2772         * m4/acl.m4 (gl_FUNC_ACL):
2773         * m4/mbchar.m4 (gl_MBCHAR):
2774         * m4/priv-set.m4 (gl_PRIV_SET):
2775         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2776         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2777         Add extern-inline.
2778
2779         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2780         * m4/sockets.m4 (gl_SOCKETS):
2781         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2782         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2783         environments where it's already guaranteed to work, so we needn't
2784         check for it at 'configure'-time.
2785
2786         tls-tests: omit unnecessary 'inline'
2787         * tests/test-tls.c (perhaps_yield): No longer inline.
2788         Simplicity and portability trump efficiency in test cases.
2789
2790         utimens-tests: avoid unnecessary 'inline'
2791         * modules/fdutimensat-tests (configure.ac):
2792         * modules/futimens-tests (configure.ac):
2793         * modules/utimens-tests (configure.ac):
2794         * modules/utimensat-tests (configure.ac):
2795         Remove AC_C_INLINE.
2796         * tests/test-utimens-common.h (ctime_compare):
2797         No longer inline.  Simplicity and portability trump efficiency here.
2798
2799         misc: don't limit commentary to inline functions
2800         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2801         * lib/xalloc-oversized.h, lib/xsize.h:
2802         Contrast macros to functions in general, not just to inline functions,
2803         when the commentary does not apply only to inline functions.
2804
2805 2012-09-20  Jim Meyering  <meyering@redhat.com>
2806
2807         non-recursive-gnulib-prefix-hack: new module
2808         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2809         the file that originated in Bison.
2810         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2811         largely copied from a snippet that resided in bison's configure.ac.
2812         * modules/non-recursive-gnulib-prefix-hack: New file.
2813         * MODULES.html.sh (Support for maintaining and releasing projects):
2814         Add it.
2815
2816 2012-09-18  Jim Meyering  <meyering@redhat.com>
2817
2818         maint.mk: generalize _gl_tight_scope for non-recursive make
2819         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2820         that *.h would describe additional .h files in the directory
2821         specified by $(_gl_TS_dir).  I.e., add this...
2822         (_gl_TS_other_headers): New variable.
2823
2824         maint.mk: exempt trailing blanks found in "binary" files
2825         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2826         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2827         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2828
2829 2012-09-17  Jim Meyering  <meyering@redhat.com>
2830
2831         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2832         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2833         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2834         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2835
2836 2012-09-17  Jim Meyering  <meyering@redhat.com>
2837
2838         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2839         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2840         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2841         It is not in the same category as "exit (0)" or "exit (1)", and
2842         besides, I know of no symbolic name for that 77.  Reported by
2843         Richard W.M. Jones in
2844         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2845
2846 2012-09-17  Jim Meyering  <meyering@redhat.com>
2847
2848         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2849         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2850         all uses of #define, not just those that start in column 1.
2851         Richard W.M. Jones reported a false positive in
2852         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2853
2854 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2855
2856         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2857         * lib/localcharset.c (locale_charset) [DARWIN7]:
2858         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2859         as these two values are incompatible.  Problem reported by Max Horn.
2860         For more discussion, please see
2861         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2862
2863         doc: document sticky-EOF issue
2864         * doc/posix-functions/fgetc.texi (fgetc):
2865         * doc/posix-functions/fgets.texi (fgets):
2866         * doc/posix-functions/fread.texi (fread):
2867         * doc/posix-functions/fscanf.texi (fscanf):
2868         * doc/posix-functions/getc.texi (getc):
2869         * doc/posix-functions/getchar.texi (getchar):
2870         * doc/posix-functions/scanf.texi (scanf):
2871         Mention that glibc and default Solaris do not conform to
2872         C99 and POSIX-2001 or later, with respect to how getchar
2873         etc. behave when feof reports nonzero.
2874
2875 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2876
2877         poll: fix poll(0, NULL, msec)
2878         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2879         but nfd is 0.  In that case poll should behave like select.
2880
2881 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2882             Paolo Bonzini <bonzini@gnu.org>
2883
2884         poll: fix for systems that can't recv() on a non-socket
2885         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2886         is readable.  In this case POLLHUP will not be supported.
2887         * doc/posix-functions/poll.texi: Document this.
2888
2889 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2890
2891         poll/select: document portability problems not fixed by Gnulib.
2892         * doc/posix-functions/poll.texi: poll does not work well on
2893         pipes under Windows.  It has the same limitations as select on
2894         BeOS.
2895         * doc/posix-functions/select.texi: select does not work well
2896         on pipes under Windows.
2897
2898 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2899
2900         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2901         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2902         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2903         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2904
2905 2012-09-06  Eric Blake  <eblake@redhat.com>
2906
2907         net_if: give more details about the bug being fixed
2908         * doc/posix-headers/net_if.texi: Add clarification.
2909
2910 2012-09-05  Eric Blake  <eblake@redhat.com>
2911
2912         net_if: new module
2913         * modules/net_if: New module, borrowing ideas from netinet_in.
2914         * m4/net_if_h.m4: New file.
2915         * lib/net_if.in.h: Likewise.
2916         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2917         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2918         * tests/test-net_if.c: Make function checks conditional.
2919         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2920
2921 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2922
2923         readutmp: fix non-portable UT_PID use
2924         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2925         Use `UT_PID (u) > 0' as absolute condition.
2926
2927 2012-09-04  Jim Meyering  <meyering@redhat.com>
2928
2929         fts: reduce two or more trailing spaces to just one, usually
2930         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2931         or more slashes, trim all but the final one.  But if a name consists
2932         solely of two slashes, don't modify it.  If it consists solely of
2933         three or more slashes, strip all but one.
2934
2935         This is part of the solution to a minor problem with rm:
2936         it would print a bogus ELOOP diagnostic when failing to remove
2937         the slash-decorated name of a symlink-to-directory:
2938
2939             $ mkdir d && ln -s d s && env rm -r s/
2940             rm: cannot remove 's': Too many levels of symbolic links
2941
2942         With the change below and a trivial don't-trim-trailing-slashes
2943         adjustment to remove.c, it does this:
2944
2945             $ env rm -r s/
2946             rm: cannot remove 's/': Not a directory
2947
2948         Improved by: Eric Blake
2949
2950         fts: when there is no risk of overlap, use memcpy, not memmove
2951         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2952
2953 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2954
2955         stdbool: be more compatible with mixed C/C++ compiles
2956         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2957         Define to bool, true, false, respectively, as GCC's builtin
2958         stdbool.h does.  Problem reported by Michael Goffioul in
2959         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2960
2961 2012-08-28  Jim Meyering  <meyering@redhat.com>
2962
2963         revert last change: it was not needed
2964         * tests/test-vc-list-files-git.sh: There's already a test for
2965         a working git, just below.
2966
2967 2012-08-28  Jim Meyering  <meyering@redhat.com>
2968
2969         tests: test-vc-list-files-git.sh: skip if git is not available
2970         * tests/test-vc-list-files-git.sh: Skip this test when git is
2971         not available.
2972
2973 2012-08-26  Bruno Haible  <bruno@clisp.org>
2974
2975         gnulib-tool: Remove no-op option --no-changelog.
2976         * gnulib-tool (func_usage): Don't mention --no-changelog.
2977         (do_changelog): Remove variable.
2978         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2979
2980 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         doc: remove fdl-1.2.texi
2983         It is no longer used or maintained, and its use of @acronym
2984         is problematic.  See the thread containing
2985         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2986         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2987         * doc/old-licenses/fdl-1.2.texi: Remove.
2988
2989         execinfo: port to FreeBSD
2990         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2991         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2993         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2994
2995 2012-08-23  Jim Meyering  <meyering@redhat.com>
2996
2997         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2998         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2999         to placate gcc's -Wold-style-declaration.
3000
3001 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3002
3003         doc: do not use @acronym
3004         * doc/inet_ntoa.texi (inet_ntoa):
3005         * doc/parse-datetime.texi (Seconds since the Epoch)
3006         (Specifying time zone rules):
3007         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3008         Don't use @acronym.  Problem reported by John Darlington in
3009         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3010
3011 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3012
3013         stdnoreturn: port to newer GCCs
3014         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3015         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3016         Problem reported by Jim Meyering in
3017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3018         Also, rename the 'test' function to a void a clash with the
3019         already-supplied 'main' function; this fixes a bug that incorrectly
3020         rejected GCC 4.7.1's <stdnoreturn.h>.
3021         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3022         Document GCC problem.
3023
3024 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3025
3026         pipe-filter: fix comment typo
3027         * lib/pipe-filter.h: Mention correct function.
3028
3029 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         execinfo: new module
3032         This is for Emacs.  Currently, it provides a no-effect stub
3033         on all platforms where it does not already work.
3034         It already works on glibc-based systems, and on Solaris 11.
3035         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3036         New files.
3037         * doc/glibc-headers/execinfo.texi (execinfo.h):
3038         * MODULES.html.sh (Misc): Document it.
3039
3040 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3041
3042         extern-inline: support old GCC 'inline'
3043         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3044         if available.  This applies to GCC versions 2.7 through 4.2, or
3045         when newer GCC is using -fgnu89-inline.  The goal is to address
3046         some of the performance issues mentioned by Bruno Haible in
3047         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3048
3049 2012-08-20  Eric Blake  <eblake@redhat.com>
3050
3051         maint.mk: avoid redundant file name in message
3052         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3053         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3054         (sc_makefile_path_separator_check): Remove bogus $(ME).
3055
3056 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3057
3058         timer-time: fix link order when static linking on glibc
3059         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3060         _after_ -lrt so that it's significant.
3061
3062 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         timespec: omit unnecessary AC_C_INLINE
3065         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3066
3067         stat-time: omit unnecessary AC_C_INLINE
3068         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3069         Do not require AC_C_INLINE.
3070
3071         ignore-value: omit unnecessary AC_C_INLINE
3072         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3073
3074         sys_select: avoid 'static inline'
3075         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3076
3077         mktime: avoid 'static inline'
3078         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3079         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3080
3081 2012-08-19  Bruno Haible  <bruno@clisp.org>
3082
3083         gnulib-tool: Improve coding style.
3084         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3085         func_emit_lib_Makefile_am.
3086         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3087
3088 2012-08-19  Bruno Haible  <bruno@clisp.org>
3089
3090         gnulib-tool: Fix indentation.
3091         * gnulib-tool (func_import): Fix indentation.
3092
3093 2012-08-19  Bruno Haible  <bruno@clisp.org>
3094
3095         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3096         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3097         on the list of removed files.
3098
3099 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3100
3101         test-parse-datetime: avoid glibc leap-second glitch
3102         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3103         with the 2012 rules.  Problem reported by Bruce Dubbs in
3104         <http://bugs.gnu.org/12206>.
3105
3106 2012-08-14  Bruno Haible  <bruno@clisp.org>
3107
3108         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3109         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3110         from argument.
3111         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3112
3113 2012-08-14  Eric Blake  <eblake@redhat.com>
3114
3115         ldexp: relax license
3116         * modules/ldexp (License): Trivial relax, since the module only
3117         provides a permissively licensed m4 file.
3118
3119 2012-08-13  Bruno Haible  <bruno@clisp.org>
3120
3121         gnulib-tool: Fix persistence of --witness-c-macro option.
3122         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3123         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3124
3125 2012-08-11  Eric Blake  <eblake@redhat.com>
3126
3127         count-leading-zeros: use a lookup table on non-gcc compilers
3128         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3129         alternate implementation, suggested by Jim Meyering.
3130
3131 2012-08-10  Eric Blake  <eblake@redhat.com>
3132
3133         count-leading-zeros: new module
3134         * modules/count-leading-zeros: New module.
3135         * m4/count-leading-zeros.m4: New file.
3136         * lib/count-leading-zeros.h: Likewise.
3137         * modules/count-leading-zeros-tests: New test.
3138         * tests/test-count-leading-zeros.c: New file.
3139         * MODULES.html.sh (Integer arithmetic functions): Document it.
3140
3141 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3142             Jim Meyering  <meyering@redhat.com>
3143
3144         maintainer-makefile: Fix syntax error with dash.
3145         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3146         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3147
3148 2012-08-05  Jim Meyering  <meyering@redhat.com>
3149
3150         extern-inline: also ignore -Wmissing-declarations
3151         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3152         required with gcc-4.8.0-to-be.
3153
3154         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3155         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3156         for /error ?([^,]*)/.  This avoids false-positives for strings like
3157         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3158
3159 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3160
3161         gnumakefile: better interaction with Automake-NG
3162         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3163         Automake-NG always contain a definition of VPATH, even in non-VPATH
3164         builds (its value being simply '.' in that case).  So, in the
3165         'clean-GNUmakefile' rule, to determine whether running under a
3166         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3167         '$(VPATH)' expands to the empty string.
3168
3169 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3170
3171         base64: Use extern C scope in header file, for C++.
3172         * lib/base64.h: Add C++ namespace protection.
3173
3174 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3175
3176         stat-time, timespec, u64: support naive out-of-dir builds
3177         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3178         Use '#include "foo.h"', not '#include <foo.h>', when including
3179         one's own interface.  This works better when configuring with
3180         out-of-directory builds, since packages need not add an
3181         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3182
3183 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3184
3185         utimens: use extern-inline
3186         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3187         * lib/utimens.h: Add copyright notice, since this is now large enough
3188         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3189         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3190         * modules/utimens (Depends-on): Add extern-inline.
3191
3192         u64: use extern-inline
3193         * lib/u64.c: New file.
3194         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3195         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3196         * modules/u64 (Files): Add lib/u64.c.
3197         (Depends-on): Add extern-inline.
3198         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3199         does that now.
3200         (lib_SOURCES): Add u64.c.
3201
3202         timespec: use extern-inline
3203         * lib/timespec.c: New file.
3204         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3205         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3206         * modules/timespec (Files): Add lib/timespec.c.
3207         (Depends-on): Add extern-inline.
3208         (lib_SOURCES): Add timespec.c.
3209
3210         stat-time: use extern-inline
3211         * lib/stat-time.c: New file.
3212         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3213         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3214         * modules/stat-time (Files): Add lib/stat-time.c.
3215         (Depends-on): Add extern-inline.
3216         (lib_SOURCES): Add stat-time.c.
3217
3218         extern-inline: new module
3219         * modules/extern-inline, m4/extern-inline.m4: New files.
3220         This is for better support of 'extern inline' a la ISO C99,
3221         with a portable alternative on compilers that do not support
3222         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3223         of the Emacs executable, when compiled with debugging disabled,
3224         which is a typical way that Emacs is built while developing.
3225
3226 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3227
3228         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3229         * build-aux/do-release-commit-and-tag: Move variable definitions
3230         together.
3231         ($branch): Instead of defaulting to "master", default to the current
3232         branch (as gnu-web-doc-update does).
3233         (help): Display the current values of the option arguments.
3234         * top/maint.mk (release-commit): New.
3235         * top/README-release: Simplify the corresponding step.
3236
3237 2012-07-30  Eric Blake  <eblake@redhat.com>
3238
3239         passfd: fix comment on recvfd
3240         * lib/passfd.c (recvfd): Fix comment.
3241         Reported by Jann Horn <jannhorn@googlemail.com>.
3242
3243 2012-07-30  Jim Meyering  <meyering@redhat.com>
3244
3245         maint.mk: avoid a sub-shell
3246         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3247
3248 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3249
3250         maint.mk: use silent-rules support from Automake
3251         * top/maint.mk (news-check, vc-diff-check, announcement)
3252         (no-submodule-changes, alpha beta stable, release-prep)
3253         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3254
3255 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3256
3257         maint.mk: provide a web-manual-update target
3258         * top/maint.mk: here.
3259         * top/README-release: Use it to simplify the web manual update step.
3260
3261 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3262
3263         README-release: shorten the circuit to post a news
3264         * top/README-release: Point directly to the news submission form.
3265
3266 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3267
3268         gnu-web-doc-update: fix --help
3269         * build-aux/gnu-web-doc-update: The information "top level" was written
3270         twice.
3271
3272 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3273
3274         maint.mk: absolute VPATH issue
3275         * top/maint.mk (release-prep): Help Git find .git/.
3276         From Jim Meyering.
3277
3278 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3279
3280         gitlog-to-changelog: fix previous change
3281         * build-aux/gitlog-to-changelog: Fix condition.
3282         Add missing ";".
3283
3284 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3285
3286         gitlog-to-changelog: don't expect .git to be in $srcdir
3287         Reported by Bruno Haible.
3288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3289         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3290         Use it.
3291
3292 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3293
3294         maint.mk: absolute VPATH build fix
3295         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3296         $(srcdir) is not a parent of $(builddir).
3297
3298 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3299
3300         clean-temp: Fix memory leak.
3301         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3302         'files' members of tmpdir.
3303
3304 2012-07-27  Jim Meyering  <meyering@redhat.com>
3305
3306         maint.mk: new rule: refresh-gnulib-patches
3307         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3308         Use this rule to refresh them.
3309         * top/maint.mk (refresh-gnulib-patches): New rule.
3310
3311 2012-07-24  Bruno Haible  <bruno@clisp.org>
3312
3313         gnulib-tool: Fix handling of inctests variable.
3314         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3315         Reported by Nick Bowler <nbowler@elliptictech.com>.
3316
3317 2012-07-22  Bruno Haible  <bruno@clisp.org>
3318
3319         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3320         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3321         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3322         Remove exemption for getpass.h.
3323         Suggested by Eric Blake.
3324
3325 2012-07-20  Eric Blake  <eblake@redhat.com>
3326
3327         verify: document conflict with -Wnested-externs
3328         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3329
3330         maint.mk: forbid exit(-1)
3331         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3332
3333 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3334
3335         fsusage: port back to Solaris
3336         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3337         error (fsd not declared) on Solaris 10.  Reported privately by
3338         Andrew Borodin.
3339
3340 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3341
3342         gnu-web-doc-update: fix error messages
3343         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3344
3345         gnu-web-doc-update: check the requirements.
3346         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3347         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3348         * build-aux/bootstrap (find_tool): Comment change.
3349
3350 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3351
3352         maint.mk: minor simplication.
3353         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3354         for default values.
3355
3356 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3357
3358         gitlog-to-changelog: VPATH build issues
3359         If builddir is not a subdirectory of srcdir, running git from it will
3360         fail.
3361         * build-aux/gitlog-to-changelog (--srcdir): New option.
3362
3363 2012-07-15  Bruno Haible  <bruno@clisp.org>
3364
3365         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3366         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3367         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3368         Remove exemption for fpending.h.
3369         Suggested by Eric Blake.
3370
3371 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3372
3373         pthread_sigmask: fix bug on FreeBSD 9
3374         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3375         Include string.h.
3376         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3377         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3378         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3379         but pthread_sigmask (1729, NULL, NULL) returns zero.
3380         See <http://bugs.gnu.org/11884>.
3381         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3382         by inspecting whether the main call changed the old mask.
3383
3384 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3385
3386         README-release: make it more legible
3387         * top/README-release: Improve typography slightly.
3388
3389 2012-07-15  Jim Meyering  <meyering@redhat.com>
3390
3391         maint: require that each sc_... command start with "@"
3392         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3393         "make sc_maint" helps us avoid this nit.
3394
3395 2012-07-15  Jim Meyering  <meyering@redhat.com>
3396
3397         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3398         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3399
3400 2012-07-13  Eric Blake  <eblake@redhat.com>
3401
3402         maint.mk: new syntax check for HAVE_DECL checks
3403         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3404         * cfg.mk
3405         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3406         Exempt some false positives.
3407         Based on a report by Karel Zak.
3408
3409         argp: make HAVE_DECL usage consistent
3410         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3411         macros, not whether they are defined.
3412         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3413         convention with other declaration checks.
3414         Reported by Karel Zak, with suggestions from Paul Eggert.
3415
3416         stat-time: relax license to LGPLv2+
3417         * modules/stat-time (License): Relax, with consent of all authors.
3418
3419         strndup: fix m4 usage error
3420         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3421         defined, to either 0 or 1.
3422         Reported by Karel Zak.
3423
3424 2012-07-11  Jim Meyering  <meyering@redhat.com>
3425
3426         maint: enable the sc_avoid_if_before_free syntax-check rule
3427         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3428         (if_before_free_offenders_): Define.
3429         (if_before_free_basename_re_): Define.
3430         Exempt current files with useless if-before-free.
3431
3432 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3433
3434         gettext: do not assume '#define ... defined ...' behavior
3435         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3436         Do not use '#define FOO ... defined BAR ...', as the C standard says
3437         it's not portable to expect that this works after macro expansion.
3438         Problem reported for gzip by Steven M. Schweda in
3439         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3440
3441 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3442
3443         getloadavg: clean out old Emacs and Autoconf cruft
3444         See Glenn Morris in <http://bugs.gnu.org/11905>.
3445         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3446         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3447         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3448         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3449
3450 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3451
3452         bootstrap: let warn be like tests/init.sh's warn_
3453         Reported by Jim Meyering.
3454         * build-aux/bootstrap (warn): Remove, replaced by...
3455         (warnf_, warn_): these.
3456         Adjust callers.
3457         Shorten messages that no longer fit in 80 columns.
3458
3459 2012-07-09  Bruno Haible  <bruno@clisp.org>
3460
3461         getopt: Simplify after Emacs changed.
3462         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3463         (gl_GETOPT_IFELSE): Remove macro.
3464
3465 2012-07-09  Jim Meyering  <meyering@redhat.com>
3466
3467         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3468         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3469
3470         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3471         Bugs in both of those conspired to make the
3472         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3473         _sc_search_regexp's handling of non-empty $in_files would filter
3474         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3475         choice of in_files value meant there would be no match in most
3476         projects, due to the presence of two or more Makefile.in files.
3477         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3478         Fix a bug in how a non-empty $$in_files was processed:
3479         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3480         in spite of the name, it's a regexp, not a list of file names.
3481
3482 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3483
3484         getloadavg, getopt: fix commentary re configure.in
3485         Autoconf is deprecating the name 'configure.in', so change it to
3486         to the new name 'configure.ac' in a couple of places.
3487         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3488         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3489         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3490         Emacs has renamed it to configure.ac, and it no longer refers
3491         to these macros anyway.
3492
3493         timespec: mark functions with const attributes
3494         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3495         Mark with _GL_ATTRIBUTE_CONST.
3496
3497 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3498
3499         canonicalize[-lgpl]: handle "guessing" values when cross-building
3500         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3501         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3502         matches "*yes" instead of just "yes".  Regression introduced in commit
3503         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3504
3505 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3506             Bruno Haible  <bruno@clisp.org>
3507
3508         canonicalize: make the right guess when cross-compiling to GNU
3509         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3510         determine whether cross-compiling to glibc systems, so as to
3511         include GNU/Hurd.
3512
3513 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3514
3515         timespec-sub: avoid duplicate include
3516         * lib/timespec-sub.c: Do not include <config.h> twice.
3517         Reported by Juanma Barranquero.
3518
3519 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3520
3521         bootstrap: use a more consistent error reporting scheme
3522         * build-aux/bootstrap (warn, die): New.
3523         Use them.
3524
3525 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         sys_time: allow too-wide tv_sec
3528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3529         timeval even if tv_sec is wider than time_t.  This allows
3530         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3531         as without this patch gnulib replaces struct timeval
3532         and OpenBSD futimes therefore has a type mismatch.
3533         * doc/posix-headers/sys_time.texi: Mention this.
3534
3535         pthread: check for both pthread_create and pthread_join
3536         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3537         alter the check so that it tests for both pthread_create and
3538         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3539         Suggested by Bruno Haible and Richard Yao in
3540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3541
3542         parse-datetime: doc tuneup
3543         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3544         spacing issues.
3545
3546 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3547
3548         do-release-commit-and-tag: fix the previous commit
3549         * build-aux/do-release-commit-and-tag: Actually the test was right,
3550         but the comment and the error message were misleading.
3551         Fix comment, and improve error message.
3552         Perform check first, so that NEWS is not modified uselessly.
3553
3554         do-release-commit-and-tag: fix typo
3555         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3556         _not_ start with a stub.
3557
3558 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3559
3560         pthread: check for pthread_create, not pthread_join
3561         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3562         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3563         pthread_join in libc.  I hope this removes the need for all the
3564         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3566
3567 2012-07-04  Jim Meyering  <meyering@redhat.com>
3568
3569         parse-datetime: fix failure to diagnose invalid input
3570         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3571         rather than diagnosing the invalid input.  Now it reports this:
3572         date: invalid date '\260'
3573         * lib/parse-datetime.y (to_uchar): Define.
3574         (yylex): Don't sign-extend "other" bytes.
3575         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3576         Thanks to Bruno Haible for the patch to this file.
3577         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3578         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3579
3580 2012-07-03  Jim Meyering  <meyering@redhat.com>
3581
3582         bootstrap: do not require now-removed build-aux/missing
3583         Now that build-aux/missing is, er, missing, bootstrap would
3584         silently fail.
3585         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3586         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3587         no longer part of gnulib.
3588         Diagnose the failure.
3589
3590 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3591
3592         alloca: add support for HP NonStop TNS/E native
3593         * lib/alloca.in.h (alloca): Support the new host.
3594         From a suggestion by Joachim Schmitz in
3595         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3596
3597 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3598
3599         fsusage: remove code not needed on non GNU/Linux systems.
3600
3601         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3602         Don't include headers no longer needed in this case.
3603         * lib/fsusage.c [STAT_STATVFS &&
3604         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3605         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3606
3607 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3608
3609         fsusage: include files needed for glibc 2.6 fallback
3610         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3611         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3612         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3613         Problem reported by Ludovic Courtès in
3614         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3615
3616         fsusage: avoid needless check on GNU/Linux
3617         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3618         on GNU/Linux systems, since it can't possibly work.
3619
3620 2012-07-01  Bruno Haible  <bruno@clisp.org>
3621
3622         log: Fix an autoconf >= 2.64 warning.
3623         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3624         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3625
3626 2012-06-28  Bruno Haible  <bruno@clisp.org>
3627
3628         log10f: Fix possible configuration problem.
3629         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3630         $LOGF_LIBM.
3631         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3632
3633 2012-06-28  Bruno Haible  <bruno@clisp.org>
3634
3635         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3636         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3637         not gl_cv_func_unlink_works.
3638         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3639
3640 2012-06-27  Eric Blake  <eblake@redhat.com>
3641
3642         config: drop scripts that automake says are not independent
3643         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3644         * build-aux/elisp-comp: Delete.
3645         * build-aux/missing: Likewise.
3646         * build-aux/ylwrap: Likewise.
3647         * modules/elisp-comp: Likewise.
3648         * MODULES.html.sh: Drop mention of elisp-comp.
3649         * NEWS: Mention this.
3650
3651 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3652
3653         root-uid: new module
3654         This is for portability to Tandem's NonStop Kernel.
3655         * lib/root-uid.h, modules/root-uid: New files.
3656         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3657         * lib/write-any-file.c, tests/test-sethostname2.c:
3658         Include "root-uid.h".
3659         * lib/euidaccess.c (euidaccess):
3660         * lib/pt_chown.c (main):
3661         * lib/unlinkdir.c (cannot_unlink_dir):
3662         * lib/write-any-file.c (can_write_any_file):
3663         * m4/mknod.m4 (gl_FUNC_MKNOD):
3664         * tests/test-sethostname2.c (geteuid, main):
3665         Don't assume ROOT_UID == 0.
3666         * modules/euidaccess (Depends-on):
3667         * modules/pt_chown (Depends-on):
3668         * modules/sethostname-tests (Depends-on):
3669         * modules/unlinkdir (Depends-on):
3670         * modules/write-any-file (Depends-on):
3671         Add root-uid.
3672
3673         regex: use locale-independent comparison for codeset name
3674         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3675         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3676         for codeset name.
3677         * lib/regex_internal.h: Do not include <strings.h>, since we
3678         no longer use strcasecmp.
3679         * modules/regex (Depends-on): Remove strcase.
3680
3681 2012-06-23  Bruno Haible  <bruno@clisp.org>
3682
3683         getopt-posix: No longer guarantee that option processing is resettable.
3684         * doc/posix-functions/getopt.texi: Drop description of problem with
3685         internal state. Fix info about mingw and msvc9.
3686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3687         option processing by getopt(). Run three test programs instead of one.
3688         Simplify cross-compilation guess.
3689         * NEWS: Mention the change.
3690         Reported by Rich Felker <dalias@aerifal.cx>.
3691
3692 2012-06-26  Bruno Haible  <bruno@clisp.org>
3693
3694         argp, regex: Ensure strcasecmp gets declared.
3695         * lib/argp-help.c: Include <strings.h>.
3696         * lib/regex_internal.h: Likewise.
3697         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3698
3699 2012-06-24  Bruno Haible  <bruno@clisp.org>
3700
3701         ptsname_r: Make it consistent with ptsname on AIX.
3702         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3703         implementation as for OSF/1.
3704         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3705         a pty master.
3706
3707         ptsname_r: Make it consistent with ptsname on OSF/1.
3708         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3709         OSF/1.
3710
3711 2012-06-24  Bruno Haible  <bruno@clisp.org>
3712
3713         ttyname_r: Fix result on OSF/1, Solaris.
3714         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3715
3716 2012-06-24  Bruno Haible  <bruno@clisp.org>
3717
3718         ptsname_r: Add support for Solaris.
3719         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3720         Solaris.
3721
3722         ptsname_r: Fix test failure on native Windows.
3723         * modules/ptsname_r (Depends-on): Add isatty.
3724
3725         ptsname_r: Fix test failures on IRIX, Solaris.
3726         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3727         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3728         accordingly.
3729         * lib/ptsname_r.c: Include <fcntl.h>.
3730         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3731         set errno if fd is invalid.
3732         * tests/test-isatty.c (main): Update comments.
3733
3734 2012-06-24  Bruno Haible  <bruno@clisp.org>
3735
3736         ptsname test: Extend test.
3737         * tests/test-ptsname.c: Include <errno.h>.
3738         (main): Test behaviour with invalid file descriptor.
3739
3740 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3741
3742         time: fix obsolete comment
3743         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3744         reference to HAVE_STRUCT_TIMESPEC in comment.
3745
3746 2012-06-23  Bruno Haible  <bruno@clisp.org>
3747
3748         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3750         does not handle abbreviated long options with equivalent
3751         disambiguations, set gl_replace_getopt to yes.
3752         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3753
3754 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3755
3756         time_r: fix typo that always overrode localtime_r decl
3757         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3758         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3759         not in a standard include.
3760
3761 2012-06-22  Bruno Haible  <bruno@clisp.org>
3762
3763         Write "Mac OS X" instead of "MacOS X".
3764         * README: Write "Mac OS X" instead of "MacOS X".
3765         * build-aux/bootstrap: Likewise.
3766         * build-aux/install-reloc: Likewise.
3767         * lib/acl-internal.h: Likewise.
3768         * lib/acl_entries.c: Likewise.
3769         * lib/argp-ba.c: Likewise.
3770         * lib/argp-pv.c: Likewise.
3771         * lib/config.charset: Likewise.
3772         * lib/copy-acl.c: Likewise.
3773         * lib/csharpexec.c: Likewise.
3774         * lib/euidaccess.c: Likewise.
3775         * lib/fbufmode.c: Likewise.
3776         * lib/fflush.c: Likewise.
3777         * lib/file-has-acl.c: Likewise.
3778         * lib/filemode.h: Likewise.
3779         * lib/fpurge.c: Likewise.
3780         * lib/freadable.c: Likewise.
3781         * lib/freadahead.c: Likewise.
3782         * lib/freading.c: Likewise.
3783         * lib/freadptr.c: Likewise.
3784         * lib/freadseek.c: Likewise.
3785         * lib/fseeko.c: Likewise.
3786         * lib/fseterr.c: Likewise.
3787         * lib/fsusage.c: Likewise.
3788         * lib/fwritable.c: Likewise.
3789         * lib/fwriting.c: Likewise.
3790         * lib/get-rusage-as.c: Likewise.
3791         * lib/get-rusage-data.c: Likewise.
3792         * lib/getdomainname.c: Likewise.
3793         * lib/idpriv-drop.c: Likewise.
3794         * lib/idpriv-droptemp.c: Likewise.
3795         * lib/localcharset.c: Likewise.
3796         * lib/locale.in.h: Likewise.
3797         * lib/localename.c: Likewise.
3798         * lib/mbsrtowcs-state.c: Likewise.
3799         * lib/nproc.c: Likewise.
3800         * lib/passfd.c: Likewise.
3801         * lib/posix_openpt.c: Likewise.
3802         * lib/printf-parse.c: Likewise.
3803         * lib/progreloc.c: Likewise.
3804         * lib/safe-read.h: Likewise.
3805         * lib/safe-write.h: Likewise.
3806         * lib/sched.in.h: Likewise.
3807         * lib/set-mode-acl.c: Likewise.
3808         * lib/signal.in.h: Likewise.
3809         * lib/stdint.in.h: Likewise.
3810         * lib/stdio-impl.h: Likewise.
3811         * lib/stdlib.in.h: Likewise.
3812         * lib/strtod.c: Likewise.
3813         * lib/sys_select.in.h: Likewise.
3814         * lib/tcgetsid.c: Likewise.
3815         * lib/unistd.in.h: Likewise.
3816         * lib/unlockpt.c: Likewise.
3817         * lib/vasnprintf.c: Likewise.
3818         * lib/vma-iter.c: Likewise.
3819         * lib/wcsrtombs-state.c: Likewise.
3820         * m4/acl.m4: Likewise.
3821         * m4/acosl.m4: Likewise.
3822         * m4/asinl.m4: Likewise.
3823         * m4/atanl.m4: Likewise.
3824         * m4/c-stack.m4: Likewise.
3825         * m4/cosl.m4: Likewise.
3826         * m4/expl.m4: Likewise.
3827         * m4/extensions.m4: Likewise.
3828         * m4/fdatasync.m4: Likewise.
3829         * m4/fmal.m4: Likewise.
3830         * m4/frexp.m4: Likewise.
3831         * m4/frexpf.m4: Likewise.
3832         * m4/frexpl.m4: Likewise.
3833         * m4/fsusage.m4: Likewise.
3834         * m4/getdomainname.m4: Likewise.
3835         * m4/getloadavg.m4: Likewise.
3836         * m4/getopt.m4: Likewise.
3837         * m4/gettext.m4: Likewise.
3838         * m4/gnulib-common.m4: Likewise.
3839         * m4/intdiv0.m4: Likewise.
3840         * m4/intlmacosx.m4: Likewise.
3841         * m4/largefile.m4: Likewise.
3842         * m4/ldexpl.m4: Likewise.
3843         * m4/link-follow.m4: Likewise.
3844         * m4/locale-ar.m4: Likewise.
3845         * m4/locale-fr.m4: Likewise.
3846         * m4/locale-ja.m4: Likewise.
3847         * m4/locale-tr.m4: Likewise.
3848         * m4/locale-zh.m4: Likewise.
3849         * m4/locale_h.m4: Likewise.
3850         * m4/lock.m4: Likewise.
3851         * m4/logl.m4: Likewise.
3852         * m4/mathfunc.m4: Likewise.
3853         * m4/minus-zero.m4: Likewise.
3854         * m4/mktime.m4: Likewise.
3855         * m4/mmap-anon.m4: Likewise.
3856         * m4/multiarch.m4: Likewise.
3857         * m4/nanosleep.m4: Likewise.
3858         * m4/nocrash.m4: Likewise.
3859         * m4/poll.m4: Likewise.
3860         * m4/printf-frexpl.m4: Likewise.
3861         * m4/printf.m4: Likewise.
3862         * m4/signbit.m4: Likewise.
3863         * m4/sinl.m4: Likewise.
3864         * m4/sqrtl.m4: Likewise.
3865         * m4/strerror_r.m4: Likewise.
3866         * m4/tanl.m4: Likewise.
3867         * m4/threadlib.m4: Likewise.
3868         * m4/ttyname_r.m4: Likewise.
3869         * m4/unlink.m4: Likewise.
3870         * m4/visibility.m4: Likewise.
3871         * m4/wcwidth.m4: Likewise.
3872         * tests/minus-zero.h: Likewise.
3873         * tests/test-alloca-opt.c: Likewise.
3874         * tests/test-copy-acl.sh: Likewise.
3875         * tests/test-copy-file.sh: Likewise.
3876         * tests/test-fdatasync.c: Likewise.
3877         * tests/test-file-has-acl.sh: Likewise.
3878         * tests/test-flock.c: Likewise.
3879         * tests/test-fsync.c: Likewise.
3880         * tests/test-localename.c: Likewise.
3881         * tests/test-malloca.c: Likewise.
3882         * tests/test-nonblocking-pipe.h: Likewise.
3883         * tests/test-nonblocking-socket.h: Likewise.
3884         * tests/test-openpty.c: Likewise.
3885         * tests/test-posix_openpt.c: Likewise.
3886         * tests/test-ptsname.c: Likewise.
3887         * tests/test-ptsname_r.c: Likewise.
3888         * tests/test-sameacls.c: Likewise.
3889         * tests/test-select.h: Likewise.
3890         * tests/test-set-mode-acl.sh: Likewise.
3891         * tests/test-snprintf-posix.h: Likewise.
3892         * tests/test-sprintf-posix.h: Likewise.
3893         * tests/test-strtod.c: Likewise.
3894         * tests/test-time.c: Likewise.
3895         * tests/test-vasnprintf-posix.c: Likewise.
3896         * tests/test-vasprintf-posix.c: Likewise.
3897         * doc/acl-resources.txt: Likewise.
3898         * doc/**/*.texi: Likewise.
3899         Reported by Max Horn <max@quendi.de>.
3900
3901 2012-06-22  Bruno Haible  <bruno@clisp.org>
3902
3903         grantpt: Relax requirement regarding invalid file descriptors.
3904         * lib/grantpt.c: Don't include <fcntl.h>.
3905         (grantpt): Don't verify the validity of the file descriptor.
3906         * modules/grantpt (Depends-on): Remove fcntl-h.
3907         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3908         file descriptors.
3909         * doc/posix-functions/grantpt.texi: Document more platforms on which
3910         grantpt succeeds for invalid file descriptors.
3911         Reported by Rich Felker <dalias@aerifal.cx>.
3912
3913 2012-06-22  Bruno Haible  <bruno@clisp.org>
3914
3915         fbufmode test: Don't test unportable behaviour.
3916         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3917         (main): Invoke it three times.
3918         Reported by Szabolcs Nagy <nsz@port70.net>
3919         and Rich Felker <dalias@aerifal.cx>.
3920
3921 2012-06-21  Bruno Haible  <bruno@clisp.org>
3922
3923         gnulib-tool: Refactor inctests variable.
3924         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3925         (func_modules_transitive_closure,
3926         func_modules_transitive_closure_separately,
3927         func_import, func_create_testdir): Update.
3928
3929         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3930         * gnulib-tool: Accept option --without-tests.
3931         (func_usage): Document --without-tests option. Rearrange.
3932         (inctests): Normalize according to the mode.
3933         * NEWS: Mention the change.
3934         Suggested by Simon Josefsson.
3935
3936 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3937
3938         parse-duration test: Avoid spurious output.
3939         * tests/test-parse-duration.sh: Reindent with leading tabs.
3940
3941 2012-06-21  Jim Meyering  <meyering@redhat.com>
3942
3943         maint: disable the strncpy prohibition
3944         * cfg.mk: Do not prohibit strncpy here.
3945
3946 2012-06-21  Bruno Haible  <bruno@clisp.org>
3947
3948         nonblocking: Avoid compilation error on mingw64.
3949         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3950         fscanf.
3951         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3952         * modules/vfscanf (configure.ac): Likewise.
3953         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3954         definition only if stdio.h has prepared it.
3955         Reported by Daniel P. Berrange <berrange@redhat.com>.
3956
3957 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3958
3959         gnulib-tool: Use readlink if it is available.
3960         * gnulib-tool (func_readlink): Choose function more appropriately.
3961
3962 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3963
3964         posixtm-tests: port to buggy compiler
3965         Problem reported by Simon Josefsson in
3966         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3967         * modules/posixtm-tests (Depends-on): Add stdint.
3968         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3969         Now of type int_least64_t, not int64_t, both because that's
3970         what INT64_C returns and because int_least64_t works even
3971         on 72-bit hosts.
3972         (T): Use INT64_C on constants outside the traditional int range,
3973         to work around compiler bug noted by Simon.
3974
3975         mktime: fix integer overflow in 'configure'-time test
3976         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3977         after integer overflow.  Problem reported by Rich Felker in
3978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3979         Also, don't look for further instances of a bug if we've already
3980         found one instance; this helps 'configure' run faster.
3981
3982 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3983
3984         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3985         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3986         GetVersionEx correctly.
3987         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3988
3989 2012-06-20  Bruno Haible  <bruno@clisp.org>
3990
3991         fdopen: Allow implementations that don't reject invalid fd arguments.
3992         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3993         succeeds.
3994         Reported by Rich Felker <dalias@aerifal.cx>.
3995
3996 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3997
3998         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3999         bring in LIBINTL.
4000
4001 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4002
4003         init.sh: do not rely on autoupated PWD
4004         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4005         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4006         Although Nelson's bug was not necessarily fixed by this patch,
4007         it seems wise to make the change for safety.
4008         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4009         automagically after 'cd'; this is not reliable on older shells.
4010         (setup_): Fail if we cannot cd to temporary directory.
4011
4012 2012-06-19  Bruno Haible  <bruno@clisp.org>
4013
4014         stat, fstat: Avoid warnings on mingw64.
4015         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4016         redefining.
4017         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4018         Reported by Daniel P. Berrange <berrange@redhat.com>.
4019
4020 2012-06-19  Bruno Haible  <bruno@clisp.org>
4021
4022         stdioext: Add support for musl libc.
4023
4024         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4025         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4026
4027         * m4/fseterr.m4: New file.
4028         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4029         function exists.
4030         * modules/fseterr (Files): Add m4/fseterr.m4.
4031         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4032         __fseterr does not exist.
4033         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4034
4035         * lib/freadable.h: Update comment.
4036
4037         * lib/fwritable.h: Update comment.
4038
4039         * lib/freading.h: Update comment.
4040
4041         * lib/fwriting.h: Update comment.
4042
4043         * m4/freadahead.m4: New file.
4044         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4045         that function exists.
4046         * modules/freadahead (Files): Add m4/freadahead.m4.
4047         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4048         __freadahead does not exist.
4049         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4050
4051         * m4/freadptr.m4: New file.
4052         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4053         function exists.
4054         * modules/freadptr (Files): Add m4/freadptr.m4.
4055         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4056         __freadptr does not exist.
4057         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4058
4059         * m4/freadseek.m4: New file.
4060         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4061         exists.
4062         * modules/freadseek (Files): Add m4/freadseek.m4.
4063         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4064
4065         * lib/fpurge.c (fpurge): Update comment.
4066
4067         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4068
4069 2012-06-19  Bruno Haible  <bruno@clisp.org>
4070
4071         *printf-posix: Put more info into config.log.
4072         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4073         exit code into config.log.
4074
4075 2012-06-19  Bruno Haible  <bruno@clisp.org>
4076
4077         getopt-gnu: Fix exit code overflow in autoconf test.
4078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4079         to keep them below < 128.
4080
4081 2012-06-17  Jim Meyering  <meyering@redhat.com>
4082
4083         maint.mk: fix typo in code to derive GPG key at release time
4084         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4085
4086 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         regex: avoid warning when pointers are not long
4089         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4090         and uintptr_t, not long, for portability to hosts where pointers and
4091         long have different sizes.  Issue noted by Daniel P. Berrange in
4092         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4093         and fix suggested by Bruno Haible in
4094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4095
4096 2012-06-17  Bruno Haible  <bruno@clisp.org>
4097
4098         dummy: Relicense into the public domain.
4099         * modules/dummy (License): Set to "public domain".
4100         Suggested by Reuben Thomas.
4101
4102 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4103
4104         announce-gen: VPATH issues
4105         * build-aux/announce-gen (--srcdir): New option, used to trim the
4106         $srcdir part of the path from $builddir to NEWS.
4107         * top/maint.mk (announcement): Adjust.
4108
4109 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4110
4111         gnu-web-doc-update: VPATH builds
4112         * build-aux/gnu-web-doc-update (--builddir): New option.
4113         Revamp the handling of options.
4114         Prefer $(...) to `...`.
4115         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4116         the template, and it is GNU mktemp specific.
4117         Prefer set -e to long series of &&.
4118         Restore the initial git branch, not "master".
4119         Properly initialize submodules (don't rely only on bootstrap).
4120         Do not reconfigure blindly, use config.status.
4121         * top/README-release: Update instructions for gnu-web-doc-update.
4122
4123 2012-06-11  Jim Meyering  <meyering@redhat.com>
4124
4125         maint.mk: revert most of the previous change re "all these"
4126         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4127         For rationale, see the discussion at
4128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4129
4130 2012-06-10  Karl Berry  <karl@gnu.org>
4131
4132         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4133
4134         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4135
4136 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4137
4138         parse-duration: Relicense under LGPLv2+.
4139         * modules/parse-duration (License): Change to LGPLv2+.
4140
4141 2012-06-10  Jim Meyering  <meyering@redhat.com>
4142
4143         maint.mk: prohibit common grammar error: "all these"
4144         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4145         the list of prohibited word sequences.  It should be "all of these".
4146         * lib/tempname.c (__gen_tempname): Fix one of them.
4147
4148 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4149
4150         do-release-commit-and-tag: support VPATH builds
4151         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4152         (noteworthy): Defined earlier to factor its value.
4153         (noteworthy_stub): New.
4154         Use it to factor.
4155         (help_version): Split into...
4156         (help, version): these.
4157         Adjust the option processing part.
4158         Support "--option=value" in addition to "--option value".
4159         (builddir): New.
4160         (--builddir): New option.
4161         * top/README-release: Document this.
4162         Reword slightly so that the reader cannot understand that he
4163         has to do these steps before calling do-release-commit-and-tag.
4164
4165 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4166
4167         readme-release: also require announce-gen and maintainer-makefile
4168         * modules/readme-release (Depends-on): here.
4169         * modules/announce-gen, modules/do-release-commit-and-tag,
4170         modules/gnu-web-doc-update, modules/maintainer-makefile
4171         (Description): Point to readme-release.
4172
4173 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4174
4175         maint.mk: fix VPATH issues.
4176         * top/maint.mk (news-check): GNU Make understand $< very well.
4177         (release-prep): NEWS is in $(srcdir).
4178
4179 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4180
4181         readme-release: require the promoted modules.
4182         * modules/readme-release (Depends-on): Add
4183         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4184         in this text.
4185
4186 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4187             Bruno Haible  <bruno@clisp.org>
4188
4189         error, strerror-override: Support mingw64 from Fedora 17.
4190         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4191         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4192         EINPROGRESS.
4193         * lib/strerror-override.h (strerror_override): Test it.
4194         * lib/strerror-override.c (strerror_override): Likewise.
4195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4196
4197 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4198             Bruno Haible  <bruno@clisp.org>
4199
4200         error, strerror-override: Support mingw64 from Fedora 17.
4201         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4202         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4203         * lib/strerror-override.h (strerror_override): Test it.
4204         * lib/strerror-override.c (strerror_override): Likewise.
4205
4206 2012-06-03  Bruno Haible  <bruno@clisp.org>
4207
4208         error, strerror-override: Support new errno values from POSIX:2008.
4209         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4210         ENOTRECOVERABLE.
4211         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4212         platforms.
4213         * lib/strerror-override.c (strerror_override): Conditionalize the
4214         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4215         * lib/strerror-override.h (strerror_override): Declare also if
4216         GNULIB_defined_EOWNERDEAD is defined.
4217         * tests/test-errno.c (e130, e131): New variables.
4218         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4219         ENOTRECOVERABLE.
4220         Reported by Paolo Bonzini.
4221
4222 2012-05-31  Jim Meyering  <meyering@redhat.com>
4223
4224         savewd: add missing dependency on sys_wait module
4225         * modules/savewd (Depends-on): Add sys_wait, needed at least
4226         for MSVC.  Report and suggested change by Michael Goffioul.
4227
4228 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4229
4230         system-quote-tests: port to CentOS 5
4231         Problem reported by Tom G. Christensen in
4232         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4233         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4234
4235 2012-05-29  Jim Meyering  <meyering@redhat.com>
4236
4237         maint: fix typos in comments and ChangeLog
4238         Culprits identified and fixed mostly automatically using these commands:
4239         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4240         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4241         using http://github.com/lyda/misspell-check
4242         * ChangeLog: Fix typos.
4243         * doc/solaris-versions: Likewise.
4244         * lib/regexec.c (re_search_stub): Likewise.
4245         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4246
4247 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4248
4249         manywarnings: remove duplicate -Wmultichar entry
4250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4251         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4252         so keep the entry marked as documented.
4253
4254 2012-05-27  Karl Berry  <karl@gnu.org>
4255
4256         * config/srclist.txt (mktime.c): remove last libc sync,
4257         perhaps just temporarily.
4258
4259 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4260
4261         regex: don't assume uint64_t or uint32_t
4262         * lib/regcomp.c (init_word_char): Don't assume that the types
4263         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4264         them, and on some 32-bit compilers there is no uint64_t.
4265         Problem reported by Gianluigi Tiesi in
4266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4267
4268 2012-05-25  Jim Meyering  <meyering@redhat.com>
4269
4270         maint.mk: add strncpy-prohibiting syntax-check rule
4271         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4272
4273 2012-05-24  Jim Meyering  <meyering@redhat.com>
4274
4275         maint.mk: compute $(gpg_key_ID) more portably
4276         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4277         That use of sed is not portable to some fringe systems.
4278         Reported by Paul Eggert in
4279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4280
4281 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         mktime: sync from glibc
4284         * config/srclist.txt: Uncomment mktime.c.
4285         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4286         First, indent with tabs, since glibc uses tabs and doesn't want to
4287         change and we'd rather be identical to glibc.  Also, two small
4288         coding changes:
4289         (isdst_differ): Use &&, not &, as && is the usual style.
4290         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4291         for clarity.
4292
4293 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4294
4295         announce-gen: du -h is more portable than du --human
4296         * build-aux/announce-gen (sizes): Invoke du with -h instead
4297         of --human.  Accept leading white space in its output.
4298
4299 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4300
4301         announce-gen: Improve diagnostics.
4302         * build-aux/announce-gen: When parsing command line options,
4303         prefer "announce-gen: option --release-type requires an argument"
4304         to "Option release-type requires an argument".
4305
4306 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4307
4308         maint.mk: gpg_key_ID: use sed more portably
4309         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4310         the closing brace.
4311         (refresh-po): Fuse two sed invocations into one.
4312
4313 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4314
4315         gitlog-to-changelog: support the log message format used in Bison.
4316         * build-aux/gitlog-to-changelog: Support --strip-tab and
4317         --strip-cherry-picked.
4318
4319 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4320
4321         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4322         the rest of the current time slice to another thread in the current
4323         process. So if the thread that feeds the file decscriptor we're
4324         polling is not in the current process, we get busy-waiting.
4325         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4326         Patch from Theodore Leblond.
4327         * lib/select.c: Split polling out of the loop that sets the output
4328         fd_sets.  Check for zero result and loop if the wait timeout is
4329         infinite.
4330
4331 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4332
4333         select: Fix build error on IRIX 6.5.
4334         * lib/select.c: Include stddef.h for NULL.
4335
4336 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4337
4338         gc: fix libgcrypt detection on older machines.
4339         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4340         copyright years because the file has been distributed every year
4341         since it was created.
4342
4343 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4344
4345         crypto: fix bug in large buffer handling
4346         Problem reported by Serge Belyshev for glibc in
4347         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4348         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4349         * lib/md4.c (md4_process_block):
4350         * lib/md5.c (md5_process_block):
4351         * lib/sha1.c (sha1_process_block):
4352         * lib/sha256.c (sha256_process_block):
4353         Don't assume the buffer length is less than 2**32.
4354         * lib/sha512.c (sha512_process_block): Likewise.
4355         Here, the bug is present only in the rare case where the host does
4356         not support uint64_t or where size_t is wider than 64 bits.
4357         Use u64size to work around the problems.
4358         * lib/u64.h (u64size): New macro.
4359
4360 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4361
4362         fsusage: fix block size returned on older Linux 2.6
4363
4364         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4365         which is available since Linux 2.6.
4366         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4367         when the member is available so it can be used as a fallback.
4368         * doc/posix-functions/statvfs.texi: Mention the hang issue
4369         on Linux < 2.6.36.
4370
4371 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         bootstrap: suppress stderr chatter
4374         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4375         Omit unnecessary chatter to stderr.  The main program chatter
4376         was there only inadvertantly.
4377
4378         bootstrap: .gitignore files created by autopoint, libtool
4379         I ran into this problem when bootstrapping the latest diffutils.
4380         After './bootstrap', 'git status' reported lots of untracked files
4381         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4382         autopoint and do not need to be version-controlled.
4383         * build-aux/bootstrap: Put into .gitignore the files that
4384         autopoint and libtool create, by keeping track of files that exist
4385         after but not before these programs are run.
4386         (version_controlled_file): Move up.  2nd arg is now full file
4387         name, not base name; this is more convenient.  Put CVS at the end,
4388         as it's now somewhat deprecated.
4389
4390 2012-05-14  Jim Meyering  <meyering@redhat.com>
4391
4392         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4393         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4394         definition.  Reported by Bruno Haible.
4395
4396 2012-05-13  Bruno Haible  <bruno@clisp.org>
4397             Paul Eggert  <eggert@cs.ucla.edu>
4398
4399         binary-io: Define set_binary_mode function.
4400         * lib/binary-io.h (set_binary_mode): New function.
4401         (SET_BINARY): Define in terms of set_binary_mode.
4402         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4403         * tests/test-binary-io.c (main): Accept an argument, and test either
4404         set_binary_mode or SET_BINARY depending on the argument.
4405         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4406         argument. Clean up also t-bin-out0.tmp.
4407
4408 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4409
4410         bootstrap: take advantage of POSIX shell features
4411
4412         The 'bootstrap' script offered by Gnulib script already uses POSIX
4413         shell features (like $((...)) arithmetic expansions) that are not
4414         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4415         means that bootstrap must already be run using a proper POSIX shell,
4416         which will thus provide more features, like ${var#pattern} parameter
4417         expansion or inversion of a command exit status with '!'.  We can
4418         thus use these features to improve the clarity and the performances
4419         of the bootstrap script.
4420
4421         Suggested by Eric Blake.
4422
4423         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4424         of sed/expr plus command substitutions, to save some forks.  While
4425         we are at it, prefer the POSIX $(...) form of command substitution,
4426         rather than the legacy form `...` (since the former is visually
4427         clearer and interacts better with quoting), and prefer the idiom:
4428           "if ! CMD; then ACTION ..."
4429         over the idiom:
4430           "if CMD; then :; else ACTION ..."
4431         which was required by legacy Bourne shells not supporting '!'.
4432
4433 2012-05-12  Bruno Haible  <bruno@clisp.org>
4434
4435         system-quote: Add more comments.
4436         * lib/system-quote.h: Add more comments about wilcards and limitations.
4437         Suggested by Eli Zaretskii <eliz@gnu.org>.
4438
4439         sh-quote, system-quote: Add comments about wildcards.
4440         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4441         * lib/system-quote.h: Likewise.
4442         Reported by Eli Zaretskii <eliz@gnu.org>.
4443
4444 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4445
4446         fsusage: check for GNU/Linux statvfs problem dynamically
4447         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4448         Define STAT_STATFS2_BSIZE too, since in this case the code now
4449         checks dynamically whether statvfs is reliable, falling back on
4450         Linux-style statfs otherwise.
4451         (statvfs_works): New function, for dynamically testing statvfs.
4452         (get_fs_usage) [STAT_STATVFS]: Use it.
4453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4454         statvfs on GNU/Linux hosts, since it's now done dynamically.
4455
4456 2012-05-10  Bruno Haible  <bruno@clisp.org>
4457
4458         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4459         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4460         '?' character.
4461         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4462         * tests/test-system-quote-main.c (check_all): Check also strings like
4463         "??????????".
4464         Reported by Eli Zaretskii <eliz@gnu.org>.
4465
4466 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4467
4468         _Noreturn: port config.h to gcc -Wundef
4469         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4470         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4472
4473 2012-05-10  Bruno Haible  <bruno@clisp.org>
4474
4475         system-quote: Refactor.
4476         * lib/system-quote.h (system_quote_copy): Fix comment.
4477         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4478         New functions, extracted from system_quote_copy.
4479         (system_quote_length, system_quote_copy): Use these functions.
4480         Reported by Paul Eggert.
4481
4482 2012-05-08  Bruno Haible  <bruno@clisp.org>
4483
4484         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4485         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4486
4487 2012-05-08  Bruno Haible  <bruno@clisp.org>
4488
4489         Tests for module 'system-quote'.
4490         * modules/system-quote-tests: New file.
4491         * tests/test-system-quote.sh: New file.
4492         * tests/test-system-quote-main.c: New file.
4493         * tests/test-system-quote-child.c: New file.
4494
4495         New module 'system-quote'.
4496         * lib/system-quote.h: New file.
4497         * lib/system-quote.c: New file.
4498         * modules/system-quote: New file.
4499
4500 2012-05-08  Bruno Haible  <bruno@clisp.org>
4501
4502         sh-quote: Make C++ safe and allow multiple inclusion.
4503         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4504         declarations in extern "C".
4505
4506 2012-05-08  Bruno Haible  <bruno@clisp.org>
4507
4508         sh-quote tests: Make tests stricter.
4509         * tests/test-sh-quote.c (check_one): Check the return value of
4510         shell_quote_copy.
4511         (main): Check a string with a CR character. Check a string that
4512         contains UCHAR_MAX.
4513
4514 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4515
4516         warnings.m4: provide a means to specify the program to compile.
4517         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4518         (gl_WARN_ADD): here.
4519         Use gl_AS_VAR_APPEND.
4520         Support an argument to specify the program to compile.
4521         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4522         AC_SUBST the WARN_CFLAGS when they are used.
4523         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4524         leave this to gl_WARN_ADD.
4525
4526 2012-05-08  Eric Blake  <eblake@redhat.com>
4527
4528         doc: recommendations on gettext version
4529         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4530         choice between versions.
4531         * DEPENDENCIES (gettext): Cover both approaches.
4532
4533 2012-05-08  Jim Meyering  <meyering@redhat.com>
4534
4535         init.sh: explain why EXEEXT support uses aliases rather than functions
4536         * tests/init.sh: Add a comment.
4537
4538         init.sh: don't let bash aliases interfere with tests
4539         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4540         is bash.  This avoids problems for those who alias standard commands to
4541         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4542         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4543
4544 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4545
4546         stdint: be more consistent with glibc, SunOS libc
4547         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4548         (gl_int_fast16_t, gl_uint_fast16_t)
4549         (gl_int_fast32_t, gl_uint_fast32_t)
4550         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4551         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4552         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4553         Be consistent with glibc by default, and with SunOS 5.10 and later
4554         if __sun is defined.  This lessens the likelihood of clashes if
4555         code compiled for older hosts is combined with code compiled for
4556         newer ones.  Problem reported by Niels Möller in
4557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4558
4559 2012-05-07  Eric Blake  <eblake@redhat.com>
4560
4561         isatty: relax license to LGPLv2+
4562         * modules/isatty (License): Relax license.
4563
4564 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         stat-size: comment fix
4567         * lib/stat-size.h: Remove obsolete comment about indenting.
4568
4569 2012-05-06  Bruno Haible  <bruno@clisp.org>
4570
4571         Tests for module 'sh-quote'.
4572         * modules/sh-quote-tests: New file.
4573         * tests/test-sh-quote.c: New file.
4574
4575 2012-05-06  Bruno Haible  <bruno@clisp.org>
4576
4577         sh-quote: Improve shell_quote_argv's signature.
4578         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4579         * lib/sh-quote.c (shell_quote_argv): Likewise.
4580
4581 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4582
4583         stdint: document issues with int_fast8_t etc.
4584         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4585         stdint.h substitutes may define these types differently.  See
4586         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4587
4588 2012-05-05  Bruno Haible  <bruno@clisp.org>
4589
4590         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4592         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4593         or 'guessing no (mishandles large arguments)'.
4594
4595 2012-05-05  Bruno Haible  <bruno@clisp.org>
4596
4597         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4598         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4599         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4600         set gl_cv_func_link_follows_symlink to "guessing no".
4601
4602 2012-05-05  Bruno Haible  <bruno@clisp.org>
4603
4604         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4605         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4606         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4607         "guessing no".
4608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4609
4610 2012-05-05  Bruno Haible  <bruno@clisp.org>
4611
4612         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4614         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4615         set gl_cv_struct_dirent_d_ino to "guessing yes".
4616
4617 2012-05-05  Bruno Haible  <bruno@clisp.org>
4618
4619         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4620         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4621         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4622         "guessing yes".
4623
4624 2012-05-05  Bruno Haible  <bruno@clisp.org>
4625
4626         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4627         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4628         compiling to a glibc system, set gl_cv_func_signbit and
4629         gl_cv_func_signbit_gcc to "guessing yes".
4630
4631 2012-05-05  Bruno Haible  <bruno@clisp.org>
4632
4633         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4634         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4635         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4636         to "guessing yes".
4637         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4638         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4639
4640 2012-05-05  Bruno Haible  <bruno@clisp.org>
4641
4642         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4643         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4644         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4645         gl_cv_func_realpath_works to "guessing yes".
4646
4647 2012-05-05  Bruno Haible  <bruno@clisp.org>
4648
4649         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4651         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4652
4653 2012-05-04  Bruno Haible  <bruno@clisp.org>
4654
4655         Tweak last commit.
4656         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4658
4659 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4660
4661         unistd_h: make it easier to avoid sys_types_h
4662         This is useful for Emacs, which has its own method of porting to
4663         Windows, and which therefore does not need the sys_types_h module.
4664         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4665         code moved here from gl_SYS_TYPES_H.
4666         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4667         using the code directly.
4668         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4669         gl_SYS_TYPES_H.
4670         * modules/sys_types (Files):
4671         * modules/unistd (Files): Add m4/off_t.m4.
4672
4673 2012-05-03  Bruno Haible  <bruno@clisp.org>
4674
4675         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4676         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4677         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4678         "guessing yes" or "guessing no".
4679         (gl_FUNC_LSTAT): Update.
4680         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4681         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4682         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4683
4684 2012-05-03  Bruno Haible  <bruno@clisp.org>
4685
4686         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4687         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4688         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4689         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4690         cross-compiling, choose the first alternative on glibc systems.
4691         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4692
4693 2012-05-03  Bruno Haible  <bruno@clisp.org>
4694
4695         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4696         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4697         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4698
4699 2012-05-03  Bruno Haible  <bruno@clisp.org>
4700
4701         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4702         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4703
4704 2012-05-03  Bruno Haible  <bruno@clisp.org>
4705
4706         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4707         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4708         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4709         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4710         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4711         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4712         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4713         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4714         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4715         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4716         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4717         gl_cv_func_chown_ctime_works to "guessing yes".
4718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4719         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4720         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4721         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4722         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4724         compiling to glibc systems, set gl_cv_func_open_directory_works to
4725         "guessing yes".
4726         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4728         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4729         "guessing yes".
4730         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4731         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4732         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4733         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4734         "guessing yes".
4735         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4736         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4737         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4738         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4739         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4740         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4741         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4742         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4743         "guessing yes".
4744         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4745         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4746         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4747         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4748         "guessing yes".
4749         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4750         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4751         "guessing yes".
4752         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4753         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4754         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4755         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4756         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4757         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4758         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4759         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4760         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4761         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4762         "guessing yes".
4763         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4764         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4765         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4766         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4767         "guessing yes".
4768         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4769         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4770         "guessing yes".
4771         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4772         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4773         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4774         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4775         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4776         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4777         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4778         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4779         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4780         "guessing yes".
4781         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4782         compiling to glibc systems, set gl_cv_func_mknod_works to
4783         "guessing yes".
4784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4785         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4786         "guessing yes".
4787         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4788         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4789         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4790         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4791         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4792         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4793         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4794         compiling to glibc systems, set gl_cv_func_svid_putenv to
4795         "guessing yes".
4796         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4797         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4798         "guessing yes".
4799         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4800         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4801         "guessing yes".
4802         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4803         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4804         to "guessing yes".
4805         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4806         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4807         to "guessing yes".
4808         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4809         compiling to glibc systems, set gl_cv_func_rmdir_works to
4810         "guessing yes".
4811         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4812         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4813         gl_cv_func_unlink_parent_fails to "guessing yes".
4814         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4815         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4816         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4817         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4818         gl_cv_func_rename_dest_works to "guessing yes".
4819         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4820         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4822         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4823         "guessing yes".
4824         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4825         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4826         "guessing yes".
4827         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4828         compiling to glibc systems, set gl_cv_func_setenv_works to
4829         "guessing yes".
4830         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4831         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4832         "guessing yes".
4833         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4834         compiling to glibc systems, set gl_cv_func_sleep_works to
4835         "guessing yes".
4836         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4837         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4838         "guessing yes".
4839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4840         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4841         "guessing yes".
4842         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4843         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4845         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4846         "guessing yes".
4847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4848         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4849         "guessing yes".
4850         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4851         compiling to glibc systems, set gl_cv_func_usleep_works to
4852         "guessing yes".
4853         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4854         compiling to glibc systems, set gl_cv_func_futimesat_works to
4855         "guessing yes".
4856
4857 2012-05-03  Bruno Haible  <bruno@clisp.org>
4858
4859         Say "guessing yes" or "guessing no" when cross-compiling.
4860         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4861         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4863         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4864         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4865         am_cv_func_working_getline to "guessing yes" or "guessing no".
4866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4867         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4868         (gl_FUNC_MEMMEM): When cross-compiling, set
4869         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4871         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4873         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4874         "guessing no".
4875         (gl_FUNC_STRCASESTR): When cross-compiling, set
4876         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4877         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4878         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4879         (gl_FUNC_STRSTR): When cross-compiling, set
4880         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4881         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4882         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4883         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4884         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4885
4886 2012-05-01  Bruno Haible  <bruno@clisp.org>
4887
4888         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4889         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4890         * build-aux/reloc-ldflags: Likewise.
4891         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4892
4893 2012-05-01  Bruno Haible  <bruno@clisp.org>
4894
4895         gnulib-tool: Remove transitional code.
4896         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4897         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4898
4899 2012-05-01  Bruno Haible  <bruno@clisp.org>
4900
4901         getcwd: Fix misindentation.
4902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4903
4904 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         exclude: process exclude and include directives in order
4907         This restores the pre-2009 behavior, and is part of a fix of a
4908         grep bug reported by Quentin Arce in
4909         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4910         * lib/exclude.c (struct exclude): Remove 'tail' member.
4911         (new_exclude_segment): Prepend the new segment instead of appending.
4912         Return void, since that's now more convenient.
4913         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4914         (file_name_matches): Renamed from excluded_file_name_p.
4915         (file_pattern_matches, file_name_matches):
4916         Return true if the pattern matches, not if it excludes.
4917         All callers changed.
4918         (excluded_file_name): Process the list in reverse order;
4919         since the list is now reversed this restores the pre-2009 behavior.
4920         (add_exclude): Adjust to new reversed-order list.  Use local var
4921         rather than macro, for clarity.
4922         * tests/test-exclude7.sh: Adjust to corrected behavior.
4923
4924         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4925         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4926         it's not possible here.  Handle the case of \ at end of pattern
4927         without dumping core.
4928         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4929
4930         _Noreturn: future-proof non-GNU and non-MSVC compilers
4931         * build-aux/snippet/_Noreturn.h (_Noreturn):
4932         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4933         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4934         C11 or later.  This is more likely to work with random future C
4935         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4936         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4937
4938         exclude: handle wildcards with FNM_EXTMATCH
4939         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4940         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4941         comment that "has wildcards" really means "has or may have
4942         wildcards".  Simplify by avoiding the need to call strcspn.
4943
4944 2012-04-29  Bruno Haible  <bruno@clisp.org>
4945
4946         gnulib-tool: Fix list of authors.
4947         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4948
4949 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4950
4951         bootstrap: support Automake-NG in $buildreq
4952         * bootstrap (check_versions): Handle automake and aclocal from
4953         Automake-NG specially.  They can be specified as respectively
4954         the "automake-ng" and "aclocal-ng" requirements.
4955
4956 2012-04-25  Eric Blake  <eblake@redhat.com>
4957
4958         bootstrap: only force latest Makefile.in.in for gettext module
4959         * build-aux/bootstrap (with_gettext): Only install latest
4960         Makefile.in.in for projects requesting bleeding edge gettext.
4961
4962 2012-04-22  Bruno Haible  <bruno@clisp.org>
4963
4964         doc: Mention reason for replacement on glibc/Linux systems.
4965         * doc/posix-functions/dprintf.texi: Mention the problem with special
4966         'long double' values.
4967         * doc/posix-functions/fprintf.texi: Likewise.
4968         * doc/posix-functions/printf.texi: Likewise.
4969         * doc/posix-functions/snprintf.texi: Likewise.
4970         * doc/posix-functions/sprintf.texi: Likewise.
4971         * doc/posix-functions/vdprintf.texi: Likewise.
4972         * doc/posix-functions/vfprintf.texi: Likewise.
4973         * doc/posix-functions/vprintf.texi: Likewise.
4974         * doc/posix-functions/vsnprintf.texi: Likewise.
4975         * doc/posix-functions/vsprintf.texi: Likewise.
4976         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4977         platforms with F_DUPFD_CLOEXEC problems.
4978         * doc/posix-functions/glob.texi: Mention which platforms are affected
4979         by the problem with symbolic links.
4980         * doc/posix-functions/linkat.texi: Mention the problem with
4981         AT_SYMLINK_FOLLOW on Linux.
4982
4983 2012-04-22  Bruno Haible  <bruno@clisp.org>
4984
4985         pwrite: Don't replace on all platforms.
4986         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4987
4988 2012-04-22  Bruno Haible  <bruno@clisp.org>
4989
4990         rint* tests: Avoid gcc warnings.
4991         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4992         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4993         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4994
4995 2012-04-21  Bruno Haible  <bruno@clisp.org>
4996
4997         users.txt: Update.
4998         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4999         switched from CVS to git, bzr, or svn.
5000
5001 2012-04-21  Bruno Haible  <bruno@clisp.org>
5002
5003         Large File Support for native Windows platforms.
5004
5005         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5006         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5007
5008         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5009         type.
5010         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5011         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5012         * doc/posix-headers/sys_types.texi: Mention the effect of the
5013         'largefile' module.
5014
5015         * lib/fcntl.in.h: Add comments about off_t.
5016         * modules/fcntl-h (Depends-on): Add sys_types.
5017
5018         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5019         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5020         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5021         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5022         * modules/unistd (Depends-on): Add sys_types.
5023         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5024
5025         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5026         instead of lseek.
5027         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5028         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5029         * modules/lseek (Depends-on): Add sys_types.
5030
5031         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5032         msvc-nothrow.h.
5033         (SetFileSize): New function.
5034         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5035         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5036         if Large File Support is requested.
5037         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5038         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5039
5040         * lib/stdio.in.h: Add comments about off_t.
5041         * modules/stdio (Depends-on): Add sys_types.
5042
5043         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5044         instead of ftello.
5045         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5046         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5047         (gl_PREREQ_FTELLO): New macro.
5048         * modules/ftello (Depends-on): Add sys_types.
5049         (configure.ac): Incoke gl_PREREQ_FTELLO.
5050
5051         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5052         instead of fseeko.
5053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5054         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5055         (gl_PREREQ_FSEEKO): New macro.
5056         * modules/fseeko (Depends-on): Add sys_types.
5057         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5058
5059         * lib/sys_stat.in.h: Add comments about off_t.
5060         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5061         64-bit integer for st_size in 'struct stat'.
5062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5063         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5064         * modules/sys_stat (Depends-on): Add sys_types.
5065         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5066
5067         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5068         instead of stat or _stat.
5069
5070         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5071         'struct _stati64' instead of fstat and 'struct stat'.
5072         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5073         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5074
5075         Reported by Ray Satiro <raysatiro@yahoo.com>.
5076
5077 2012-04-19  Eric Blake  <eblake@redhat.com>
5078
5079         bootstrap: accommodate older libtool
5080         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5081         Reported by Daniel P. Berrange.
5082
5083 2012-04-19  Jim Meyering  <meyering@redhat.com>
5084
5085         announce-gen: avoid failure due to lack of Digest::SHA1
5086         Even with the preferred Digest::SHA available, this script
5087         would fail when the backup module, Digest::SHA1, was not installed.
5088         * build-aux/announce-gen: Quote the conditional use of "use".
5089         Reported by Reuben Thomas in:
5090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5091
5092         bootstrap: don't let a user's CDPATH setting affect this script
5093         When CDPATH is set, cd will sometimes generate output.
5094         When "cd" is run in a subshell whose output matters, that
5095         surprising-to-some output can cause malfunction.
5096         Unsetting CDPATH turns off this shell "feature."
5097         * build-aux/bootstrap (CDPATH): Unset.
5098         Reported by Reuben Thomas in:
5099         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5100         and inspired by his patch here:
5101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5102
5103 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5104         and Jim Meyering  <meyering@redhat.com>
5105
5106         maint.mk: catch "see @xref{}" and similar
5107         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5108         prohibit "See also @xref{", "Also see @pxref{", and similar.
5109
5110 2012-04-16  Jim Meyering  <meyering@redhat.com>
5111
5112         bootstrap: really use gnulib's po/Makefile.in.in
5113         * build-aux/bootstrap: Correct the source file name in previous change.
5114         Reported by Akim Demaille.
5115
5116         configmake: correct minor inconsistency in Makefile rule
5117         * modules/configmake (Makefile.am): All other rules like this one
5118         run the final "mv -f ..." in the same backslash-continued command
5119         as the one that does everything else.  This one put the mv -f ...
5120         command on a separate, non-backslash-continued line.
5121         Make it like the others.
5122
5123         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5124         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5125         the one from gettext.  Reported by Akim Demaille.
5126
5127 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5128
5129         Fix recursion of install-* into po directories.
5130         Bison's install-pdf bug reported by Hans Aberg at
5131         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5132         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5133         (install-info, install-pdf, install-ps): New targets.
5134
5135 2012-04-16  Jim Meyering  <meyering@redhat.com>
5136
5137         maint: avoid spurious "make sc_maint" failure
5138         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5139         exempt all *.class file names, for lib/javaversion.class.
5140
5141 2012-04-15  Bruno Haible  <bruno@clisp.org>
5142
5143         lseek: Make configure test independent of environment.
5144         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5145         Windows, we know that lseek() on pipes is broken; skip the runtime
5146         test.
5147
5148 2012-04-14  Bruno Haible  <bruno@clisp.org>
5149
5150         stat: Bypass buggy override in mingw64.
5151         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5152         * lib/stat.c (stat) [mingw64]: Define to _stat.
5153         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5154
5155 2012-04-14  Bruno Haible  <bruno@clisp.org>
5156
5157         pathmax: Fix compilation error on MSVC 9.
5158         * modules/pathmax (Depends-on): Add unistd.
5159
5160 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5161
5162         README: document pointer comparison assumption
5163         * README (Portability guidelines): Document assumption about
5164         pointer comparisons, in response to a recent bug-gnulib comment by
5165         Jeffrey Kegler.
5166
5167 2012-04-12  Bruno Haible  <bruno@clisp.org>
5168
5169         Tests for module 'getrusage'.
5170         * modules/getrusage-tests: New file.
5171         * tests/test-getrusage.c: New file.
5172
5173         New module 'getrusage'.
5174         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5175         warn-on-use.h.
5176         (getrusage): New declaration.
5177         * lib/getrusage.c: New file.
5178         * m4/getrusage.m4: New file.
5179         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5180         is declared.
5181         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5182         HAVE_GETRUSAGE.
5183         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5184         snippet/c++defs, snippet/warn-on-use.
5185         (Makefile.am): Update generation of sys/resource.h. Substitute
5186         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5187         * modules/getrusage: New file.
5188         * doc/posix-functions/getrusage.texi: Mention the new module.
5189
5190 2012-04-12  Bruno Haible  <bruno@clisp.org>
5191
5192         Tests for module 'sys_resource'.
5193         * modules/sys_resource-tests: New file.
5194         * tests/test-sys_resource.c: New file.
5195
5196         New module 'sys_resource'.
5197         * lib/sys_resource.in.h: New file.
5198         * m4/sys_resource_h.m4: New file.
5199         * modules/sys_resource: New file.
5200         * doc/posix-headers/sys_resource.texi: Mention the new module.
5201
5202 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5203
5204         ioctl: Fix compilation error on mingw.
5205         * lib/ioctl.c: Include <windows.h>.
5206         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5207
5208 2012-04-04  Jim Meyering  <meyering@redhat.com>
5209
5210         regex: correct #pragma guard expression
5211         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5212         not 4.3.  Correct its cpp guard expression.
5213
5214 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         regex: remove unnecessary type punning
5217         Problem reported by Vladimir Serbinenko in
5218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5219         * lib/regex.h (struct re_pattern_buffer): Change the type of
5220         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5221         Fix comment to match code.
5222         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5223         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5224         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5225         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5226         (set_regs):
5227         Omit no-longer-necessary casts.
5228
5229 2012-04-03  Bruno Haible  <bruno@clisp.org>
5230
5231         Tests for module 'ilogbl'.
5232         * modules/ilogbl-tests: New file.
5233         * tests/test-ilogbl.c: New file.
5234
5235         New module 'ilogbl'.
5236         * lib/math.in.h (ilogbl): New declaration.
5237         * lib/ilogbl.c: New file.
5238         * m4/ilogbl.m4: New file.
5239         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5241         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5242         Split sed invocation, to avoid the limit of 100 substitutions of
5243         HP-UX 'sed'.
5244         * modules/ilogbl: New file.
5245         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5246         * doc/posix-functions/ilogbl.texi: Mention the new module.
5247
5248 2012-04-03  Bruno Haible  <bruno@clisp.org>
5249
5250         Tests for module 'ilogbf'.
5251         * modules/ilogbf-tests: New file.
5252         * tests/test-ilogbf.c: New file.
5253
5254         New module 'ilogbf'.
5255         * lib/math.in.h (ilogbf): New declaration.
5256         * lib/ilogbf.c: New file.
5257         * m4/ilogbf.m4: New file.
5258         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5260         REPLACE_ILOGBF.
5261         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5262         REPLACE_ILOGBF.
5263         * modules/ilogbf: New file.
5264         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5265         * doc/posix-functions/ilogbf.texi: Mention the new module.
5266
5267 2012-04-03  Bruno Haible  <bruno@clisp.org>
5268
5269         Tests for module 'ilogb'.
5270         * modules/ilogb-tests: New file.
5271         * tests/test-ilogb.c: New file.
5272         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5273         tests/test-logb-ieee.h.
5274
5275         New module 'ilogb'.
5276         * lib/math.in.h (ilogb): New declaration.
5277         * lib/ilogb.c: New file.
5278         * m4/ilogb.m4: New file.
5279         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5281         REPLACE_ILOGB.
5282         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5283         REPLACE_ILOGB.
5284         * modules/ilogb: New file.
5285         * tests/test-math-c++.cc: Check the declaration of ilogb.
5286         * doc/posix-functions/ilogb.texi: Mention the new module.
5287
5288 2012-04-03  Bruno Haible  <bruno@clisp.org>
5289
5290         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5291         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5292         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5293         (main): Check their values.
5294         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5295         problem.
5296
5297 2012-04-03  Bruno Haible  <bruno@clisp.org>
5298
5299         Tests for module 'logbl-ieee'.
5300         * modules/logbl-ieee-tests: New file.
5301         * tests/test-logbl-ieee.c: New file.
5302
5303         New module 'logbl-ieee'.
5304         * modules/logbl-ieee: New file.
5305
5306         Tests for module 'logb-ieee'.
5307         * modules/logb-ieee-tests: New file.
5308         * tests/test-logb-ieee.c: New file.
5309
5310         New module 'logb-ieee'.
5311         * modules/logb-ieee: New file.
5312
5313         Tests for module 'logbf-ieee'.
5314         * modules/logbf-ieee-tests: New file.
5315         * tests/test-logbf-ieee.c: New file.
5316         * tests/test-logb-ieee.h: New file.
5317
5318         New module 'logbf-ieee'.
5319         * modules/logbf-ieee: New file.
5320
5321 2012-04-03  Bruno Haible  <bruno@clisp.org>
5322
5323         Tests for module 'logbl'.
5324         * modules/logbl-tests: New file.
5325         * tests/test-logbl.c: New file.
5326
5327         New module 'logbl'.
5328         * lib/math.in.h (logbl): New declaration.
5329         * lib/logbl.c: New file.
5330         * m4/logbl.m4: New file.
5331         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5333         REPLACE_LOGBL.
5334         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5335         REPLACE_LOGBL.
5336         * modules/logbl: New file.
5337         * tests/test-math-c++.cc: Check the declaration of logbl.
5338         * doc/posix-functions/logbl.texi: Mention the new module.
5339
5340 2012-04-02  Bruno Haible  <bruno@clisp.org>
5341
5342         Tests for module 'logbf'.
5343         * modules/logbf-tests: New file.
5344         * tests/test-logbf.c: New file.
5345
5346         New module 'logbf'.
5347         * lib/math.in.h (logbf): New declaration.
5348         * lib/logbf.c: New file.
5349         * m4/logbf.m4: New file.
5350         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5352         REPLACE_LOGBF.
5353         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5354         REPLACE_LOGBF.
5355         * modules/logbf: New file.
5356         * tests/test-math-c++.cc: Check the declaration of logbf.
5357         * doc/posix-functions/logbf.texi: Mention the new module.
5358
5359 2012-04-02  Bruno Haible  <bruno@clisp.org>
5360
5361         logb tests: More tests.
5362         * tests/test-logb.h: New file, based on tests/test-logb.c and
5363         tests/test-frexp.h.
5364         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5365         (main): Just invoke test_function.
5366         * modules/logb-tests (Files): Add tests/test-logb.h,
5367         tests/minus-zero.h, tests/randomd.c.
5368         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5369
5370         logb: Provide replacement and workarounds.
5371         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5372         is 1.
5373         * lib/logb.c: New file.
5374         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5375         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5377         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5378         * modules/logb (Files): Add lib/logb.c.
5379         (Depends-on): Add isfinite, frexp, isnand.
5380         (configure.ac): Compile the replacement code logb.c if needed.
5381         * tests/test-math-c++.cc: Check the declaration of logb.
5382         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5383         with subnormal numbers.
5384
5385 2012-04-02  Bruno Haible  <bruno@clisp.org>
5386
5387         log10* tests: Speed up.
5388         * tests/test-log10.h (test_function): Reduce amount of random numbers
5389         to test.
5390
5391 2012-04-01  Bruno Haible  <bruno@clisp.org>
5392
5393         logf-ieee: Fix test whether logf works.
5394         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5395
5396 2012-04-01  Bruno Haible  <bruno@clisp.org>
5397
5398         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5399         * lib/log10l.c: Include <float.h>
5400         (log10l): On IRIX, normalize the +Infinity value.
5401         * modules/log10l (Depends-on): Add 'float'.
5402         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5403         +Infinity.
5404
5405         log10f-ieee: Work around test failure on NetBSD 5.1.
5406         * m4/log10f-ieee.m4: New file.
5407         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5408         test whether log10f works with a negative argument. Replace it if not.
5409         * lib/log10f.c (log10f): For negative arguments, return NaN.
5410         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5411         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5412         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5413
5414         log10f-ieee: Work around test failure on Solaris 9.
5415         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5416         (configure.ac): Require gl_FUNC_LOG10F.
5417
5418         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5419         * m4/log10-ieee.m4: New file.
5420         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5421         whether log10 works with a negative argument. Replace it if not.
5422         * lib/log10.c (log10): For negative arguments, return NaN.
5423         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5424         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5425         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5426
5427         Tests for module 'log10l-ieee'.
5428         * modules/log10l-ieee-tests: New file.
5429         * tests/test-log10l-ieee.c: New file.
5430
5431         New module 'log10l-ieee'.
5432         * modules/log10l-ieee: New file.
5433
5434         Tests for module 'log10-ieee'.
5435         * modules/log10-ieee-tests: New file.
5436         * tests/test-log10-ieee.c: New file.
5437
5438         New module 'log10-ieee'.
5439         * modules/log10-ieee: New file.
5440
5441         Tests for module 'log10f-ieee'.
5442         * modules/log10f-ieee-tests: New file.
5443         * tests/test-log10f-ieee.c: New file.
5444         * tests/test-log10-ieee.h: New file.
5445
5446         New module 'log10f-ieee'.
5447         * modules/log10f-ieee: New file.
5448
5449 2012-04-01  Bruno Haible  <bruno@clisp.org>
5450
5451         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5452         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5453         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5454         workaround.
5455         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5456         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5458         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5459         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5460         (Depends-on): Update conditions.
5461         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5462         IRIX 6.5, OSF/1 5.1 problems.
5463
5464 2012-04-01  Bruno Haible  <bruno@clisp.org>
5465
5466         log10f: Work around OSF/1 5.1 bug.
5467         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5468         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5469         workaround.
5470         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5471         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5473         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5474         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5475         (Depends-on): Update conditions.
5476         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5477
5478 2012-04-01  Bruno Haible  <bruno@clisp.org>
5479
5480         log10: Work around OSF/1 5.1 bug.
5481         * lib/math.in.h (log10): New declaration.
5482         * lib/log10.c: New file.
5483         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5484         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5485         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5487         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5488         * modules/log10 (Files): Add lib/log10.c.
5489         (Depends-on): Add math.
5490         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5491         * tests/test-math-c++.cc: Check the declaration of log10.
5492         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5493
5494 2012-03-31  Bruno Haible  <bruno@clisp.org>
5495
5496         log10l tests: More tests.
5497         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5498         tests/minus-zero.h, tests/randoml.c.
5499         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5500         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5501         (main): Invoke test_function.
5502
5503         log10f tests: More tests.
5504         * modules/log10f-tests (Files): Add tests/test-log10.h,
5505         tests/minus-zero.h, tests/randomf.c.
5506         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5507         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5508         (main): Invoke test_function.
5509
5510         log10 tests: More tests.
5511         * tests/test-log10.h: New file.
5512         * modules/log10-tests (Files): Add tests/test-log10.h,
5513         tests/minus-zero.h, tests/randomd.c.
5514         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5515         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5516         (main): Invoke test_function.
5517
5518 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5519
5520         fflush: Fix syntax error.
5521         * lib/fflush.c: Include unused-parameter.h, needed for
5522         _GL_UNUSED_PARAMETER.
5523         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5524
5525 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5526
5527         regex: pacify GCC when compiling GRUB
5528         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5529         a diagnostic.  Reported by Vladimir Serbinenko in
5530         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5531
5532 2012-03-29  Eric Blake  <eblake@redhat.com>
5533
5534         stdio: don't assume gets any more
5535         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5536         support.
5537         * modules/stdio (Makefile.am): Likewise.
5538         * lib/stdio-read.c (gets): Likewise.
5539         * tests/test-stdio-c++.cc: Likewise.
5540         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5541         * lib/stdio.in.h (gets): Make warning occur in more places.
5542         * doc/posix-functions/gets.texi (gets): Update documentation.
5543         Reported by Christer Solskogen.
5544
5545         maint.mk: fix syntax checks without exclusions
5546         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5547         Reported by Daniel P. Berrange.
5548
5549         strerror_r: avoid compiler warning
5550         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5551         level.
5552
5553         fflush: avoid compiler warning
5554         * lib/fflush.c (update_fpos_cache): Mark variables that are
5555         potentially unused.
5556
5557 2012-03-25  Bruno Haible  <bruno@clisp.org>
5558
5559         Tests for module 'localeconv'.
5560         * modules/localeconv-tests: New file.
5561         * tests/test-localeconv.c: New file.
5562
5563         New module 'localeconv'.
5564         * lib/locale.in.h (localeconv): New declaration.
5565         * lib/localeconv.c: New file.
5566         * m4/localeconv.m4: New file.
5567         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5568         REPLACE_LOCALECONV.
5569         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5570         REPLACE_LOCALECONV.
5571         * modules/localeconv: New file.
5572         * modules/nl_langinfo (Depends-on): Add localeconv.
5573         * modules/human (Depends-on): Likewise.
5574         * doc/posix-functions/localeconv.texi: Mention the new module.
5575
5576 2012-03-25  Bruno Haible  <bruno@clisp.org>
5577
5578         locale: Provide a complete 'struct lconv'.
5579         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5580         'struct lconv' does not contain int_p_cs_precedes.
5581         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5582         * doc/posix-headers/locale.texi: Update.
5583
5584         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5585         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5586         * doc/posix-headers/locale.texi: Update.
5587
5588         locale: Provide a working 'struct lconv'.
5589         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5590         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5591         'struct lconv' does not even contain decimal_point.
5592         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5593         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5594         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5595         * doc/posix-headers/locale.texi: Mention the problems with
5596         'struct lconv'.
5597         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5598
5599 2012-03-24  Bruno Haible  <bruno@clisp.org>
5600
5601         Enable common subexpression optimization in GCC.
5602         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5603         macros.
5604         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5605         GCC attribute 'const'.
5606         (uc_locale_language): Declare with GCC attribute 'pure'.
5607         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5608         with GCC attribute 'const'.
5609         * lib/unictype.in.h (uc_is_general_category_withtable,
5610         uc_combining_class, uc_combining_class_name,
5611         uc_combining_class_long_name, uc_bidi_class_name,
5612         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5613         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5614         uc_decimal_value, uc_digit_value, uc_numeric_value,
5615         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5616         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5617         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5618         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5619         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5620         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5621         Declare with GCC attribute 'const'.
5622         (uc_general_category_name, uc_general_category_long_name,
5623         uc_general_category_byname, uc_general_category,
5624         uc_is_general_category, uc_combining_class_byname,
5625         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5626         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5627         Declare with GCC attribute 'pure'.
5628         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5629         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5630         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5631         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5632         with GCC attribute 'pure'.
5633         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5634         'const'.
5635         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5636         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5637         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5638         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5639         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5640         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5641         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5642         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5643         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5644         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5645         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5646         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5647         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5648         GCC attribute 'pure'.
5649         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5650         'const'.
5651         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5652         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5653         u32_strwidth): Declare with GCC attribute 'pure'.
5654
5655         Enable common subexpression optimization in GCC.
5656         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5657         (alphasort): Declare with GCC attribute 'pure'.
5658         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5659         (atoll): Declare with GCC attribute 'pure'.
5660         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5661         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5662         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5663         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5664         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5665         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5666         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5667
5668 2012-03-24  Bruno Haible  <bruno@clisp.org>
5669
5670         gnulib-tool: Avoid unintended error output from 'cmp'.
5671         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5672         "cmp -s", not "cmp > /dev/null".
5673
5674 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5675
5676         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5677
5678         It's not just Automake versions < 1.9b that creates an empty
5679         pkgdatadir at installation time if pkgdata_DATA is specified
5680         to empty; modern automake versions do this as well, at least
5681         until automake 1.11.4 (not yet released at the moment of writing,
5682         but soon to appear).  That behaviour was generally considered a
5683         feature rather than a bug, at least until this discussion:
5684         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5685
5686         See also automake bugs #10997 and #11030.
5687
5688         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5689         reference to relevant automake bug numbers.
5690         (func_emit_tests_Makefile_am): Likewise.
5691
5692 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5693
5694         announce-gen: use Digest::SHA when possible
5695         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5696         back to Digest::SHA1 if necessary.
5697
5698 2012-03-20  Jim Meyering  <meyering@redhat.com>
5699
5700         tests: avoid gcc warnings about argv vs. const initializers
5701         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5702         warnings about discarding 'const' qualifier from pointer target type.
5703         * tests/test-posix_spawn2.c (main): Likewise.
5704
5705 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5706
5707         README-release: simplify slightly
5708         * top/README-release: Run "git checkout master" only once.
5709
5710 2012-03-15  Mark Wielaard  <mark@klomp.org>
5711
5712         git-merge-changelog: add specific example on how to use with hg.
5713         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5714
5715 2012-03-18  Mark Wielaard  <mark@klomp.org>
5716
5717         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5718
5719 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5720
5721         git-version-gen: don't let "prefix" envvar cause trouble
5722         * build-aux/git-version-gen (prefix): Initialize properly,
5723         so as not to use a value specified via the environment.
5724         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5725
5726 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5727
5728         regex: diagnose too-large repeat counts in EREs
5729         Previously, the code did not diagnose the too-large repeat count
5730         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5731         as if it were 'b\{1000000000}', which is unexpected.
5732         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5733         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5734         is a reasonable one for this problem.  Another option would be to
5735         create a new REG_OVERFLOW error for repeat counts that are too large.
5736         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5737         count is too large, so that the caller can distinguish the two cases.
5738         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5739         "Too large" return code, and that repeat counts are one example of this.
5740
5741 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5742
5743         doc: some glibc x32 integer width issues
5744         * doc/posix-headers/sys_types.texi (sys/types.h):
5745         * doc/posix-headers/time.texi (time.h):
5746         Mention that glibc x32 does not conform to POSIX in a couple of
5747         areas related to integer widths.
5748
5749 2012-03-15  Bruno Haible  <bruno@clisp.org>
5750
5751         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5752         * lib/fma.c (VOLATILE): New macro.
5753         (FUNC): Use it to work around a GCC compiler bug.
5754
5755 2012-03-13  Bruno Haible  <bruno@clisp.org>
5756
5757         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5758         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5759         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5760         REPLACE_HYPOTL to 1.
5761         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5762
5763 2012-03-13  Bruno Haible  <bruno@clisp.org>
5764
5765         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5766         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5767         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5768         REPLACE_REMAINDERL to 1.
5769         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5770         bug.
5771
5772 2012-03-13  Bruno Haible  <bruno@clisp.org>
5773
5774         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5775         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5776         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5777         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5778         too big rounding errors.
5779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5780         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5781         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5782         (Depends-on): Update conditions.
5783         * tests/test-sqrtl.c (my_ldexpl): New function.
5784         (main): Add test of a particular value.
5785         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5786
5787 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5788
5789         doc: Update timer_* platform portability notes.
5790         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5791         that always return ENOSYS.
5792         * doc/posix-functions/timer_delete.texi: Likewise.
5793         * doc/posix-functions/timer_gettime.texi: Likewise.
5794         * doc/posix-functions/timer_settime.texi: Likewise.
5795
5796 2012-03-13  Bruno Haible  <bruno@clisp.org>
5797
5798         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5799         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5800         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5801         REPLACE_CBRTL to 1.
5802         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5803
5804 2012-03-13  Bruno Haible  <bruno@clisp.org>
5805
5806         remainderl: Avoid compilation error on AIX >= 5.2.
5807         * lib/math.in.h (remainderl): Undefine macro from the system header.
5808
5809 2012-03-13  Bruno Haible  <bruno@clisp.org>
5810
5811         Avoid compilation errors with MSVC option -fp:strict.
5812         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5813         * lib/cbrtf.c: Likewise.
5814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5815
5816 2012-03-12  Bruno Haible  <bruno@clisp.org>
5817
5818         uninorm: Don't crash in out-of-memory conditions.
5819         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5820         gracefully.
5821         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5822         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5823
5824 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5825
5826         quote: fix syntax-check
5827         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5828         also exports quote_quoting_options.
5829
5830 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5831
5832         Collapse list of copyright years to ranges.  See
5833         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5834         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5835         build-aux/csharpexec.sh.in, build-aux/gnupload,
5836         build-aux/install-reloc, build-aux/javacomp.sh.in,
5837         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5838         build-aux/move-if-change, build-aux/reloc-ldflags,
5839         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5840
5841 2012-03-11  Bruno Haible  <bruno@clisp.org>
5842
5843         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5844         * m4/log2f-ieee.m4: New file.
5845         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5846         whether log2f works with a minus zero argument. Replace it if not.
5847         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5848         (Depends-on): Add log2-ieee.
5849         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5850         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5851
5852         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5853         * m4/log2-ieee.m4: New file.
5854         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5855         whether log2 works with a minus zero argument. Replace it if not.
5856         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5857         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5858         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5859
5860         Tests for module 'log2l-ieee'.
5861         * modules/log2l-ieee-tests: New file.
5862         * tests/test-log2l-ieee.c: New file.
5863
5864         New module 'log2l-ieee'.
5865         * modules/log2l-ieee: New file.
5866
5867         Tests for module 'log2-ieee'.
5868         * modules/log2-ieee-tests: New file.
5869         * tests/test-log2-ieee.c: New file.
5870
5871         New module 'log2-ieee'.
5872         * modules/log2-ieee: New file.
5873
5874         Tests for module 'log2f-ieee'.
5875         * modules/log2f-ieee-tests: New file.
5876         * tests/test-log2f-ieee.c: New file.
5877         * tests/test-log2-ieee.h: New file.
5878
5879         New module 'log2f-ieee'.
5880         * modules/log2f-ieee: New file.
5881
5882 2012-03-11  Bruno Haible  <bruno@clisp.org>
5883
5884         Tests for module 'log2l'.
5885         * modules/log2l-tests: New file.
5886         * tests/test-log2l.c: New file.
5887
5888         New module 'log2l'.
5889         * lib/math.in.h (log2l): New declaration.
5890         * lib/log2l.c: New file.
5891         * m4/log2l.m4: New file.
5892         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5894         REPLACE_LOG2L.
5895         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5896         REPLACE_LOG2L.
5897         * modules/log2l: New file.
5898         * tests/test-math-c++.cc: Check the declaration of log2l.
5899         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5900         and OSF/1 problems.
5901
5902 2012-03-11  Bruno Haible  <bruno@clisp.org>
5903
5904         Tests for module 'log2f'.
5905         * modules/log2f-tests: New file.
5906         * tests/test-log2f.c: New file.
5907
5908         New module 'log2f'.
5909         * lib/math.in.h (log2f): New declaration.
5910         * lib/log2f.c: New file.
5911         * m4/log2f.m4: New file.
5912         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5914         REPLACE_LOG2F.
5915         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5916         REPLACE_LOG2F.
5917         * modules/log2f: New file.
5918         * tests/test-math-c++.cc: Check the declaration of log2f.
5919         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5920         and OSF/1 and Cygwin problems.
5921
5922 2012-03-11  Bruno Haible  <bruno@clisp.org>
5923
5924         Tests for module 'log2'.
5925         * modules/log2-tests: New file.
5926         * tests/test-log2.c: New file.
5927         * tests/test-log2.h: New file.
5928
5929         New module 'log2'.
5930         * lib/math.in.h (log2): New declaration.
5931         * lib/log2.c: New file.
5932         * m4/log2.m4: New file.
5933         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5935         REPLACE_LOG2.
5936         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5937         REPLACE_LOG2.
5938         * modules/log2: New file.
5939         * tests/test-math-c++.cc: Check the declaration of log2.
5940         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5941         and OSF/1 and Cygwin problems.
5942
5943 2012-03-11  Bruno Haible  <bruno@clisp.org>
5944
5945         exp2* tests: More tests.
5946         * tests/test-exp2.h (test_function): Test all integral arguments that
5947         don't need to overflow or denormalized numbers.
5948         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5949         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5950         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5951
5952 2012-03-10  Bruno Haible  <bruno@clisp.org>
5953
5954         log1pl-ieee: Work around test failure on AIX 7.1.
5955         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5956
5957         log1pl-ieee: Work around test failure on IRIX 6.5.
5958         * m4/log1pl-ieee.m4: New file.
5959         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5960         test whether log1pl works with a minus zero argument. Replace it if
5961         not.
5962         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5964         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5965         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5966         (Depends-on): Update conditions.
5967         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5968         m4/signbit.m4.
5969         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5970         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5971
5972         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5973         * m4/log1pf-ieee.m4: New file.
5974         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5975         test whether log1pf works with a minus zero argument. Replace it if
5976         not.
5977         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5978         m4/signbit.m4.
5979         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5980         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5981
5982         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5983         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5984         (configure.ac): Require gl_FUNC_LOG1PF.
5985
5986         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5987         * m4/log1p-ieee.m4: New file.
5988         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5989         whether log1p works with a minus zero argument. Replace it if not.
5990         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5992         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5993         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5994         (Depends-on): Update conditions.
5995         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5996         m4/signbit.m4.
5997         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5998         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5999
6000         Tests for module 'log1pl-ieee'.
6001         * modules/log1pl-ieee-tests: New file.
6002         * tests/test-log1pl-ieee.c: New file.
6003
6004         New module 'log1pl-ieee'.
6005         * modules/log1pl-ieee: New file.
6006
6007         Tests for module 'log1p-ieee'.
6008         * modules/log1p-ieee-tests: New file.
6009         * tests/test-log1p-ieee.c: New file.
6010
6011         New module 'log1p-ieee'.
6012         * modules/log1p-ieee: New file.
6013
6014         Tests for module 'log1pf-ieee'.
6015         * modules/log1pf-ieee-tests: New file.
6016         * tests/test-log1pf-ieee.c: New file.
6017         * tests/test-log1p-ieee.h: New file.
6018
6019         New module 'log1pf-ieee'.
6020         * modules/log1pf-ieee: New file.
6021
6022 2012-03-10  Bruno Haible  <bruno@clisp.org>
6023
6024         Tests for module 'log1pl'.
6025         * modules/log1pl-tests: New file.
6026         * tests/test-log1pl.c: New file.
6027
6028         New module 'log1pl'.
6029         * lib/math.in.h (log1pl): New declaration.
6030         * lib/log1pl.c: New file.
6031         * m4/log1pl.m4: New file.
6032         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6034         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6035         * modules/log1pl: New file.
6036         * tests/test-math-c++.cc: Check the declaration of log1pl.
6037         * doc/posix-functions/log1pl.texi: Mention the new module.
6038
6039 2012-03-10  Bruno Haible  <bruno@clisp.org>
6040
6041         Tests for module 'log1pf'.
6042         * modules/log1pf-tests: New file.
6043         * tests/test-log1pf.c: New file.
6044
6045         New module 'log1pf'.
6046         * lib/math.in.h (log1pf): New declaration.
6047         * lib/log1pf.c: New file.
6048         * m4/log1pf.m4: New file.
6049         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6051         REPLACE_LOG1PF.
6052         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6053         REPLACE_LOG1PF.
6054         * modules/log1pf: New file.
6055         * tests/test-math-c++.cc: Check the declaration of log1pf.
6056         * doc/posix-functions/log1pf.texi: Mention the new module.
6057
6058 2012-03-10  Bruno Haible  <bruno@clisp.org>
6059
6060         log1p tests: More tests.
6061         * tests/test-log1p.h: New file.
6062         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6063         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6064         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6065         (main): Invoke test_function.
6066
6067         log1p: Provide replacement for Minix and MSVC.
6068         * lib/math.in.h (log1p): New declaration.
6069         * lib/log1p.c: New file.
6070         * m4/log1p.m4: New file.
6071         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6073         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6074         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6075         (Depends-on): Add math, isnand, log, round.
6076         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6077         HAVE_LOG1P is 0.
6078         * tests/test-math-c++.cc: Check the declaration of log1p.
6079         * doc/posix-functions/log1p.texi: Mention the replacement.
6080
6081 2012-03-10  Bruno Haible  <bruno@clisp.org>
6082
6083         math tests: Small simplification.
6084         * tests/test-exp.h (test_function): Use the same err_bound for
6085         'double' on platforms with sizeof (long double) == sizeof (double)
6086         than on platforms with sizeof (long double) > sizeof (double).
6087         * tests/test-exp2.h (test_function): Likewise.
6088         * tests/test-expm1.h (test_function): Likewise.
6089         * tests/test-log.h (test_function): Likewise.
6090
6091 2012-03-10  Bruno Haible  <bruno@clisp.org>
6092
6093         Fix some comments.
6094         * lib/expl.c: Fix an ambiguous comment.
6095         * lib/expm1.c: Likewise.
6096         * lib/expm1l.c: Likewise.
6097         * lib/exp2.c: Likewise.
6098         * lib/exp2l.c: Likewise.
6099
6100 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6101
6102         regex: allow inclusion of <regex.h> before <limits.h>
6103         Without this patch, portable programs had to include <limits.h> before
6104         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6105         I ran into this problem with a test version of GNU grep on Solaris 8.
6106         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6107         This is done conditionally so that this change can be merged
6108         back to glibc.
6109         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6110         using the included regex.
6111
6112         fts: depend on fdopendir
6113         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6114         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6115         problem was introduced when fdopendir was split out.
6116
6117 2012-03-10  Bruno Haible  <bruno@clisp.org>
6118
6119         Remove unused variables.
6120         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6121         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6122
6123 2012-03-10  Bruno Haible  <bruno@clisp.org>
6124
6125         isnanf-nolibm: Fix last commit.
6126         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6127
6128         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6129         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6130
6131 2012-03-10  Bruno Haible  <bruno@clisp.org>
6132
6133         logf-ieee: Work around test failure on NetBSD 5.1.
6134         * m4/logf-ieee.m4: New file.
6135         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6136         whether logf works with a negative argument. Replace it if not.
6137         * lib/logf.c (logf): For negative arguments, return NaN.
6138         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6139         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6140         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6141
6142         logf-ieee: Work around test failure on Solaris 9.
6143         * modules/logf-ieee (Depends-on): Add log-ieee.
6144         (configure.ac): Require gl_FUNC_LOGF.
6145
6146         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6147         * m4/log-ieee.m4: New file.
6148         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6149         log works with a negative argument. Replace it if not.
6150         * lib/log.c (log): For negative arguments, return NaN.
6151         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6152         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6153         * doc/posix-functions/log.texi: Mention the log-ieee module.
6154
6155         Tests for module 'logl-ieee'.
6156         * modules/logl-ieee-tests: New file.
6157         * tests/test-logl-ieee.c: New file.
6158
6159         New module 'logl-ieee'.
6160         * modules/logl-ieee: New file.
6161
6162         Tests for module 'log-ieee'.
6163         * modules/log-ieee-tests: New file.
6164         * tests/test-log-ieee.c: New file.
6165
6166         New module 'log-ieee'.
6167         * modules/log-ieee: New file.
6168
6169         Tests for module 'logf-ieee'.
6170         * modules/logf-ieee-tests: New file.
6171         * tests/test-logf-ieee.c: New file.
6172         * tests/test-log-ieee.h: New file.
6173
6174         New module 'logf-ieee'.
6175         * modules/logf-ieee: New file.
6176
6177 2012-03-10  Bruno Haible  <bruno@clisp.org>
6178
6179         log: Fix bug introduced on 2012-03-09.
6180         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6181
6182 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6183
6184         timer-time: link explicitly with pthreads on glibc
6185         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6186         to support static linking, when newer glibc is
6187         detected, as that contains pthread emulation of
6188         POSIX timer functions where required.
6189         * modules/timer-time: Depend on threadlib to
6190         pull in the appropriate library to link.
6191
6192 2012-03-10  Bruno Haible  <bruno@clisp.org>
6193
6194         log* tests: More tests.
6195         * tests/test-log.h: New file.
6196         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6197         (main): Invoke test_function.
6198         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6199         (main): Invoke test_function.
6200         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6201         (main): Invoke test_function.
6202         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6203         tests/randomd.c.
6204         (Makefile.am): Add randomd.c to test_log_SOURCES.
6205         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6206         tests/randomf.c.
6207         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6208         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6209         tests/randoml.c.
6210         (Depends-on): Add 'float'.
6211         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6212
6213 2012-03-09  Bruno Haible  <bruno@clisp.org>
6214
6215         logl: Work around OSF/1 5.1 bug.
6216         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6217         * lib/logl.c (logl): If logl exists, use it and provide just the
6218         workaround.
6219         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6220         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6222         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6223         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6224         (Depends-on): Update conditions.
6225         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6226
6227 2012-03-09  Bruno Haible  <bruno@clisp.org>
6228
6229         logf: Work around OSF/1 5.1 bug.
6230         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6231         * lib/logf.c (logf): If logf exists, use it and provide just the
6232         workaround.
6233         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6234         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6236         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6237         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6238         (Depends-on): Update conditions.
6239         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6240
6241 2012-03-09  Bruno Haible  <bruno@clisp.org>
6242
6243         log: Work around OSF/1 5.1 bug.
6244         * lib/math.in.h (log): New declaration.
6245         * lib/log.c: New file.
6246         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6247         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6248         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6250         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6251         * modules/log (Files): Add lib/log.c.
6252         (Depends-on): Add math.
6253         (configure.ac): If REPLACE_LOG is 1, compile an override.
6254         * tests/test-math-c++.cc: Check the declaration of log.
6255         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6256
6257 2012-03-09  Jim Meyering  <meyering@redhat.com>
6258
6259         readtokens.c: adjust wording in a comment
6260         * lib/readtokens.c: Insert omitted "that" in a comment.
6261
6262 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6263
6264         modechange: add notations +40, 00440, etc.
6265         * lib/modechange.c (mode_compile): Support new notations
6266         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6267
6268 2012-03-08  Bruno Haible  <bruno@clisp.org>
6269
6270         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6271         * m4/exp2l-ieee.m4: New file.
6272         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6273         test whether exp2l works with a NaN argument and with a negative
6274         infinity argument. Replace it if not.
6275         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6277         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6278         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6279         (Depends-on): Update conditions.
6280         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6281         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6282         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6283
6284         Tests for module 'exp2l-ieee'.
6285         * modules/exp2l-ieee-tests: New file.
6286         * tests/test-exp2l-ieee.c: New file.
6287
6288         New module 'exp2l-ieee'.
6289         * modules/exp2l-ieee: New file.
6290
6291         Tests for module 'exp2-ieee'.
6292         * modules/exp2-ieee-tests: New file.
6293         * tests/test-exp2-ieee.c: New file.
6294
6295         New module 'exp2-ieee'.
6296         * modules/exp2-ieee: New file.
6297
6298         Tests for module 'exp2f-ieee'.
6299         * modules/exp2f-ieee-tests: New file.
6300         * tests/test-exp2f-ieee.c: New file.
6301         * tests/test-exp2-ieee.h: New file.
6302
6303         New module 'exp2f-ieee'.
6304         * modules/exp2f-ieee: New file.
6305
6306 2012-03-08  Bruno Haible  <bruno@clisp.org>
6307
6308         Tests for module 'exp2l'.
6309         * modules/exp2l-tests: New file.
6310         * tests/test-exp2l.c: New file.
6311
6312         New module 'exp2l'.
6313         * lib/math.in.h (exp2l): New declaration.
6314         * lib/exp2l.c: New file.
6315         * lib/expl-table.c: New file, extracted from lib/expl.c.
6316         * lib/expl.c (gl_expl_table): New declaration.
6317         (expl): Remove expl_table. Update reference.
6318         * m4/exp2l.m4: New file.
6319         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6321         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6322         * modules/exp2l: New file.
6323         * modules/expl (Files): Add lib/expl-table.c.
6324         (configure.ac): Compile also expl-table.c.
6325         * tests/test-math-c++.cc: Check the declaration of exp2l.
6326         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6327         problem.
6328
6329 2012-03-08  Bruno Haible  <bruno@clisp.org>
6330
6331         Tests for module 'exp2f'.
6332         * modules/exp2f-tests: New file.
6333         * tests/test-exp2f.c: New file.
6334
6335         New module 'exp2f'.
6336         * lib/math.in.h (exp2f): New declaration.
6337         * lib/exp2f.c: New file.
6338         * m4/exp2f.m4: New file.
6339         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6341         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6342         * modules/exp2f: New file.
6343         * tests/test-math-c++.cc: Check the declaration of exp2f.
6344         * doc/posix-functions/exp2f.texi: Mention the new module and the
6345         IRIX problem.
6346
6347 2012-03-08  Bruno Haible  <bruno@clisp.org>
6348
6349         Tests for module 'exp2'.
6350         * modules/exp2-tests: New file.
6351         * tests/test-exp2.c: New file.
6352         * tests/test-exp2.h: New file.
6353
6354         New module 'exp2'.
6355         * lib/math.in.h (exp2): New declaration.
6356         * lib/exp2.c: New file.
6357         * m4/exp2.m4: New file.
6358         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6360         REPLACE_EXP2.
6361         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6362         REPLACE_EXP2.
6363         * modules/exp2: New file.
6364         * tests/test-math-c++.cc: Check the declaration of exp2.
6365         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6366         and OpenBSD problems.
6367
6368 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6369
6370         savedir: fix comment typo
6371         * lib/savedir.c (savedirstream): Fix typo in comment.
6372
6373 2012-03-08  Bruno Haible  <bruno@clisp.org>
6374
6375         test-readtokens.c: use const; remove unwarranted cast
6376         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6377
6378 2012-03-08  Bruno Haible  <bruno@clisp.org>
6379
6380         fmal: Avoid compilation error on AIX.
6381         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6382         AIX 5.2..7.1.
6383
6384 2012-03-08  Bruno Haible  <bruno@clisp.org>
6385
6386         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6387         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6388         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6389         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6390         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6391         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6392         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6393
6394 2012-03-08  Bruno Haible  <bruno@clisp.org>
6395
6396         remainderf: Override buggy system function on IRIX 6.5.
6397         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6398         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6399         when it exists.
6400         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6401
6402 2012-03-08  Jim Meyering  <meyering@redhat.com>
6403
6404         test-readtokens.c: avoid const-related compilation warnings
6405         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6406
6407 2012-03-07  Jim Meyering  <meyering@redhat.com>
6408             Bruno Haible  <bruno@clisp.org>
6409
6410         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6411         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6412         tests/randomd.c.
6413         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6414         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6415         tests/randoml.c.
6416         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6417
6418 2012-03-07  Bruno Haible  <bruno@clisp.org>
6419
6420         expm1l: Avoid compilation error on AIX.
6421         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6422         AIX 5.2..7.1.
6423
6424 2012-03-07  Bruno Haible  <bruno@clisp.org>
6425
6426         expm1l: Don't override undeclared system function on IRIX 6.5.
6427         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6428         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6429         it exists. Set HAVE_DECL_EXPM1L.
6430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6431         HAVE_EXPM1L.
6432         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6433         HAVE_EXPM1L.
6434         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6435
6436 2012-03-07  Bruno Haible  <bruno@clisp.org>
6437
6438         remainderl: Don't override undeclared system function on IRIX 6.5.
6439         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6440         HAVE_REMAINDERL.
6441         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6442         declared when it exists. Set HAVE_DECL_REMAINDERL.
6443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6444         not HAVE_REMAINDERL.
6445         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6446         HAVE_REMAINDERL.
6447         * doc/posix-functions/remainderl.texi: Mention missing declaration
6448         problem.
6449
6450 2012-03-07  Bruno Haible  <bruno@clisp.org>
6451
6452         rintf: Don't override undeclared system function on IRIX 6.5.
6453         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6454         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6455         exists. Set HAVE_DECL_RINTF.
6456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6457         HAVE_RINTF.
6458         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6459         HAVE_RINTF.
6460         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6461
6462 2012-03-07  Bruno Haible  <bruno@clisp.org>
6463
6464         roundl: Avoid compilation error on AIX.
6465         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6466         AIX 5.2..7.1.
6467
6468 2012-03-07  Bruno Haible  <bruno@clisp.org>
6469
6470         roundl: Don't override undeclared system function on IRIX 6.5.
6471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6472         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6473         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6474         * modules/roundl (configure.ac): For replacement code, test
6475         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6476         (Depends-on): Update conditions.
6477         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6478
6479 2012-03-07  Bruno Haible  <bruno@clisp.org>
6480
6481         roundf: Don't override undeclared system function on IRIX 6.5.
6482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6483         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6484         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6485         * modules/roundf (configure.ac): For replacement code, test
6486         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6487         (Depends-on): Update conditions.
6488         * modules/roundf-ieee (Depends-on): Update conditions.
6489         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6490
6491 2012-03-07  Bruno Haible  <bruno@clisp.org>
6492
6493         round: Don't override undeclared system function on IRIX 6.5.
6494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6495         argument.
6496         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6497         also when it is not declared. Set HAVE_ROUND. For replacement code,
6498         test HAVE_ROUND, not HAVE_DECL_ROUND.
6499         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6500         not HAVE_DECL_ROUND.
6501         (Depends-on): Update conditions.
6502         * modules/round-ieee (Depends-on): Update conditions.
6503         * doc/posix-functions/round.texi: Mention the IRIX problem.
6504
6505 2012-03-07  Bruno Haible  <bruno@clisp.org>
6506
6507         copysignf: Don't override undeclared system function on IRIX 6.5.
6508         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6509         HAVE_COPYSIGNF.
6510         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6511         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6513         not HAVE_COPYSIGNF.
6514         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6515         HAVE_COPYSIGNF.
6516         * doc/posix-functions/copysignf.texi: Mention missing declaration
6517         problem.
6518
6519 2012-03-07  Jim Meyering  <meyering@redhat.com>
6520
6521         readtokens: add tests
6522         * modules/readtokens-tests: New file.
6523         * tests/test-readtokens.c: New file.
6524
6525 2012-03-07  Jim Meyering  <meyering@redhat.com>
6526
6527         quotearg: the module must now include quote.h
6528         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6529         So must the module.
6530         * modules/quotearg (Files): Add quote.h.
6531
6532 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6533
6534         readtokens: avoid core dumps with unusual calling patterns
6535         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6536         * lib/readtokens.c: Include limits.h.
6537         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6538         (readtoken): Don't cache the delimiters; the cache code was buggy
6539         if !delim && saved_delim, or if the new n_delim differs from the old.
6540         Also, it wasn't thread-safe.
6541
6542 2012-03-07  Bruno Haible  <bruno@clisp.org>
6543
6544         quote: Adhere to common module description layout.
6545         * modules/quote (Makefile.am): Add back empty section.
6546
6547 2012-03-06  Akim Demaille  <demaille@gostai.com>
6548
6549         quote: fuse into quotearg
6550         This patch is made for the benefit of Bison.
6551         quote does not leave the choice of the quoting style to the user.
6552         quoting_style provides poor customizability, yet quoting_options,
6553         which is very rich, is hidden inside quotearg.c.  So in order to
6554         allow quote customization, move its implementation to quotearg.c.
6555         * lib/quote.c: Remove.
6556         * modules/quote: Adjust.
6557         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6558         warning: provide all the members of literal structs.
6559         (quote_quoting_options): New.
6560         (quote, quote_n): Import implementation from quote.c.
6561         * lib/quote.h: Import the comments from quote.c.
6562         (quote_quoting_options): New.
6563
6564 2012-03-06  Bruno Haible  <bruno@clisp.org>
6565
6566         Tests for module 'expm1l-ieee'.
6567         * modules/expm1l-ieee-tests: New file.
6568         * tests/test-expm1l-ieee.c: New file.
6569
6570         New module 'expm1l-ieee'.
6571         * modules/expm1l-ieee: New file.
6572
6573         Tests for module 'expm1f-ieee'.
6574         * modules/expm1f-ieee-tests: New file.
6575         * tests/test-expm1f-ieee.c: New file.
6576
6577         New module 'expm1f-ieee'.
6578         * modules/expm1f-ieee: New file.
6579
6580         Tests for module 'expm1-ieee'.
6581         * modules/expm1-ieee-tests: New file.
6582         * tests/test-expm1-ieee.c: New file.
6583         * tests/test-expm1-ieee.h: New file.
6584
6585         New module 'expm1-ieee'.
6586         * modules/expm1-ieee: New file.
6587         * m4/expm1-ieee.m4: New file.
6588         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6589         whether expm1 works with a minus zero argument. Replace it if not.
6590         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6592         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6593         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6594         (Depends-on): Update conditions.
6595         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6596         AIX problem.
6597
6598 2012-03-06  Bruno Haible  <bruno@clisp.org>
6599
6600         Work around expm1f bug on IRIX 6.5.
6601         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6602         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6603         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6604         not work.
6605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6606         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6607         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6608         (Depends-on): Update conditions.
6609         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6610
6611 2012-03-06  Bruno Haible  <bruno@clisp.org>
6612
6613         Tests for module 'expm1l'.
6614         * modules/expm1l-tests: New file.
6615         * tests/test-expm1l.c: New file.
6616
6617         New module 'expm1l'.
6618         * lib/math.in.h (expm1l): New declaration.
6619         * lib/expm1l.c: New file.
6620         * m4/expm1l.m4: New file.
6621         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6623         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6624         * modules/expm1l: New file.
6625         * tests/test-math-c++.cc: Check the declaration of expm1l.
6626         * doc/posix-functions/expm1l.texi: Mention the new module.
6627
6628 2012-03-06  Bruno Haible  <bruno@clisp.org>
6629
6630         Tests for module 'expm1f'.
6631         * modules/expm1f-tests: New file.
6632         * tests/test-expm1f.c: New file.
6633
6634         New module 'expm1f'.
6635         * lib/math.in.h (expm1f): New declaration.
6636         * lib/expm1f.c: New file.
6637         * m4/expm1f.m4: New file.
6638         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6640         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6641         * modules/expm1f: New file.
6642         * tests/test-math-c++.cc: Check the declaration of expm1f.
6643         * doc/posix-functions/expm1f.texi: Mention the new module.
6644
6645 2012-03-06  Bruno Haible  <bruno@clisp.org>
6646
6647         Tests for module 'expm1'.
6648         * modules/expm1-tests: New file.
6649         * tests/test-expm1.c: New file.
6650         * tests/test-expm1.h: New file.
6651
6652         New module 'expm1'.
6653         * lib/math.in.h (expm1): New declaration.
6654         * lib/expm1.c: New file.
6655         * m4/expm1.m4: New file.
6656         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6658         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6659         * modules/expm1: New file.
6660         * tests/test-math-c++.cc: Check the declaration of expm1.
6661         * doc/posix-functions/expm1.texi: Mention the new module.
6662
6663 2012-03-06  Bruno Haible  <bruno@clisp.org>
6664
6665         math: Ensure declarations of math functions.
6666         * modules/acosf (Depends-on): Add 'extensions'.
6667         * modules/asinf (Depends-on): Likewise.
6668         * modules/atan2f (Depends-on): Likewise.
6669         * modules/atanf (Depends-on): Likewise.
6670         * modules/cbrt (Depends-on): Likewise.
6671         * modules/cbrtf (Depends-on): Likewise.
6672         * modules/cbrtl (Depends-on): Likewise.
6673         * modules/copysignf (Depends-on): Likewise.
6674         * modules/copysignl (Depends-on): Likewise.
6675         * modules/cosf (Depends-on): Likewise.
6676         * modules/coshf (Depends-on): Likewise.
6677         * modules/expf (Depends-on): Likewise.
6678         * modules/fabsf (Depends-on): Likewise.
6679         * modules/fabsl (Depends-on): Likewise.
6680         * modules/fmaf (Depends-on): Likewise.
6681         * modules/fmal (Depends-on): Likewise.
6682         * modules/fmodf (Depends-on): Likewise.
6683         * modules/fmodl (Depends-on): Likewise.
6684         * modules/frexpf (Depends-on): Likewise.
6685         * modules/frexpl (Depends-on): Likewise.
6686         * modules/hypot (Depends-on): Likewise.
6687         * modules/hypotf (Depends-on): Likewise.
6688         * modules/hypotl (Depends-on): Likewise.
6689         * modules/ldexpf (Depends-on): Likewise.
6690         * modules/ldexpl (Depends-on): Likewise.
6691         * modules/log10f (Depends-on): Likewise.
6692         * modules/log10l (Depends-on): Likewise.
6693         * modules/log1p (Depends-on): Likewise.
6694         * modules/logb (Depends-on): Likewise.
6695         * modules/logf (Depends-on): Likewise.
6696         * modules/modff (Depends-on): Likewise.
6697         * modules/modfl (Depends-on): Likewise.
6698         * modules/powf (Depends-on): Likewise.
6699         * modules/remainderf (Depends-on): Likewise.
6700         * modules/remainderl (Depends-on): Likewise.
6701         * modules/rintf (Depends-on): Likewise.
6702         * modules/rintl (Depends-on): Likewise.
6703         * modules/sinf (Depends-on): Likewise.
6704         * modules/sinhf (Depends-on): Likewise.
6705         * modules/sqrtf (Depends-on): Likewise.
6706         * modules/tanf (Depends-on): Likewise.
6707         * modules/tanhf (Depends-on): Likewise.
6708         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6709         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6710         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6711         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6712         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6713         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6714         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6715         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6716         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6717         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6718         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6719         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6720         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6721         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6722         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6723         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6724         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6725         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6726         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6728         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6729         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6730         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6731         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6733         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6734         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6735         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6736         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6737         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6738         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6739         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6740         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6741         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6742         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6743         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6744         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6745         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6746         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6747         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6748         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6749
6750 2012-03-06  Bruno Haible  <bruno@clisp.org>
6751
6752         math: Update module names in warnings.
6753         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6754         tanl): Use specific module name in warn-on-use warning.
6755
6756 2012-03-06  Bruno Haible  <bruno@clisp.org>
6757
6758         expl: Simplify computation.
6759         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6760
6761 2012-03-05  Bruno Haible  <bruno@clisp.org>
6762
6763         exp* tests: More tests.
6764         * tests/test-exp.h: New file.
6765         * tests/test-exp.c: Include <float.h> and test-exp.h.
6766         (main): Invoke test_function.
6767         * tests/test-expf.c: Include <float.h> and test-exp.h.
6768         (main): Invoke test_function.
6769         * tests/test-expl.c: Include <float.h> and test-exp.h.
6770         (main): Invoke test_function.
6771         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6772         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6773         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6774         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6775         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6776         (Depends-on): Add 'float'.
6777         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6778
6779         expl: Fix precision of computed result.
6780         * lib/expl.c: Completely rewritten.
6781         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6782         (Maintainer): Add me.
6783         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6784
6785 2012-03-05  Bruno Haible  <bruno@clisp.org>
6786
6787         cbrt* tests: More tests.
6788         * tests/test-cbrt.h: New file.
6789         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6790         (main): Invoke test_function.
6791         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6792         (main): Invoke test_function.
6793         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6794         (main): Invoke test_function.
6795         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6796         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6797         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6798         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6799         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6800         (Depends-on): Add 'float'.
6801         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6802
6803 2012-03-05  Bruno Haible  <bruno@clisp.org>
6804
6805         hypot* tests: More tests.
6806         * tests/test-hypot.h: New file, partially extracted from
6807         tests/test-hypotl.c.
6808         * tests/test-hypot.c: Include test-hypot.h.
6809         (main): Invoke test_function.
6810         * tests/test-hypotf.c: Include test-hypot.h.
6811         (main): Invoke test_function.
6812         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6813         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6814         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6815         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6816         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6817         tests/randomf.c.
6818         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6819         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6820         tests/randoml.c.
6821         (Depends-on): Add 'fpucw', 'float'.
6822         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6823
6824 2012-03-05  Bruno Haible  <bruno@clisp.org>
6825
6826         fpucw: Doc about FreeBSD.
6827         * lib/fpucw.h: Mention FreeBSD in comments.
6828
6829 2012-03-04  Bruno Haible  <bruno@clisp.org>
6830
6831         sqrt* tests: More tests.
6832         * tests/test-sqrt.h: New file.
6833         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6834         (main): Invoke test_function.
6835         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6836         (main): Invoke test_function.
6837         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6838         (main): Invoke test_function.
6839         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6840         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6841         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6842         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6843         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6844         (Depends-on): Add 'float'.
6845         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6846
6847 2012-03-04  Bruno Haible  <bruno@clisp.org>
6848
6849         remainder* tests: More tests.
6850         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6851         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6852         (main): Invoke test_function.
6853         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6854         (main): Invoke test_function.
6855         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6856         (main): Invoke test_function.
6857         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6858         tests/randomd.c.
6859         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6860         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6861         tests/randomf.c.
6862         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6863         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6864         tests/randoml.c.
6865         (Depends-on): Add 'float'.
6866         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6867
6868 2012-03-04  Bruno Haible  <bruno@clisp.org>
6869
6870         remainder, remainderf, remainderl: Fix computation for large quotients.
6871         * lib/remainder.c: Completely rewritten.
6872         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6873         USE_FLOAT.
6874         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6875         USE_LONG_DOUBLE.
6876         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6877         isnand, isinf. Remove round, fma.
6878         * modules/remainderf (Files): Add lib/remainder.c.
6879         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6880         Remove roundf, fmaf.
6881         * modules/remainderl (Files): Add lib/remainder.c.
6882         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6883         isinf. Remove roundl, fmal.
6884         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6885         REMAINDER_LIBM.
6886         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6887         REMAINDERF_LIBM.
6888         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6889         REMAINDERL_LIBM.
6890
6891 2012-03-04  Bruno Haible  <bruno@clisp.org>
6892
6893         fmod* tests: More tests.
6894         * tests/test-fmod.h (my_ldexp): New function.
6895         (test_function): Reduce amount of random numbers to test. Add tests
6896         of very large quotients x / y.
6897         * tests/test-fmod.c (MAX_EXP): New macro.
6898         * tests/test-fmodf.c (MAX_EXP): Likewise.
6899         * tests/test-fmodl.c (MAX_EXP): Likewise.
6900
6901 2012-03-04  Bruno Haible  <bruno@clisp.org>
6902
6903         fmod, fmodl: Fix computation for large quotients x / y.
6904         * lib/fmod.c: Completely rewritten.
6905         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6906         USE_LONG_DOUBLE.
6907         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6908         isnand. Remove fma.
6909         * modules/fmodl (Files): Add lib/fmod.c.
6910         (Depends-on): Add float, isfinite, signbit, fabsl,
6911         frexpl, ldexpl, isnanl. Remove fma.
6912         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6913         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6914
6915 2012-03-03  Bruno Haible  <bruno@clisp.org>
6916
6917         fmod* tests: More tests.
6918         * tests/test-fmod.h: New file.
6919         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6920         (main): Invoke test_function.
6921         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6922         (main): Invoke test_function.
6923         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6924         (main): Invoke test_function.
6925         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6926         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6927         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6928         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6929         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6930         (Depends-on): Add 'float'.
6931         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6932
6933 2012-03-03  Bruno Haible  <bruno@clisp.org>
6934
6935         rint* tests: More tests.
6936         * tests/test-rint.h: New file, partially extracted from
6937         tests/test-rintl.c.
6938         * tests/test-rint.c: Include test-rint.h.
6939         (main): Invoke test_function.
6940         * tests/test-rintf.c: Include test-rint.h.
6941         (main): Invoke test_function.
6942         * tests/test-rintl.c: Include test-rint.h.
6943         (main): Invoke test_function.
6944         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6945         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6946         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6947         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6948         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6949         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6950
6951 2012-03-03  Bruno Haible  <bruno@clisp.org>
6952
6953         modf* tests: More tests.
6954         * tests/test-modf.h: New file.
6955         * tests/test-modf.c: Include <float.h> and test-modf.h.
6956         (main): Invoke test_function.
6957         * tests/test-modff.c: Include <float.h> and test-modf.h.
6958         (main): Invoke test_function.
6959         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6960         (main): Invoke test_function.
6961         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6962         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6963         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6964         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6965         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6966         (Depends-on): Add 'float'.
6967         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6968
6969 2012-03-03  Bruno Haible  <bruno@clisp.org>
6970
6971         fabs* tests: More tests.
6972         * tests/test-fabs.h: New file, partially extracted from
6973         tests/test-fabsl.c.
6974         * tests/test-fabs.c (RANDOM): New macro.
6975         * tests/test-fabsf.c (RANDOM): New macro.
6976         * tests/test-fabsl.c (RANDOM): New macro.
6977         * modules/fabs-tests (Files): Add tests/randomd.c.
6978         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6979         * modules/fabsf-tests (Files): Add tests/randomf.c.
6980         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6981         * modules/fabsl-tests (Files): Add tests/randoml.c.
6982         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6983
6984 2012-03-03  Bruno Haible  <bruno@clisp.org>
6985
6986         ldexp* tests: More tests.
6987         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6988         * tests/test-ldexp.c (RANDOM): New macro.
6989         * tests/test-ldexpf.c (RANDOM): New macro.
6990         * tests/test-ldexpl.c (RANDOM): New macro.
6991         * modules/ldexp-tests (Files): Add tests/randomd.c.
6992         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6993         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6994         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6995         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6996         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6997
6998 2012-03-03  Bruno Haible  <bruno@clisp.org>
6999
7000         frexp* tests: More tests.
7001         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7002         * tests/test-frexp.c (RANDOM): New macro.
7003         * tests/test-frexpf.c (RANDOM): New macro.
7004         * tests/test-frexpl.c (RANDOM): New macro.
7005         * modules/frexp-tests (Files): Add tests/randomd.c.
7006         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7007         * modules/frexpf-tests (Files): Add tests/randomf.c.
7008         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7009         * modules/frexpl-tests (Files): Add tests/randoml.c.
7010         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7011
7012 2012-03-03  Bruno Haible  <bruno@clisp.org>
7013
7014         Support for pseudo-random numbers in tests.
7015         * tests/randomf.c: New file.
7016         * tests/randomd.c: New file.
7017         * tests/randoml.c: New file.
7018         * tests/macros.h (randomf, randomd, randoml): New declarations.
7019
7020 2012-03-03  Bruno Haible  <bruno@clisp.org>
7021
7022         frexp* tests: Refactor.
7023         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7024         * tests/test-frexp.c: Include and use it.
7025         * tests/test-frexpf.c: Likewise.
7026         * tests/test-frexpl.c: Likewise.
7027         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7028         * modules/frexpf-tests (Files): Likewise.
7029         * modules/frexpl-tests (Files): Likewise.
7030
7031 2012-03-02  Jim Meyering  <meyering@redhat.com>
7032
7033         maint: don't specify XZ_OPT=-9ev in dist-related rule
7034         Using xz's -9 option is warranted only if you have a very large
7035         tarball (see xz's documentation for the sizes vs. presets), and
7036         requires 64MiB of memory at decompression time.
7037         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7038         Automake's default of just "-e" is fine.  Override on a
7039         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7040
7041 2012-03-01  Eric Blake  <eblake@redhat.com>
7042
7043         maint.mk: allow announcement for non-gnulib project
7044         * maint.mk (announcement): Skip gnulib version if not used.
7045
7046 2012-03-01  Jim Meyering  <meyering@redhat.com>
7047
7048         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7049         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7050         envvar settings cannot interfere.  Otherwise, setting envvars like
7051         prohibit=foo require=bar, etc. would cause spurious test failures.
7052
7053 2012-03-01  Eric Blake  <eblake@redhat.com>
7054
7055         maint.mk: add per-line exclusions to prohibitions
7056         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7057         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7058         (sc_const_long_option): Use it.
7059
7060 2012-03-01  Bruno Haible  <bruno@clisp.org>
7061
7062         Tests for module 'expl-ieee'.
7063         * modules/expl-ieee-tests: New file.
7064         * tests/test-expl-ieee.c: New file.
7065
7066         New module 'expl-ieee'.
7067         * modules/expl-ieee: New file.
7068
7069         Tests for module 'exp-ieee'.
7070         * modules/exp-ieee-tests: New file.
7071         * tests/test-exp-ieee.c: New file.
7072
7073         New module 'exp-ieee'.
7074         * modules/exp-ieee: New file.
7075
7076         Tests for module 'expf-ieee'.
7077         * modules/expf-ieee-tests: New file.
7078         * tests/test-expf-ieee.c: New file.
7079         * tests/test-exp-ieee.h: New file.
7080
7081         New module 'expf-ieee'.
7082         * modules/expf-ieee: New file.
7083
7084 2012-02-29  Bruno Haible  <bruno@clisp.org>
7085
7086         cbrtl-ieee: Work around test failure on IRIX 6.5.
7087         * m4/cbrtl-ieee.m4: New file.
7088         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7089         test whether cbrtl works with a minus zero argument. Replace it if not.
7090         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7092         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7093         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7094         (Depends-on): Update conditions.
7095         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7096         m4/signbit.m4.
7097         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7098         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7099         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7100
7101         Tests for module 'cbrtl-ieee'.
7102         * modules/cbrtl-ieee-tests: New file.
7103         * tests/test-cbrtl-ieee.c: New file.
7104
7105         New module 'cbrtl-ieee'.
7106         * modules/cbrtl-ieee: New file.
7107
7108         Tests for module 'cbrt-ieee'.
7109         * modules/cbrt-ieee-tests: New file.
7110         * tests/test-cbrt-ieee.c: New file.
7111
7112         New module 'cbrt-ieee'.
7113         * modules/cbrt-ieee: New file.
7114
7115         Tests for module 'cbrtf-ieee'.
7116         * modules/cbrtf-ieee-tests: New file.
7117         * tests/test-cbrtf-ieee.c: New file.
7118         * tests/test-cbrt-ieee.h: New file.
7119
7120         New module 'cbrtf-ieee'.
7121         * modules/cbrtf-ieee: New file.
7122
7123 2012-02-29  Bruno Haible  <bruno@clisp.org>
7124
7125         cbrtf: Work around bug in IRIX 6.5 system function.
7126         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7127         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7128         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7129         work.
7130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7131         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7132         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7133         (Depends-on): Update conditions.
7134         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7135
7136 2012-02-29  Bruno Haible  <bruno@clisp.org>
7137
7138         Tests for module 'cbrtl'.
7139         * modules/cbrtl-tests: New file.
7140         * tests/test-cbrtl.c: New file.
7141
7142         New module 'cbrtl'.
7143         * lib/math.in.h (cbrtl): New declaration.
7144         * lib/cbrtl.c: New file.
7145         * m4/cbrtl.m4: New file.
7146         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7148         HAVE_DECL_CBRTL.
7149         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7150         HAVE_DECL_CBRTL.
7151         * modules/cbrtl: New file.
7152         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7153         * doc/posix-functions/cbrtl.texi: Mention the new module.
7154
7155 2012-02-29  Bruno Haible  <bruno@clisp.org>
7156
7157         Tests for module 'cbrtf'.
7158         * modules/cbrtf-tests: New file.
7159         * tests/test-cbrtf.c: New file.
7160
7161         New module 'cbrtf'.
7162         * lib/math.in.h (cbrtf): New declaration.
7163         * lib/cbrtf.c: New file.
7164         * m4/cbrtf.m4: New file.
7165         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7167         HAVE_DECL_CBRTF.
7168         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7169         HAVE_DECL_CBRTF.
7170         * modules/cbrtf: New file.
7171         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7172         * doc/posix-functions/cbrtf.texi: Mention the new module.
7173
7174 2012-02-29  Bruno Haible  <bruno@clisp.org>
7175
7176         cbrt: Provide replacement on MSVC and Minix.
7177         * lib/math.in.h (cbrt): New declaration.
7178         * lib/cbrt.c: New file.
7179         * m4/cbrt.m4: New file.
7180         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7182         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7183         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7184         (Depends-on): Add dependencies.
7185         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7186         * tests/test-math-c++.cc: Check the declaration of cbrt.
7187         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7188         replacement.
7189
7190 2012-02-29  Bruno Haible  <bruno@clisp.org>
7191
7192         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7193         * m4/hypotl-ieee.m4: New file.
7194         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7195         test whether hypotl works with mixed NaN and Infinity arguments.
7196         Replace it if not.
7197         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7199         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7200         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7201         (Depends-on): Update conditions.
7202         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7203         (Depends-on): Add hypot-ieee.
7204         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7205         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7206
7207         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7208         * m4/hypotf-ieee.m4: New file.
7209         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7210         test whether hypotf works with mixed NaN and Infinity arguments.
7211         Replace it if not.
7212         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7213         (Depends-on): Add hypot-ieee.
7214         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7215         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7216
7217         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7218         * lib/math.in.h (hypot): New declaration.
7219         * lib/hypot.c: New file.
7220         * m4/hypot-ieee.m4: New file.
7221         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7222         whether hypot works with mixed NaN and Infinity arguments. Replace it
7223         if not.
7224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7225         REPLACE_HYPOT.
7226         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7227         * modules/hypot (Files): Add lib/hypot.c.
7228         (Depends-on): Add dependencies.
7229         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7230         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7231         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7232         * tests/test-math-c++.cc: Check the declaration of hypot.
7233         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7234
7235         Tests for module 'hypotl-ieee'.
7236         * modules/hypotl-ieee-tests: New file.
7237         * tests/test-hypotl-ieee.c: New file.
7238
7239         New module 'hypotl-ieee'.
7240         * modules/hypotl-ieee: New file.
7241
7242         Tests for module 'hypot-ieee'.
7243         * modules/hypot-ieee-tests: New file.
7244         * tests/test-hypot-ieee.c: New file.
7245
7246         New module 'hypot-ieee'.
7247         * modules/hypot-ieee: New file.
7248
7249         Tests for module 'hypotf-ieee'.
7250         * modules/hypotf-ieee-tests: New file.
7251         * tests/test-hypotf-ieee.c: New file.
7252         * tests/test-hypot-ieee.h: New file.
7253
7254         New module 'hypotf-ieee'.
7255         * modules/hypotf-ieee: New file.
7256
7257 2012-02-29  Bruno Haible  <bruno@clisp.org>
7258
7259         Remove unused variables.
7260         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7261         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7262         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7263         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7264
7265 2012-02-29  Eric Blake  <eblake@redhat.com>
7266
7267         termios: fix pid_t always, not just for tcgetsid
7268         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7269         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7270         just when building tcgetsid.
7271
7272 2012-02-29  Bruno Haible  <bruno@clisp.org>
7273
7274         Tests for module 'hypotl'.
7275         * modules/hypotl-tests: New file.
7276         * tests/test-hypotl.c: New file.
7277
7278         New module 'hypotl'.
7279         * lib/math.in.h (hypotl): New declaration.
7280         * lib/hypotl.c: New file.
7281         * m4/hypotl.m4: New file.
7282         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7284         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7285         * modules/hypotl: New file.
7286         * tests/test-math-c++.cc: Check the hypotl declaration.
7287         * doc/posix-functions/hypotl.texi: Mention the new module.
7288
7289 2012-02-29  Eric Blake  <eblake@redhat.com>
7290
7291         tcgetsid: fix cygwin header bug
7292         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7293
7294         docs: update cygwin progress
7295         * doc/posix-functions/llround.texi (llround): Added in cygwin
7296         1.7.8.
7297         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7298         * doc/glibc-functions/program_invocation_name.texi
7299         (program_invocation_name): Likewise.
7300         * doc/glibc-functions/program_invocation_short_name.texi
7301         (program_invocation_short_name): Likewise.
7302         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7303         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7304         Likewise.
7305         * doc/posix-functions/pthread_spin_destroy.texi
7306         (pthread_spin_destroy): Added in cygwin 1.7.10.
7307         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7308         Likewise.
7309         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7310         Likewise.
7311         * doc/posix-functions/pthread_spin_trylock.texi
7312         (pthread_spin_trylock): Likewise.
7313         * doc/posix-functions/pthread_spin_unlock.texi
7314         (pthread_spin_unlock): Likewise.
7315         * doc/posix-functions/pthread_setschedprio.texi
7316         (pthread_setschedprio): Likewise.
7317         * doc/posix-functions/pthread_attr_getstack.texi
7318         (pthread_attr_getstack): Likewise.
7319         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7320         (pthread_attr_getstackaddr): Likewise.
7321         * doc/glibc-functions/pthread_getattr_np.texi
7322         (pthread_getattr_np): Likewise.
7323         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7324         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7325         * doc/posix-functions/clock_settime.texi (clock_settime):
7326         Likewise.
7327         * doc/posix-functions/pthread_attr_getguardsize.texi
7328         (pthread_attr_getguardsize): Likewise.
7329         * doc/posix-functions/pthread_attr_setguardsize.texi
7330         (pthread_attr_setguardsize): Likewise.
7331         * doc/posix-functions/pthread_attr_setstack.texi
7332         (pthread_attr_setstack): Likewise.
7333         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7334         (pthread_attr_setstackaddr): Likewise.
7335         * doc/posix-functions/clock_getcpuclockid.texi
7336         (clock_getcpuclockid): Likewise.
7337         * doc/posix-functions/pthread_getcpuclockid.texi
7338         (pthread_getcpuclockid): Likewise.
7339         * doc/glibc-functions/error.texi (error): Likewise.
7340         * doc/glibc-functions/error_at_line.texi (error_at_line):
7341         Likewise.
7342         * doc/glibc-functions/error_message_count.texi
7343         (error_message_count): Likewise.
7344         * doc/glibc-functions/error_one_per_line.texi
7345         (error_one_per_line): Likewise.
7346         * doc/glibc-functions/error_print_progname.texi
7347         (error_print_progname): Likewise.
7348         * doc/posix-functions/pthread_condattr_getclock.texi
7349         (pthread_condattr_getclock): Likewise.
7350         * doc/posix-functions/pthread_condattr_setclock.texi
7351         (pthread_condattr_setclock): Likewise.
7352         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7353         Likewise.
7354         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7355         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7356         * doc/glibc-functions/get_current_dir_name.texi
7357         (get_current_dir_name): Likewise.
7358         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7359         Likewise.
7360         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7361         wrong return type.
7362         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7363         1.7.11.
7364
7365 2012-02-29  Bruno Haible  <bruno@clisp.org>
7366
7367         Tests for module 'hypotf'.
7368         * modules/hypotf-tests: New file.
7369         * tests/test-hypotf.c: New file.
7370
7371         New module 'hypotf'.
7372         * lib/math.in.h (hypotf): New declaration.
7373         * lib/hypotf.c: New file.
7374         * m4/hypotf.m4: New file.
7375         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7377         REPLACE_HYPOTF.
7378         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7379         REPLACE_HYPOTF.
7380         * modules/hypotf: New file.
7381         * tests/test-math-c++.cc: Check the hypotf declaration.
7382         * doc/posix-functions/hypotf.texi: Mention the new module.
7383
7384         hypot: Prepare for hypotf module.
7385         * m4/hypot.m4: New file.
7386         * modules/hypot (Files): Add m4/hypot.m4.
7387         (configure.ac): Invoke gl_FUNC_HYPOT.
7388
7389 2012-02-29  Bruno Haible  <bruno@clisp.org>
7390
7391         hypot tests: More tests.
7392         * tests/test-hypot.c: Include <float.h>.
7393         (main): Add tests about overflow and underflow.
7394
7395 2012-02-29  Bruno Haible  <bruno@clisp.org>
7396
7397         math code: Add comments.
7398         * lib/acosl.c: Add comment about related glibc source files.
7399         * lib/asinl.c: Likewise.
7400         * lib/atanl.c: Likewise.
7401         * lib/expl.c: Likewise.
7402         * lib/logl.c: Likewise.
7403         * lib/sincosl.c: Likewise.
7404         * lib/sinl.c: Likewise.
7405         * lib/tanl.c: Likewise.
7406         * lib/trigl.c: Likewise.
7407         * lib/cosl.c: Likewise. Fix comments.
7408
7409 2012-02-28  Bruno Haible  <bruno@clisp.org>
7410
7411         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7412         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7413         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7414         HUGE_VALL are defined.
7415         (numeric_equald): Renamed from numeric_equal.
7416         (numeric_equalf, numeric_equall): New functions.
7417         (main): Check also HUGE_VALF, HUGE_VALL.
7418         * modules/math-tests (Files): Add tests/macros.h.
7419         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7420         HUGE_VALL.
7421
7422 2012-02-28  Bruno Haible  <bruno@clisp.org>
7423
7424         doc: Move ISO C11 feature notes into POSIX chapters.
7425         * doc/posix-functions/aligned_alloc.texi: Renamed from
7426         doc/glibc-functions/aligned_alloc.texi.
7427         * doc/posix-functions/quick_exit.texi: Renamed from
7428         doc/glibc-functions/quick_exit.texi.
7429         * doc/posix-headers/uchar.texi: Renamed from
7430         doc/glibc-headers/uchar.texi.
7431         * doc/posix-functions/c16rtomb.texi: Renamed from
7432         doc/glibc-functions/c16rtomb.texi.
7433         * doc/posix-functions/c32rtomb.texi: Renamed from
7434         doc/glibc-functions/c32rtomb.texi.
7435         * doc/posix-functions/mbrtoc16.texi: Renamed from
7436         doc/glibc-functions/mbrtoc16.texi.
7437         * doc/posix-functions/mbrtoc32.texi: Renamed from
7438         doc/glibc-functions/mbrtoc32.texi.
7439         * doc/gnulib.texi: Update.
7440         (Glibc uchar.h): Remove section.
7441         Suggested by Eric Blake.
7442
7443 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7444
7445         stdnoreturn: port to MSVC better
7446         MSVC standard headers use __declspec(noreturn), so #define noreturn
7447         to empty on that platform.  Reported by Bruno Haible in
7448         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7449         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7450         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7451
7452 2012-02-28  Bruno Haible  <bruno@clisp.org>
7453
7454         doc: Mention new glibc headers and functions.
7455         * doc/glibc-headers/uchar.texi: New file.
7456         * doc/glibc-functions/aligned_alloc.texi: New file.
7457         * doc/glibc-functions/c16rtomb.texi: New file.
7458         * doc/glibc-functions/c32rtomb.texi: New file.
7459         * doc/glibc-functions/clock_adjtime.texi: New file.
7460         * doc/glibc-functions/fanotify_init.texi: New file.
7461         * doc/glibc-functions/fanotify_mark.texi: New file.
7462         * doc/glibc-functions/inet6_opt_append.texi: New file.
7463         * doc/glibc-functions/inet6_opt_find.texi: New file.
7464         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7465         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7466         * doc/glibc-functions/inet6_opt_init.texi: New file.
7467         * doc/glibc-functions/inet6_opt_next.texi: New file.
7468         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7469         * doc/glibc-functions/inet6_rth_add.texi: New file.
7470         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7471         * doc/glibc-functions/inet6_rth_init.texi: New file.
7472         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7473         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7474         * doc/glibc-functions/inet6_rth_space.texi: New file.
7475         * doc/glibc-functions/login.texi: New file.
7476         * doc/glibc-functions/mbrtoc16.texi: New file.
7477         * doc/glibc-functions/mbrtoc32.texi: New file.
7478         * doc/glibc-functions/name_to_handle_at.texi: New file.
7479         * doc/glibc-functions/ntp_gettimex.texi: New file.
7480         * doc/glibc-functions/open_by_handle_at.texi: New file.
7481         * doc/glibc-functions/prlimit.texi: New file.
7482         * doc/glibc-functions/process_vm_readv.texi: New file.
7483         * doc/glibc-functions/process_vm_writev.texi: New file.
7484         * doc/glibc-functions/recvmmsg.texi: New file.
7485         * doc/glibc-functions/scandirat.texi: New file.
7486         * doc/glibc-functions/sendmmsg.texi: New file.
7487         * doc/glibc-functions/setns.texi: New file.
7488         * doc/glibc-functions/timespec_get.texi: New file.
7489         * doc/gnulib.texi: Include them.
7490         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7491         sections.
7492         Reported by Eric Blake.
7493
7494 2012-02-28  Bruno Haible  <bruno@clisp.org>
7495
7496         Avoid compilation errors with MSVC option -fp:strict.
7497         * lib/floor.c: Use MSVC specific pragma fenv_access.
7498         * lib/ceil.c: Likewise.
7499         * lib/trunc.c: Likewise.
7500         * lib/round.c: Likewise.
7501         * lib/rint.c: Likewise.
7502         * lib/fma.c: Likewise.
7503         * lib/integer_length.c: Likewise.
7504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7506         * tests/test-floor2.c: Likewise.
7507         * tests/test-floorf2.c: Likewise.
7508         * tests/test-ceil2.c: Likewise.
7509         * tests/test-ceilf2.c: Likewise.
7510         * tests/test-trunc2.c: Likewise.
7511         * tests/test-truncf2.c: Likewise.
7512         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7513
7514 2012-02-27  Bruno Haible  <bruno@clisp.org>
7515
7516         Tests for module 'sqrtl-ieee'.
7517         * modules/sqrtl-ieee-tests: New file.
7518         * tests/test-sqrtl-ieee.c: New file.
7519
7520         New module 'sqrtl-ieee'.
7521         * modules/sqrtl-ieee: New file.
7522
7523         Tests for module 'sqrt-ieee'.
7524         * modules/sqrt-ieee-tests: New file.
7525         * tests/test-sqrt-ieee.c: New file.
7526
7527         New module 'sqrt-ieee'.
7528         * modules/sqrt-ieee: New file.
7529
7530         Tests for module 'sqrtf-ieee'.
7531         * modules/sqrtf-ieee-tests: New file.
7532         * tests/test-sqrtf-ieee.c: New file.
7533         * tests/test-sqrt-ieee.h: New file.
7534
7535         New module 'sqrtf-ieee'.
7536         * modules/sqrtf-ieee: New file.
7537
7538 2012-02-27  Bruno Haible  <bruno@clisp.org>
7539
7540         remainderl-ieee: Work around test failure on OSF/1.
7541         * m4/remainderl-ieee.m4: New file.
7542         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7543         present, test whether remainderl works with a zero second argument.
7544         Replace it if not.
7545         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7547         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7548         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7549         (Depends-on): Update conditions.
7550         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7551         (Depends-on): Add remainder-ieee.
7552         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7553         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7554         module.
7555
7556         remainderf-ieee: Work around test failure on OSF/1.
7557         * m4/remainderf-ieee.m4: New file.
7558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7559         present, test whether remainderf works with a zero second argument.
7560         Replace it if not.
7561         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7563         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7564         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7565         (Depends-on): Update conditions.
7566         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7567         (Depends-on): Add remainder-ieee.
7568         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7569         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7570         module.
7571
7572         remainder-ieee: Work around test failure on OSF/1.
7573         * m4/remainder-ieee.m4: New file.
7574         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7575         present, test whether remainder works with a zero second argument.
7576         Replace it if not.
7577         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7579         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7580         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7581         (Depends-on): Update dependencies.
7582         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7583         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7584         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7585
7586         Tests for module 'remainderl-ieee'.
7587         * modules/remainderl-ieee-tests: New file.
7588         * tests/test-remainderl-ieee.c: New file.
7589
7590         New module 'remainderl-ieee'.
7591         * modules/remainderl-ieee: New file.
7592
7593         Tests for module 'remainder-ieee'.
7594         * modules/remainder-ieee-tests: New file.
7595         * tests/test-remainder-ieee.c: New file.
7596
7597         New module 'remainder-ieee'.
7598         * modules/remainder-ieee: New file.
7599
7600         Tests for module 'remainderf-ieee'.
7601         * modules/remainderf-ieee-tests: New file.
7602         * tests/test-remainderf-ieee.c: New file.
7603         * tests/test-remainder-ieee.h: New file.
7604
7605         New module 'remainderf-ieee'.
7606         * modules/remainderf-ieee: New file.
7607
7608 2012-02-27  Bruno Haible  <bruno@clisp.org>
7609
7610         modff, modfl: Fix configure syntax error.
7611         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7612         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7613
7614 2012-02-27  Bruno Haible  <bruno@clisp.org>
7615
7616         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7617         * m4/fmodl-ieee.m4: New file.
7618         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7619         whether fmodl works with zero arguments. Replace it if not.
7620         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7621         (Depends-on): Add fmod-ieee.
7622         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7623         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7624
7625         fmodf-ieee: Work around test failure on OSF/1.
7626         * m4/fmodf-ieee.m4: New file.
7627         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7628         whether fmodf works with zero arguments. Replace it if not.
7629         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7631         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7632         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7633         (Depends-on): Update dependencies.
7634         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7635         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7636         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7637
7638         fmodf-ieee: Work around test failure on MSVC 9.
7639         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7640         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7641
7642         fmod-ieee: Work around test failures on OSF/1, mingw.
7643         * m4/fmod-ieee.m4: New file.
7644         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7645         whether fmod works with zero arguments. Replace it if not.
7646         * lib/math.in.h (fmod): New declaration.
7647         * lib/fmod.c: New file.
7648         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7650         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7651         * modules/fmod (Files): Add lib/fmod.c.
7652         (Depends-on): Add math, isinf, trunc, fma.
7653         (configure.ac): Arrange to compile lib/fmod.c if needed.
7654         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7655         m4/signbit.m4.
7656         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7657         * tests/test-math-c++.cc: Check the declaration of fmod.
7658         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7659
7660         fmodl-ieee: Fix test failures.
7661         * lib/fmodl.c (fmodl): Treat Inf specially.
7662         * modules/fmodl (Depends-on): Add isinf.
7663
7664         Tests for module 'fmodl-ieee'.
7665         * modules/fmodl-ieee-tests: New file.
7666         * tests/test-fmodl-ieee.c: New file.
7667
7668         New module 'fmodl-ieee'.
7669         * modules/fmodl-ieee: New file.
7670
7671         Tests for module 'fmod-ieee'.
7672         * modules/fmod-ieee-tests: New file.
7673         * tests/test-fmod-ieee.c: New file.
7674
7675         New module 'fmod-ieee'.
7676         * modules/fmod-ieee: New file.
7677
7678         Tests for module 'fmodf-ieee'.
7679         * modules/fmodf-ieee-tests: New file.
7680         * tests/test-fmodf-ieee.c: New file.
7681         * tests/test-fmod-ieee.h: New file.
7682
7683         New module 'fmodf-ieee'.
7684         * modules/fmodf-ieee: New file.
7685
7686 2012-02-27  Bruno Haible  <bruno@clisp.org>
7687
7688         Tests for module 'rintl-ieee'.
7689         * modules/rintl-ieee-tests: New file.
7690         * tests/test-rintl-ieee.c: New file.
7691
7692         New module 'rintl-ieee'.
7693         * modules/rintl-ieee: New file.
7694
7695         Tests for module 'rint-ieee'.
7696         * modules/rint-ieee-tests: New file.
7697         * tests/test-rint-ieee.c: New file.
7698
7699         New module 'rint-ieee'.
7700         * modules/rint-ieee: New file.
7701
7702         Tests for module 'rintf-ieee'.
7703         * modules/rintf-ieee-tests: New file.
7704         * tests/test-rintf-ieee.c: New file.
7705         * tests/test-rint-ieee.h: New file.
7706
7707         New module 'rintf-ieee'.
7708         * modules/rintf-ieee: New file.
7709
7710 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7711
7712         regex: re_search etc. should return -2 when memory exhausted
7713         This bug was uncovered when testing 'grep'.  Without the fix,
7714         re_search and friends return -1 when memory is exhausted, but -1
7715         means no match, and this causes grep to falsely report no-match
7716         instead of memory-exhaustion.  See
7717         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7718         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7719         trouble; this can occur if re_search_internal ran out of memory.
7720
7721 2012-02-26  Bruno Haible  <bruno@clisp.org>
7722
7723         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7724         * m4/modfl-ieee.m4: New file.
7725         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7726         whether modfl works with Inf. Replace it if not.
7727         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7729         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7730         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7731         (Depends-on): Update dependencies.
7732         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7733         m4/signbit.m4.
7734         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7735         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7736
7737         modfl-ieee: Fix dependencies.
7738         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7739
7740         modfl-ieee: Fix test failures.
7741         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7742         * modules/modfl (Depends-on): Add isfinite, isinf.
7743
7744         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7745         * m4/modff-ieee.m4: New file.
7746         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7747         whether modff works with NaN and Inf. Replace it if not.
7748         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7750         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7751         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7752         (Depends-on): Update dependencies.
7753         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7754         m4/signbit.m4.
7755         (Depends-on): Add modf-ieee.
7756         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7757         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7758
7759         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7760         * m4/modf-ieee.m4: New file.
7761         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7762         whether modf works with NaN and Inf. Replace it if not.
7763         * lib/math.in.h (modf): New declaration.
7764         * lib/modf.c: New file.
7765         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7767         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7768         * modules/modf (Files): Add lib/modf.c.
7769         (Depends-on): Add math, isfinite, trunc, isinf.
7770         (configure.ac): Addrange to compile lib/modf.c if needed.
7771         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7772         m4/signbit.m4.
7773         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7774         * tests/test-math-c++.cc: Check the declaration of modf.
7775         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7776
7777         Tests for module 'modfl-ieee'.
7778         * modules/modfl-ieee-tests: New file.
7779         * tests/test-modfl-ieee.c: New file.
7780
7781         New module 'modfl-ieee'.
7782         * modules/modfl-ieee: New file.
7783
7784         Tests for module 'modf-ieee'.
7785         * modules/modf-ieee-tests: New file.
7786         * tests/test-modf-ieee.c: New file.
7787
7788         New module 'modf-ieee'.
7789         * modules/modf-ieee: New file.
7790
7791         Tests for module 'modff-ieee'.
7792         * modules/modff-ieee-tests: New file.
7793         * tests/test-modff-ieee.c: New file.
7794         * tests/test-modf-ieee.h: New file.
7795
7796         New module 'modff-ieee'.
7797         * modules/modff-ieee: New file.
7798
7799 2012-02-26  Bruno Haible  <bruno@clisp.org>
7800
7801         Tests for module 'fabsl-ieee'.
7802         * modules/fabsl-ieee-tests: New file.
7803         * tests/test-fabsl-ieee.c: New file.
7804
7805         New module 'fabsl-ieee'.
7806         * modules/fabsl-ieee: New file.
7807
7808         Tests for module 'fabs-ieee'.
7809         * modules/fabs-ieee-tests: New file.
7810         * tests/test-fabs-ieee.c: New file.
7811
7812         New module 'fabs-ieee'.
7813         * modules/fabs-ieee: New file.
7814
7815         Tests for module 'fabsf-ieee'.
7816         * modules/fabsf-ieee-tests: New file.
7817         * tests/test-fabsf-ieee.c: New file.
7818         * tests/test-fabs-ieee.h: New file.
7819
7820         New module 'fabsf-ieee'.
7821         * modules/fabsf-ieee: New file.
7822
7823 2012-02-26  Bruno Haible  <bruno@clisp.org>
7824
7825         Tests for module 'fmal-ieee'.
7826         * modules/fmal-ieee-tests: New file.
7827         * tests/test-fmal-ieee.c: New file.
7828
7829         New module 'fmal-ieee'.
7830         * modules/fmal-ieee: New file.
7831
7832         Tests for module 'fma-ieee'.
7833         * modules/fma-ieee-tests: New file.
7834         * tests/test-fma-ieee.c: New file.
7835
7836         New module 'fma-ieee'.
7837         * modules/fma-ieee: New file.
7838
7839         Tests for module 'fmaf-ieee'.
7840         * modules/fmaf-ieee-tests: New file.
7841         * tests/test-fmaf-ieee.c: New file.
7842         * tests/test-fma-ieee.h: New file.
7843
7844         New module 'fmaf-ieee'.
7845         * modules/fmaf-ieee: New file.
7846
7847 2012-02-26  Bruno Haible  <bruno@clisp.org>
7848
7849         Tests for module 'ldexpl-ieee'.
7850         * modules/ldexpl-ieee-tests: New file.
7851         * tests/test-ldexpl-ieee.c: New file.
7852
7853         New module 'ldexpl-ieee'.
7854         * modules/ldexpl-ieee: New file.
7855
7856         Tests for module 'ldexp-ieee'.
7857         * modules/ldexp-ieee-tests: New file.
7858         * tests/test-ldexp-ieee.c: New file.
7859
7860         New module 'ldexp-ieee'.
7861         * modules/ldexp-ieee: New file.
7862
7863         Tests for module 'ldexpf-ieee'.
7864         * modules/ldexpf-ieee-tests: New file.
7865         * tests/test-ldexpf-ieee.c: New file.
7866         * tests/test-ldexp-ieee.h: New file.
7867
7868         New module 'ldexpf-ieee'.
7869         * modules/ldexpf-ieee: New file.
7870
7871 2012-02-26  Bruno Haible  <bruno@clisp.org>
7872
7873         Refactor frexp*-ieee tests.
7874         * tests/test-frexp-ieee.h: New file.
7875         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7876         (main): Just call test_function.
7877         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7878         (main): Just call test_function.
7879         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7880         (main): Just call test_function.
7881         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7882         * modules/frexp-ieee-tests (Files): Likewise.
7883         * modules/frexpl-ieee-tests (Files): Likewise.
7884
7885         Tests for module 'frexpl-ieee'.
7886         * modules/frexpl-ieee-tests: New file.
7887         * tests/test-frexpl-ieee.c: New file.
7888
7889         New module 'frexpl-ieee'.
7890         * modules/frexpl-ieee: New file.
7891
7892         Tests for module 'frexp-ieee'.
7893         * modules/frexp-ieee-tests: New file.
7894         * tests/test-frexp-ieee.c: New file.
7895
7896         New module 'frexp-ieee'.
7897         * modules/frexp-ieee: New file.
7898
7899         Tests for module 'frexpf-ieee'.
7900         * modules/frexpf-ieee-tests: New file.
7901         * tests/test-frexpf-ieee.c: New file.
7902
7903         New module 'frexpf-ieee'.
7904         * modules/frexpf-ieee: New file.
7905
7906 2012-02-26  Bruno Haible  <bruno@clisp.org>
7907
7908         roundl-ieee tests: More tests.
7909         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7910         (main): Add tests for [MX] shaded specification in POSIX.
7911         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7912         (Depends-on): Add isnanl-nolibm.
7913
7914         round-ieee tests: More tests.
7915         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7916         (main): Add tests for [MX] shaded specification in POSIX.
7917         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7918         (Depends-on): Add isnand-nolibm.
7919
7920         roundf-ieee tests: More tests.
7921         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7922         (main): Add tests for [MX] shaded specification in POSIX.
7923         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7924         (Depends-on): Add isnanf-nolibm.
7925
7926         truncl-ieee tests: More tests.
7927         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7928         (main): Add tests for [MX] shaded specification in POSIX.
7929         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7930         (Depends-on): Add isnanl-nolibm.
7931
7932         trunc-ieee tests: More tests.
7933         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7934         (main): Add tests for [MX] shaded specification in POSIX.
7935         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7936         (Depends-on): Add isnand-nolibm.
7937
7938         truncf-ieee tests: More tests.
7939         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7940         (main): Add tests for [MX] shaded specification in POSIX.
7941         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7942         (Depends-on): Add isnanf-nolibm.
7943
7944         ceill-ieee tests: More tests.
7945         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7946         (main): Add tests for [MX] shaded specification in POSIX.
7947         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7948         (Depends-on): Add isnanl-nolibm.
7949
7950         ceil-ieee tests: More tests.
7951         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7952         (main): Add tests for [MX] shaded specification in POSIX.
7953         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7954         (Depends-on): Add isnand-nolibm.
7955
7956         ceilf-ieee tests: More tests.
7957         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7958         (main): Add tests for [MX] shaded specification in POSIX.
7959         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7960         (Depends-on): Add isnanf-nolibm.
7961
7962         floorl-ieee tests: More tests.
7963         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7964         (main): Add tests for [MX] shaded specification in POSIX.
7965         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7966         (Depends-on): Add isnanl-nolibm.
7967
7968         floor-ieee tests: More tests.
7969         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7970         (main): Add tests for [MX] shaded specification in POSIX.
7971         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7972         (Depends-on): Add isnand-nolibm.
7973
7974         floorf-ieee tests: More tests.
7975         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7976         (main): Add tests for [MX] shaded specification in POSIX.
7977         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7978         (Depends-on): Add isnanf-nolibm.
7979
7980 2012-02-26  Bruno Haible  <bruno@clisp.org>
7981
7982         fpieee: More comments.
7983         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7984
7985 2012-02-25  Bruno Haible  <bruno@clisp.org>
7986
7987         Tests for module 'log10l'.
7988         * modules/log10l-tests: New file.
7989         * tests/test-log10l.c: New file.
7990         * tests/test-math-c++.cc: Check the declaration of log10l.
7991
7992         New module 'log10l'.
7993         * lib/math.in.h (log10l): New declaration.
7994         * lib/log10l.c: New file.
7995         * m4/log10l.m4: New file.
7996         * modules/log10l: New file.
7997         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7999         HAVE_DECL_LOG10L.
8000         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8001         HAVE_DECL_LOG10L.
8002         * doc/posix-functions/log10l.texi: Mention the new module.
8003
8004 2012-02-25  Bruno Haible  <bruno@clisp.org>
8005
8006         fmodl, remainder*: Avoid wrong results due to rounding errors.
8007         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8008         expected bounds.
8009         * lib/remainderf.c (remainderf): Likewise.
8010         * lib/remainder.c (remainder): Likewise.
8011         * lib/remainderl.c (remainderl): Likewise.
8012
8013 2012-02-25  Bruno Haible  <bruno@clisp.org>
8014
8015         Tests for module 'remainderl'.
8016         * modules/remainderl-tests: New file.
8017         * tests/test-remainderl.c: New file.
8018         * tests/test-math-c++.cc: Check the declaration of remainderl.
8019
8020         New module 'remainderl'.
8021         * lib/math.in.h (remainderl): New declaration.
8022         * lib/remainderl.c: New file.
8023         * m4/remainderl.m4: New file.
8024         * modules/remainderl: New file.
8025         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8027         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8028         HAVE_REMAINDERL.
8029         * doc/posix-functions/remainderl.texi: Mention the new module.
8030
8031 2012-02-25  Bruno Haible  <bruno@clisp.org>
8032
8033         Tests for module 'remainderf'.
8034         * modules/remainderf-tests: New file.
8035         * tests/test-remainderf.c: New file.
8036         * tests/test-math-c++.cc: Check the declaration of remainderf.
8037
8038         New module 'remainderf'.
8039         * lib/math.in.h (remainderf): New declaration.
8040         * lib/remainderf.c: New file.
8041         * m4/remainderf.m4: New file.
8042         * modules/remainderf: New file.
8043         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8045         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8046         HAVE_REMAINDERF.
8047         * doc/posix-functions/remainderf.texi: Mention the new module.
8048
8049 2012-02-25  Bruno Haible  <bruno@clisp.org>
8050
8051         remainder: Support for MSVC.
8052         * lib/math.in.h (remainder): New declaration.
8053         * lib/remainder.c: New file.
8054         * m4/remainder.m4: New file.
8055         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8056         (Depends-on): Add math, round, fma.
8057         (configure.ac): Use results of gl_FUNC_REMAINDER.
8058         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8060         HAVE_DECL_REMAINDER.
8061         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8062         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8063         * tests/test-math-c++.cc: Check the declaration of remainder.
8064         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8065         problems are fixed.
8066
8067 2012-02-25  Bruno Haible  <bruno@clisp.org>
8068
8069         Tests for module 'fmodl'.
8070         * modules/fmodl-tests: New file.
8071         * tests/test-fmodl.c: New file.
8072         * tests/test-math-c++.cc: Check the declaration of fmodl.
8073
8074         New module 'fmodl'.
8075         * lib/math.in.h (fmodl): New declaration.
8076         * lib/fmodl.c: New file.
8077         * m4/fmodl.m4: New file.
8078         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8080         REPLACE_FMODL.
8081         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8082         REPLACE_FMODL.
8083         * modules/fmodl: New file.
8084         * doc/posix-functions/fmodl.texi: Mention the new module.
8085
8086 2012-02-25  Bruno Haible  <bruno@clisp.org>
8087
8088         Tests for module 'modfl'.
8089         * modules/modfl-tests: New file.
8090         * tests/test-modfl.c: New file.
8091         * tests/test-math-c++.cc: Check the declaration of modfl.
8092
8093         New module 'modfl'.
8094         * lib/math.in.h (modfl): New declaration.
8095         * lib/modfl.c: New file.
8096         * m4/modfl.m4: New file.
8097         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8099         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8100         * modules/modfl: New file.
8101         * doc/posix-functions/modfl.texi: Mention the new module.
8102
8103 2012-02-25  Bruno Haible  <bruno@clisp.org>
8104
8105         Tests for module 'fabsl'.
8106         * modules/fabsl-tests: New file.
8107         * tests/test-fabsl.c: New file.
8108         * tests/test-math-c++.cc: Check the declaration of fabsl.
8109
8110         New module 'fabsl'.
8111         * lib/math.in.h (fabsl): New declaration.
8112         * lib/fabsl.c: New file.
8113         * m4/fabsl.m4: New file.
8114         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8116         REPLACE_FABSL.
8117         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8118         REPLACE_FABSL.
8119         * modules/fabsl: New file.
8120         * doc/posix-functions/fabsl.texi: Mention the new module.
8121
8122 2012-02-25  Bruno Haible  <bruno@clisp.org>
8123
8124         fabs tests: More tests.
8125         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8126         (zero): New variable.
8127         (main): Add tests for signed zero.
8128         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8129
8130         fabsf tests: More tests.
8131         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8132         (zero): New variable.
8133         (main): Add tests for signed zero.
8134         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8135
8136 2012-02-24  Bruno Haible  <bruno@clisp.org>
8137
8138         atanl: Provide function definition on MSVC.
8139         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8140         function pointer.
8141         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8142
8143 2012-02-24  Bruno Haible  <bruno@clisp.org>
8144
8145         acosl: Provide function definition on MSVC.
8146         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8147         function pointer.
8148         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8149
8150 2012-02-24  Bruno Haible  <bruno@clisp.org>
8151
8152         asinl: Provide function definition on MSVC.
8153         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8154         function pointer.
8155         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8156
8157 2012-02-24  Bruno Haible  <bruno@clisp.org>
8158
8159         tanl: Provide function definition on MSVC.
8160         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8161         function pointer.
8162         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8163
8164 2012-02-24  Bruno Haible  <bruno@clisp.org>
8165
8166         cosl: Provide function definition on MSVC.
8167         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8168         function pointer.
8169         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8170
8171 2012-02-24  Bruno Haible  <bruno@clisp.org>
8172
8173         sinl: Provide function definition on MSVC.
8174         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8175         function pointer.
8176         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8177
8178 2012-02-24  Bruno Haible  <bruno@clisp.org>
8179
8180         logl: Provide function definition on MSVC.
8181         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8182         function pointer.
8183         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8184
8185 2012-02-24  Bruno Haible  <bruno@clisp.org>
8186
8187         expl: Provide function definition on MSVC.
8188         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8189         function pointer.
8190         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8191
8192 2012-02-24  Bruno Haible  <bruno@clisp.org>
8193
8194         sqrtl: Provide function definition on MSVC.
8195         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8196         a function pointer.
8197         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8198
8199 2012-02-24  Bruno Haible  <bruno@clisp.org>
8200
8201         ceill: Provide function definition on MSVC.
8202         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8203         used as a function pointer.
8204         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8205
8206 2012-02-24  Bruno Haible  <bruno@clisp.org>
8207
8208         floorl: Provide function definition on MSVC.
8209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8210         used as a function pointer.
8211         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8212
8213 2012-02-24  Bruno Haible  <bruno@clisp.org>
8214
8215         ceilf: Provide function definition on MSVC.
8216         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8217         used as a function pointer.
8218         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8219
8220 2012-02-24  Bruno Haible  <bruno@clisp.org>
8221
8222         floorf: Provide function definition on MSVC.
8223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8224         used as a function pointer.
8225         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8226
8227 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         stdnoreturn: new module
8230         This implements a replacement for C11's <stdnoreturn.h>.
8231         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8232         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8233         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8234         * tests/test-stdnoreturn.c: New files.
8235
8236 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8237
8238         regex: fix false multibyte matches in some regular expressions
8239         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8240         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8241         * lib/regex_internal.c (re_string_skip_chars):
8242         Fix miscomputation of remain_len that may cause incomplete
8243         multi-byte character and false match.
8244
8245 2012-02-24  Jim Meyering  <meyering@redhat.com>
8246
8247         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8248         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8249         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8250         Remove now-unnecessary str''cmp obfuscation.
8251         Suggested by Akim Demaille.
8252
8253 2012-02-24  Bruno Haible  <bruno@clisp.org>
8254
8255         streq: Rename macro.
8256         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8257         * NEWS: Mention the change.
8258         * lib/mbrtowc.c (mbrtowc): Update.
8259         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8260         * lib/wcwidth.c (wcwidth): Update.
8261         Suggested by Akim Demaille and Jim Meyering.
8262
8263 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         regex: fix typo in definition of MIN
8266         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8267         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8268
8269 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8270             Bruno Haible  <bruno@clisp.org>
8271
8272         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8273         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8274         entries into a stack-allocated buffer directly.
8275         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8276
8277 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8278             Bruno Haible  <bruno@clisp.org>
8279
8280         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8281
8282          - There were several instances of this pattern:
8283
8284              for (;;) {
8285                n = acl (f, GETACLCNT, 0, NULL);
8286                [ allocate an array A of size N ]
8287                if (acl (f, GETACL, n, a) == n)
8288                  break;
8289              }
8290
8291            This loop might never terminate if some other process is constantly
8292            manipulating the file's ACL.  The loop should be rewritten to
8293            terminate.
8294
8295          - The acl (... GETACLNT ...) call is merely an optimization; its value
8296            is merely a hint as to how big to make the array.  A better
8297            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8298            and just guess a reasonably-big size, growing the size and trying
8299            again if it's not large enough.  This guarantees termination, and
8300            saves a system call.
8301
8302         * lib/acl-internal.h: Include <limits.h>.
8303         (MIN, SIZE_MAX): New macros.
8304         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8305         a stack-allocated buffer, and use malloc if it does not fit. Don't
8306         use GETACLCNT.
8307         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8308
8309 2012-02-19  Bruno Haible  <bruno@clisp.org>
8310
8311         acl: Fix endless loop on Solaris with vxfs.
8312         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8313         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8314         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8315         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8316         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8317         Reported by Bill Jones in
8318         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8319
8320 2012-02-19  Bruno Haible  <bruno@clisp.org>
8321
8322         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8323         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8324         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8325         that this function returns 0 in some more cases.
8326
8327 2012-02-19  Bruno Haible  <bruno@clisp.org>
8328
8329         acl: Update doc references.
8330         * doc/acl-resources.txt: Update links to Solaris documentation.
8331
8332 2012-02-19  Bruno Haible  <bruno@clisp.org>
8333
8334         Fix test failure in many locales on Solaris 11.
8335         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8336         'tr' arguments.
8337         * tests/test-pipe-filter-ii1.c (main): Likewise.
8338         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8339         expressions in the C locale.
8340         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8341         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8342
8343 2012-02-19  Bruno Haible  <bruno@clisp.org>
8344
8345         gnulib-tool: Improve usage message.
8346         * gnulib-tool (func_usage): Move doc of --help and --version to the
8347         section "Operation modes".
8348
8349 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8350
8351         README-release: make it easier to execute commands
8352         * top/README-release: break commands out on to separate lines.
8353
8354 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8355
8356         GNUmakefile: simplify detection of unconfigured trees
8357         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8358         whether the tree make is being run from is already configured or
8359         not.  Related simplifications.
8360
8361 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8362
8363         * gnulib-tool (func_usage): Document --help and --version.
8364
8365 2012-02-11  Jim Meyering  <meyering@redhat.com>
8366
8367         bootstrap: don't exit 0 upon gnulib-tool failure
8368         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8369         its exit status, not 0.
8370
8371 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8372
8373         README-release: various improvements
8374         * top/README-release: Give a command to push changes for the
8375         release.  Add "distcheck" to list of other pre-release checks.
8376         Fix instance of "make stable" which should be "make TYPE".
8377
8378 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8379
8380         maint: replace FSF snail-mail addresses with URLs
8381         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8382         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8383         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8384         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8385         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8386         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8387         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8388         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8389         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8390         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8391         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8392         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8393         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8394         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8395         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8396         * lib/glthread/thread.c, lib/glthread/thread.h:
8397         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8398         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8399         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8400         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8401         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8402         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8403         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8404         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8405         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8406         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8407         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8408         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8409         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8410         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8411         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8412         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8413         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8414         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8415         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8416         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8417         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8418         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8419         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8420         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8421         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8422         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8423         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8424         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8425         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8426         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8427         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8428         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8429         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8430         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8431         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8432         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8433         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8434         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8435         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8436         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8437         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8438         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8439         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8440         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8441         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8442         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8443         * tests/test-poll.c, tests/test-quotearg-simple.c:
8444         * tests/test-quotearg.c, tests/test-quotearg.h:
8445         * tests/test-round-ieee.c, tests/test-round1.c:
8446         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8447         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8448         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8449         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8450         * tests/test-strerror.c, tests/test-strerror_r.c:
8451         * tests/test-strsignal.c, tests/test-strverscmp.c:
8452         * tests/test-xmemdup0.c:
8453         Replace FSF snail mail addresses with URLs, as per GNU coding
8454         standards.  See glibc bug
8455         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8456
8457 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8458
8459         README-release: capitalize a word and split a line
8460         * top/README-release: Fix punctuation and spacing.
8461
8462 2012-02-08  Akim Demaille  <demaille@gostai.com>
8463
8464         fatal-signal: use C prototypes (with explicit void).
8465         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8466         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8467
8468 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8469
8470         regex: spelling fix
8471         * lib/regexec.c: spelling fix
8472
8473         regex: rely on stdint.h for SIZE_MAX
8474         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8475
8476 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8477
8478         regex: merge glibc changes
8479
8480         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8481         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8482         (init_word_char): Work even if bitset words are not exactly 32 or
8483         64 bits wide.  Don't assume there are no padding bits.
8484         * lib/regex.c [_LIBC]: Do not include <config.h>.
8485         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8486         and -Wtype-limits.
8487         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8488         needless disagreement with glibc.  All uses changed.  Define it to
8489         1 only if _GNU_SOURCE, to match glibc.
8490         (_REG_RM_NAME): Remove; no longer needed, since the names in
8491         question are now all protected by __USE_GNU.
8492         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8493         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8494         * lib/regex_internal.h (MIN): New macro.
8495
8496         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8497         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8498
8499         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8500         * lib/regex_internal.c (re_string_fetch_byte_case):
8501         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8502         is miscompiled, and it turns out it is because of an incorrect
8503         attribute on re_string_fetch_byte_case.  Unlike
8504         re_string_peek_byte_case, this one is really not pure, it modifies
8505         memory (increments pstr->cur_idx), and with the pure attribute GCC
8506         assumed it doesn't and it cached the presumed value of
8507         regexp->cur_idx in a variable across the
8508          for (;; ++i)
8509            {
8510              if (i >= BRACKET_NAME_BUF_SIZE)
8511                return REG_EBRACK;
8512              if (token->type == OP_OPEN_CHAR_CLASS)
8513                ch = re_string_fetch_byte_case (regexp);
8514              else
8515                ch = re_string_fetch_byte (regexp);
8516              if (re_string_eoi(regexp))
8517                return REG_EBRACK;
8518              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8519                break;
8520              elem->opr.name[i] = ch;
8521            }
8522
8523         2011-11-29 Andreas Schwab <schwab@redhat.com>
8524         * lib/regcomp.c (build_equiv_class):
8525         Fix access after end of search string in regex matcher.
8526
8527         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8528         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8529
8530         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8531         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8532
8533         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8534         * lib/regcomp.c (parse_branch, parse_sub_exp):
8535         More regex memory leak fixes and tests.
8536         (parse_sub_exp, parse_bracket_exp):
8537         Fix memory leak for some invalid regular expressions.
8538
8539         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8540         * lib/regex_internal.c, lib/regexec.c:
8541         Fix unnecessary overallocation due to incomplete character.  When
8542         incomplete characters are found at the end of a string the code
8543         ran amok and allocated lots of memory.  Stricter limits are now in
8544         place.
8545
8546         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8547         * lib/regex.h: Update documentation.
8548
8549         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8550         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8551
8552         2010-05-05 Andreas Schwab <schwab@redhat.com>
8553         * lib/regexec.c (find_collation_sequence_value):
8554         Fix lookup of collation sequence value during regexp matching.
8555
8556         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8557         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8558
8559         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8560         * lib/regex.h: Cleanup namespace.
8561
8562         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8563         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8564
8565         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8566         * lib/regex_internal.h: Prevent some declarations and definitions
8567         to be seen when used in tests.
8568
8569         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8570         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8571         __libc_lock_* macros if not _LIBC.
8572         (struct re_dfa_t): Add lock.
8573
8574 2012-02-07  Eric Blake  <eblake@redhat.com>
8575
8576         maint.mk: also prohibit lower-case @var@
8577         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8578         lower case, like @top_srcdir@.
8579
8580 2012-02-04  Eric Blake  <eblake@redhat.com>
8581
8582         canonicalize: avoid uninitialized memory use
8583         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8584         random '/' left in dest.
8585         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8586
8587 2012-02-04  Bruno Haible  <bruno@clisp.org>
8588
8589         isatty: Fix test failure of ptsname_r on native Windows.
8590         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8591         and don't set errno.
8592         (isatty): Test first whether fd is valid. Set errno when returning 0.
8593
8594 2012-02-04  Bruno Haible  <bruno@clisp.org>
8595
8596         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8597         * tests/test-spawn-pipe-main.c: Include progname.h.
8598         (main): Invoke set_program_name.
8599         * modules/spawn-pipe-tests (Depends-on): Add progname.
8600
8601         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8602         * tests/test-nonblocking-socket-main.c: Include progname.h.
8603         (main): Invoke set_program_name.
8604         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8605
8606         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8607         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8608         (main): Invoke set_program_name.
8609         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8610
8611 2012-02-04  Eric Blake  <eblake@redhat.com>
8612
8613         canonicalize-lgpl: fix // handling
8614         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8615
8616         canonicalize: fix // handling
8617         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8618         /// to //, since only // is special.
8619
8620 2012-02-04  Bruno Haible  <bruno@clisp.org>
8621
8622         ioctl: Fix test failure on native Windows.
8623         * lib/ioctl.c: Include msvc-nothrow.h.
8624         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8625
8626 2012-02-04  Bruno Haible  <bruno@clisp.org>
8627
8628         fsync: Avoid test failure on native Windows.
8629         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8630         read-only.
8631
8632 2012-02-04  Bruno Haible  <bruno@clisp.org>
8633
8634         sys_select: Avoid syntax error on OpenBSD 5.0.
8635         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8636         currently being included, just include the system's <sys/select.h>.
8637
8638 2012-02-04  Bruno Haible  <bruno@clisp.org>
8639
8640         sys_select: Avoid syntax error on OpenBSD 5.0.
8641         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8642         <sys/select.h>, not before.
8643         Reported by Jiri B <jirib@devio.us>.
8644
8645 2012-02-04  Bruno Haible  <bruno@clisp.org>
8646
8647         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8648         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8649         global variables.
8650         * tests/test-get-rusage-data.c (main): Likewise.
8651         Reported by Jim Meyering.
8652
8653 2012-02-04  Bruno Haible  <bruno@clisp.org>
8654
8655         stdioext: Fix last commit.
8656         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8657
8658 2012-02-03  Bruno Haible  <bruno@clisp.org>
8659
8660         stdioext: Add tentative support for Plan9.
8661         * lib/stdio-impl.h: Include <errno.h>.
8662         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8663         * lib/freadable.c (freadable): Likewise.
8664         * lib/fwritable.c (fwritable): Likewise.
8665         * lib/fbufmode.c (fbufmode): Likewise.
8666         * lib/freading.c (freading): Likewise.
8667         * lib/fwriting.c (fwriting): Likewise.
8668         * lib/freadptr.c (freadptr): Likewise.
8669         * lib/freadseek.c (freadptrinc): Likewise.
8670         * lib/freadahead.c (freadahead): Likewise.
8671         * lib/fpurge.c (fpurge): Likewise.
8672         * lib/fseeko.c (rpl_fseeko): Likewise.
8673         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8674         Reported by Jens Staal <staal1978@gmail.com>.
8675
8676 2012-02-02  Jim Meyering  <meyering@redhat.com>
8677
8678         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8679         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8680         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8681         not even to try to add the attribute.  Instead, add a pragma to suppress
8682         the suggestion/warning.
8683
8684 2012-01-31  Karl Berry  <karl@gnu.org>
8685
8686         setstate doc: typo.
8687         * doc/posix-functions/setstate.texi (setstate): { not (.
8688
8689 2012-01-31  Bruno Haible  <bruno@clisp.org>
8690
8691         popen: Make more robust on Windows.
8692         * lib/popen.c: On native Windows, use the _popen based code even if
8693         HAVE_POPEN is set.
8694         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8695         environment variable on native Windows.
8696
8697 2012-01-30  Bruno Haible  <bruno@clisp.org>
8698
8699         pclose: Fix typo.
8700         * lib/stdio.in.h (pclose): Fix typo in warning message.
8701
8702 2012-01-30  Bruno Haible  <bruno@clisp.org>
8703
8704         doc about getlogin_r, setstate.
8705         * doc/posix-functions/getlogin_r.texi: List the incompatible
8706         declaration problem under "not fixed by gnulib".
8707         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8708         problem on Solaris 11 and other platforms.
8709
8710 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8711             Bruno Haible  <bruno@clisp.org>
8712
8713         poll tests: Make test more robust.
8714         * tests/test-poll.c: Include macros.h.
8715         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8716         return value of various I/O operations.
8717         * modules/poll-tests (Files): Add tests/macros.h.
8718
8719 2012-01-30  Bruno Haible  <bruno@clisp.org>
8720
8721         sys_stat: Fix support for mingw64 and MSVC.
8722         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8723         header files already do it.
8724         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8725         stat itself.
8726         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8727
8728 2012-01-30  Bruno Haible  <bruno@clisp.org>
8729
8730         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8732         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8733
8734 2012-01-29  Bruno Haible  <bruno@clisp.org>
8735
8736         quotearg: Fix test failure on MacOS X 10.5.
8737         * tests/test-quotearg-simple.c: Include localcharset.h.
8738         (main): If the locale encoding is not ASCII, bypass the tests of
8739         locale_quoting_style and clocale_quoting_style.
8740         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8741
8742 2012-01-29  Jim Meyering  <meyering@redhat.com>
8743
8744         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8745         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8746         detect uses of canonicalize_file_name.
8747
8748 2012-01-28  Bruno Haible  <bruno@clisp.org>
8749
8750         test-framework-sh: Fix test failure with AIX 7.1 diff.
8751         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8752         in column 1, like 'diff -c' does.
8753         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8754         whether 'diff -u' is used. Instead, test whether the output contains
8755         some '@' character.
8756
8757 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8758
8759         strtoimax: eliminate need for stdint.h, inttypes.h checks
8760         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8761         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8762         the prerequisites for a recently-introduced strtoimax test.
8763         I guess this might cause strtoimax to be replaced when not
8764         strictly necessary on older hosts, but this shouldn't introduce
8765         any bugs and it should make Emacs 'configure' faster on typical
8766         modern hosts.  Problem discovered when importing the latest gnulib
8767         to an Emacs test version.
8768         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8769
8770 2012-01-28  Bruno Haible  <bruno@clisp.org>
8771
8772         sys_time: Override 'struct timeval' on some native Windows platforms.
8773         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8774         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8775         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8776         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8777         needs to be overridden.
8778         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8779         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8780         * tests/test-sys_select.c: Check that the tv_sec member has the same
8781         size as a 'time_t'.
8782         * tests/test-sys_time.c: Likewise.
8783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8784         is set, set also REPLACE_GETTIMEOFDAY.
8785         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8786         convert the resulting 'struct timeval' before returning.
8787         * lib/select.c: Include <sys/time.h>.
8788         (select, timeval): Undefine at the right place.
8789         * modules/select (Depends-on): Add sys_time.
8790         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8791         some Windows platforms.
8792         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8793
8794 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8795
8796         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8797         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8798         an integer.
8799         * lib/fcntl.c (dupfd): Likewise.
8800         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8801
8802 2012-01-28  Bruno Haible  <bruno@clisp.org>
8803
8804         fcntl: Avoid compilation error on native Windows.
8805         * modules/fcntl (Depends-on): Add 'close'.
8806
8807 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8808
8809         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8810         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8811         pointer to an integer.
8812         * lib/poll.c (IsConsoleHandle): Likewise.
8813         * lib/isatty.c (IsConsoleHandle): Likewise.
8814
8815 2012-01-28  Jim Meyering  <meyering@redhat.com>
8816
8817         doc: clarify README-release
8818         * top/README-release: Clarify: you should make a point to have
8819         the latest stable versions of build tools in your PATH, and the
8820         reference to buildreq is solely for its list of tool names, not
8821         for its minimal-functional version numbers.
8822         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8823
8824         maint.mk: use more readable (yet functionally equivalent) quoting
8825         It is common to quote a single quote in a single quoted string like
8826         this:  '...'\''...'.  Unless you know the idiom, that looks like
8827         gibberish, so prefer to double-quote the string when possible.
8828         Then you can use a more readable, lone single quote: "...'..."
8829         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8830         "don't" is more readable than the equivalent 'don'\''t'.
8831         (sc_cast_of_x_alloc_return_value): Likewise.
8832         (sc_cast_of_alloca_return_value): Likewise.
8833         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8834         rather than '\'':'\''.
8835
8836 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8837
8838         stdalign: relax _Alignof and tighten _Alignas test
8839         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8840         as it was too strict: alignof must divide offsetof, but it need
8841         not equal offsetof.  Inspired by Joseph S. Myers's comment
8842         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8843         Conversely, tighten the _Alignas test a bit, as the resulting
8844         alignment must be exactly 8.
8845
8846 2012-01-27  Bruno Haible  <bruno@clisp.org>
8847
8848         stdalign: Document the last change.
8849         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8850
8851 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8852
8853         stdalign: check that alignof and offsetof are consistent
8854         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8855         Problem reported for gnulib by Richard W.M. Jones in
8856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8857
8858 2012-01-27  Jim Meyering  <meyering@redhat.com>
8859
8860         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8861         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8862         convert a sequence with gaps to the minimal containing range.
8863         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8864         * tests/test-update-copyright.sh: Test for this.
8865         The FSF confirmed it is ok to do this, assuming there is at
8866         least one significant change per year in the affected range:
8867         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8868
8869 2012-01-26  Bruno Haible  <bruno@clisp.org>
8870
8871         pipe2: refine doc about thread-safety
8872         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8873         multithread-safety problem.
8874         * doc/glibc-functions/accept4.texi: Likewise.
8875
8876 2012-01-26  Bruno Haible  <bruno@clisp.org>
8877
8878         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8879         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8880         In the test program, include <fcntl.h>, for O_RDONLY.
8881
8882 2012-01-26  Eric Blake  <eblake@redhat.com>
8883
8884         pipe2: document lack of thread-safety in replacement
8885         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8886         issue in replacement.
8887         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8888         Based on a report by Eric Wong.
8889
8890 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8891             Bruno Haible  <bruno@clisp.org>
8892
8893         malloca: Avoid warnings on x86_64 mingw64.
8894         * lib/malloca.c: Include <stdint.h>.
8895         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8896         * modules/malloca (Depends-on): Add stdint.
8897         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8898
8899 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8900
8901         obstack: remove __STDC__ conditionals
8902         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8903         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8904         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8905         m4/include_next.m4 as the only gnulib-maintained places that still
8906         refer to __STDC__.
8907
8908 2012-01-24  Bruno Haible  <bruno@clisp.org>
8909
8910         havelib: Modern quoting.
8911         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8912         the recent change to the GNU coding standards.
8913
8914 2012-01-24  Bruno Haible  <bruno@clisp.org>
8915
8916         stdint: Improve support for Android.
8917         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8918         Reported by Simon Josefsson <simon@josefsson.org>.
8919
8920 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8921
8922         doc: omit trailing empty lines from INSTALL etc.
8923         * doc/Makefile (INSTALL): Omit trailing empty lines.
8924         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8925         omit trailing empty lines.  This simplifies the build procedure.
8926
8927 2012-01-23  Jim Meyering  <meyering@redhat.com>
8928
8929         tests: avoid spurious warnings about gl_sockets_startup
8930         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8931         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8932         reporting a "statement with no effect".
8933         * tests/test-accept.c (main): Mark as "(void)".
8934         * tests/test-accept4.c (main): Likewise.
8935         * tests/test-bind.c (main): Likewise.
8936         * tests/test-connect.c (main): Likewise.
8937         * tests/test-getpeername.c (main): Likewise.
8938         * tests/test-getsockname.c (main): Likewise.
8939         * tests/test-getsockopt.c (main): Likewise.
8940         * tests/test-listen.c (main): Likewise.
8941         * tests/test-recv.c (main): Likewise.
8942         * tests/test-recvfrom.c (main): Likewise.
8943         * tests/test-send.c (main): Likewise.
8944         * tests/test-sendto.c (main): Likewise.
8945         * tests/test-setsockopt.c (main): Likewise.
8946         * tests/test-shutdown.c (main): Likewise.
8947
8948 2012-01-21  Bruno Haible  <bruno@clisp.org>
8949
8950         locale-fr.m4: Fix for Android.
8951         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8952         failure of the test program on Bionic libc.
8953
8954 2012-01-21  Jim Meyering  <meyering@redhat.com>
8955
8956         bootstrap: fail when bootstrap_post_import_hook fails
8957         Otherwise, it's far too easy to miss diagnostics emitted
8958         between gnulib-tool's output and that of running configure.
8959         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8960
8961 2012-01-17  Jim Meyering  <meyering@redhat.com>
8962
8963         maint: enable sc_trailing_blank
8964         * build-aux/pmccabe.css: Remove trailing blanks.
8965         * doc/acl-cygwin.txt: Likewise.
8966         * doc/gnu-oids.texi: Likewise
8967         * cfg.mk: Enable sc_trailing_blank.
8968         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8969
8970 2012-01-17  Jim Meyering  <meyering@redhat.com>
8971
8972         maint: enable sc_prohibit_openat_without_use
8973         * cfg.mk: Enable sc_prohibit_openat_without_use.
8974         Exempt lib/selinux-at.c.
8975
8976 2012-01-17  Jim Meyering  <meyering@redhat.com>
8977
8978         maint: enable sc_prohibit_cloexec_without_use
8979         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8980         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8981
8982 2012-01-17  Jim Meyering  <meyering@redhat.com>
8983
8984         maint: enable sc_prohibit_intprops_without_use
8985         * cfg.mk: Enable sc_prohibit_intprops_without_use
8986         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8987
8988 2012-01-17  Jim Meyering  <meyering@redhat.com>
8989
8990         maint: enable sc_prohibit_hash_pjw_without_use
8991         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8992         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8993         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8994         following " (".
8995
8996 2012-01-17  Jim Meyering  <meyering@redhat.com>
8997
8998         maint: enable double-word-prohibiting rule
8999         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9000         Exempt three files.
9001
9002 2012-01-17  Jim Meyering  <meyering@redhat.com>
9003
9004         maint: remove empty lines at EOF, but excluding modules/*
9005         Apply syntax rules at home as well as abroad.  Most changes
9006         were induced by running this:
9007           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9008             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9009             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9010         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9011         Exempt modules/* and two binary files.
9012         Also exempt doc/INSTALL*, per request from Bruno Haible.
9013         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9014         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9015         * doc/Copyright/request-assign.future: Likewise.
9016         * doc/Copyright/request-disclaim.changes: Likewise.
9017         * doc/INSTALL: Likewise.
9018         * doc/INSTALL.ISO: Likewise.
9019         * doc/INSTALL.UTF-8: Likewise.
9020         * doc/acl-cygwin.txt: Likewise.
9021         * doc/acl-resources.txt: Likewise.
9022         * doc/fdl-1.2.texi: Likewise.
9023         * doc/fdl-1.3.texi: Likewise.
9024         * doc/fdl.texi: Likewise.
9025         * lib/argp-pin.c: Likewise.
9026         * lib/round.c: Likewise.
9027         * lib/unicase/u16-totitle.c: Likewise.
9028         * lib/unictype/block_test.c: Likewise.
9029         * lib/uninorm/canonical-decomposition.c: Likewise.
9030         * m4/README: Likewise.
9031         * m4/relocatable-lib.m4: Likewise.
9032         * tests/test-isnand-nolibm.c: Likewise.
9033         * tests/test-isnand.c: Likewise.
9034         * tests/uninorm/NormalizationTest.txt: Likewise.
9035
9036 2012-01-17  Jim Meyering  <meyering@redhat.com>
9037
9038         maint: add framework to run syntax-check rules against gnulib sources
9039         * cfg.mk: New file, to disable all currently-failing tests.
9040         We'll enable them one by one, as they are made to pass.
9041         * Makefile (sc_maint): New rule.
9042
9043 2012-01-21  Bruno Haible  <bruno@clisp.org>
9044
9045         stdint: Add support for Android.
9046         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9047         include the system's <stdint.h>.
9048         Reported by Simon Josefsson <simon@josefsson.org>.
9049
9050 2012-01-19  Jim Meyering  <meyering@redhat.com>
9051
9052         bootstrap: add bootstrap_post_import_hook
9053         Bison does still need something like the gnulib_mk_hook whose
9054         invocation I had to remove along with slurp in commit 767ccd40.
9055         Technically, we could get along without it, but doing so would
9056         have required living with a warning and a mandatory post-bootstrap
9057         automake rerun.
9058         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9059         (bootstrap_post_import_hook): New function.
9060         Invoke it after gnulib-tool --import and before autoreconf.
9061
9062 2012-01-18  Jim Meyering  <meyering@redhat.com>
9063
9064         gitlog-to-changelog: don't use "no_"-prefixed variable name
9065         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9066         to enable both --cluster and --no-cluster.  Change variable name,
9067         s/\$no_cluster/$cluster/, and reverse usage to match.
9068
9069         gitlog-to-changelog: use "||", not "or" in expressions
9070         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9071         expressions.
9072
9073 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9074
9075         gitlog-to-changelog: new option --no-cluster
9076         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9077         clustering of adjacent commit messages.
9078
9079 2012-01-17  Jim Meyering  <meyering@redhat.com>
9080
9081         maint: spell file systems with two words, not one
9082         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9083         two words, not one.
9084
9085 2012-01-16  Jim Meyering  <meyering@redhat.com>
9086
9087         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9088         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9089
9090 2012-01-16  Eric Blake  <eblake@redhat.com>
9091
9092         bootstrap: cater to autoconf 2.59
9093         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9094         is not available.
9095
9096         bootstrap: properly check for libtool
9097         * build-aux/bootstrap (libtoolize): Also run libtool when older
9098         usage is detected.
9099
9100 2012-01-15  Bruno Haible  <bruno@clisp.org>
9101
9102         Improve support for MSVC 9.
9103         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9104         clashes on MSVC.
9105         * lib/fcntl.in.h: Likewise.
9106         * lib/stdlib.in.h: Likewise.
9107         * lib/sys_stat.in.h: Likewise.
9108
9109 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9110
9111         gnupload: we hold the master copy of this script now
9112         For motivation and more information, see:
9113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9114         * build-aux/gnupload: Make it clear in the heading comments that the
9115         master copy of this file is maintained by gnulib.  Since we are at
9116         it, bump its copyright year and ...
9117         ($scriptversion): ... the date in its version.
9118         ($usage): Patches and bug reports should be sent to the gnulib list,
9119         not the automake one.
9120         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9121         anymore.
9122
9123 2012-01-15  Bruno Haible  <bruno@clisp.org>
9124
9125         Fix module 'random'.
9126         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9127         initstate, setstate are declared.
9128
9129 2012-01-14  Bruno Haible  <bruno@clisp.org>
9130
9131         Tests for module 'random'.
9132         * modules/random-tests: New file.
9133         * tests/test-random.c: New file, based on tests/test-random_r.c.
9134
9135         New module 'random'.
9136         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9137         declarations.
9138         * lib/random.c: New file, based on glibc/stdlib/random.c.
9139         * m4/random.m4: New file.
9140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9141         HAVE_RANDOM.
9142         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9143         * modules/random: New file.
9144         * config/srclist.txt: Add an entry for random.c.
9145         * doc/posix-functions/random.texi: Mention the 'random' module.
9146         * doc/posix-functions/initstate.texi: Likewise.
9147         * doc/posix-functions/setstate.texi: Likewise.
9148         * doc/posix-functions/srandom.texi: Likewise.
9149
9150 2012-01-12  Bruno Haible  <bruno@clisp.org>
9151
9152         random_r: Use common idioms.
9153         * lib/random_r.c: Include <stdlib.h> first.
9154
9155         random_r: Override incompatible API on AIX, OSF/1.
9156         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9157         Override the system function if REPLACE_RANDOM_R is 1.
9158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9159         and OSF/1, set REPLACE_RANDOM_R.
9160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9161         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9162         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9163         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9164         * doc/glibc-functions/random_r.texi: Likewise.
9165         * doc/glibc-functions/setstate_r.texi: Likewise.
9166
9167         random_r: Support for MSVC 9.
9168         * lib/random_r.c: Include stdint.h, not inttypes.h.
9169
9170 2012-01-12  Eric Blake  <eblake@redhat.com>
9171
9172         inet_ntop: guard extra work by IF_LINT
9173         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9174         better code generation when not checking for warnings.
9175         Suggested by Paul Eggert and Jim Meyering.
9176
9177         strptime: fix regression on mingw
9178         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9179         Fix regression.  Reported by Bruno Haible.
9180
9181 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9182             Bruno Haible  <bruno@clisp.org>
9183
9184         copy-file: add error-code-returning variant.
9185         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9186         (qcopy_file_preserving): New declaration.
9187         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9188         copy_file_preserving. Change return type to 'int'. Don't emit an error
9189         message here.
9190         (copy_file_preserving): New function.
9191         * tests/test-copy-file.c: Include <stdlib.h>.
9192         (main): Test qcopy_file_preserving if the environment variable
9193         NO_STDERR_OUTPUT is set.
9194         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9195         with NO_STDERR_OUTPUT
9196         * tests/test-copy-file-2.sh: Likewise.
9197
9198 2012-01-10  Bruno Haible  <bruno@clisp.org>
9199
9200         copy-file: Use 'quote' module consistently.
9201         * lib/copy-file.c (copy_file_preserving): Use quote().
9202
9203         copy-file: Refactor.
9204         * lib/copy-file.c: Include quote.h.
9205         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9206         message here.
9207         * modules/copy-file (Depends-on): Add quote.
9208
9209         acl: Export qcopy_acl.
9210         * lib/acl.h (qcopy_acl): New declaration.
9211         * lib/copy-acl.c (qcopy_acl): Make non-static.
9212
9213         acl: Rename a local variable.
9214         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9215
9216         acl: Align return values of copy_acl and qcopy_acl.
9217         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9218         maybe < -1.
9219
9220 2012-01-11  Eric Blake  <eblake@redhat.com>
9221
9222         strptime: silence gcc warnings
9223         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9224         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9225         Reported by Daniel P. Berrange.
9226
9227         inet_ntop: silence gcc warning
9228         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9229         Reported by Daniel P. Berrange.
9230
9231 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9232
9233         getloadavg test: skip the test on GNU/Linux without /proc mounted
9234         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9235         file.  When /proc is not mounted, it always fails with ENOENT.
9236         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9237         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9238
9239 2012-01-10  Bruno Haible  <bruno@clisp.org>
9240
9241         regex: Avoid link error on MSVC 9.
9242         * modules/regex (Depends-on): Add wctype.
9243
9244 2012-01-10  Bruno Haible  <bruno@clisp.org>
9245
9246         doc: Mention --with-tests option.
9247         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9248         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9249         --with-tests.
9250         Reported by Reuben Thomas.
9251
9252 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9253
9254         users.txt: order package names lexicographically.
9255         * users.txt: Order package names lexicographically.
9256
9257 2012-01-10  Jim Meyering  <meyering@redhat.com>
9258
9259         maint.mk: fix description in comment
9260         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9261
9262         ignore-value: remove deprecated ignore_ptr function
9263         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9264         * NEWS: Note this.
9265
9266 2012-01-09  Jim Meyering  <meyering@redhat.com>
9267
9268         test-init.sh: avoid a subshell
9269         * tests/test-init.sh: Remove protective subshell.
9270         Suggested by Bernhard Voelker.  While a subshell is normally
9271         required to protect against older shells (Solaris, FreeBSD) that
9272         warn about a missing program before performing redirection, the
9273         shell-selection tests performed by init.sh probably exclude any
9274         offending shell.
9275
9276 2012-01-08  Bruno Haible  <bruno@clisp.org>
9277
9278         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9279         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9280         variable.
9281
9282 2012-01-08  Bruno Haible  <bruno@clisp.org>
9283
9284         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9285         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9287         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9288         macro.
9289         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9290         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9291         * lib/spawn_faction_addopen.c: Add workaround implementation if
9292         HAVE_WORKING_POSIX_SPAWN.
9293         * modules/spawn (Makefile): Substitute
9294         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9295         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9296         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9297         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9298         (Depends-on): Update conditions.
9299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9300         the Solaris 11 bug.
9301
9302 2012-01-08  Bruno Haible  <bruno@clisp.org>
9303
9304         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9305         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9307         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9308         macro.
9309         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9311         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9312         HAVE_WORKING_POSIX_SPAWN.
9313         * modules/spawn (Makefile): Substitute
9314         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9315         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9316         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9318         (Depends-on): Update conditions.
9319         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9320         the Solaris 11 bug.
9321
9322 2012-01-08  Bruno Haible  <bruno@clisp.org>
9323
9324         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9325         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9326         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9328         HAVE_WORKING_POSIX_SPAWN.
9329         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9330         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9332         * lib/spawn_faction_addclose.c: Add workaround implementation if
9333         HAVE_WORKING_POSIX_SPAWN.
9334         * modules/spawn (Makefile): Substitute
9335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9336         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9337         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9338         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9339         (Depends-on): Update conditions.
9340         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9341         the Solaris 11 bug.
9342
9343 2012-01-08  Bruno Haible  <bruno@clisp.org>
9344
9345         doc: Update for Solaris 11 2011-11.
9346         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9347         * m4/printf.m4: Update comments.
9348
9349 2012-01-08  Bruno Haible  <bruno@clisp.org>
9350
9351         mktime: Avoid compilation error on Solaris 11.
9352         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9353
9354 2012-01-08  Bruno Haible  <bruno@clisp.org>
9355
9356         doc: Small fix.
9357         * doc/posix-headers/nl_types.texi: Correct platforms list.
9358
9359 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9360
9361         Add lgpl-3.0 module.
9362         * MODULES.html.sh (Support for building documentation): Add
9363         lgpl-3.0.
9364         * modules/lgpl-3.0: New file.
9365
9366 2012-01-08  Jim Meyering  <meyering@redhat.com>
9367
9368         select.c: indent with spaces, not TABs
9369         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9370
9371 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9372
9373         quotearg: do not use grave accent for left quote
9374         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9375         locale_quoting_style.
9376         (quotearg_buffer_restyled): Fix example.
9377         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9378
9379 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9380
9381         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9382         Most programs do not have translation catalogs for English and much
9383         less separate catalogs for British and American English.  Drop the
9384         suggestion to translators about these two, and provide it
9385         automatically for Unicode locales.  Like most programs, even those
9386         using American English, we use single quotation marks.  This conflicts
9387         with the American typographic convention, but works better when you
9388         cite the entire error message within double quotes.  It also tries not
9389         to clash with established practice and with what non-gnulib programs
9390         will usually do.
9391         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9392         using an UTF-8 or GB-18030 locale.  The list of other locales with
9393         quotes was provided by Bruno Haible.
9394         (quotearg_buffer_restyled): Adjust instructions to translators.
9395         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9396         text, since this would be wrong when using Unicode.
9397         * modules/quotearg: Depend on c-strcaseeq.
9398
9399 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9400
9401         quotearg: fix Wikipedia link
9402         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9403
9404 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9405
9406         Fix for mingw with MSVC9.
9407         * m4/ld-version-script.m4: Check that compiler rejects version
9408         scripts with syntax errors.  Reported by Bruno Haible
9409         <bruno@clisp.org>.
9410
9411 2012-01-06  Bruno Haible  <bruno@clisp.org>
9412
9413         Talk about "native Windows API", not "Woe32".
9414         * lib/accept4.c: Update comments to mention native Windows.
9415         * lib/execute.c: Likewise.
9416         * lib/fatal-signal.c: Likewise.
9417         * lib/localcharset.c: Likewise.
9418         * lib/nanosleep.c: Likewise.
9419         * lib/nl_langinfo.c: Likewise.
9420         * lib/pclose.c: Likewise.
9421         * lib/pipe-filter-gi.c: Likewise.
9422         * lib/pipe-filter-ii.c: Likewise.
9423         * lib/pipe.c: Likewise.
9424         * lib/pipe2.c: Likewise.
9425         * lib/popen.c: Likewise.
9426         * lib/progreloc.c: Likewise.
9427         * lib/relocatable.c: Likewise.
9428         * lib/sigaction.c: Likewise.
9429         * lib/sigprocmask.c: Likewise.
9430         * lib/spawn-pipe.h: Likewise.
9431         * lib/spawn-pipe.c: Likewise.
9432         * lib/spawni.c: Likewise.
9433         * lib/stat-time.h: Likewise.
9434         * lib/w32spawn.h: Likewise.
9435         * tests/test-isatty.c: Likewise.
9436         * lib/config.charset: More comments.
9437         * doc/gnulib-intro.texi: Mention native Windows.
9438         * doc/posix-functions/_Exit_C99.texi: Likewise.
9439         * doc/posix-headers/fcntl.texi: Likewise.
9440
9441 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9442
9443         argp: Avoid crash if translator uses % characters in a translation.
9444         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9445         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9446
9447 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9448
9449         doc: C11 and C++11 are now official
9450         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9451         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9452         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9453         * modules/stdalign:
9454         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9455
9456 2012-01-06  Bruno Haible  <bruno@clisp.org>
9457
9458         uc-is-grapheme-break tests: Tweak.
9459         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9460         message.
9461
9462 2012-01-06  Bruno Haible  <bruno@clisp.org>
9463
9464         test-init.sh: correct the test for diff -u
9465         * tests/test-init.sh: Also redirect stdout to /dev/null.
9466
9467 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9468
9469         Use ', not `, for quoting output.
9470         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9471         (print_changelog_deltas, get_tool_versions, main program):
9472         * build-aux/git-version-gen:
9473         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9474         * build-aux/move-if-change (help):
9475         * build-aux/useless-if-before-free (usage, main program):
9476         * check-module (parse_module_file, usage)
9477         (find_included_lib_files, check_module):
9478         * lib/argmatch.c (main) [TEST]:
9479         * lib/argp-help.c (_help):
9480         * lib/getopt1.c (main) [TEST]:
9481         * lib/git-merge-changelog.c (usage):
9482         * lib/xstrtol-error.c (xstrtol_error):
9483         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9484         * m4/argz.m4 (gl_FUNC_ARGZ):
9485         * m4/bison.m4 (gl_BISON):
9486         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9487         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9488         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9489         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9490         * m4/gc-random.m4 (gl_GC_RANDOM):
9491         * m4/intl.m4 (gt_CHECK_DECL):
9492         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9494         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9495         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9496         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9497         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9498         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9499         * tests/test-dirname.c (main):
9500         * tests/test-getpass.c (main):
9501         * tests/test-iconvme.c (main):
9502         * tests/test-parse-datetime.c (LOG):
9503         * tests/test-xstrtoimax.sh:
9504         * tests/test-xstrtol.sh:
9505         * tests/test-xstrtoll.sh:
9506         * tests/test-xstrtoumax.sh:
9507         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9508         * top/GNUmakefile (abort-due-to-no-makefile):
9509         Quote 'like this', not `like this', as per the recent change to
9510         the GNU coding standards.
9511
9512 2012-01-05  Bruno Haible  <bruno@clisp.org>
9513
9514         strtoimax: Don't force a replacement on systems where intmax_t is int.
9515         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9516         'intmax_t' is not larger than 'int'.
9517         Reported by Pádraig Brady <P@draigBrady.com>.
9518
9519 2012-01-05  Bruno Haible  <bruno@clisp.org>
9520
9521         doc: Mention NetBSD bugs.
9522         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9523         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9524
9525 2012-01-05  Bruno Haible  <bruno@clisp.org>
9526
9527         strtoumax tests: Enhance tests.
9528         * tests/test-strtoumax.c (main): Add tests for large values.
9529
9530 2012-01-05  Bruno Haible  <bruno@clisp.org>
9531
9532         strtoimax: Work around AIX 5.1 bug.
9533         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9534         definition.
9535         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9536         Set HAVE_STRTOIMAX.
9537         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9538         REPLACE_STRTOIMAX.
9539         * modules/inttypes-incomplete (Makefile.am): Substitute
9540         REPLACE_STRTOIMAX.
9541         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9542         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9543         (Depends-on): Update conditions.
9544         * tests/test-strtoimax.c (main): Add tests for large values.
9545         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9546
9547 2012-01-05  Bruno Haible  <bruno@clisp.org>
9548
9549         inttypes: Modernize.
9550         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9551         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9552         (Makefile.am): Update inttypes.h rule.
9553
9554 2012-01-05  Jim Meyering  <meyering@redhat.com>
9555
9556         init.sh: don't waste a subshell just to redirect stderr
9557         * tests/init.sh: In testing for diff -u and diff -c, use a
9558         stderr-redirecting exec inside `...` rather than a subshell.
9559
9560         test-init.sh: avoid failure on HP-UX 11.00
9561         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9562         resolves to diff -c or cmp.  Reported by Bruno Haible.
9563
9564 2012-01-05  Bruno Haible  <bruno@clisp.org>
9565
9566         Tests for module 'strtoull'.
9567         * modules/strtoull-tests: New file.
9568         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9569
9570 2012-01-05  Bruno Haible  <bruno@clisp.org>
9571
9572         Tests for module 'strtoll'.
9573         * modules/strtoll-tests: New file.
9574         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9575
9576 2012-01-05  Bruno Haible  <bruno@clisp.org>
9577
9578         Tests for module 'strtoul'.
9579         * modules/strtoul-tests: New file.
9580         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9581
9582 2012-01-05  Bruno Haible  <bruno@clisp.org>
9583
9584         Tests for module 'strtol'.
9585         * modules/strtol-tests: New file.
9586         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9587
9588 2012-01-04  Jim Meyering  <meyering@redhat.com>
9589
9590         test-init.sh: accommodate Solaris 5.10's different diff -u output
9591         * tests/test-init.sh: Also exempt @@ lines from the comparison
9592         of diff output, since Solaris 5.10 and GNU diff formats differ.
9593         Reported by Stefano Lattarini.
9594
9595 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9596
9597         test-posixtm: don't assume signed integer wraparound
9598         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9599         after signed integer overflow.  Inspired by (though it may not
9600         fix) Bruno Haible's bug report in
9601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9602
9603         Spell out "Windows 9x" and "Windows XP".
9604         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9605         "Windows 9x" and "WinXP" with "Windows XP".
9606
9607 2012-01-04  Jim Meyering  <meyering@redhat.com>
9608
9609         test-vc-list-files-cvs.sh: remove obsolete comment
9610         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9611         double exit.  Now that's all encapsulated via skip_ and Exit.
9612
9613 2012-01-04  Bruno Haible  <bruno@clisp.org>
9614
9615         Talk about "native Windows API", not "Win32".
9616         * lib/classpath.c: Update comments to mention native Windows.
9617         * lib/csharpexec.c: Likewise.
9618         * lib/dup2.c: Likewise.
9619         * lib/error.c: Likewise.
9620         * lib/fcntl.c: Likewise.
9621         * lib/filename.h: Likewise.
9622         * lib/findprog.c: Likewise.
9623         * lib/get-rusage-as.c: Likewise.
9624         * lib/get-rusage-data.c: Likewise.
9625         * lib/getpagesize.c: Likewise.
9626         * lib/javaexec.c: Likewise.
9627         * lib/msvc-inval.c: Likewise.
9628         * lib/msvc-nothrow.c: Likewise.
9629         * lib/nanosleep.c: Likewise.
9630         * lib/nonblocking.c: Likewise.
9631         * lib/printf-parse.c: Likewise.
9632         * lib/setlocale.c: Likewise.
9633         * lib/sigaction.c: Likewise.
9634         * lib/strerror_r.c: Likewise.
9635         * lib/tmpdir.c: Likewise.
9636         * lib/vasnprintf.c: Likewise.
9637         * lib/w32spawn.h: Likewise.
9638         * lib/waitpid.c: Likewise.
9639         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9640         * m4/locale-ar.m4: Likewise.
9641         * m4/locale-fr.m4: Likewise.
9642         * m4/locale-ja.m4: Likewise.
9643         * m4/locale-tr.m4: Likewise.
9644         * m4/locale-zh.m4: Likewise.
9645         * m4/printf.m4: Likewise.
9646         * tests/test-cloexec.c: Likewise.
9647         * tests/test-copy-acl.sh: Likewise.
9648         * tests/test-copy-file.sh: Likewise.
9649         * tests/test-file-has-acl.sh: Likewise.
9650         * tests/test-set-mode-acl.sh: Likewise.
9651         * tests/test-dup-safer.c: Likewise.
9652         * tests/test-dup2.c: Likewise.
9653         * tests/test-dup3.c: Likewise.
9654         * tests/test-fcntl.c: Likewise.
9655         * tests/test-nonblocking-pipe.h: Likewise.
9656         * tests/test-nonblocking-socket.h: Likewise.
9657         * tests/test-pipe.c: Likewise.
9658         * tests/test-pipe2.c: Likewise.
9659         * tests/test-spawn-pipe-child.c: Likewise.
9660         * doc/acl-resources.txt: Likewise.
9661         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9662         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9663         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9664         * lib/localcharset.c: Update comments to mention native Windows.
9665         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9666         * lib/localename.c: Likewise.
9667         * lib/progreloc.c: Likewise.
9668         * lib/relocatable.c: Likewise.
9669         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9670         (windows_compute_revents): Renamed from win32_compute_revents.
9671         (windows_compute_revents_socket): Renamed from
9672         win32_compute_revents_socket.
9673         * lib/select.c: Update comments to mention native Windows.
9674         (windows_poll_handle): Renamed from win32_poll_handle.
9675         * m4/threadlib.m4: Update comments to mention native Windows.
9676         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9677         --enable-threads=windows instead of --enable-threads=win32. Set
9678         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9679         * lib/glthread/lock.h: Update comments to mention native Windows.
9680         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9681         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9682         USE_WIN32_THREADS.
9683         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9684         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9685         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9686         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9687         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9688         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9689         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9690         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9691         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9692         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9693         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9694         * tests/test-tls.c: Likewise.
9695         Rationale:
9696         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9697         on both 32-bit and 64-bit Windows systems.
9698         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9699         line of distinction is between "native Windows" on one side and Unix/
9700         POSIX systems on the other side. More details in
9701         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9702         Suggested by Paul Eggert.
9703
9704 2012-01-03  Bruno Haible  <bruno@clisp.org>
9705
9706         isatty: Support for MSVC 9.
9707         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9708         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9709         (_isatty_nothrow): New function.
9710         (isatty): Use it instead of _isatty.
9711         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9712         * lib/poll.c (IsConsoleHandle): Likewise.
9713         * lib/select.c (IsConsoleHandle): Likewise.
9714         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9715         (gl_PREREQ_ISATTY): New macro.
9716         * modules/isatty (Depends-on): Add msvc-inval.
9717         (configure.ac): Invoke gl_PREREQ_ISATTY.
9718
9719 2012-01-03  Jim Meyering  <meyering@redhat.com>
9720
9721         maint.mk: remove temporary transition aid from over 1.5 years ago
9722         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9723         purpose was to aid in the transition (avoiding silent malfunction)
9724         from that old name to the new _sc_search_regexp.  This shim was
9725         added by commit 219c504b.
9726
9727         init.sh: do not try to accommodate compare arguments starting with "-"
9728         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9729         compare arguments that start with "-".  Besides, we do not worry
9730         about this when invoking diff or cmp; why start now with sed?
9731         Using "--" to separate options from argument would trigger sed
9732         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9733         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9734
9735 2012-01-02  Bruno Haible  <bruno@clisp.org>
9736
9737         Enhance tests for module 'isatty'.
9738         * modules/isatty-tests (Depends-on): Add pipe-posix.
9739         * tests/test-isatty.c: Include <fcntl.h>.
9740         (DEV_NULL): New macro.
9741         (main): Test the resut of isatty() also on regular files, pipes, and
9742         /dev/null.
9743
9744         New module 'isatty'.
9745         * lib/unistd.in.h (isatty): New declaration.
9746         * lib/isatty.c: New file, based on an idea of
9747         Bastien Roucariès <roucaries.bastien@gmail.com>.
9748         * m4/isatty.m4: New file.
9749         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9751         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9752         REPLACE_ISATTY.
9753         * modules/isatty: New file.
9754         * doc/posix-functions/isatty.texi: Mention the new module.
9755         Suggested by Paolo Bonzini.
9756
9757 2012-01-02  Bruno Haible  <bruno@clisp.org>
9758
9759         canonicalize: Tweak 2011-12-29 commit.
9760         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9761         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9762
9763 2012-01-02  Jim Meyering  <meyering@redhat.com>
9764
9765         gitlog-to-changelog: describe input syntax in --help output
9766         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9767
9768         gitlog-to-changelog: fix typo in --help: show backslash before email @
9769         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9770         in sources, but not in actual output.
9771
9772 2011-12-30  Jim Meyering  <meyering@redhat.com>
9773
9774         gitlog-to-changelog: don't malfunction when name contains %-directive
9775         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9776         in a name string cause trouble.  E.g., with a user name of "%s",
9777         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9778
9779 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9780
9781         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9782         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9783         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9784         the "  (tiny change)" notation that is appended to the standard
9785         ChangeLog "date  name  email" header line.
9786
9787 2012-01-01  Jim Meyering  <meyering@redhat.com>
9788
9789         test-framework-sh: init.sh: fix "make dist" failure
9790         When using gnulib-tool's --with-tests option and any module that
9791         depends on test-framework-sh, "make dist" would fail due to the
9792         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9793         in the gltests directory, and not in the gllib/ directory.
9794         One way to work around that is to move the EXTRA_DIST += init.sh
9795         from the primary module to the -tests one:
9796         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9797         * modules/test-framework-sh (Makefile.am): ...not here.
9798         Reported by Tom G. Christensen in
9799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9800
9801         version-etc: update copyright year reported by --version
9802         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9803
9804 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9805
9806         canonicalize: only stat() if required
9807         * lib/canonicalize.c (canonicalize_filename_mode):
9808         Avoid calling l?stat() when both CAN_MISSING,
9809         and CAN_NOLINKS are set, as we neither need
9810         to resolve symlinks or test component existence.
9811
9812 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9813
9814         doc: cover st_ino issues once; add OpenVMS etc.
9815         * doc/posix-functions/stat.texi (stat):
9816         * doc/posix-functions/lstat.texi (lstat):
9817         * doc/posix-functions/fstatat.texi (fstatat):
9818         * doc/posix-functions/fstat.texi (fstat):
9819         Move general 'struct stat' stuff to sys_stat.texi,
9820         leaving behind a pointer.
9821         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9822         Merge duplicate info about 'struct stat' problems into here.
9823         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9824         and suggest partial workarounds.
9825
9826         same-inode: port to OpenVMS
9827         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9828         three st_ino values.
9829
9830 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9831
9832         canonicalize: fix references to stat() and lstat()
9833         * lib/canonicalize.c (canonicalize_filename_mode):
9834         Ensure references always resolve to a replacement
9835         function if required (even via a macro).
9836
9837 2011-12-30  Jim Meyering  <meyering@redhat.com>
9838
9839         gitlog-to-changelog: remove a little duplication
9840         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9841         rather than twice.
9842
9843 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9844
9845         canonicalize: add support for not resolving symlinks
9846         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9847         indicate we don't want to follow symlinks.  Also
9848         provide CAN_MODE_MASK to aid setting these existing
9849         mutually exclusive values.
9850         * lib/canonicalize.c (canonicalize_filename_mode):
9851         Extract the flags from can_mode parameter, which
9852         are currently just used to select between stat()
9853         and lstat().  Also ensure that mutually exclusive
9854         values are flagged immediately as invalid.
9855         * tests/test-canonicalize.c: Verify symlinks are
9856         not followed, and that invalid flag combinations
9857         are diagnosed.
9858
9859 2011-12-25  Jim Meyering  <meyering@redhat.com>
9860
9861         gitlog-to-changelog: do not clump multi-paragraph entries
9862         Identical header lines (date,name,email+coauthors) are suppressed,
9863         thus putting all entries with those same characteristics under
9864         a single header.  However, when a log entry consists of two or
9865         more paragraphs, it may not be clear where it starts and ends.
9866         This change makes it so that such an entry is always separated
9867         from others by a header line, even when that header would
9868         otherwise be suppressed.
9869         * build-aux/gitlog-to-changelog: Implement the above.
9870         Inspired by a related request from Stefano Lattarini in
9871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9872
9873 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         announce-gen: fix `cmd' typo in diagnostic
9876         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9877         diagnostic: a missing '$' meant that the command was not output.
9878
9879 2011-12-23  Jim Meyering  <meyering@redhat.com>
9880
9881         test-framework-sh: distribute init.sh
9882         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9883         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9884         fail due to the lack of init.sh.
9885
9886         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9887         * modules/atexit-tests: Rather than listing tests/init.sh,
9888         now that there's a module for it, simply depend on that new module.
9889         * modules/closein-tests: Likewise.
9890         * modules/exclude-tests: Likewise.
9891         * modules/getcwd-tests: Likewise.
9892         * modules/perror-tests: Likewise.
9893         * modules/pread-tests: Likewise.
9894         * modules/pwrite-tests: Likewise.
9895         * modules/vc-list-files-tests: Likewise.
9896         * modules/verify-tests: Likewise.
9897         * modules/xalloc-die-tests: Likewise.
9898         * modules/xstrtoimax-tests: Likewise.
9899         * modules/xstrtol-tests: Likewise.
9900         * modules/xstrtoll-tests: Likewise.
9901         * modules/xstrtoumax-tests: Likewise.
9902         * modules/yesno-tests: Likewise.
9903
9904 2011-12-22  Jim Meyering  <meyering@redhat.com>
9905
9906         test-framework-sh: add minimal tests of init.sh's compare function
9907         * modules/test-framework-sh-tests: New file.
9908         * tests/test-init.sh: New file.
9909
9910         test-framework-sh: new module
9911         * modules/test-framework-sh: New file.
9912         * MODULES.html.sh (Support for maintaining and releasing projects):
9913         List it.
9914
9915         init.sh: do not emit simulated diff output to stderr
9916         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9917
9918 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9919
9920         .gitignore: ignore gnulib.dvi and regex.info
9921         * doc/.gitignore:add gnulib.dvi and regex.info
9922
9923 2011-12-22  Jim Meyering  <meyering@redhat.com>
9924
9925         init.sh: correct previous change
9926         * tests/init.sh (compare): My previous change was wrong.
9927         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9928
9929         init.sh: avoid unwarranted test failure when using "set -e"
9930         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9931         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9932         a use like "compare exp out" would get evoke an unconditional failure.
9933
9934 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9935
9936         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9937         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9938         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9939         autoreconf that did not.
9940         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9941         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9942
9943 2011-12-17  Jim Meyering  <meyering@redhat.com>
9944
9945         bootstrap: remove some now-unneeded code
9946         This script arose back when gnulib-tool was young.
9947         Since then, it has seen improvements that render much of this
9948         script unnecessary.  In particular, it can now make symlinks
9949         to the files it uses.  Also, I no longer see as much value in
9950         marking files as read-only via comments.
9951         If you relied on the symlink-creation feature of the preceding
9952         version of this script, you can get most of that functionality
9953         by adding the --symlink option to the definition of
9954         gnulib_tool_option_extras in your bootstrap.conf file.
9955         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9956         Run autopoint and libtoolize *before* gnulib-tool.
9957         After it, run an abbreviated autoreconf, rather than a loop around
9958         all tools.
9959         (slirp, bt_mark_as_generated): Remove functions.
9960
9961 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9962
9963         ftoastr: fix typo
9964         * lib/ftoastr.h: Fix misspelling in comment.
9965
9966 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9967
9968         * top/README-release: fix punctuation.
9969
9970 2011-12-17  Jim Meyering  <meyering@redhat.com>
9971
9972         bootstrap: correct the recent buildreq change
9973         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9974         had no effect.
9975         * build-aux/bootstrap (buildreq): Bracket each search term with
9976         "*...*", so that the shell "case" statement works as intended.
9977         Add comments.
9978
9979 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9980
9981         build: let bootstrap resort to wget when downloading .po files
9982         * build-aux/bootstrap (download_po_files): Fallback to wget when
9983         downloading the .po files via rsync fails.  This is necessary to
9984         bootstrap from behind a strict firewall.
9985
9986 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9987
9988         stdint: don't assume C++11 when compiling with g++
9989         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9991         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9992         work also in C++ before C++11, as that improperly inhibits
9993         generating a substitute stdint.h for that case.
9994
9995 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9996
9997         alloca: protect comment from gnulib-tool
9998         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9999         that gnulib-tool doesn't think it's a license, and munge it to
10000         say "GCC version 3".
10001
10002 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10003
10004         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10005         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10006         $(abs_top_builddir) instead of $(top_builddir).
10007
10008 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10009
10010         strftime-tests: also test nanoseconds
10011         * tests/test-strftime.c (T): Add a test of %N.
10012
10013 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10014
10015         inttypes, stdint: add C++11 support
10016         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10017         when including inttypes.h and stdint.h.  Support this change to
10018         the standard.
10019         * doc/posix-headers/inttypes.texi (inttypes.h):
10020         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10021         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10022         Define if not defined already, for the benefit of pre-C++11 hosts.
10023         Define the standard format macros (e.g., PRId8) always.
10024         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10025         Likewise, if __cpluspus.  Define the standard constant and limit
10026         macros (e.g., INT8_C, INT8_MAX) always.
10027         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10028         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10029         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10030         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10031         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10032         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10033         Likewise.
10034
10035 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10036
10037         nonblocking tests: Fix test failure on Linux/PPC.
10038         Suggested by Prerna Saxena in
10039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10040         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10041         Set to 1100000.
10042
10043 2011-12-12  Jim Meyering  <meyering@redhat.com>
10044
10045         argmatch: don't hard-code `' when listing valid option arguments
10046         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10047         use the quote function to add quotes.  Use fputs rather than
10048         fprintf for the format string with no format directive.
10049
10050 2011-12-07  Eric Blake  <eblake@redhat.com>
10051
10052         bootstrap: detect tools required by gnulib-tool
10053         * build-aux/bootstrap (buildreq): Provide minimum implicit
10054         dependencies.
10055         * DEPENDENCIES: Mention patch as a prereq.
10056
10057 2011-12-04  Bruno Haible  <bruno@clisp.org>
10058
10059         sethostname: Port to Windows platforms.
10060         * lib/sethostname.c: Provide an alternate implementation for Windows
10061         platforms.
10062         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10063         (main): Skip the test if sethostname() fails with EPERM. On Windows
10064         platforms, don't check the result of gethostname().
10065
10066 2011-12-04  Bruno Haible  <bruno@clisp.org>
10067             Jim Meyering  <meyering@redhat.com>
10068
10069         tests: Avoid spurious error message on platforms without mktemp program.
10070         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10071
10072 2011-12-04  Bruno Haible  <bruno@clisp.org>
10073
10074         sethostname: Fix documentation.
10075         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10076         "not fixed" section.
10077
10078 2011-12-03  Bruno Haible  <bruno@clisp.org>
10079
10080         gnulib-tool: Verify that the License field is present and non-empty.
10081         * gnulib-tool (func_get_license_raw): New function, extracted from
10082         func_get_license.
10083         (func_get_license): Use it. Warn if the module is not a test module and
10084         has no license.
10085         Suggested by Jim Meyering.
10086
10087 2011-12-03  Bruno Haible  <bruno@clisp.org>
10088
10089         sethostname tests: Fix link error on mingw.
10090         * tests/test-sethostname1.c: New file, extracted from
10091         tests/test-sethostname.c.
10092         * tests/test-sethostname2.c: New file, extracted from
10093         tests/test-sethostname.c.
10094         * tests/test-sethostname.c: Remove file.
10095         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10096         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10097         (Depends-on): Add gethostname.
10098         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10099         Link the latter with $(GETHOSTNAME_LIB).
10100
10101         sethostname tests: Fix compilation error on mingw.
10102         * tests/test-sethostname.c: Don't include <sys/types.h>.
10103         (geteuid): Use a dummy value without uid_t.
10104         * modules/sethostname-tests (Depends-on): Remove sys_types.
10105
10106         sethostname tests: Avoid a gcc warning.
10107         * tests/test-sethostname.c (main): Remove an unused variable.
10108
10109         Tweak last commit.
10110         * modules/sethostname-tests (Files): Sort by decreasing importance.
10111         (configure.ac): Check for geteuid.
10112         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10113         the test when there's nothing to test. Drop an unnecessary cast.
10114         Improve an error message. Verify that the final sethostname() call
10115         succeeds.
10116
10117 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10118
10119         Add a test suite for the sethostname module.
10120         * modules/sethostname-tests: New file.  A test program
10121         for the sethostname module.
10122         * tests/test-sethostname.c: Likewise.
10123
10124 2011-12-03  Bruno Haible  <bruno@clisp.org>
10125
10126         Tweak last commit.
10127         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10128         Fix preprocessor directives indentation. Fix typos.
10129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10130         * modules/unistd (Makefile): Likewise.
10131
10132 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10133
10134         Integrate the sethostname module into unistd.
10135         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10136         into the unistd.h header.
10137         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10138         preprocessor directives.
10139         * modules/unistd: Setup the Makefile substitutions of the
10140         SETHOSTNAME preprocessor directives.
10141
10142 2011-12-03  Bruno Haible  <bruno@clisp.org>
10143
10144         Tweak last commit.
10145         * lib/sethostname.c: Don't include <string.h>.
10146         (sethostname): No need to copy the argument string to the stack. Don't
10147         call clearerr. Preserve errno when fprintf failed.
10148         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10149         Don't invoke AC_REPLACE_FUNCS.
10150         * modules/sethostname (Link): Remove empty section.
10151         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10152         failure problem.
10153
10154 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10155
10156         New module 'sethostname'.
10157         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10158         for systems that lack it.
10159         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10160         sethostname declaration and function.
10161         * modules/sethostname: New file.  Define the sethostname module.
10162
10163 2011-12-03  Bruno Haible  <bruno@clisp.org>
10164
10165         Tweak last commit.
10166         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10167
10168 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10169
10170         Split the HOST_NAME_MAX detection into a separate m4 macro.
10171         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10172         macro so it can be used by the pending sethostname module.
10173
10174 2011-12-03  Bruno Haible  <bruno@clisp.org>
10175
10176         Fix module descriptions syntax.
10177         * modules/argv-iter (License): Fix syntax.
10178         * modules/di-set (License): Likewise.
10179         * modules/ino-map (License): Likewise.
10180         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10181
10182 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10183
10184         stdalign: port to Clang 3.0
10185         Problem reported by Simon Josefsson in
10186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10187         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10188         which has <stdalign.h> but which does not define alignof.
10189         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10190
10191 2011-12-01  Eric Blake  <eblake@redhat.com>
10192
10193         mktempd: silence dd usage
10194         * build-aux/mktempd (rand_bytes): Silence dd.
10195
10196 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10197
10198         manywarnings: Don't mention gcc version in docstring.
10199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10200         Jim Meyering <meyering@redhat.com>.
10201
10202 2011-11-30  Jim Meyering  <meyering@redhat.com>
10203
10204         hash: mark a few floating point constants with "f" suffix
10205         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10206         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10207         floating point constants with "f", since they're destined to be
10208         saved/used as "float"s.
10209
10210 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10211
10212         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10213         * tests/test-float.c (test_long_double): Correct and re-enable the
10214         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10215
10216 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10217
10218         Avoid subtracting two pointers that don't point into the same block.
10219         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10220         only pointers into the same memory block are subtracted. We cannot
10221         assume that sizeof (ptrdiff_t) == sizeof (void *).
10222
10223 2011-11-29  Eric Blake  <eblake@redhat.com>
10224
10225         maint.mk: add syntax check for use of compare from init.sh
10226         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10227         moved here from coreutils.
10228
10229         manywarnings: drop -Wunsuffixed-float-constants
10230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10231         '1.0D', which is the only way to silence this warning for 'double'.
10232
10233 2011-11-29  Jim Meyering  <meyering@redhat.com>
10234
10235         hash: mark compute_bucket_size with the pure attribute
10236         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10237
10238         quotearg, propername: correct pragma guard expression
10239         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10240         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10241
10242 2011-11-28  Jim Meyering  <meyering@redhat.com>
10243
10244         propername: do not mark proper_name with the const attribute
10245         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10246         since it examines data pointed to by its parameter.
10247         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10248         the suggestion from -Wsuggest-attribute=const.
10249
10250         propername: mark one more function as const
10251         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10252
10253 2011-11-27  Jim Meyering  <meyering@redhat.com>
10254
10255         mark functions with const and pure attributes
10256
10257         Mark functions per suggestions from gcc-4.6 when using these options:
10258         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10259         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10260         Follow these guidelines: when possible, apply the attribute to
10261         an extern declaration, not to its definition.  Apply it to the
10262         definition only when the definition is static.
10263         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10264         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10265         * lib/base64.h (isbase64): Likewise.
10266         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10267         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10268         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10269         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10270         (c_tolower, c_toupper): Likewise.
10271         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10272         * lib/chdir-long.c (find_non_slash): Likewise.
10273         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10274         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10275         * lib/file-type.h (file_type): Likewise.
10276         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10277         * lib/filevercmp.c (verrevcmp): Likewise.
10278         * lib/freadahead.h (freadahead): Likewise.
10279         * lib/fts.c (fts_maxarglen): Likewise.
10280         * lib/hash-pjw.h (hash_pjw): Likewise.
10281         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10282         * lib/hash.c (is_prime, next_prime): Likewise.
10283         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10284         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10285         (hash_table_ok, hash_get_first, hash_string): Likewise.
10286         (compute_bucket_size): Likewise.
10287         * lib/i-ring.h (i_ring_empty): Likewise.
10288         * lib/isnan.c (isnanl): Likewise.
10289         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10290         * lib/memcasecmp.h (memcasecmp): Likewise.
10291         * lib/memchr2.h (memchr2): Likewise.
10292         * lib/memcmp2.h (memcmp2): Likewise.
10293         * lib/parse-datetime.y (lookup_zone): Likewise.
10294         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10295         [!WINDOWS_SOCKETS]: Likewise.
10296         * lib/strnlen1.h (strnlen1): Likewise.
10297         * lib/uniwidth.in.h (uc_width): Likewise.
10298         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10299         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10300         (quoting_options_from_style): Add a comment.
10301         * lib/propername.h (proper_name): Add a comment.
10302
10303 2011-11-27  Bruno Haible  <bruno@clisp.org>
10304
10305         Remove unused macros from !_LIBC code in glibc-borrowed files.
10306         * lib/fnmatch.c (STRCOLL): Remove macro.
10307         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10308         * lib/glob.c (__stat, __readdir64): Remove macros.
10309         * lib/tempname.c (__open64, __xstat64): Remove macros.
10310         Suggested by Paul Eggert.
10311
10312 2011-11-27  Bruno Haible  <bruno@clisp.org>
10313
10314         getcwd: Fix link error on MSVC 9.
10315         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10316
10317 2011-11-27  Bruno Haible  <bruno@clisp.org>
10318
10319         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10320         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10321         HAVE_OPENDIR is 0.
10322         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10323         HAVE_CLOSEDIR is 0.
10324         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10325         is 0.
10326         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10327
10328 2011-11-27  Bruno Haible  <bruno@clisp.org>
10329
10330         getcwd: Fix bug from 2011-08-17.
10331         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10332         platforms that need it.
10333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10334         code of 4 to be a failure, not a success. This ensures that
10335         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10336
10337 2011-11-27  Bruno Haible  <bruno@clisp.org>
10338
10339         binary-io tests: Avoid test failure on mingw when libtool is used.
10340         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10341         Don't verify the size of t-bin-out1.tmp here.
10342         * tests/test-binary-io.sh: Verify it here.
10343         Reported by Simon Josefsson.
10344
10345 2011-11-26  Bruno Haible  <bruno@clisp.org>
10346
10347         Fix conflict between two instantiations of module 'unistd'.
10348         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10349         ${include_guard_prefix} also in the autoconf snippet.
10350         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10352         GNULIB_UNISTD_H_GETOPT.
10353         * modules/getopt-posix (configure.ac): Set the
10354         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10355         * modules/getopt-gnu (configure.ac): Likewise.
10356         * modules/unistd (Makefile.am): Change the substitution value of
10357         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10358         Reported by Simon Josefsson.
10359
10360 2011-11-25  Bruno Haible  <bruno@clisp.org>
10361
10362         pagealign_alloc: Doc and comments.
10363         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10364         module.
10365         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10366
10367 2011-11-25  Jim Meyering  <meyering@redhat.com>
10368
10369         test-update-copyright.sh: avoid false-positive failure
10370         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10371         around false positive failure on Cygwin/Windows.  The latter was
10372         matching erroneously-created files with names like
10373         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10374
10375 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10376
10377         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10378         * m4/valgrind-tests.m4: Check that the parameters that will be
10379         used works, not just a subset of them.  Reported by Bruno Haible
10380         <bruno@clisp.org>.
10381
10382 2011-11-24  Jim Meyering  <meyering@redhat.com>
10383
10384         test-stdalign.c: comment out long double tests
10385         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10386         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10387         error: '_Alignas' specifiers cannot reduce alignment of \
10388         'static_longdouble_alignas'.
10389
10390 2011-11-22  Jim Meyering  <meyering@redhat.com>
10391
10392         init.sh: make "compare /dev/null FILE" output more readable
10393         * tests/init.sh (compare_): Document the preferred order of arguments.
10394         (emit_diff_u_header_): New function.
10395         (compare_dev_null_): Emit a simulated diff, rather than just the
10396         contents of the unexpected file.  Suggestion from Bruno Haible.
10397
10398 2011-11-21  Jim Meyering  <meyering@redhat.com>
10399             Eric Blake  <eblake@redhat.com>
10400
10401         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10402         * tests/init.sh: Make our compare function slightly more portable.
10403         Reported by Bruno Haible in
10404         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10405
10406 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10407
10408         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10409         before using it, in code that ends up in config.h.
10410
10411 2011-11-20  Bruno Haible  <bruno@clisp.org>
10412
10413         getcwd: Work around getcwd bug on AIX 5..7.
10414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10415         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10416         Use a different value for gl_cv_func_getcwd_path_max. Move the
10417         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10418         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10419         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10420         Define HAVE_MINIMALLY_WORKING_GETCWD.
10421         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10422         where it is not even minimally working, that is, on AIX.
10423         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10424         m4/getcwd-path-max.m4.
10425         (main): Update exit code computation.
10426         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10427         getcwd does not handle long file names.
10428
10429 2011-11-20  Bruno Haible  <bruno@clisp.org>
10430
10431         getcwd: Fix bug from 2009-09-10.
10432         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10433         like "no".
10434
10435 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10436
10437         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10438
10439 2011-11-20  Bruno Haible  <bruno@clisp.org>
10440
10441         fma tests: Avoid shadowing local variables.
10442         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10443         expected.
10444
10445 2011-11-20  Bruno Haible  <bruno@clisp.org>
10446
10447         copysignf tests: Fix.
10448         * tests/test-copysignf.c: Fix signature check.
10449
10450 2011-11-20  Bruno Haible  <bruno@clisp.org>
10451
10452         fma: Remove unused code.
10453         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10454         unused macros.
10455
10456 2011-11-20  Bruno Haible  <bruno@clisp.org>
10457
10458         sethostname: Fix doc about AIX.
10459         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10460         sethostname; it has it.
10461
10462         sethostname: Mention more portability problems.
10463         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10464         problem.
10465         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10466
10467 2011-11-19  Bruno Haible  <bruno@clisp.org>
10468
10469         Depend on module fcntl-h when AT_FDCWD is used.
10470         * modules/utimens (Depends-on): Add fcntl-h.
10471         * modules/areadlinkat (Depends-on): Likewise.
10472         * modules/areadlinkat-with-size (Depends-on): Likewise.
10473         * modules/faccessat (Depends-on): Likewise.
10474         * modules/fchmodat (Depends-on): Likewise.
10475         * modules/fchownat (Depends-on): Likewise.
10476         * modules/getcwd (Depends-on): Likewise.
10477         * modules/mkdirat (Depends-on): Likewise.
10478         * modules/mkfifoat (Depends-on): Likewise.
10479         * modules/readlinkat (Depends-on): Likewise.
10480         * modules/symlinkat (Depends-on): Likewise.
10481         * modules/dup2-tests (Depends-on): Likewise.
10482         * modules/fdutimensat-tests (Depends-on): Likewise.
10483         * modules/futimens-tests (Depends-on): Likewise.
10484
10485 2011-11-19  Bruno Haible  <bruno@clisp.org>
10486
10487         euidaccess: Update a comment.
10488         * lib/euidaccess.c: Update comment about platforms with faccessat.
10489
10490 2011-11-19  Bruno Haible  <bruno@clisp.org>
10491
10492         openat: Fix file list.
10493         * modules/openat (Files): Remove lib/at-func.c.
10494
10495 2011-11-19  Bruno Haible  <bruno@clisp.org>
10496
10497         fstatat: Simplify.
10498         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10499         gnulib should define rpl_fstatat, there is a
10500         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10501
10502 2011-11-19  Bruno Haible  <bruno@clisp.org>
10503
10504         Ensure 'inline' can be used in tests/test-utimens-common.h.
10505         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10506         * modules/futimens-tests (configure.ac): Likewise.
10507         * modules/utimens-tests (configure.ac): Likewise.
10508         * modules/utimensat-tests (configure.ac): Likewise.
10509
10510 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10511
10512         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10513         not hash_insert0.
10514         (hash_insert_if_absent): Doc fix.
10515
10516 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10517
10518         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10519
10520 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         test-getcwd: disambiguate exit status
10523         * tests/test-getcwd.c (test_long_name): Return 0..7.
10524         (main): Exit with an unambiguous exit status.  The old
10525         code yielded a mysterious mixture of two failure codes.
10526
10527         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10528         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10529         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10530         rpl_fstatat or fstatat.  This should fix the other problem
10531         reported by Kai Habel in
10532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10533         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10535         and I reproduced it on a Solaris 8 host we still have in production.
10536
10537 2011-11-18  Jim Meyering  <meyering@redhat.com>
10538
10539         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10540         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10541         Add a sentence to the comment.
10542         (hash_insert0): New function that simply calls hash_insert_if_absent.
10543         * lib/hash.h (hash_insert_if_absent): Declare it.
10544         (hash_insert0): Add deprecation attribute.
10545         (_GL_ATTRIBUTE_DEPRECATED): Define.
10546         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10547         not hash_insert0.
10548         * NEWS: Mention it, even though it's not really an incompatible change.
10549
10550 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10551
10552         openat: avoid compilation failure due to lack of <errno.h> inclusion
10553         * lib/openat.c: Include <errno.h>.
10554
10555 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10556
10557         * modules/getcwd (Depends-on): Add fdopendir.
10558         This fixes one of the two problems reported by Kai Habel in
10559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10560
10561         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10562         stdalign problem reported by Ian Beckwith in
10563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10564         * modules/crypto/gc-arcfour (Depends-on):
10565         Depend conditionally on crypto/arcfour.
10566         * modules/crypto/gc-arctwo (Depends-on):
10567         Depend conditionally on crypto/arctwo.
10568         * modules/crypto/gc-des (Depends-on):
10569         Depend conditionally on crypto/des.
10570         * modules/crypto/gc-hmac-md5 (Depends-on):
10571         Depend conditionally on crypto/hmac-md5.
10572         * modules/crypto/gc-hmac-sha1 (Depends-on):
10573         Depend conditionally on crypto/hmac-sha1.
10574         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10575         * modules/crypto/gc-md4 (Depends-on):
10576         Depend conditionally on crypto/md4.
10577         * modules/crypto/gc-md5 (Depends-on):
10578         Depend conditionally on crypto/md5.
10579         * modules/crypto/gc-rijndael (Depends-on):
10580         Depend conditionally on crypto/rijndael.
10581         * modules/crypto/gc-sha1 (Depends-on):
10582         Depend conditionally on crypto/sha1.
10583         * modules/crypto/gc-arcfour:
10584         * modules/crypto/gc-arctwo:
10585         * modules/crypto/gc-des:
10586         * modules/crypto/gc-hmac-md5:
10587         * modules/crypto/gc-hmac-sha1:
10588         * modules/crypto/gc-md2:
10589         * modules/crypto/gc-md4:
10590         * modules/crypto/gc-md5:
10591         * modules/crypto/gc-rijndael:
10592         * modules/crypto/gc-sha1:
10593         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10594         now that the conditional dependencies do the work for us.
10595
10596 2011-11-17  Jim Meyering  <meyering@redhat.com>
10597
10598         tests: factor st_ctime-comparison out of two headers
10599         * tests/test-utimens-common.h (ctime_compare): Define.
10600         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10601         * tests/test-lutimens.h (test_lutimens): Likewise.
10602         * tests/test-utimens.h (test_utimens): Likewise.
10603
10604         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10605         Invoke the test program via an init.sh-using wrapper.
10606         * tests/test-getcwd.sh: New file.
10607         * modules/getcwd-tests (Files): Add it.
10608         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10609
10610 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10611
10612         gitlog-to-changelog: support multi-author commits.
10613         The FSF cares about keeping track of all authors of patches to its
10614         projects, but Git doesn't provide obvious support for multi-author
10615         changesets. Consensus seems to be forming around the use of extra
10616         Signed-off-by inspired lines in the log message formatted as
10617         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10618         multi-author commits between version control systems.
10619         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10620         log message and output in standard ChangeLog multi-author format.
10621         Reported by Peter Rosin <peda@lysator.liu.se>
10622
10623 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10624             Bruno Haible  <bruno@clisp.org>
10625
10626         Fix some modules' file list.
10627         * modules/fstatat (Files): Add m4/lstat.m4.
10628         * modules/openat (Files): Likewise.
10629         * modules/unlinkat (Files): Likewise.
10630
10631 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10632
10633         maint.mk: fix tight-scope.mk generation in VPATH builds.
10634         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10635         reference with $(srcdir) so that the file is found correctly even
10636         when running `make syntax-check' in a VPATH build.
10637
10638 2011-11-13  Bruno Haible  <bruno@clisp.org>
10639             Jim Meyering  <meyering@redhat.com>
10640
10641         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10642         * tests/init.sh (compare): Remove "No differences encountered" or
10643         synonymous output from the 'diff' program.
10644
10645 2011-11-13  Bruno Haible  <bruno@clisp.org>
10646
10647         Makefile: Tweak indentation.
10648         * Makefile: Use tab as first character in every line that contains rule
10649         commands.
10650
10651 2011-11-13  Bruno Haible  <bruno@clisp.org>
10652
10653         Syntax check for copyright statements.
10654         * check-copyright: New file.
10655         * Makefile (sc_check_copyright): New rule.
10656
10657 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10658
10659         * build-aux/git-version-gen: Add --prefix to configure the tag
10660         match string.
10661
10662 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10663
10664         * build-aux/git-version-gen: Add --help and --version.
10665
10666 2011-11-12  Jim Meyering  <meyering@redhat.com>
10667
10668         revamp the other test-exclude?.sh scripts to use init.sh, too
10669         * tests/test-exclude1.sh: Use init.sh.
10670         * tests/test-exclude2.sh: Likewise.
10671         * tests/test-exclude3.sh: Likewise.
10672         * tests/test-exclude4.sh: Likewise.
10673         * tests/test-exclude5.sh: Likewise.
10674         * tests/test-exclude6.sh: Likewise.
10675         * tests/test-exclude7.sh: Likewise.
10676         * tests/test-exclude8.sh: Likewise.
10677         * modules/exclude-tests (Files): List init.sh.
10678
10679         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10680         These shell scripts ignored failure of the binary test-exclude,
10681         so making the latter return 77 didn't cause them to be skipped.
10682         * tests/test-exclude5.sh: Exit with test-exclude's error status
10683         when that program fails.  Revamp to use init.sh.
10684         * tests/test-exclude2.sh: Likewise.
10685
10686         test-exclude: fix a typo
10687         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10688
10689 2011-11-11  Bruno Haible  <bruno@clisp.org>
10690
10691         obstack: Fix compilation error on MSVC 9.
10692         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10693
10694 2011-11-11  Jim Meyering  <meyering@redhat.com>
10695
10696         test-exclude: skip tests rather than failing on deficient systems
10697         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10698         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10699         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10700         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10701
10702 2011-11-10  Bruno Haible  <bruno@clisp.org>
10703
10704         ptsname_r test: Avoid gcc warning on glibc systems.
10705         * tests/test-ptsname_r.c (null_ptr): New function.
10706         (test_errors): Use it.
10707
10708 2011-11-10  Bruno Haible  <bruno@clisp.org>
10709
10710         ptsname_r: Avoid compilation error on OSF/1 5.1.
10711         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10713         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10714         function is not declared or incompatibly declared.
10715         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10716         * modules/ptsname_r (Depends-on, configure.ac): Update.
10717         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10718
10719 2011-11-10  Bruno Haible  <bruno@clisp.org>
10720
10721         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10722         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10723         When cross-compiling, guess yes on all platforms except AIX.
10724         Reported by Ludovic Courtès <ludo@gnu.org>.
10725
10726 2011-11-09  Bruno Haible  <bruno@clisp.org>
10727
10728         ptsname_r tests: Fix bugs.
10729         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10730         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10731
10732 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10733
10734         fstatat: work with cross-compilation
10735         Problem reported by Ludovic Courtès in
10736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10737         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10738         "cross-compiling" and assume the bug is present.  Replace
10739         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10740         an inverted sense, to be more conservative about our assumptions.
10741         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10742
10743 2011-11-09  Bruno Haible  <bruno@clisp.org>
10744
10745         Improve MODULES.html output.
10746         * modules/mkfifoat (Description): Use the word "function".
10747         * modules/readlinkat (Description): Likewise.
10748         * modules/symlinkat (Description): Likewise.
10749
10750 2011-11-09  Eric Blake  <eblake@redhat.com>
10751
10752         ptsname_r-tests: new test module
10753         * modules/ptsname_r-tests: New module.
10754         * tests/test-ptsname_r.c: New file.
10755
10756         ptsname_r: new module
10757         * modules/ptsname_r: New module.
10758         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10759         * lib/ptsname.c (__ptsname_r): Split...
10760         * lib/ptsname_r.c: ...into new file.
10761         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10762         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10763         * modules/stdlib (Makefile.am): Substitute witnesses.
10764         * lib/stdlib.in.h (ptsname_r): Declare it.
10765         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10766         * MODULES.html.sh (Misc): Likewise.
10767         * modules/ptsname (Depends-on): Alter dependency.
10768         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10769
10770 2011-11-09  Jim Meyering  <meyering@redhat.com>
10771
10772         announce-gen: be more concise when there's only one URL+tarball
10773         * build-aux/announce-gen (get_tool_versions): When you distribute
10774         only one type of tarball, combine the first two "Here are..."
10775         sections and make the key-checking grammar independent of
10776         how many tarballs there are.
10777
10778 2011-11-09  Eric Blake  <eblake@redhat.com>
10779
10780         openpty: provide a stub on mingw
10781         * lib/pty.in.h (includes): Provide forward declarations.
10782         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10783
10784         raise: fix mingw handling of SIGPIPE
10785         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10786
10787 2011-11-08  Bruno Haible  <bruno@clisp.org>
10788
10789         More conditional dependencies.
10790         * modules/faccessat (Depends-on): Add conditions.
10791         * modules/fchmodat (Depends-on): Likewise.
10792         * modules/fchownat (Depends-on): Likewise.
10793         * modules/fstatat (Depends-on): Likewise.
10794         * modules/mkfifoat (Depends-on): Likewise.
10795         * modules/readlinkat (Depends-on): Likewise.
10796         * modules/symlinkat (Depends-on): Likewise.
10797         * modules/unlinkat (Depends-on): Likewise.
10798         * modules/utimensat (Depends-on): Likewise.
10799         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10800         * modules/linkat (Depends-on): Refine the conditions.
10801         * modules/renameat (Depends-on): Likewise.
10802
10803 2011-11-08  Bruno Haible  <bruno@clisp.org>
10804
10805         faccessat: Move AC_LIBOBJ invocation to module description.
10806         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10807         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10808         invocation from here...
10809         * modules/faccessat (configure.ac): ... to here. Invoke
10810         gl_PREREQ_FACCESSAT.
10811
10812 2011-11-08  Bruno Haible  <bruno@clisp.org>
10813
10814         faccessat: Simplify autoconf macro.
10815         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10816         gl_FUNC_EUIDACCESS.
10817
10818 2011-11-08  Bruno Haible  <bruno@clisp.org>
10819
10820         renameat: Fix dependencies.
10821         * modules/renameat (Depends-on): Add stdbool.
10822
10823 2011-11-08  Bruno Haible  <bruno@clisp.org>
10824
10825         mkfifoat: Fix module description.
10826         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10827         not gl_UNISTD_MODULE_INDICATOR.
10828
10829 2011-11-08  Bruno Haible  <bruno@clisp.org>
10830
10831         fstatat: Remove unused dependency.
10832         * modules/fstatat (Depends-on): Remove fstat.
10833
10834 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10835
10836         GNUmakefile: behave when Makefile is missing.
10837         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10838
10839 2011-11-08  Bruno Haible  <bruno@clisp.org>
10840
10841         openat: Conditionalize dependencies.
10842         * lib/openat.c: Reduce the scope of some #includes.
10843         * modules/openat (Depends-on): Add conditions.
10844
10845 2011-11-07  Jim Meyering  <meyering@redhat.com>
10846
10847         maint.mk: extract GPG key ID without using a temporary file
10848         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10849         without using a temporary file.  Based on a suggestion from Werner Koch
10850         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10851
10852 2011-11-07  Eric Blake  <eblake@redhat.com>
10853
10854         grantpt: fix typo
10855         * lib/stdlib.in.h (grantpt): Check correct function.
10856
10857         maint.mk: silence new syntax check
10858         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10859
10860 2011-11-06  Bruno Haible  <bruno@clisp.org>
10861
10862         Doc about floating-point and math API.
10863         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10864         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10865
10866 2011-11-06  Bruno Haible  <bruno@clisp.org>
10867
10868         stdalign tests: Skip the test when compiled by Sun C.
10869         * tests/test-stdalign.c (main): Skip the test on Sun C.
10870
10871 2011-11-06  Bruno Haible  <bruno@clisp.org>
10872
10873         ansi-c++-opt: Complete the 2011-06-05 change.
10874         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10875         does not support namespaces, set the variable to "no", not to ":".
10876
10877 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10878
10879         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10880
10881 2011-11-06  Bruno Haible  <bruno@clisp.org>
10882
10883         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10884         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10885         (minus_zerol) [HP-UX]: New macro.
10886         (unary_minus) [HP-UX]: New function.
10887         (copysignl) [HP-UX]: Use unary_minus function.
10888
10889 2011-11-06  Bruno Haible  <bruno@clisp.org>
10890
10891         ldexp, ldexpf, ldexpl: Enhance tests.
10892         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10893         and tests/test-ldexpl.c.
10894         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10895         LDEXP, MIN_EXP, MAX_EXP): New macros.
10896         Include test-ldexp.h.
10897         (main): Just call test_function.
10898         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10899         infinity.h, nan.h.
10900         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10901         MAX_EXP): New macros.
10902         Include test-ldexp.h.
10903         (x, y): Remove variables.
10904         (main): Just call test_function.
10905         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10906         infinity.h, nan.h.
10907         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10908         MAX_EXP): New macros.
10909         Include test-ldexp.h.
10910         (x, y): Remove variables.
10911         (main): Just call test_function.
10912         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10913         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10914         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10915         (Depends-on): Add isnand-nolibm, signbit, float.
10916         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10917         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10918         (Depends-on): Add isnanf-nolibm, signbit, float.
10919
10920 2011-11-06  Bruno Haible  <bruno@clisp.org>
10921
10922         math tests: Cosmetics.
10923         * tests/test-math-c++.cc: Reorder declarations.
10924
10925 2011-11-05  Bruno Haible  <bruno@clisp.org>
10926
10927         fma*: Simplify test.
10928         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10929         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10930
10931         Tests for module 'fmal'.
10932         * modules/fmal-tests: New file.
10933         * tests/test-fmal1.c: New file.
10934         * tests/test-fmal2.c: New file.
10935
10936         New module 'fmal'.
10937         * lib/math.in.h (fmal): New declaration.
10938         * lib/fmal.c: New file.
10939         * m4/fmal.m4: New file.
10940         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10942         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10943         REPLACE_FMAL.
10944         * modules/fmal: New file.
10945         * doc/posix-functions/fmal.texi: Mention the new module and the various
10946         bugs.
10947
10948         Tests for module 'fmaf'.
10949         * modules/fmaf-tests: New file.
10950         * tests/test-fmaf1.c: New file.
10951         * tests/test-fmaf2.c: New file.
10952
10953         New module 'fmaf'.
10954         * lib/math.in.h (fmaf): New declaration.
10955         * lib/fmaf.c: New file.
10956         * m4/fmaf.m4: New file.
10957         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10959         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10960         REPLACE_FMAF.
10961         * modules/fmaf: New file.
10962         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10963         bugs.
10964
10965         Tests for module 'fma'.
10966         * modules/fma-tests: New file.
10967         * tests/test-fma1.c: New file.
10968         * tests/test-fma1.h: New file.
10969         * tests/test-fma2.c: New file.
10970         * tests/test-fma2.h: New file.
10971
10972         New module 'fma'.
10973         * lib/math.in.h (fma): New declaration.
10974         * lib/fma.c: New file.
10975         * m4/fma.m4: New file.
10976         * m4/fegetround.m4: New file.
10977         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10979         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10980         REPLACE_FMA.
10981         * modules/fma: New file.
10982         * doc/posix-functions/fma.texi: Mention the new module and the various
10983         bugs.
10984
10985         Extend gl_MATHFUNC.
10986         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10987         Support 'void' as argument type.
10988         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10989
10990 2011-11-05  Jim Meyering  <meyering@redhat.com>
10991
10992         maint.mk: also prohibit inclusion of dirent.h without use
10993         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10994
10995 2011-11-05  Bruno Haible  <bruno@clisp.org>
10996
10997         ldexpl tests: Avoid test failure on MSVC 9.
10998         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10999         value. Needed in order to enforce the conversion from a value greater
11000         than LDBL_MAX to Infinity.
11001
11002 2011-11-05  Bruno Haible  <bruno@clisp.org>
11003
11004         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11005         * modules/at-internal: New file, extracted from modules/openat.
11006         * modules/openat-h: New file.
11007         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11008         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11009         * modules/openat (Description): Add reference to POSIX function.
11010         (Files): Remove lib/openat.h, lib/openat-proc.c.
11011         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11012         intprops, unistd.
11013         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11014         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11015         gl_FCNTL_MODULE_INDICATOR.
11016         (Include): Remove unistd.h, openat.h.
11017         * modules/areadlinkat (Files): Add lib/at-func.c.
11018         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11019         openat-die, openat-h, save-cwd.
11020         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11021         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11022         openat-die, openat-h, save-cwd, unistd.
11023         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11024         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11025         openat-h, save-cwd. Remove fcntl-h, openat.
11026         * modules/fchmodat (Files): Remove lib/openat.h.
11027         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11028         openat, stdbool, unistd.
11029         * modules/fchownat (Files): Remove lib/openat.h.
11030         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11031         openat, stdbool, sys_stat.
11032         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11033         lib/openat-proc.c.
11034         (Depends-on): Add at-internal.
11035         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11036         * modules/fstatat (Files): Remove lib/openat.h.
11037         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11038         stdbool, unistd.
11039         * modules/fts (Depends-on): Add openat-h.
11040         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11041         openat.
11042         * modules/mkdirat (Files): Remove lib/openat.h.
11043         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11044         openat, stdbool, sys_stat.
11045         * modules/mkfifoat (Files): Add lib/at-func.c.
11046         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11047         openat-h, save-cwd. Remove fcntl-h, openat.
11048         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11049         * modules/readlinkat (Files): Add lib/at-func.c.
11050         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11051         openat-h, save-cwd. Remove fcntl-h, openat.
11052         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11053         openat.
11054         * modules/selinux-at (Files): Add lib/at-func.c.
11055         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11056         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11057         * modules/symlinkat (Files): Add lib/at-func.c.
11058         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11059         openat-h, save-cwd. Remove fcntl-h, openat.
11060         * modules/unlinkat (Files): Remove lib/openat.h.
11061         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11062         stdbool.
11063         * modules/utimensat (Files): Add lib/at-func.c.
11064         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11065         openat-die, openat-h, save-cwd.
11066         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11067         * modules/fdutimensat-tests (Depends-on): Add openat.
11068         * modules/fstatat-tests (Depends-on): Add openat-h.
11069         * modules/readlinkat-tests (Depends-on): Add openat.
11070         * modules/symlinkat-tests (Depends-on): Add openat.
11071
11072 2011-11-05  Bruno Haible  <bruno@clisp.org>
11073
11074         openat: Include <stdbool.h>.
11075         * lib/openat.c: Include <stdbool.h>.
11076
11077 2011-11-04  Bruno Haible  <bruno@clisp.org>
11078
11079         fchownat, renameat, unlinkat: Fix dependencies.
11080         * modules/fchownat (Depends-on): Add fstatat.
11081         * modules/renameat (Depends-on): Likewise.
11082         * modules/unlinkat (Depends-on): Likewise.
11083
11084 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11085
11086         openat: remove direct dependency on dirent
11087         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11088         and hasn't been needed ever since fdopendir was split into its own
11089         module on 2009-08-31.
11090         * modules/openat (Depends-on): Remove dirent.
11091
11092 2011-11-04  Bruno Haible  <bruno@clisp.org>
11093
11094         renameat: Optimize code size.
11095         * modules/renameat (configure.ac): Don't compile at-func2.c if
11096         REPLACE_RENAMEAT is 1.
11097
11098 2011-11-04  Bruno Haible  <bruno@clisp.org>
11099
11100         openat tests: Fix file list.
11101         * modules/openat-tests (Files): Add tests/test-open.h.
11102
11103 2011-11-04  Bruno Haible  <bruno@clisp.org>
11104
11105         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11106         * modules/fchmodat (Depends-on): Add openat-die.
11107         * modules/fchownat (Depends-on): Likewise.
11108         * modules/linkat (Depends-on): Likewise.
11109         * modules/renameat (Depends-on): Likewise.
11110         * modules/openat (Depends-on): Add dirent.
11111
11112 2011-11-04  Jim Meyering  <meyering@redhat.com>
11113
11114         at-func*.c: fix comments
11115         * lib/at-func2.c: Correct/improve first-line comment.
11116         * lib/at-func.c: Correct grammar in first-line comment.
11117
11118 2011-11-04  Bruno Haible  <bruno@clisp.org>
11119
11120         New module 'mkdirat', split off from module 'openat'.
11121         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11123         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11124         * modules/mkdirat: New file, extracted from modules/openat.
11125         * modules/openat (Files): Remove lib/mkdirat.c.
11126         (Depends-on): Remove mkdir.
11127         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11128         (Include): Remove <sys/stat.h>.
11129         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11130         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11131         tests/test-mkdir.h.
11132         (Depends-on): Remove ignore-value.
11133         (Makefile.am): Remove rules for test-mkdirat.
11134         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11135         of module 'openat'.
11136         * NEWS: Mention the change.
11137
11138 2011-11-04  Bruno Haible  <bruno@clisp.org>
11139
11140         closedir: Avoid warning on mingw.
11141         * lib/closedir.c: Include <unistd.h>.
11142
11143 2011-11-04  Bruno Haible  <bruno@clisp.org>
11144
11145         New module 'fstatat', split off from module 'openat'.
11146         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11147         defined.
11148         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11150         gl_FUNC_FSTATAT.
11151         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11152         * modules/fstatat: New file, extracted from modules/openat.
11153         * modules/openat (Files): Remove lib/fstatat.c.
11154         (Depends-on): Remove lstat.
11155         (configure.ac): Remove AC_LIBOBJ of fstatat.
11156         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11157         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11158         tests/test-lstat.h, tests/test-stat.h.
11159         (Depends-on): Remove getcwd-lgpl.
11160         (Makefile.am): Remove rules for test-fstatat.
11161         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11162         of module 'openat'.
11163         * NEWS: Mention the change.
11164         * modules/getcwd (Depends-on): Add fstatat.
11165         * modules/linkat (Depends-on): Likewise.
11166         * modules/mkfifoat-tests (Depends-on): Likewise.
11167         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11168
11169 2011-11-03  Bruno Haible  <bruno@clisp.org>
11170
11171         New module 'unlinkat', split off from module 'openat'.
11172         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11173         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11174         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11175         * modules/unlinkat: New file, extracted from modules/openat. Correct
11176         the dependency conditions.
11177         * modules/openat (Files): Remove lib/unlinkat.c.
11178         (Depends-on): Remove rmdir, unlink.
11179         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11180         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11181         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11182         tests/test-rmdir.h, tests/test-unlink.h.
11183         (Depends-on): Remove unlinkdir.
11184         (Makefile.am): Remove rules for test-unlinkat.
11185         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11186         of module 'openat'.
11187         * NEWS: Mention the change.
11188         * modules/linkat-tests (Depends-on): Add unlinkat.
11189         * modules/mkfifoat-tests (Depends-on): Likewise.
11190         * modules/readlinkat-tests (Depends-on): Likewise.
11191
11192 2011-11-02  Bruno Haible  <bruno@clisp.org>
11193
11194         New module 'fchmodat', split off from module 'openat'.
11195         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11196         defined.
11197         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11199         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11200         * modules/fchmodat: New file, extracted from modules/openat.
11201         * modules/openat (Files): Remove lib/fchmodat.c.
11202         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11203         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11204         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11205         (Makefile.am): Remove rules for test-fchmodat.
11206         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11207         of module 'openat'.
11208         * NEWS: Mention the change.
11209
11210 2011-11-02  Jim Meyering  <meyering@redhat.com>
11211
11212         putenv: indent #definition of "environ" to placate cppi
11213         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11214
11215         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11216         Git logs are often treated as immutable, because editing them
11217         changes the SHA1 checksums of all descendants.  Thus, errors in
11218         git logs tend to stay there forever.  However, when we generate
11219         a ChangeLog file -- typically for distribution -- from that git log,
11220         we can actually make corrections in the generated file.  The key
11221         lies in recording in machine-readable/applicable form the desired
11222         corrections.  See --help for description and an example.
11223         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11224         (usage): Describe it; alphabetize option descriptions.
11225         (main): Honor the new option, carefully.
11226
11227 2011-11-01  Jim Meyering  <meyering@redhat.com>
11228
11229         gitlog-to-changelog: avoid an infloop
11230         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11231         that ends up being empty.
11232
11233 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11234
11235         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11236         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11237         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11238         contains (possibly-quoted) backslashes.  This should avoid
11239         all-too-common shell bugs if COMPLICATED contains backslashes in
11240         the "wrong" places.  Reported by David Evans in
11241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11242         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11243         because we want ASCII ranges.  Is there some reason we don't use
11244         the C locale everywhere in this script?
11245         (func_module, top level): Avoid unwanted pathname expansion when
11246         $repo_url_prefix or $repo_url_suffix_repl contain shell
11247         metacharacters like '?' and '*'.
11248
11249 2011-11-01  Bruno Haible  <bruno@clisp.org>
11250
11251         fchownat: Improve description.
11252         * modules/fchownat (Description): Add link to function.
11253
11254 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11255
11256         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11257         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11259         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11260
11261 2011-11-01  Bruno Haible  <bruno@clisp.org>
11262
11263         alignof: Avoid collision with stdalign module.
11264         * lib/alignof.h (alignof): Remove macro.
11265         * NEWS: Mention the change.
11266         Reported by Paul Eggert.
11267
11268 2011-11-01  Bruno Haible  <bruno@clisp.org>
11269
11270         New module 'fchownat', split off from module 'openat'.
11271         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11272         defined.
11273         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11274         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11275         invoke gl_FUNC_FCHOWNAT.
11276         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11277         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11278         * modules/fchownat: New file, extracted from modules/openat.
11279         * modules/openat (Files): Remove lib/fchownat.c.
11280         (Depends-on): Remove lchown.
11281         (configure.ac): Remove AC_LIBOBJ of fchownat.
11282         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11283         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11284         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11285         (Depends-on): Remove mgetgroups, usleep, stat-time.
11286         (configure.ac): Remove test for getegid.
11287         (Makefile.am): Remove rules for test-fchownat.
11288         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11289         of module 'openat'.
11290         * NEWS: Mention the change.
11291
11292 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11293
11294         stdalign: port better to MSVC and to Sun C 5.11
11295         This fixes some of the problems reported by Bruno Haible in
11296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11297         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11298         shortcomings of MSVC and of Sun C 5.11.
11299         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11300         around __declspec arg.
11301         * modules/stdalign-tests (Files): Add tests/macros.h.
11302         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11303         Include macros.h, for ASSERT.
11304         (DECLARE_ALIGNED): Remove.
11305         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11306         to catch bug), and to 1 if not (simplifies the rest of the code).
11307         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11308         (CHECK_AUTO): Remove.
11309         (CHECK_ALIGNED): Check only the alignment of the static vars,
11310         since auto var alignment isn't supported by Sun C 5.11.
11311         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11312         ASSERT failures are easier to diagnose.
11313
11314 2011-10-31  Bruno Haible  <bruno@clisp.org>
11315
11316         doc about some IRIX 5.3 problems.
11317         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11318         on IRIX 5.3.
11319         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11320         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11321         5.3.
11322         * doc/posix-functions/grantpt.texi: Likewise.
11323         * doc/posix-functions/unlockpt.texi: Likewise.
11324         * doc/posix-functions/lgamma.texi: Likewise.
11325         * doc/posix-functions/nextafter.texi: Likewise.
11326         * doc/posix-functions/remainder.texi: Likewise.
11327         * doc/posix-functions/select.texi: Mention misplaced declaration on
11328         IRIX 5.3.
11329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11330
11331 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11332
11333         gitlog-to-changelog: fix git-log invocation.
11334         git-log mishandles date strings before 1970-01-01 UTC, and there is
11335         no use to specify --since=1970-01-01 by default anyway.
11336         * build-aux/gitlog-to-changelog: By default, when no --since option
11337         was given, do not specify explicit --since option to git-log.
11338
11339 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11340
11341         gitlog-to-changelog: new option --append-dot.
11342         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11343         first non-blank line of each commit message terminated with a dot.
11344
11345 2011-10-30  Bruno Haible  <bruno@clisp.org>
11346
11347         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11348         * lib/ffsl.h: Include <config.h>.
11349         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11350
11351 2011-10-30  Jim Meyering  <meyering@redhat.com>
11352
11353         GNUmakefile: reenable "make syntax-check" for most projects
11354         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11355         build-aux variable", "syntax-check" would do nothing but succeed with
11356         the "No version control files detected..." diagnostic (unless you
11357         happened to override _build-aux via cfg.mk).
11358         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11359         to precede inclusion of maint.mk.  Otherwise, these variables would
11360         be used undefined in any project that does not override the default.
11361
11362 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11363
11364         gitlog-to-changelog: treat a message with only blank lines as empty.
11365         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11366         trailing blank lines before the code that issues a warning about an
11367         empty commit message.
11368
11369 2011-10-30  Jim Meyering  <meyering@redhat.com>
11370
11371         test-parse-datetime.c: avoid new DST-related false positive test failure
11372         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11373         based on the time/date we'll convert, not the current time.
11374         Otherwise, the moment we cross a DST boundary like today's in
11375         Europe, (CEST to CET), that offset ends up being one hour off.
11376
11377 2011-10-27  Bruno Haible  <bruno@clisp.org>
11378
11379         fstat: Tweak documentation.
11380         * modules/fstat (Description): More precise description.
11381
11382 2011-10-27  Bruno Haible  <bruno@clisp.org>
11383
11384         Update documentation regarding 'largefile' module.
11385         * doc/posix-functions/fstat.texi: Tweak wording.
11386         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11387         problems with huge directories and/or small ino_t types.
11388         * doc/posix-functions/readdir.texi: Likewise.
11389         * doc/posix-functions/rewinddir.texi: Likewise.
11390
11391 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11392
11393         maint.mk: don't maintain a second build-aux variable.
11394         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11395         depends on GNUmakefile, which already maintains a cfg.mk
11396         overridable $(_build-aux) for projects with a non-standard
11397         build-aux directory location, although without the $(srcdir)
11398         prefix.  Use that variable consistently instead of introducing a
11399         second one.  Adjust all call sites.
11400
11401 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         Add stdalign module and use it in other modules.
11404         This is based on a previous proposal by Bruno Haible
11405         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11406
11407         stdalign: new module
11408         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11409         * modules/stdalign: New files.
11410         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11411         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11412
11413         stdalign-tests: new module
11414         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11415
11416         argp: use stdalign
11417         * lib/argp-parse.c: Include <stdalign.h>.
11418         (alignof): Remove.
11419         * modules/argp (Depends-on): Add stdalign.
11420
11421         crypto libraries: use stdalign
11422         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11423         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11424         Do not include <stdlib.h> twice, in md4.c.
11425         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11426         because we are accessing a pointer's bit-pattern, not a size.
11427         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11428         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11429         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11430         * modules/crypto/sha512: Likewise.
11431
11432         sys_socket: use stdalign, not alignof
11433         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11434         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11435
11436 2011-10-27  Bruno Haible  <bruno@clisp.org>
11437
11438         raise test: Avoid a test failure on Linux/MIPS.
11439         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11440         because 99 is a valid signal on Linux/MIPS.
11441
11442 2011-10-27  Bruno Haible  <bruno@clisp.org>
11443
11444         nonblocking tests: Fix test failure on Linux/MIPS.
11445         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11446         Set to 270000.
11447
11448 2011-10-27  Bruno Haible  <bruno@clisp.org>
11449
11450         utimensat: Work around problem on Linux/hppa.
11451         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11452         values.
11453         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11454
11455 2011-10-25  Jim Meyering  <meyering@redhat.com>
11456
11457         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11458         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11459         after symbols like NULL, size_t, etc.
11460         Reported by Alfred M. Szmidt.
11461
11462         maint.mk: exempt ENODATA from a syntax-check rule
11463         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11464         from the sc_prohibit_always-defined_macros syntax-check rule.
11465         Add a comment.  See this for more details:
11466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11467
11468 2011-10-23  Jim Meyering  <meyering@redhat.com>
11469
11470         fts: close parent dir FD before returning from post-traversal fts_read
11471         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11472         unlink A, even though an FD open on A remained.  This is suboptimal
11473         (holding a file descriptor open longer than needed), but otherwise not
11474         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11475         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11476         that represents a real problem: it causes the removal of A to fail
11477         with e.g., "rm: cannot remove `A': Device or resource busy"
11478
11479         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11480         directory file descriptors.  After completing the final, FTS_DP,
11481         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11482         cache, but then proceeded to add a new FD to it via the subsequent
11483         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11484         final file descriptor would be closed only via fts_close's call to
11485         fd_ring_clear.  Now, it is usually closed earlier, via the final
11486         FTS_DP-returning fts_read call.
11487         * lib/fts.c (restore_initial_cwd): New function, converted from
11488         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11489         Update callers.
11490         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11491         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11492
11493 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11494             Bruno Haible  <bruno@clisp.org>
11495             Jim Meyering  <jim@meyering.net>
11496
11497         readme-release: improve safety of release prep instructions.
11498         * README-release: Don't git pull all branches when only master
11499         is needed for the release process.
11500         Run make maintainer-clean before changing trees and merging.
11501         Don't try to run ./configure right after git pull in case files
11502         that influence the bootstrap process have changed, move the
11503         ./configure step to after running ./bootstrap.
11504         Don't bootstrap "one last time"... it's the first time!
11505
11506 2011-10-22  Bruno Haible  <bruno@clisp.org>
11507
11508         errno, strerror-override: Support for MSVC 10.
11509         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11510         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11511         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11512         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11513         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11514         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11515         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11516         Assign values compatible with MSVC 10.
11517         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11518         New macros.
11519         (GNULIB_defined_EWINSOCK): New macro.
11520         * lib/strerror-override.c (strerror_override): Update accordingly.
11521         * lib/strerror-override.h: Likewise.
11522         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11523         longer equal to the corresponding errno value.
11524         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11525
11526 2011-10-22  Bruno Haible  <bruno@clisp.org>
11527
11528         perror: Recognize when test program crashes.
11529         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11530         strerror, set gl_cv_func_perror_works to no.
11531         Reported by Daniel Richard G. <skunk@iskunk.org>.
11532
11533         perror: Fix indentation.
11534         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11535
11536 2011-10-22  Bruno Haible  <bruno@clisp.org>
11537
11538         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11539         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11540         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11541         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11542         functions, not as a macro.
11543         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11544         macros.
11545         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11546         absence of macro.
11547         Suggested by Eric Blake.
11548         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11549
11550 2011-10-21  Bruno Haible  <bruno@clisp.org>
11551
11552         relocatable-prog-wrapper: Don't leave object files behind.
11553         * build-aux/install-reloc: Re-synchronize list of .o files to be
11554         removed with list of compilation units.
11555
11556 2011-10-20  Bruno Haible  <bruno@clisp.org>
11557
11558         openpty, posix_openpt: Remove code duplication.
11559         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11560         * lib/openpty.c: Include <stdlib.h>.
11561         (openpty): Use posix_openpt on all platforms except IRIX.
11562         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11563
11564 2011-10-20  Bruno Haible  <bruno@clisp.org>
11565
11566         unlockpt: Detect invalid argument.
11567         * lib/unlockpt.c: Include <fcntl.h>.
11568         (unlockpt): Check whether fd is valid, using fcntl().
11569         * modules/unlockpt (Depends-on): Add fcntl-h.
11570
11571 2011-10-20  Bruno Haible  <bruno@clisp.org>
11572
11573         openpty: Avoid compilation error on AIX 6.1.
11574         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11575
11576 2011-10-20  Bruno Haible  <bruno@clisp.org>
11577
11578         posix_openpt: Support for OpenBSD.
11579         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11580         (posix_openpt) [OpenBSD]: New code.
11581         * lib/grantpt.c: Include <fcntl.h>.
11582         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11583         * modules/grantpt (Depends-on): Add fcntl-h.
11584
11585 2011-10-20  Bruno Haible  <bruno@clisp.org>
11586
11587         posix_openpt test: Coding style.
11588         * tests/test-posix_openpt.c: Use GNU coding style.
11589
11590 2011-10-20  Bruno Haible  <bruno@clisp.org>
11591
11592         grantpt: Support --avoid=pt_chown.
11593         * modules/grantpt (Files): Add lib/pty-private.h.
11594
11595 2011-10-20  Bruno Haible  <bruno@clisp.org>
11596
11597         posix_openpt: Fix autoconf macro.
11598         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11599         unneeded check for _getpty.
11600
11601 2011-10-20  Bruno Haible  <bruno@clisp.org>
11602
11603         openpty: Update comments.
11604         * lib/openpty.c: Add comments about Minix.
11605
11606 2011-10-19  Eric Blake  <eblake@redhat.com>
11607
11608         openpty: relax license
11609         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11610
11611         pt_chown: use configmake to simplify build
11612         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11613
11614         ptsname and others: relax license
11615         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11616         * modules/unlockpt (License): Likewise.
11617         * modules/pt_chown (License): Likewise.
11618         * modules/ptsname (License): Likewise.
11619         * modules/ttyname_r (License): Likewise.
11620
11621 2011-10-19  Jim Meyering  <meyering@redhat.com>
11622
11623         posix_openpt: remove spurious #endif
11624         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11625
11626 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11627
11628         maint.mk: Respect $(build_aux) in web-manual rule.
11629         * top/maint.mk (web-manual): Find gen-announce script in user's
11630         $(build_aux) directory instead of hard-coding 'build-aux'.
11631
11632 2011-10-19  Bruno Haible  <bruno@clisp.org>
11633
11634         posix_openpt: Fix compilation error.
11635         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11636         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11637         Mention the openpty module as an alternative.
11638
11639 2011-10-19  Bruno Haible  <bruno@clisp.org>
11640
11641         Support for old NeXTstep 3.3 frexp().
11642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11643         execution time of the test to 5 seconds.
11644         Reported by Daniel Richard G. <skunk@iskunk.org>.
11645
11646 2011-10-19  Bruno Haible  <bruno@clisp.org>
11647
11648         Support for old NeXTstep 3.3 sed.
11649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11650         part, use /.../, not \|...|. Escape periods in the header file name.
11651         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11652         Reported by Daniel Richard G. <skunk@iskunk.org>.
11653
11654 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11655
11656         Support for old NeXTstep 3.3 gcc.
11657         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11658         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11659         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11660         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11661         * lib/regex.h (_Restrict_arr_): Likewise.
11662         * lib/regex_internal.h (re_token_t): Likewise.
11663         * lib/regexec.c (check_node_accept_bytes): Likewise.
11664         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11665
11666 2011-10-18  Eric Blake  <eblake@redhat.com>
11667
11668         posix_openpt: new module
11669         * modules/posix_openpt: New module.
11670         * m4/posix_openpt.m4: New file.
11671         * lib/posix_openpt.c: Likewise.
11672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11673         (gl_STDLIB_H_DEFAULTS): Set defaults.
11674         * modules/stdlib (Makefile.am): Substitute macros.
11675         * lib/stdlib.in.h (posix_openpt): Declare.
11676         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11677         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11678         * modules/posix_openpt-tests: New test module.
11679         * tests/test-posix_openpt.c: New test.
11680
11681 2011-10-15  Bruno Haible  <bruno@clisp.org>
11682
11683         xstrtoll: Fix compilation failure.
11684         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11685         from lib/strtol.c.
11686         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11687         some platforms.
11688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11689
11690 2011-10-15  Bruno Haible  <bruno@clisp.org>
11691
11692         vasnprintf: Optimize bit search operation.
11693         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11695         gl_DOUBLE_EXPONENT_LOCATION.
11696         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11697         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11698         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11699         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11700         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11701         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11702         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11703         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11704         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11705
11706 2011-10-15  Bruno Haible  <bruno@clisp.org>
11707
11708         vasnprintf: Fix comments.
11709         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11710
11711 2011-10-14  Bruno Haible  <bruno@clisp.org>
11712
11713         Tests for module 'integer_length_ll'.
11714         * modules/integer_length_ll-tests: New file.
11715         * tests/test-integer_length_ll.c: New file.
11716
11717         New module 'integer_length_ll'.
11718         * lib/integer_length_ll.c: New file.
11719         * modules/integer_length_ll: New file.
11720
11721 2011-10-14  Bruno Haible  <bruno@clisp.org>
11722
11723         Tests for module 'integer_length_l'.
11724         * modules/integer_length_l-tests: New file.
11725         * tests/test-integer_length_l.c: New file.
11726
11727         New module 'integer_length_l'.
11728         * lib/integer_length_l.c: New file.
11729         * modules/integer_length_l: New file.
11730
11731 2011-10-14  Bruno Haible  <bruno@clisp.org>
11732
11733         Tests for module 'integer_length'.
11734         * modules/integer_length-tests: New file.
11735         * tests/test-integer_length.c: New file.
11736
11737         New module 'integer_length'.
11738         * lib/integer_length.h: New file.
11739         * lib/integer_length.c: New file.
11740         * modules/integer_length: New file.
11741
11742 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11743
11744         popen: Fix dependency conditions.
11745         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11746
11747 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11748
11749         perror: Fix autoconf test.
11750         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11751         <stdlib.h> and <string.h>.
11752
11753 2011-10-14  Bruno Haible  <bruno@clisp.org>
11754
11755         ffsl: Optimize on 64-bit platforms.
11756         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11757         unrolling.
11758
11759 2011-10-13  Bruno Haible  <bruno@clisp.org>
11760
11761         ffsl: Optimize on 32-bit platforms.
11762         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11763         use ffs() without a loop.
11764
11765         ffsl, ffsll: Optimize for GCC.
11766         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11767         * lib/ffsl.c (GCC_BUILTIN): New macro.
11768         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11769
11770 2011-10-13  Bruno Haible  <bruno@clisp.org>
11771
11772         ffs, bcopy, memset: Support symbol renaming via config.h.
11773         * lib/ffs.c: Include <config.h>.
11774         * lib/bcopy.c: Likewise.
11775         * lib/memset.c: Likewise.
11776
11777 2011-10-10  Bruno Haible  <bruno@clisp.org>
11778
11779         atanl: Simplify for platforms where 'long double' == 'double'.
11780         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11781         alternative implementation.
11782         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11783         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11784         * modules/atanl (Depends-on): Add atan. Update conditions.
11785
11786 2011-10-10  Bruno Haible  <bruno@clisp.org>
11787
11788         acosl: Simplify for platforms where 'long double' == 'double'.
11789         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11790         alternative implementation.
11791         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11792         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11793         * modules/acosl (Depends-on): Add acos. Update conditions.
11794
11795 2011-10-10  Bruno Haible  <bruno@clisp.org>
11796
11797         asinl: Simplify for platforms where 'long double' == 'double'.
11798         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11799         alternative implementation.
11800         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11801         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11802         * modules/asinl (Depends-on): Add asin. Update conditions.
11803
11804 2011-10-10  Bruno Haible  <bruno@clisp.org>
11805
11806         tanl: Simplify for platforms where 'long double' == 'double'.
11807         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11808         implementation.
11809         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11810         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11811         * modules/tanl (Depends-on): Add tan. Update conditions.
11812         (configure.ac): Don't compile trigl.c if
11813         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11814
11815 2011-10-10  Bruno Haible  <bruno@clisp.org>
11816
11817         cosl: Simplify for platforms where 'long double' == 'double'.
11818         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11819         implementation.
11820         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11821         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11822         * modules/cosl (Depends-on): Add cos. Update conditions.
11823         (configure.ac): Don't compile sincosl.c and trigl.c if
11824         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11825
11826 2011-10-10  Bruno Haible  <bruno@clisp.org>
11827
11828         sinl: Simplify for platforms where 'long double' == 'double'.
11829         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11830         implementation.
11831         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11832         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11833         * modules/sinl (Depends-on): Add sin. Update conditions.
11834         (configure.ac): Don't compile sincosl.c and trigl.c if
11835         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11836
11837 2011-10-10  Bruno Haible  <bruno@clisp.org>
11838
11839         logl: Simplify for platforms where 'long double' == 'double'.
11840         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11841         implementation.
11842         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11843         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11844         * modules/logl (Depends-on): Add log. Update conditions.
11845
11846 2011-10-10  Bruno Haible  <bruno@clisp.org>
11847
11848         expl: Simplify for platforms where 'long double' == 'double'.
11849         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11850         implementation.
11851         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11852         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11853         * modules/expl (Depends-on): Add exp. Update conditions.
11854
11855 2011-10-10  Bruno Haible  <bruno@clisp.org>
11856
11857         sqrtl: Simplify for platforms where 'long double' == 'double'.
11858         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11859         alternative implementation.
11860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11861         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11862         * modules/sqrtl (Depends-on): Update conditions.
11863
11864 2011-10-10  Bruno Haible  <bruno@clisp.org>
11865
11866         ldexpl: Simplify for platforms where 'long double' == 'double'.
11867         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11868         alternative implementation.
11869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11870         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11871         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11872
11873 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11874
11875         ffsll: set correct witness
11876         * modules/ffsll (configure.ac): Fix typo.
11877
11878 2011-10-10  Bruno Haible  <bruno@clisp.org>
11879
11880         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11881         * lib/printf-frexpl.c: Include <config.h>.
11882         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11883         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11884         second time.
11885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11886         gl_LONG_DOUBLE_VS_DOUBLE.
11887         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11888         conditions.
11889
11890 2011-10-10  Bruno Haible  <bruno@clisp.org>
11891
11892         frexpl: Simplify for platforms where 'long double' == 'double'.
11893         * lib/frexpl.c: Include <config.h>.
11894         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11895         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11896         time.
11897         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11898         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11899         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11900         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11901         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11902         conditions.
11903
11904 2011-10-10  Jim Meyering  <meyering@redhat.com>
11905
11906         test-renameat: don't leave behind a temporary file
11907         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11908           ERROR: files left in build directory after distclean:
11909           ./gltests/test-renameat.too
11910           make[1]: *** [distcleancheck] Error 1
11911         Reported by Tom G. Christensen.
11912
11913 2011-10-09  Bruno Haible  <bruno@clisp.org>
11914
11915         rint: Determine RINT_LIBM correctly on AIX 7.
11916         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11917         directly, not only through a function pointer. Also accept an optional
11918         4th argument with extra code.
11919         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11920         rintf() call by gcc when optimizing.
11921
11922         mathfunc.m4: Refactor.
11923         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11924         m4 variable.
11925
11926 2011-10-09  Bruno Haible  <bruno@clisp.org>
11927
11928         rintl: Simplify for platforms where 'long double' == 'double'.
11929         * lib/rintl.c: Include <config.h>.
11930         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11931         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11932         time.
11933         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11934         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11935         * modules/rintl (Depends-on): Add rint. Update conditions.
11936
11937 2011-10-09  Bruno Haible  <bruno@clisp.org>
11938
11939         roundl: Simplify for platforms where 'long double' == 'double'.
11940         * lib/roundl.c: Include <config.h>.
11941         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11942         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11943         time.
11944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11945         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11946         * modules/roundl (Depends-on): Add round. Update conditions.
11947
11948 2011-10-09  Bruno Haible  <bruno@clisp.org>
11949
11950         truncl: Simplify for platforms where 'long double' == 'double'.
11951         * lib/truncl.c: Include <config.h>.
11952         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11953         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11954         time.
11955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11956         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11957         * modules/truncl (Depends-on): Add trunc. Update conditions.
11958
11959 2011-10-09  Bruno Haible  <bruno@clisp.org>
11960
11961         ceill: Simplify for platforms where 'long double' == 'double'.
11962         * lib/ceill.c: Include <config.h>.
11963         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11964         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11965         time.
11966         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11967         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11968         * modules/ceill (Depends-on): Add ceil. Update conditions.
11969
11970 2011-10-09  Bruno Haible  <bruno@clisp.org>
11971
11972         floorl: Simplify for platforms where 'long double' == 'double'.
11973         * lib/floorl.c: Include <config.h>.
11974         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11975         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11976         time.
11977         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11978         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11979         * modules/floorl (Depends-on): Add floor. Update conditions.
11980
11981 2011-10-09  Bruno Haible  <bruno@clisp.org>
11982
11983         rint: Fix ordering constraints.
11984         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11985         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11986         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11987
11988 2011-10-09  Bruno Haible  <bruno@clisp.org>
11989
11990         copysignl: Simplify for platforms where 'long double' == 'double'.
11991         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11992         alternative.
11993         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11994         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11995         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11996
11997 2011-10-09  Bruno Haible  <bruno@clisp.org>
11998
11999         Tests for module 'rintl'.
12000         * modules/rintl-tests: New file.
12001         * tests/test-rintl.c: New file.
12002
12003         New module 'rintl'.
12004         * lib/math.in.h (rintl): New declaration.
12005         * lib/rintl.c: New file.
12006         * m4/rintl.m4: New file.
12007         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12009         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12010         * modules/rintl: New file.
12011         * tests/test-math-c++.cc: Check the declaration of rintl.
12012         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12013         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12014         * doc/posix-functions/rintl.texi: Mention the new module.
12015
12016 2011-10-09  Bruno Haible  <bruno@clisp.org>
12017
12018         Tests for module 'rintf'.
12019         * modules/rintf-tests: New file.
12020         * tests/test-rintf.c: New file.
12021
12022         New module 'rintf'.
12023         * lib/math.in.h (rintf): New declaration.
12024         * lib/rintf.c: New file.
12025         * m4/rintf.m4: New file.
12026         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12028         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12029         * modules/rintf: New file.
12030         * tests/test-math-c++.cc: Check the declaration of rintf.
12031         * doc/posix-functions/rintf.texi: Mention the new module.
12032
12033 2011-10-09  Bruno Haible  <bruno@clisp.org>
12034
12035         rint: Support for MSVC.
12036         * lib/math.in.h (rint): New declaration.
12037         * lib/rint.c: New file.
12038         * m4/rint.m4: New file.
12039         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12041         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12042         * modules/rint (Description): Fix.
12043         (Files): Add lib/rint.c, m4/rint.m4.
12044         (Depends-on): Add math.
12045         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12046         gl_MATH_MODULE_INDICATOR.
12047         * tests/test-math-c++.cc: Check the declaration of rint.
12048         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12049         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12050         * doc/posix-functions/rint.texi: Mention the replacement provided by
12051         the module.
12052
12053         rint tests: More tests.
12054         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12055         minus-zero.h, infinity.h, nan.h.
12056         (main): Skip the test if the current rounding mode is not standard. Add
12057         tests for negative numbers, minus zero, infinity, NaN.
12058         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12059         tests/nan.h.
12060         (Depends-on): Add isnand-nolibm.
12061
12062 2011-10-09  Bruno Haible  <bruno@clisp.org>
12063
12064         Tests for module 'copysignl'.
12065         * modules/copysignl-tests: New file.
12066         * tests/test-copysignl.c: New file.
12067
12068         New module 'copysignl'.
12069         * lib/math.in.h (copysignl): New declaration.
12070         * lib/copysignl.c: New file.
12071         * m4/copysignl.m4: New file.
12072         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12074         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12075         HAVE_COPYSIGNL.
12076         * modules/copysignl: New file.
12077         * tests/test-math-c++.cc: Check the declaration of copysignl.
12078         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12079         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12080         * doc/posix-functions/copysignl.texi: Mention the new module.
12081
12082 2011-10-09  Bruno Haible  <bruno@clisp.org>
12083
12084         Tests for module 'copysignf'.
12085         * modules/copysignf-tests: New file.
12086         * tests/test-copysignf.c: New file.
12087
12088         New module 'copysignf'.
12089         * lib/math.in.h (copysignf): New declaration.
12090         * lib/copysignf.c: New file.
12091         * m4/copysignf.m4: New file.
12092         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12094         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12095         HAVE_COPYSIGNF.
12096         * modules/copysignf: New file.
12097         * tests/test-math-c++.cc: Check the declaration of copysignf.
12098         * doc/posix-functions/copysignf.texi: Mention the new module.
12099
12100 2011-10-09  Bruno Haible  <bruno@clisp.org>
12101
12102         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12104         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12107         gl_SIGNAL_H_DEFAULTS.
12108
12109 2011-10-09  Bruno Haible  <bruno@clisp.org>
12110
12111         poll: Make macro safer.
12112         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12113         ac_cv_header_poll_h is not set.
12114
12115 2011-10-09  Bruno Haible  <bruno@clisp.org>
12116
12117         copysign: Provide replacement.
12118         * lib/math.in.h (copysign): New declaration.
12119         * lib/copysign.c: New file.
12120         * m4/copysign.m4: New file.
12121         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12123         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12124         HAVE_COPYSIGN.
12125         * modules/copysign (Description): Clarify.
12126         (Files): Add lib/copysign.c, m4/copysign.m4.
12127         (Depends-on): Add math, signbit.
12128         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12129         gl_MATH_MODULE_INDICATOR.
12130         * tests/test-math-c++.cc: Check the declaration of copysign.
12131         * doc/posix-functions/copysign.texi: Mention the effects of the module
12132         on Minix and MSVC.
12133
12134 2011-10-09  Bruno Haible  <bruno@clisp.org>
12135
12136         isinf: Ensure macro on AIX 5.1.
12137         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12138         macro.
12139         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12140
12141 2011-10-09  Bruno Haible  <bruno@clisp.org>
12142
12143         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12144         * modules/snprintf-posix-tests (configure.ac): Require
12145         gl_LONG_DOUBLE_VS_DOUBLE.
12146         * modules/sprintf-posix-tests (configure.ac): Likewise.
12147         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12148         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12149         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12150         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12151         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12152         tests on platforms where 'long double' is the same as 'double'.
12153         * tests/test-sprintf-posix.h (test_function): Likewise.
12154         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12155         * tests/test-vasprintf-posix.c (test_function): Likewise.
12156
12157         *printf: Fix for platforms where 'long double' == 'double'.
12158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12159         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12160         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12161         * modules/fprintf-posix (Files): Likewise.
12162         * modules/obstack-printf-posix (Files): Likewise.
12163         * modules/snprintf-posix (Files): Likewise.
12164         * modules/sprintf-posix (Files): Likewise.
12165         * modules/vasnprintf (Files): Likewise.
12166         * modules/vasnprintf-posix (Files): Likewise.
12167         * modules/vasprintf-posix (Files): Likewise.
12168         * modules/vdprintf-posix (Files): Likewise.
12169         * modules/vfprintf-posix (Files): Likewise.
12170         * modules/vsnprintf-posix (Files): Likewise.
12171         * modules/vsprintf-posix (Files): Likewise.
12172         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12173         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12174         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12175         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12176         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12177         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12178         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12179
12180         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12181         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12182         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12183         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12184         'long double'.
12185         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12186
12187         isinf: Fix for platforms where 'long double' == 'double'.
12188         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12189         Don't blindly assume 80-bit 'long double'.
12190
12191         isfinite: Fix for platforms where 'long double' == 'double'.
12192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12193         Don't blindly assume 80-bit 'long double'.
12194
12195         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12196         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12197         * modules/isfinite-tests (configure.ac): Require
12198         gl_LONG_DOUBLE_VS_DOUBLE.
12199         * modules/isinf-tests (configure.ac): Likewise.
12200         * modules/isnan-tests (configure.ac): Likewise.
12201         * modules/isnanl-tests (configure.ac): Likewise.
12202         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12203         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12204         tests on platforms where 'long double' is the same as 'double'.
12205         * tests/test-isinf.c (test_isinfl): Likewise.
12206         * tests/test-isnan.c (test_long_double): Likewise.
12207         * tests/test-isnanl.h (main): Likewise.
12208
12209 2011-10-08  Bruno Haible  <bruno@clisp.org>
12210
12211         Tests for module 'tanhf'.
12212         * modules/tanhf-tests: New file.
12213         * tests/test-tanhf.c: New file.
12214
12215         New module 'tanhf'.
12216         * lib/math.in.h (tanhf): New declaration.
12217         * lib/tanhf.c: New file.
12218         * m4/tanhf.m4: New file.
12219         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12221         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12222         * modules/tanhf: New file.
12223         * tests/test-math-c++.cc: Check the declaration of tanhf.
12224         * doc/posix-functions/tanhf.texi: Mention the new module.
12225
12226         tanh: Use a .m4 file.
12227         * m4/tanh.m4: New file.
12228         * modules/tanh (Files): Add it.
12229         (configure.ac): Just invoke gl_FUNC_TANH.
12230
12231 2011-10-08  Bruno Haible  <bruno@clisp.org>
12232
12233         Tests for module 'coshf'.
12234         * modules/coshf-tests: New file.
12235         * tests/test-coshf.c: New file.
12236
12237         New module 'coshf'.
12238         * lib/math.in.h (coshf): New declaration.
12239         * lib/coshf.c: New file.
12240         * m4/coshf.m4: New file.
12241         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12243         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12244         * modules/coshf: New file.
12245         * tests/test-math-c++.cc: Check the declaration of coshf.
12246         * doc/posix-functions/coshf.texi: Mention the new module.
12247
12248         cosh: Use a .m4 file.
12249         * m4/cosh.m4: New file.
12250         * modules/cosh (Files): Add it.
12251         (configure.ac): Just invoke gl_FUNC_COSH.
12252
12253 2011-10-08  Bruno Haible  <bruno@clisp.org>
12254
12255         Tests for module 'sinhf'.
12256         * modules/sinhf-tests: New file.
12257         * tests/test-sinhf.c: New file.
12258
12259         New module 'sinhf'.
12260         * lib/math.in.h (sinhf): New declaration.
12261         * lib/sinhf.c: New file.
12262         * m4/sinhf.m4: New file.
12263         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12265         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12266         * modules/sinhf: New file.
12267         * tests/test-math-c++.cc: Check the declaration of sinhf.
12268         * doc/posix-functions/sinhf.texi: Mention the new module.
12269
12270         sinh: Use a .m4 file.
12271         * m4/sinh.m4: New file.
12272         * modules/sinh (Files): Add it.
12273         (configure.ac): Just invoke gl_FUNC_SINH.
12274
12275 2011-10-08  Bruno Haible  <bruno@clisp.org>
12276
12277         Tests for module 'atan2f'.
12278         * modules/atan2f-tests: New file.
12279         * tests/test-atan2f.c: New file.
12280
12281         New module 'atan2f'.
12282         * lib/math.in.h (atan2f): New declaration.
12283         * lib/atan2f.c: New file.
12284         * m4/atan2f.m4: New file.
12285         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12287         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12288         * modules/atan2f: New file.
12289         * tests/test-math-c++.cc: Check the declaration of atan2f.
12290         * doc/posix-functions/atan2f.texi: Mention the new module.
12291
12292         atan2: Use a .m4 file.
12293         * m4/atan2.m4: New file.
12294         * modules/atan2 (Files): Add it.
12295         (configure.ac): Just invoke gl_FUNC_ATAN2.
12296
12297 2011-10-08  Bruno Haible  <bruno@clisp.org>
12298
12299         Tests for module 'atanf'.
12300         * modules/atanf-tests: New file.
12301         * tests/test-atanf.c: New file.
12302
12303         New module 'atanf'.
12304         * lib/math.in.h (atanf): New declaration.
12305         * lib/atanf.c: New file.
12306         * m4/atanf.m4: New file.
12307         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12309         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12310         * modules/atanf: New file.
12311         * tests/test-math-c++.cc: Check the declaration of atanf.
12312         * doc/posix-functions/atanf.texi: Mention the new module.
12313
12314         atan: Use a .m4 file.
12315         * m4/atan.m4: New file.
12316         * modules/atan (Files): Add it.
12317         (configure.ac): Just invoke gl_FUNC_ATAN.
12318
12319 2011-10-08  Bruno Haible  <bruno@clisp.org>
12320
12321         Tests for module 'acosf'.
12322         * modules/acosf-tests: New file.
12323         * tests/test-acosf.c: New file.
12324
12325         New module 'acosf'.
12326         * lib/math.in.h (acosf): New declaration.
12327         * lib/acosf.c: New file.
12328         * m4/acosf.m4: New file.
12329         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12331         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12332         * modules/acosf: New file.
12333         * tests/test-math-c++.cc: Check the declaration of acosf.
12334         * doc/posix-functions/acosf.texi: Mention the new module.
12335
12336         acos: Use a .m4 file.
12337         * m4/acos.m4: New file.
12338         * modules/acos (Files): Add it.
12339         (configure.ac): Just invoke gl_FUNC_ACOS.
12340
12341 2011-10-08  Bruno Haible  <bruno@clisp.org>
12342
12343         Tests for module 'asinf'.
12344         * modules/asinf-tests: New file.
12345         * tests/test-asinf.c: New file.
12346
12347         New module 'asinf'.
12348         * lib/math.in.h (asinf): New declaration.
12349         * lib/asinf.c: New file.
12350         * m4/asinf.m4: New file.
12351         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12353         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12354         * modules/asinf: New file.
12355         * tests/test-math-c++.cc: Check the declaration of asinf.
12356         * doc/posix-functions/asinf.texi: Mention the new module.
12357
12358         asin: Use a .m4 file.
12359         * m4/asin.m4: New file.
12360         * modules/asin (Files): Add it.
12361         (configure.ac): Just invoke gl_FUNC_ASIN.
12362
12363 2011-10-08  Bruno Haible  <bruno@clisp.org>
12364
12365         Tests for module 'tanf'.
12366         * modules/tanf-tests: New file.
12367         * tests/test-tanf.c: New file.
12368
12369         New module 'tanf'.
12370         * lib/math.in.h (tanf): New declaration.
12371         * lib/tanf.c: New file.
12372         * m4/tanf.m4: New file.
12373         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12375         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12376         * modules/tanf: New file.
12377         * tests/test-math-c++.cc: Check the declaration of tanf.
12378         * doc/posix-functions/tanf.texi: Mention the new module.
12379
12380         tan: Use a .m4 file.
12381         * m4/tan.m4: New file.
12382         * modules/tan (Files): Add it.
12383         (configure.ac): Just invoke gl_FUNC_TAN.
12384
12385 2011-10-08  Bruno Haible  <bruno@clisp.org>
12386
12387         Tests for module 'cosf'.
12388         * modules/cosf-tests: New file.
12389         * tests/test-cosf.c: New file.
12390
12391         New module 'cosf'.
12392         * lib/math.in.h (cosf): New declaration.
12393         * lib/cosf.c: New file.
12394         * m4/cosf.m4: New file.
12395         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12397         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12398         * modules/cosf: New file.
12399         * tests/test-math-c++.cc: Check the declaration of cosf.
12400         * doc/posix-functions/cosf.texi: Mention the new module.
12401
12402         cos: Use a .m4 file.
12403         * m4/cos.m4: New file.
12404         * modules/cos (Files): Add it.
12405         (configure.ac): Just invoke gl_FUNC_COS.
12406
12407 2011-10-08  Bruno Haible  <bruno@clisp.org>
12408
12409         Tests for module 'sinf'.
12410         * modules/sinf-tests: New file.
12411         * tests/test-sinf.c: New file.
12412
12413         New module 'sinf'.
12414         * lib/math.in.h (sinf): New declaration.
12415         * lib/sinf.c: New file.
12416         * m4/sinf.m4: New file.
12417         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12419         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12420         * modules/sinf: New file.
12421         * tests/test-math-c++.cc: Check the declaration of sinf.
12422         * doc/posix-functions/sinf.texi: Mention the new module.
12423
12424         sin: Use a .m4 file.
12425         * m4/sin.m4: New file.
12426         * modules/sin (Files): Add it.
12427         (configure.ac): Just invoke gl_FUNC_SIN.
12428
12429 2011-10-08  Bruno Haible  <bruno@clisp.org>
12430
12431         Tests for module 'powf'.
12432         * modules/powf-tests: New file.
12433         * tests/test-powf.c: New file.
12434
12435         New module 'powf'.
12436         * lib/math.in.h (powf): New declaration.
12437         * lib/powf.c: New file.
12438         * m4/powf.m4: New file.
12439         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12441         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12442         * modules/powf: New file.
12443         * tests/test-math-c++.cc: Check the declaration of powf.
12444         * doc/posix-functions/powf.texi: Mention the new module.
12445
12446         pow: Use a .m4 file.
12447         * m4/pow.m4: New file.
12448         * modules/pow (Files): Add it.
12449         (configure.ac): Just invoke gl_FUNC_POW.
12450
12451 2011-10-08  Bruno Haible  <bruno@clisp.org>
12452
12453         Tests for module 'log10f'.
12454         * modules/log10f-tests: New file.
12455         * tests/test-log10f.c: New file.
12456
12457         New module 'log10f'.
12458         * lib/math.in.h (log10f): New declaration.
12459         * lib/log10f.c: New file.
12460         * m4/log10f.m4: New file.
12461         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12463         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12464         * modules/log10f: New file.
12465         * tests/test-math-c++.cc: Check the declaration of log10f.
12466         * doc/posix-functions/log10f.texi: Mention the new module.
12467
12468         log10: Use a .m4 file.
12469         * m4/log10.m4: New file.
12470         * modules/log10 (Files): Add it.
12471         (configure.ac): Just invoke gl_FUNC_LOG10.
12472
12473 2011-10-08  Bruno Haible  <bruno@clisp.org>
12474
12475         Tests for module 'logf'.
12476         * modules/logf-tests: New file.
12477         * tests/test-logf.c: New file.
12478
12479         New module 'logf'.
12480         * lib/math.in.h (logf): New declaration.
12481         * lib/logf.c: New file.
12482         * m4/logf.m4: New file.
12483         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12485         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12486         * modules/logf: New file.
12487         * tests/test-math-c++.cc: Check the declaration of logf.
12488         * doc/posix-functions/logf.texi: Mention the new module.
12489
12490         log: Use a .m4 file.
12491         * m4/log.m4: New file.
12492         * modules/log (Files): Add it.
12493         (configure.ac): Just invoke gl_FUNC_LOG.
12494
12495 2011-10-08  Bruno Haible  <bruno@clisp.org>
12496
12497         Tests for module 'expf'.
12498         * modules/expf-tests: New file.
12499         * tests/test-expf.c: New file.
12500
12501         New module 'expf'.
12502         * lib/math.in.h (expf): New declaration.
12503         * lib/expf.c: New file.
12504         * m4/expf.m4: New file.
12505         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12507         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12508         * modules/expf: New file.
12509         * tests/test-math-c++.cc: Check the declaration of expf.
12510         * doc/posix-functions/expf.texi: Mention the new module.
12511
12512         exp: Use a .m4 file.
12513         * m4/exp.m4: New file.
12514         * modules/exp (Files): Add it.
12515         (configure.ac): Just invoke gl_FUNC_EXP.
12516
12517 2011-10-08  Bruno Haible  <bruno@clisp.org>
12518
12519         Tests for module 'sqrtf'.
12520         * modules/sqrtf-tests: New file.
12521         * tests/test-sqrtf.c: New file.
12522
12523         New module 'sqrtf'.
12524         * lib/math.in.h (sqrtf): New declaration.
12525         * lib/sqrtf.c: New file.
12526         * m4/sqrtf.m4: New file.
12527         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12529         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12530         * modules/sqrtf: New file.
12531         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12532         * doc/posix-functions/sqrtf.texi: Mention the new module.
12533
12534 2011-10-08  Bruno Haible  <bruno@clisp.org>
12535
12536         Tests: Avoid link failures w.r.t. libintl.
12537         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12538         $(LIBINTL).
12539         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12540         $(LIBINTL).
12541         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12542         against $(LIBINTL).
12543         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12544         $(LIBINTL).
12545         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12546         $(LIBINTL).
12547         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12548
12549 2011-10-08  Bruno Haible  <bruno@clisp.org>
12550
12551         pow tests: Defeat compiler optimizations.
12552         * tests/test-pow.c (main): Assign arguments to x and y before use.
12553
12554 2011-10-08  Bruno Haible  <bruno@clisp.org>
12555
12556         gnulib-tool: Improve last commit.
12557         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12558         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12559         ignore dependencies that are not among the modules list.
12560
12561 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12562
12563         gnulib-tool: don't follow dependencies to avoided modules
12564         This fixes a bug that is related to the previous one.
12565         * gnulib-tool (func_modules_transitive_closure)
12566         (func_emit_autoconf_snippets):
12567         Check whether a dependency is acceptable before using it.
12568         (--extract-dependencies): Report an error if --avoid is also used,
12569         since this combination of options is not yet supported.
12570
12571         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12572         Problem reported by Peter Dyballa in
12573         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12574         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12575         when echoing "$condition".
12576
12577 2011-10-07  Bruno Haible  <bruno@clisp.org>
12578
12579         Fix documentation about math functions on MacOS X.
12580         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12581         MacOS X 10.5.
12582         * doc/posix-functions/fdim.texi: Likewise.
12583         * doc/posix-functions/feclearexcept.texi: Likewise.
12584         * doc/posix-functions/fegetenv.texi: Likewise.
12585         * doc/posix-functions/fegetround.texi: Likewise.
12586         * doc/posix-functions/feholdexcept.texi: Likewise.
12587         * doc/posix-functions/feraiseexcept.texi: Likewise.
12588         * doc/posix-functions/fesetenv.texi: Likewise.
12589         * doc/posix-functions/fesetround.texi: Likewise.
12590         * doc/posix-functions/fetestexcept.texi: Likewise.
12591         * doc/posix-functions/feupdateenv.texi: Likewise.
12592         * doc/posix-functions/fmax.texi: Likewise.
12593         * doc/posix-functions/fmin.texi: Likewise.
12594         * doc/posix-functions/log2.texi: Likewise.
12595         * doc/posix-functions/modff.texi: Likewise.
12596         * doc/posix-functions/nan.texi: Likewise.
12597         * doc/posix-functions/nanf.texi: Likewise.
12598         * doc/posix-functions/nextafterf.texi: Likewise.
12599         * doc/posix-functions/remquo.texi: Likewise.
12600
12601 2011-10-07  Bruno Haible  <bruno@clisp.org>
12602
12603         modff: Drop assumption about library that defines modff.
12604         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12605         AC_CHECK_FUNCS.
12606         * modules/modff (Files): Add m4/mathfunc.m4.
12607
12608 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12609
12610         raise tests: Avoid a GCC warning.
12611         * tests/test-raise.c (handler): Use _Noreturn.
12612
12613 2011-10-07  Bruno Haible  <bruno@clisp.org>
12614
12615         Tests for module 'ldexpf'.
12616         * modules/ldexpf-tests: New file.
12617         * tests/test-ldexpf.c: New file.
12618
12619         New module 'ldexpf'.
12620         * lib/math.in.h (ldexpf): New declaration.
12621         * lib/ldexpf.c: New file.
12622         * m4/ldexpf.m4: New file.
12623         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12625         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12626         * modules/ldexpf: New file.
12627         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12628         * doc/posix-functions/ldexpf.texi: Mention the new module.
12629
12630 2011-10-06  Bruno Haible  <bruno@clisp.org>
12631
12632         frexpf: Work around problems on IRIX and mingw.
12633         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12635         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12636         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12637         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12638         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12639         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12640
12641 2011-10-06  Bruno Haible  <bruno@clisp.org>
12642
12643         fabsf: Drop assumption about library that defines fabsf.
12644         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12645         AC_CHECK_FUNCS.
12646         * modules/fabsf (Files): Add m4/mathfunc.m4.
12647
12648 2011-10-06  Bruno Haible  <bruno@clisp.org>
12649
12650         frexpf: Drop assumption about library that defines frexpf.
12651         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12652         'int *', 'float *', 'long double *', 'float', 'long double'.
12653         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12654         AC_CHECK_FUNCS.
12655         * modules/frexpf (Files): Add m4/mathfunc.m4.
12656
12657         Tests for module 'frexpf'.
12658         * modules/frexpf-tests: New file.
12659         * tests/test-frexpf.c: New file.
12660
12661         New module 'frexpf'.
12662         * lib/math.in.h (frexpf): New declaration.
12663         * lib/frexpf.c: New file.
12664         * m4/frexpf.m4: New file.
12665         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12667         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12668         * modules/frexpf: New file.
12669         * tests/test-math-c++.cc: Check the declaration of frexpf.
12670         * doc/posix-functions/frexpf.texi: Mention the new module.
12671
12672 2011-10-06  Bruno Haible  <bruno@clisp.org>
12673
12674         math: Sort function declarations of math.in.h.
12675         * lib/math.in.h (frexp, logb): Move declarations.
12676
12677 2011-10-05  Bruno Haible  <bruno@clisp.org>
12678
12679         Tests for module 'modff'.
12680         * modules/modff-tests: New file.
12681         * tests/test-modff.c: New file.
12682
12683         New module 'modff'.
12684         * lib/math.in.h (modff): New declaration.
12685         * lib/modff.c: New file.
12686         * m4/modff.m4: New file.
12687         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12689         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12690         * modules/modff: New file.
12691         * tests/test-math-c++.cc: Check the declaration of modff.
12692         * doc/posix-functions/modff.texi: Mention the new module.
12693
12694         modf tests: Make test sharper.
12695         * tests/test-modf.c (main): Strengthen upper bound.
12696
12697         modf: Use a .m4 file.
12698         * m4/modf.m4: New file.
12699         * modules/modf (Files): Add it.
12700         (configure.ac): Just invoke gl_FUNC_MODF.
12701
12702 2011-10-05  Bruno Haible  <bruno@clisp.org>
12703
12704         Tests for module 'fmodf'.
12705         * modules/fmodf-tests: New file.
12706         * tests/test-fmodf.c: New file.
12707
12708         New module 'fmodf'.
12709         * lib/math.in.h (fmodf): New declaration.
12710         * lib/fmodf.c: New file.
12711         * m4/fmodf.m4: New file.
12712         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12714         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12715         * modules/fmodf: New file.
12716         * tests/test-math-c++.cc: Check the declaration of fmodf.
12717         * doc/posix-functions/fmodf.texi: Mention the new module.
12718
12719         fmod: Use a .m4 file.
12720         * m4/fmod.m4: New file.
12721         * modules/fmod (Files): Add it.
12722         (configure.ac): Just invoke gl_FUNC_FMOD.
12723
12724 2011-10-05  Bruno Haible  <bruno@clisp.org>
12725
12726         Tests for module 'fabsf'.
12727         * modules/fabsf-tests: New file.
12728         * tests/test-fabsf.c: New file.
12729
12730         New module 'fabsf'.
12731         * lib/math.in.h (fabsf): New declaration.
12732         * lib/fabsf.c: New file.
12733         * m4/fabsf.m4: New file.
12734         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12736         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12737         * modules/fabsf: New file.
12738         * tests/test-math-c++.cc: Check the declaration of fabsf.
12739         * doc/posix-functions/fabsf.texi: Mention the new module.
12740
12741         fabs: Use a .m4 file.
12742         * m4/fabs.m4: New file.
12743         * modules/fabs (Files): Add it.
12744         (configure.ac): Just invoke gl_FUNC_FABS.
12745
12746 2011-10-05  Jim Meyering  <meyering@redhat.com>
12747
12748         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12749         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12750         ls -lL regression introduced in coreutils-8.12, it does so at the
12751         cost of an additional stat call in the common case.  Besides, now
12752         that the kernel change that prompted commit 95f7c57f has been reverted
12753         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12754         we have no use for commit 95f7c57f, "file-has-acl: use
12755         acl_extended_file_nofollow if available".
12756
12757 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12758
12759         file-has-acl: revert unintended change in behavior of ls -L
12760         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12761         derived from...
12762         (file_has_acl): ...code here.  Call it.
12763         This problem was introduced with 2011-07-22 commit 95f7c57f,
12764         "file-has-acl: use acl_extended_file_nofollow if available".
12765         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12766
12767 2011-10-03  Bruno Haible  <bruno@clisp.org>
12768
12769         poll: Avoid link errors on MSVC.
12770         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12771         * modules/poll (Depends-on): Add sockets.
12772         (Link): New section.
12773         * NEWS: Mention the change.
12774         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12775         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12776         $(LIB_POLL) instead of $(LIBSOCKET).
12777
12778 2011-10-03  Bruno Haible  <bruno@clisp.org>
12779
12780         sys_select tests: Fix link error on MSVC 9.
12781         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12782         with $(LIB_SELECT) instead of $(LIBSOCKET).
12783
12784 2011-10-03  Bruno Haible  <bruno@clisp.org>
12785
12786         sys_select: Fix compilation error on mingw.
12787         * lib/sys_select.in.h: On native Windows, include <io.h>.
12788
12789 2011-10-03  Bruno Haible  <bruno@clisp.org>
12790
12791         wmemset: Support for MSVC.
12792         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12793         whether wmemset() exists.
12794
12795 2011-10-03  Bruno Haible  <bruno@clisp.org>
12796
12797         wmemmove: Support for MSVC.
12798         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12799         whether wmemmove() exists.
12800
12801 2011-10-03  Bruno Haible  <bruno@clisp.org>
12802
12803         wmemcpy: Support for MSVC.
12804         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12805         whether wmemcpy() exists.
12806
12807 2011-10-03  Bruno Haible  <bruno@clisp.org>
12808
12809         wmemcmp: Support for MSVC.
12810         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12811         whether wmemcmp() exists.
12812
12813 2011-10-03  Bruno Haible  <bruno@clisp.org>
12814
12815         wmemchr: Support for MSVC.
12816         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12817         whether wmemchr() exists.
12818
12819 2011-10-03  Bruno Haible  <bruno@clisp.org>
12820
12821         glthread/*, strsignal: Support for MSVC.
12822         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12823         including <winsock.h> on MSVC 9.
12824         * lib/glthread/lock.h: Likewise.
12825         * lib/glthread/thread.h: Likewise.
12826         * lib/glthread/tls.h: Likewise.
12827         * lib/glthread/yield.h: Likewise.
12828         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12829         if HAVE_UNISTD_H is false.
12830         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12831
12832 2011-10-03  Bruno Haible  <bruno@clisp.org>
12833
12834         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12835         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12836         Set to 100000.
12837
12838 2011-10-03  Bruno Haible  <bruno@clisp.org>
12839
12840         acl: Fix specification.
12841         * lib/file-has-acl.c (file_has_acl): Fix specification.
12842
12843 2011-10-03  Bruno Haible  <bruno@clisp.org>
12844
12845         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12846         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12847         (compute_curr_prefix, shared_library_fullname,
12848         find_shared_library_fullname, get_shared_library_fullname, relocate):
12849         Use it together with PIC && INSTALLDIR.
12850         Reported by <jojelino@gmail.com>
12851         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12852
12853 2011-10-01  Jim Meyering  <meyering@redhat.com>
12854
12855         maint.mk: adjust a release-related rule not to require use of gzip
12856         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12857         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12858         projects that build only .tar.xz files.  Also fix an erroneous test.
12859
12860         test-linkat: don't leave behind a temporary file
12861         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12862         Otherwise, coreutils' "make distcheck" would fail with this:
12863           Only in /c/cu/tests/torture/coreutils/test/\
12864             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12865           make[2]: *** [my-distcheck] Error 1
12866
12867         float, math: add omitted file
12868         * lib/itold.c: Add file, required for yesterday's float change.
12869
12870 2011-10-01  Bruno Haible  <bruno@clisp.org>
12871
12872         isinf: Fix for OpenBSD/x86.
12873         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12874         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12875         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12876
12877 2011-10-01  Bruno Haible  <bruno@clisp.org>
12878
12879         isfinite: Fix syntax error in configure test.
12880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12881
12882         isfinite: Fix typo.
12883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12884         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12885
12886 2011-10-01  Bruno Haible  <bruno@clisp.org>
12887
12888         nonblocking tests: Fix test failure on Linux/IA-64.
12889         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12890         Set to 270000.
12891
12892 2011-10-01  Bruno Haible  <bruno@clisp.org>
12893
12894         mkfifoat tests: Fix a test failure on mingw.
12895         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12896         with error ENOSYS.
12897
12898 2011-09-30  Bruno Haible  <bruno@clisp.org>
12899
12900         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12901         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12902         'long double'. Set REPLACE_ITOLD.
12903         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12904         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12905         * lib/itold.c: New file.
12906         * modules/float (Files): Add lib/itold.c.
12907         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12908         (Makefile.am): Substitute REPLACE_ITOLD.
12909         * modules/math (Depends-on): Add float.
12910         (Makefile.am): Substitute REPLACE_ITOLD.
12911         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12912         * doc/posix-headers/math.texi: Likewise.
12913         * doc/posix-functions/logl.texi: Likewise.
12914
12915 2011-09-30  Bruno Haible  <bruno@clisp.org>
12916
12917         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12918         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12919         Set to 140000.
12920
12921 2011-09-30  Bruno Haible  <bruno@clisp.org>
12922
12923         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12924         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12925         invocation, say "right after AC_PROG_CC_STDC", not "right after
12926         AC_PROG_CC".
12927         Reported by Gary V. Vaughan <gary@gnu.org>.
12928
12929 2011-09-30  Bruno Haible  <bruno@clisp.org>
12930
12931         Centralize C99 requirement.
12932         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12933         * modules/stdarg (configure.ac-early): Invoke it instead of
12934         AC_PROG_CC_STDC.
12935         Reported by Gary V. Vaughan and Paul Eggert.
12936
12937 2011-09-29  Bruno Haible  <bruno@clisp.org>
12938
12939         float: Fix LDBL_MAX value on Linux/PowerPC.
12940         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12941         on Linux/PowerPC.
12942         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12943         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12944         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12945         platform.
12946         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12947
12948 2011-09-29  Bruno Haible  <bruno@clisp.org>
12949
12950         doc: Improve doc about gl_EARLY.
12951         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12952         AC_PROG_CC_STDC invocation.
12953         Reported by Gary V. Vaughan <gary@gnu.org>.
12954
12955 2011-09-28  Bruno Haible  <bruno@clisp.org>
12956
12957         fgetc, fputc, fread, fwrite tests: Fix link error.
12958         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12959         on non-MSVC platforms.
12960         * tests/test-fputc.c (main): Likewise.
12961         * tests/test-fread.c (main): Likewise.
12962         * tests/test-fwrite.c (main): Likewise.
12963         Reported by Jim Meyering.
12964
12965 2011-09-27  Bruno Haible  <bruno@clisp.org>
12966
12967         fputc, fwrite tests: Avoid test failure on MSVC.
12968         * tests/test-fgetc.c: Include msvc-inval.h.
12969         (main): Invoke gl_msvc_inval_ensure_handler.
12970         * tests/test-fputc.c: Include msvc-inval.h.
12971         (main): Invoke gl_msvc_inval_ensure_handler.
12972         * tests/test-fread.c: Include msvc-inval.h.
12973         (main): Invoke gl_msvc_inval_ensure_handler.
12974         * tests/test-fwrite.c: Include msvc-inval.h.
12975         (main): Invoke gl_msvc_inval_ensure_handler.
12976         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12977         * modules/fputc-tests (Depends-on): Likewise.
12978         * modules/fread-tests (Depends-on): Likewise.
12979         * modules/fwrite-tests (Depends-on): Likewise.
12980
12981 2011-09-27  Bruno Haible  <bruno@clisp.org>
12982
12983         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12984         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12985         (raise): Remove older, duplicated declaration.
12986         (_gl_raise_SIGPIPE): New declaration.
12987         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12988         (rpl_raise): Remove function.
12989         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12990         a gnulib-defined SIGPIPE here.
12991         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12992         'sigprocmask' has detected missing signal-blocking and the module
12993         'sigpipe' is enabled.
12994         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12995
12996 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12997
12998         base64-tests: avoid memory leak
12999         * tests/test-base64.c (main): Plug memory leak.
13000
13001         base32: new module
13002         * modules/base32: New module.
13003         * lib/base32.c: New file.
13004         * lib/base32.h: Likewise.
13005         * m4/base32.m4: Likewise.
13006         * modules/base32-tests: New test.
13007         * tests/test-base32.c: Likewise.
13008         * MODULES.html.sh (Misc): Mention it.
13009
13010 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13011
13012         gnulib: use more-standard license notice wording
13013         * gnulib-tool (func_emit_copyright_notice): When emitting a
13014         license notice into a file, use the standard wording as suggested
13015         by the current information for GNU maintainers, except say "file"
13016         rather than "program".  The new wording gives a license version
13017         number, which addresses an issue raised by Glenn Morris in
13018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13019         * m4/onceonly.m4: Use that same wording here, too.
13020
13021         dup2: minor simplification
13022         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13023         as lib/dup2.c no longer uses 'inline'.
13024
13025 2011-09-25  Bruno Haible  <bruno@clisp.org>
13026
13027         strings: Fix compilation error on MSVC.
13028         * lib/strings.in.h: Include <stddef.h> for size_t.
13029
13030 2011-09-25  Bruno Haible  <bruno@clisp.org>
13031
13032         fflush et al.: Document limitation on MSVC.
13033         * doc/posix-functions/fflush.texi: Document possible crash in handling
13034         mode other than DEFAULT_HANDLING.
13035         * doc/posix-functions/fgetc.texi: Likewise.
13036         * doc/posix-functions/fputc.texi: Likewise.
13037         * doc/posix-functions/fread.texi: Likewise.
13038         * doc/posix-functions/fwrite.texi: Likewise.
13039
13040 2011-09-25  Bruno Haible  <bruno@clisp.org>
13041
13042         msvc-inval: Allow three invalid parameter handling modes.
13043         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13044         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13045         macros.
13046         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13047         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13048         SANE_LIBRARY_HANDLING as a no-op.
13049         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13050         <stdlib.h>.
13051         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13052
13053 2011-09-25  Bruno Haible  <bruno@clisp.org>
13054
13055         msvc-inval: Make handler multithread-safe.
13056         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13057         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13058         declarations.
13059         (gl_msvc_inval_current): New declaration.
13060         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13061         Operate on the structure returned by gl_msvc_inval_current().
13062         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13063         Remove varaiables.
13064         (tls_index, tls_initialized): New variables.
13065         (not_per_thread): New variable.
13066         (gl_msvc_inval_current): New function.
13067         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13068         returned by gl_msvc_inval_current().
13069
13070 2011-09-25  Bruno Haible  <bruno@clisp.org>
13071
13072         msvc-inval: Install handler globally.
13073         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13074         !_MSC_VER.
13075         (gl_msvc_invalid_parameter_handler): Remove declaration.
13076         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13077         declarations.
13078         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13079         Install the handler globally, don't uninstall it.
13080         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13081         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13082         currently valid, call RaiseException instead.
13083         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13084         for !_MSC_VER.
13085
13086 2011-09-25  Bruno Haible  <bruno@clisp.org>
13087
13088         strerror_r-posix: Fix for MSVC 9.
13089         * lib/strerror_r.c (local_snprintf): New function.
13090         (snprintf): Define to local_snprintf, not to _snprintf.
13091
13092 2011-09-25  Bruno Haible  <bruno@clisp.org>
13093
13094         ftruncate: Support for MSVC 9.
13095         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13096         (chsize_nothrow): New function.
13097         (chsize): Redefine as a macro.
13098         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13099         * modules/ftruncate (Depends-on): Add msvc-inval.
13100
13101 2011-09-25  Bruno Haible  <bruno@clisp.org>
13102
13103         New module 'fstat'.
13104         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13105         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13106         * lib/fchdir.c (rpl_fstat): Remove function.
13107         * m4/fstat.m4: New file.
13108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13110         declared.
13111         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13112         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13113         * modules/fstat: New file.
13114         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13115         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13116         is set.
13117         * doc/posix-functions/fstat.texi: Mention the new module and the
13118         problem on MSVC.
13119         * NEWS: Mention the change.
13120         * modules/acl (Depends-on): Add fstat.
13121         * modules/chdir-safer (Depends-on): Likewise.
13122         * modules/chown (Depends-on): Likewise.
13123         * modules/copy-file (Depends-on): Likewise.
13124         * modules/fchdir (Depends-on): Likewise.
13125         * modules/fdopendir (Depends-on): Likewise.
13126         * modules/fopen (Depends-on): Likewise.
13127         * modules/fts (Depends-on): Likewise.
13128         * modules/getcwd (Depends-on): Likewise.
13129         * modules/isapipe (Depends-on): Likewise.
13130         * modules/linkat (Depends-on): Likewise.
13131         * modules/lseek (Depends-on): Likewise.
13132         * modules/mkdir-p (Depends-on): Likewise.
13133         * modules/open (Depends-on): Likewise.
13134         * modules/openat (Depends-on): Likewise.
13135         * modules/read-file (Depends-on): Likewise.
13136         * modules/renameat (Depends-on): Likewise.
13137         * modules/utimens (Depends-on): Likewise.
13138
13139 2011-09-25  Bruno Haible  <bruno@clisp.org>
13140
13141         linkat: Fix compilation on MSVC 9.
13142         * lib/linkat.c: Don't include <stdint.h>.
13143
13144 2011-09-25  Bruno Haible  <bruno@clisp.org>
13145
13146         fclose: Support for MSVC 9.
13147         * lib/fclose.c: Include msvc-inval.h.
13148         (fclose_nothrow): New function.
13149         (rpl_fclose): Use it.
13150         * modules/fclose (Depends-on): Add msvc-inval.
13151         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13152
13153 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13154
13155         dup2: minor simplifications
13156         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13157         that it's a performance win.
13158         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13159         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13160
13161 2011-09-24  Jim Meyering  <meyering@redhat.com>
13162
13163         test-futimens: avoid a warning from gcc -Wshadow
13164         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13165         to avoid a shadowing warning.
13166
13167 2011-09-24  Bruno Haible  <bruno@clisp.org>
13168
13169         fdopen: Support for MSVC 9.
13170         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13171         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13172         * lib/fdopen.c: Include msvc-inval.h.
13173         (fdopen_nothrow): New function.
13174         (rpl_fdopen): Use it.
13175         * modules/fdopen (Depends-on): Add msvc-inval.
13176         * modules/fclose-tests (Depends-on): Add fdopen.
13177         * modules/fflush-tests (Depends-on): Likewise.
13178         * modules/fgetc-tests (Depends-on): Likewise.
13179         * modules/fputc-tests (Depends-on): Likewise.
13180         * modules/fread-tests (Depends-on): Likewise.
13181         * modules/freopen-tests (Depends-on): Likewise.
13182         * modules/fseeko-tests (Depends-on): Likewise.
13183         * modules/ftello-tests (Depends-on): Likewise.
13184         * modules/fwrite-tests  (Depends-on): Likewise.
13185         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13186
13187 2011-09-24  Bruno Haible  <bruno@clisp.org>
13188
13189         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13190         * modules/fgetc-tests (Depends-on): Add unistd.
13191         * modules/fputc-tests (Depends-on): Likewise.
13192         * modules/fread-tests (Depends-on): Likewise.
13193         * modules/fwrite-tests (Depends-on): Likewise.
13194
13195 2011-09-24  Bruno Haible  <bruno@clisp.org>
13196
13197         dup: Simplify autoconf test.
13198         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13199         on gl_MSVC_INVAL's result.
13200
13201 2011-09-24  Bruno Haible  <bruno@clisp.org>
13202
13203         Tests for function fwrite().
13204         * modules/fwrite-tests: New file.
13205         * tests/test-fwrite.c: New file.
13206         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13207
13208         Tests for function fread().
13209         * modules/fread-tests: New file.
13210         * tests/test-fread.c: New file.
13211         * modules/stdio-tests (Depends-on): Add fread-tests.
13212
13213         Activate fputc tests.
13214         * modules/stdio-tests (Depends-on): Add fputc-tests.
13215
13216         Enhance fgetc, fputc tests.
13217         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13218         * tests/test-fputc.c (main): Likewise.
13219
13220 2011-09-24  Bruno Haible  <bruno@clisp.org>
13221
13222         write: Support for MSVC 9.
13223         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13224         is not 1.
13225         * lib/write.c (write_nothrow): New function.
13226         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13227         not 1. Use write_nothrow.
13228         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13229         invalid parameter handler.
13230         (gl_PREREQ_WRITE): New macro.
13231         * modules/write (Depends-on): Add msvc-inval.
13232         (configure.ac): Invoke gl_PREREQ_WRITE.
13233         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13234
13235 2011-09-24  Bruno Haible  <bruno@clisp.org>
13236
13237         read: Fix last commit.
13238         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13239
13240 2011-09-24  Bruno Haible  <bruno@clisp.org>
13241
13242         dup2: Fix last commit.
13243         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13244         (rpl_dup2): Disable fcntl workaround on native Windows.
13245
13246         sigprocmask: Make code safer.
13247         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13248         section that changes macro definitions for this compilation unit.
13249
13250 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13251
13252         dup2: clarify by coalescing Windows-specific material
13253         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13254         "msvc-nothrow.h"' to the Windows-specific section, so that the
13255         Emacs source need not contain these include files.
13256         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13257         Windows-specific fixes into this function rather than just the
13258         nothrow fix, as this shortens and clarifies the code.  Always
13259         define as a function, as that's a bit cleaner than having it be
13260         sometimes a function and sometimes a macro.
13261         (rpl_dup2): Move the Windows-specific stuff out of here and into
13262         ms_windows_dup2.  Don't protect the Haiku-related fix with
13263         "#if !defined __linux__", as the same code also works around
13264         a Linux kernel bug, and it doesn't add any system calls on any
13265         platform.  Add comment about FreeBSD 6.1.
13266
13267         sigprocmask: move #include directive
13268         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13269         Windows-specific section, so that the Emacs source need not
13270         contain msvc-inval.h.
13271
13272 2011-09-23  Bruno Haible  <bruno@clisp.org>
13273
13274         read: Support for MSVC 9.
13275         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13276         is not 1.
13277         * lib/read.c (read_nothrow): New function.
13278         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13279         read_nothrow.
13280         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13281         invalid parameter handler.
13282         (gl_PREREQ_READ): New macro.
13283         * modules/read (Depends-on): Add msvc-inval.
13284         (configure.ac): Invoke gl_PREREQ_READ.
13285         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13286
13287 2011-09-23  Bruno Haible  <bruno@clisp.org>
13288
13289         close: Support for MSVC 9.
13290         * lib/close.c: Include <errno.h>, msvc-inval.h.
13291         (close_nothrow): New function.
13292         (rpl_close): Use it.
13293         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13294         invalid parameter handler.
13295         * modules/close (Depends-on): Add msvc-inval.
13296         * modules/dup2-tests (Depends-on): Add close.
13297         * modules/dup3-tests (Depends-on): Likewise.
13298         * modules/fcntl-tests (Depends-on): Likewise.
13299         * modules/spawn-pipe-tests (Depends-on): Likewise.
13300         * modules/unistd-safer-tests (Depends-on): Likewise.
13301         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13302
13303 2011-09-23  Bruno Haible  <bruno@clisp.org>
13304
13305         New module 'dup'.
13306         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13307         Allow replacement.
13308         * lib/dup.c: New file.
13309         * lib/fchdir.c (rpl_dup): Remove function.
13310         * m4/dup.m4: New file.
13311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13313         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13314         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13315         * modules/dup: New file.
13316         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13317         'dup' module is in use.
13318         * modules/fdopendir (Depends-on): Add dup.
13319         * modules/fdutimensat-tests (Depends-on): Likewise.
13320         * modules/fts (Depends-on): Likewise.
13321         * modules/futimens-tests (Depends-on): Likewise.
13322         * modules/posix_spawnp-tests (Depends-on): Likewise.
13323         * modules/unistd-safer-tests (Depends-on): Likewise.
13324         * modules/utimens-tests (Depends-on): Likewise.
13325         * doc/posix-functions/dup.texi: Mention the new module and the problem
13326         on MSVC.
13327
13328 2011-09-23  Bruno Haible  <bruno@clisp.org>
13329
13330         getdtablesize: Support for MSVC 9.
13331         * lib/getdtablesize.c: Include msvc-inval.h.
13332         (_setmaxstdio_nothrow): New function.
13333         (_setmaxstdio): Redefine it.
13334         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13335         * modules/getdtablesize (Depends-on): Add msvc-inval.
13336         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13337
13338 2011-09-23  Bruno Haible  <bruno@clisp.org>
13339
13340         signal-h: Rename from signal.
13341         * modules/signal-h: Renamed from modules/signal.
13342         * modules/pthread_sigmask (Depends-on): Update.
13343         * modules/raise (Depends-on): Likewise.
13344         * modules/sigaction (Depends-on): Likewise.
13345         * modules/sigpipe (Depends-on): Likewise.
13346         * modules/sigprocmask (Depends-on): Likewise.
13347         * modules/sys_select (Depends-on): Likewise.
13348         * modules/signal-h-tests: Renamed from modules/signal-tests.
13349         (Files, Depends-on, Makefile.am): Update.
13350         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13351         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13352         (Files, Makefile.am): Update.
13353         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13354         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13355         * modules/signal: New placeholder file.
13356         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13357         * doc/posix-headers/signal.texi: Update.
13358         * NEWS: Mention the change.
13359
13360 2011-09-23  Bruno Haible  <bruno@clisp.org>
13361
13362         sigprocmask: Avoid crashes through signal() on MSVC 9.
13363         * lib/sigprocmask.c: Include msvc-inval.h.
13364         (signal_nothrow): New function.
13365         (signal): Redefine it.
13366         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13367         * modules/sigprocmask (Depends-on): Add msvc-inval.
13368         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13369
13370 2011-09-23  Bruno Haible  <bruno@clisp.org>
13371
13372         Tests for module 'raise'.
13373         * modules/raise-tests: New file.
13374         * tests/test-raise.c: New file.
13375
13376         raise: Support for MSVC.
13377         * lib/signal.in.h (raise): New declaration.
13378         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13379         for native Windows platforms.
13380         * m4/raise.m4: New file.
13381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13382         HAVE_RAISE, REPLACE_RAISE.
13383         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13384         REPLACE_RAISE.
13385         * modules/raise (Status, Notice): Remove fields.
13386         (Files): Add m4/raise.m4.
13387         (Depends-on): Add signal, msvc-inval.
13388         (configure.ac): Use the common idioms.
13389         (Maintainer): Add me.
13390         * tests/test-signal-c++.cc: Check the signature of raise.
13391         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13392
13393 2011-09-23  Bruno Haible  <bruno@clisp.org>
13394
13395         pipe2: Fix compilation on pre-C99 compilers.
13396         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13397
13398 2011-09-23  Bruno Haible  <bruno@clisp.org>
13399
13400         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13401         * lib/msvc-nothrow.h: New file.
13402         * lib/msvc-nothrow.c: New file.
13403         * m4/msvc-nothrow.m4: New file.
13404         * modules/msvc-nothrow: New file.
13405         * lib/dup2.c: Include msvc-nothrow.h.
13406         (rpl_dup2): No need to protect _get_osfhandle call here.
13407         * lib/accept4.c: Include msvc-nothrow.h.
13408         * lib/error.c: Likewise.
13409         * lib/fcntl.c: Likewise.
13410         * lib/lseek.c: Likewise.
13411         * lib/nonblocking.c: Likewise.
13412         * lib/poll.c: Likewise.
13413         * lib/read.c: Likewise.
13414         * lib/select.c: Likewise.
13415         * lib/sockets.h: Likewise.
13416         * lib/sockets.c: Likewise.
13417         * lib/stdio-read.c: Likewise.
13418         * lib/stdio-write.c: Likewise.
13419         * lib/write.c: Likewise.
13420         * lib/w32sock.h: Likewise.
13421         * lib/w32spawn.h: Likewise.
13422         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13423         * lib/fsync.c: Likewise.
13424         * lib/isapipe.c: Likewise.
13425         * modules/dup2 (Depends-on): Add msvc-nothrow.
13426         * modules/accept4 (Depends-on): Likewise.
13427         * modules/error (Depends-on): Likewise.
13428         * modules/fcntl (Depends-on): Likewise.
13429         * modules/lseek (Depends-on): Likewise.
13430         * modules/nonblocking (Depends-on): Likewise.
13431         * modules/poll (Depends-on): Likewise.
13432         * modules/read (Depends-on): Likewise.
13433         * modules/select (Depends-on): Likewise.
13434         * modules/sockets (Depends-on): Likewise.
13435         * modules/sigpipe (Depends-on): Likewise.
13436         * modules/write (Depends-on): Likewise.
13437         * modules/accept (Depends-on): Likewise.
13438         * modules/bind (Depends-on): Likewise.
13439         * modules/connect (Depends-on): Likewise.
13440         * modules/gethostname (Depends-on): Likewise.
13441         * modules/getpeername (Depends-on): Likewise.
13442         * modules/getsockname (Depends-on): Likewise.
13443         * modules/getsockopt (Depends-on): Likewise.
13444         * modules/ioctl (Depends-on): Likewise.
13445         * modules/listen (Depends-on): Likewise.
13446         * modules/recv (Depends-on): Likewise.
13447         * modules/recvfrom (Depends-on): Likewise.
13448         * modules/send (Depends-on): Likewise.
13449         * modules/sendto (Depends-on): Likewise.
13450         * modules/setsockopt (Depends-on): Likewise.
13451         * modules/shutdown (Depends-on): Likewise.
13452         * modules/socket (Depends-on): Likewise.
13453         * modules/execute (Depends-on): Likewise.
13454         * modules/spawn-pipe (Depends-on): Likewise.
13455         * modules/flock (Depends-on): Likewise.
13456         * modules/fsync (Depends-on): Likewise.
13457         * modules/isapipe (Depends-on): Likewise.
13458         * tests/test-cloexec.c: Include msvc-nothrow.h.
13459         * tests/test-dup-safer.c: Likewise.
13460         * tests/test-dup2.c: Likewise.
13461         * tests/test-dup3.c: Likewise.
13462         * tests/test-fcntl.c: Likewise.
13463         * tests/test-pipe.c: Likewise.
13464         * tests/test-pipe2.c: Likewise.
13465         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13466         * modules/unistd-safer-tests (Depends-on): Likewise.
13467         * modules/dup2-tests (Depends-on): Likewise.
13468         * modules/dup3-tests (Depends-on): Likewise.
13469         * modules/fcntl-tests (Depends-on): Likewise.
13470         * modules/pipe-posix-tests (Depends-on): Likewise.
13471         * modules/pipe2-tests (Depends-on): Likewise.
13472
13473 2011-09-23  Bruno Haible  <bruno@clisp.org>
13474
13475         dup2: Make code more maintainable.
13476         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13477         (rpl_dup2): Use it.
13478         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13479         * modules/dup2 (configure.ac): Invoke it.
13480         Reported by Paul Eggert.
13481
13482 2011-09-23  Bruno Haible  <bruno@clisp.org>
13483
13484         msvc-inval: Fix compilation error.
13485         * lib/msvc-inval.h: Include <excpt.h>.
13486
13487 2011-09-23  Bruno Haible  <bruno@clisp.org>
13488
13489         mkdir: Tweak for MSVC 9.
13490         * lib/sys_stat.in.h: Update comments.
13491         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13492
13493         Tests for module 'chdir'.
13494         * modules/chdir-tests: New file.
13495         * tests/test-chdir.c: New file.
13496
13497         New module 'chdir'.
13498         * modules/chdir: New file.
13499         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13500         (chdir): New declaration.
13501         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13503         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13504         * tests/test-unistd-c++.cc: Check signature of chdir.
13505         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13506         * modules/chdir-long (Depends-on): Add chdir.
13507         * modules/fchdir (Depends-on): Likewise.
13508         * modules/rename (Depends-on): Likewise.
13509         * modules/savewd (Depends-on): Likewise.
13510
13511         rmdir: Support for mingw, MSVC 9.
13512         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13513         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13514
13515         getcwd: Tweak for MSVC 9.
13516         * lib/unistd.in.h: Update comments.
13517         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13518
13519 2011-09-22  Bruno Haible  <bruno@clisp.org>
13520
13521         strerror_r-posix: Avoid a link error on MSVC.
13522         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13523         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13524
13525 2011-09-22  Bruno Haible  <bruno@clisp.org>
13526
13527         select: Avoid link errors on MSVC.
13528         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13529         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13530         * modules/pselect (Link): Likewise.
13531         * NEWS: Mention the change.
13532         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13533         test-select-stdin against $(LIB_SELECT).
13534         * modules/pselect-tests (Makefile.am): Link test-pselect against
13535         $(LIB_SELECT).
13536
13537 2011-09-22  Bruno Haible  <bruno@clisp.org>
13538
13539         select: Avoid compilation error on MSVC.
13540         * lib/select.c: Don't include <stdbool.h>.
13541
13542 2011-09-21  Bruno Haible  <bruno@clisp.org>
13543
13544         Consolidate all uses of PATH_MAX in *.m4 files.
13545         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13546         macros.
13547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13548         and gl_PATHMAX_SNIPPET.
13549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13551         * modules/chdir-long (Files): Add m4/pathmax.m4.
13552         * modules/getcwd (Files): Likewise.
13553
13554 2011-09-21  Bruno Haible  <bruno@clisp.org>
13555
13556         ftruncate: Un-deprecate, concentrate on Win32 support.
13557         * modules/ftruncate (Status, Notice): Remove sections.
13558         (Depends-on): Add largefile.
13559         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13560         non-mingw platforms.
13561         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13562         include <io.h>.
13563         * modules/perror-tests (Depends-on): Add ftruncate.
13564         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13565         'ftruncate' module.
13566
13567 2011-09-21  Bruno Haible  <bruno@clisp.org>
13568
13569         Add dependencies to new dirent related modules.
13570         * modules/opendir (Depends-on): Add closedir.
13571         * modules/getcwd (Depends-on): Add opendir, closedir.
13572         * modules/dirent-safer-tests (Depends-on): Likewise.
13573         * modules/fdopendir-tests (Depends-on): Likewise.
13574         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13575         * modules/renameat-tests (Depends-on): Likewise.
13576
13577 2011-09-21  Bruno Haible  <bruno@clisp.org>
13578
13579         opendir: Avoid compilation error on mingw.
13580         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13581         * modules/opendir (Depends-on): Add unistd.
13582
13583 2011-09-21  Bruno Haible  <bruno@clisp.org>
13584
13585         ftruncate tests: Avoid a test failure on mingw.
13586         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13587
13588 2011-09-21  Bruno Haible  <bruno@clisp.org>
13589
13590         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13591         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13592         native Windows.
13593
13594 2011-09-21  Bruno Haible  <bruno@clisp.org>
13595
13596         New module 'fdopen'.
13597         * lib/stdio.in.h (fdopen): New declaration.
13598         * lib/fdopen.c: New file.
13599         * m4/fdopen.m4: New file.
13600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13601         REPLACE_FDOPEN.
13602         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13603         REPLACE_FDOPEN.
13604         * modules/fdopen: New file.
13605         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13606         * tests/test-stdio-c++.cc: Check signature of fdopen.
13607         * doc/posix-functions/fdopen.texi: Mention the new module.
13608
13609 2011-09-21  Bruno Haible  <bruno@clisp.org>
13610
13611         unlockpt tests: Avoid test failure on NetBSD 5.1.
13612         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13613         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13614
13615 2011-09-21  Bruno Haible  <bruno@clisp.org>
13616
13617         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13618         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13619         * tests/test-getlogin_r.c (main): Likewise.
13620
13621 2011-09-20  Bruno Haible  <bruno@clisp.org>
13622
13623         time tests: Don't require pid_t.
13624         * doc/posix-headers/time.texi: Revert last change.
13625         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13626         * tests/test-time.c: Comment out the check for pid_t.
13627
13628 2011-09-20  Bruno Haible  <bruno@clisp.org>
13629
13630         fsync tests: Avoid a test failure on mingw.
13631         * tests/test-fsync.c (main): Allow a failure with EIO.
13632
13633 2011-09-20  Bruno Haible  <bruno@clisp.org>
13634
13635         euidaccess: Update comments.
13636         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13637
13638 2011-09-20  Bruno Haible  <bruno@clisp.org>
13639
13640         Ensure EBADF returns for socket functions on mingw.
13641         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13642         descriptor is invalid.
13643         * lib/bind.c (rpl_bind): Likewise.
13644         * lib/connect.c (rpl_connect): Likewise.
13645         * lib/getpeername.c (rpl_getpeername): Likewise.
13646         * lib/getsockname.c (rpl_getsockname): Likewise.
13647         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13648         * lib/listen.c (rpl_listen): Likewise.
13649         * lib/recv.c (rpl_recv): Likewise.
13650         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13651         * lib/send.c (rpl_send): Likewise.
13652         * lib/sendto.c (rpl_sendto): Likewise.
13653         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13654         * lib/shutdown.c (rpl_shutdown): Likewise.
13655
13656 2011-09-20  Bruno Haible  <bruno@clisp.org>
13657
13658         select tests: EBADF tests.
13659         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13660         test_bad_fd): New functions.
13661         (test_function): Invoke also test_bad_fd.
13662
13663 2011-09-20  Bruno Haible  <bruno@clisp.org>
13664
13665         Tests for module 'posix_spawn_file_actions_addopen.
13666         * modules/posix_spawn_file_actions_addopen-tests: New file.
13667         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13668
13669         Tests for module 'posix_spawn_file_actions_adddup2'.
13670         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13671         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13672
13673         Tests for module 'posix_spawn_file_actions_addclose'.
13674         * modules/posix_spawn_file_actions_addclose-tests: New file.
13675         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13676
13677 2011-09-20  Bruno Haible  <bruno@clisp.org>
13678
13679         Tests for module 'unlockpt'.
13680         * modules/unlockpt-tests: New file.
13681         * tests/test-unlockpt.c: New file.
13682         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13683
13684         Tests for module 'grantpt'.
13685         * modules/grantpt-tests: New file.
13686         * tests/test-grantpt.c: New file.
13687         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13688
13689 2011-09-20  Bruno Haible  <bruno@clisp.org>
13690
13691         freopen tests: EBADF tests.
13692         * tests/test-freopen.c: Include errno.h, unistd.h.
13693         (main): Add tests for EBADF, commented out for the moment.
13694
13695         fclose tests: EBADF tests.
13696         * tests/test-fclose.c (main): Add tests for EBADF.
13697
13698         fflush tests: EBADF tests.
13699         * tests/test-fflush.c: Include errno.h, macros.h.
13700         (main): Add tests for EBADF.
13701
13702         ftello tests: EBADF tests.
13703         * tests/test-ftello4.sh: New file.
13704         * tests/test-ftello4.c: New file.
13705         * modules/ftello-tests (Files): Add them.
13706         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13707
13708         fseeko tests: EBADF tests.
13709         * tests/test-fseeko4.sh: New file.
13710         * tests/test-fseeko4.c: New file.
13711         * modules/fseeko-tests (Files): Add them.
13712         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13713
13714         Tests for function fputc().
13715         * modules/fputc-tests: New file.
13716         * tests/test-fputc.c: New file.
13717         * modules/stdio-tests (Depends-on): Add fputc-tests.
13718
13719         Tests for function fgetc().
13720         * modules/fgetc-tests: New file.
13721         * tests/test-fgetc.c: New file.
13722         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13723
13724         Tests for function fdopen().
13725         * modules/fdopen-tests: New file.
13726         * tests/test-fdopen.c: New file.
13727         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13728
13729         Tests for module 'vdprintf'.
13730         * modules/vdprintf-tests: New file.
13731         * tests/test-vdprintf.c: New file.
13732
13733         Tests for module 'dprintf'.
13734         * modules/dprintf-tests: New file.
13735         * tests/test-dprintf.c: New file.
13736
13737 2011-09-20  Bruno Haible  <bruno@clisp.org>
13738
13739         Tests for module 'ioctl'.
13740         * modules/ioctl-tests: New file.
13741         * tests/test-ioctl.c: New file.
13742
13743 2011-09-20  Bruno Haible  <bruno@clisp.org>
13744
13745         fcntl tests: EBADF tests.
13746         * tests/test-fcntl.c (main): Add more tests for EBADF.
13747
13748 2011-09-20  Bruno Haible  <bruno@clisp.org>
13749
13750         utimensat tests: EBADF tests.
13751         * tests/test-utimensat.c (main): Add tests for EBADF.
13752
13753         renameat tests: EBADF tests.
13754         * tests/test-renameat.c (main): Add tests for EBADF.
13755
13756         mkfifoat tests: EBADF tests.
13757         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13758
13759         readlinkat tests: EBADF tests.
13760         * tests/test-readlinkat.c (main): Add tests for EBADF.
13761
13762         symlinkat tests: EBADF tests.
13763         * tests/test-symlinkat.c (main): Add tests for EBADF.
13764
13765         linkat tests: EBADF tests.
13766         * tests/test-linkat.c (main): Add tests for EBADF.
13767
13768         Tests for module 'faccessat'.
13769         * modules/faccessat-tests: New file.
13770         * tests/test-faccessat.c: New file.
13771
13772         fdopendir tests: EBADF tests.
13773         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13774
13775         openat tests: EBADF tests.
13776         * tests/test-fchownat.c (main): Add tests for EBADF.
13777         * tests/test-fstatat.c (main): Likewise.
13778         * tests/test-mkdirat.c (main): Likewise.
13779         * tests/test-openat.c (main): Likewise.
13780         * tests/test-unlinkat.c (main): Likewise.
13781         * tests/test-fchmodat.c: New file.
13782         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13783         (Makefile.am): Also run 'test-fchmodat'.
13784
13785 2011-09-20  Bruno Haible  <bruno@clisp.org>
13786
13787         utimens, futimens, fdutimensat tests: EBADF tests.
13788         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13789
13790         Tests for function fstat().
13791         * modules/fstat-tests: New file.
13792         * tests/test-fstat.c: New file.
13793         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13794
13795 2011-09-20  Bruno Haible  <bruno@clisp.org>
13796
13797         test-ttyname_r tests: EBADF tests.
13798         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13799
13800         Tests for module 'isatty'.
13801         * modules/isatty-tests: New file.
13802         * tests/test-isatty.c: New file.
13803
13804         Tests for module 'write'.
13805         * modules/write-tests: New file.
13806         * tests/test-write.c: New file.
13807
13808         Tests for module 'read'.
13809         * modules/read-tests: New file.
13810         * tests/test-read.c: New file.
13811
13812         pwrite tests: EBADF tests.
13813         * tests/test-pwrite.c (main): Add tests for EBADF.
13814
13815         pread tests: EBADF tests.
13816         * tests/test-pread.c (main): Add tests for EBADF.
13817
13818         lseek tests: EBADF tests.
13819         * tests/test-lseek.c (main): Add more tests for EBADF.
13820
13821         Tests for module 'ftruncate'.
13822         * modules/ftruncate-tests: New file.
13823         * tests/test-ftruncate.sh: New file.
13824         * tests/test-ftruncate.c: New file.
13825
13826         fsync tests: EBADF tests.
13827         * tests/test-fsync.c (main): Add more tests for EBADF.
13828
13829         fdatasync tests: EBADF tests.
13830         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13831
13832         Tests for module 'fchown'.
13833         * modules/fchown-tests: New file.
13834         * tests/test-fchown.c: New file.
13835
13836         Tests for module 'fchmod'.
13837         * modules/fchmod-tests: New file.
13838         * tests/test-fchmod.c: New file.
13839
13840         fchdir tests: EBADF tests.
13841         * tests/test-fchdir.c (main): Add more tests for EBADF.
13842
13843         dup2 tests: EBADF tests.
13844         * tests/test-dup2.c (main): Add more tests for EBADF.
13845
13846         Tests for module 'dup'.
13847         * modules/dup-tests: New file.
13848         * tests/test-dup.c: New file.
13849
13850         Tests for module 'close'.
13851         * modules/close-tests: New file.
13852         * tests/test-close.c: New file.
13853
13854 2011-09-20  Bruno Haible  <bruno@clisp.org>
13855
13856         Tests for module 'shutdown'.
13857         * modules/shutdown-tests: New file.
13858         * tests/test-shutdown.c: New file.
13859
13860         Tests for module 'setsockopt'.
13861         * modules/setsockopt-tests: New file.
13862         * tests/test-setsockopt.c: New file.
13863
13864         Tests for module 'sendto'.
13865         * modules/sendto-tests: New file.
13866         * tests/test-sendto.c: New file.
13867
13868         Tests for module 'send'.
13869         * modules/send-tests: New file.
13870         * tests/test-send.c: New file.
13871
13872         Tests for module 'recvfrom'.
13873         * modules/recvfrom-tests: New file.
13874         * tests/test-recvfrom.c: New file.
13875
13876         Tests for module 'recv'.
13877         * modules/recv-tests: New file.
13878         * tests/test-recv.c: New file.
13879
13880         Tests for module 'listen'.
13881         * modules/listen-tests: New file.
13882         * tests/test-listen.c: New file.
13883
13884         Tests for module 'getsockopt'.
13885         * modules/getsockopt-tests: New file.
13886         * tests/test-getsockopt.c: New file.
13887
13888         Tests for module 'getsockname'.
13889         * modules/getsockname-tests: New file.
13890         * tests/test-getsockname.c: New file.
13891
13892         Tests for module 'getpeername'.
13893         * modules/getpeername-tests: New file.
13894         * tests/test-getpeername.c: New file.
13895
13896         Tests for module 'connect'.
13897         * modules/connect-tests: New file.
13898         * tests/test-connect.c: New file.
13899
13900         Tests for module 'bind'.
13901         * modules/bind-tests: New file.
13902         * tests/test-bind.c: New file.
13903
13904         accept4 tests: Fix for native Windows.
13905         * tests/test-accept4.c: Include sockets.h.
13906         (main): Invoke gl_sockets_startup.
13907         * modules/accept4-tests (Depends-on): Add sockets.
13908
13909         accept tests: Fix for native Windows.
13910         * tests/test-accept.c: Include sockets.h.
13911         (main): Invoke gl_sockets_startup.
13912         * modules/accept-tests (Depends-on): Add sockets.
13913
13914 2011-09-19  Bruno Haible  <bruno@clisp.org>
13915
13916         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13917         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13918         do...while(0).
13919         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13920         Suggested by Paul Eggert.
13921
13922 2011-09-19  Bruno Haible  <bruno@clisp.org>
13923
13924         sched: Ensure pid_t is defined.
13925         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13926         not define pid_t.
13927         * lib/sched.in.h: Include <sys/types.h>.
13928         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13930
13931 2011-09-19  Bruno Haible  <bruno@clisp.org>
13932
13933         msvc-inval: Ensure the entire expansion is a single statement.
13934         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13935         of braces.
13936
13937 2011-09-19  Jim Meyering  <meyering@redhat.com>
13938
13939         tests: use printf, not echo in init.sh's warn_ function
13940         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13941         misbehave when given strings containing a backslash or starting
13942         with e.g., -n.  James Youngman suggested setting IFS.
13943
13944 2011-09-19  Eric Blake  <eblake@redhat.com>
13945
13946         futimens: enhance test
13947         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13948         closed non-negative fd.
13949
13950         date: accept 'hence' as opposite of 'ago'
13951         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13952         * tests/test-parse-datetime.c (main): Enhance test.
13953         Suggested by Jesse Wilson.
13954
13955 2011-09-19  Jim Meyering  <meyering@redhat.com>
13956
13957         getcwd: don't fail in a deep directory on a system without openat
13958         Before this change, getcwd would fail when called from a directory
13959         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13960         the non-openat implementation used "..", "../..", "../../..", etc.
13961         to access ancestor directories.  With too many, that string would
13962         be longer than PATH_MAX.
13963         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13964         using gnulib's openat replacement.
13965         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13966         we're using the replacement function.
13967
13968 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13969
13970         maint.mk: avoid warnings from perl about missing files
13971         * top/maint.mk (def_sym_regex): Ignore files listed in
13972         $(gl_other_headers_) that do not exist, say because a project
13973         does not use a corresponding module.
13974
13975 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13976
13977         stat: use pathmax.h only if needed
13978         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13979         This is better for Emacs, which does not have a mingw port and
13980         therefore can avoid the pathmax module.
13981
13982         utimens: remove dependency on dup2
13983         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13984         to work around the Linux kernel bug.
13985         * modules/utimens (Depends-on): Remove dup2.
13986
13987 2011-09-18  Bruno Haible  <bruno@clisp.org>
13988
13989         inet_ntop, inet_pton: Look for it also in libresolv.
13990         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13991         libnsl, search for it in libresolv.
13992         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13993         Needed on Solaris 7.
13994
13995 2011-09-18  Bruno Haible  <bruno@clisp.org>
13996
13997         accept, accept4 tests: Avoid link error on Solaris.
13998         * modules/accept-tests (Makefile.am): Link test-accept against
13999         $(LIBSOCKET).
14000         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14001         $(LIBSOCKET).
14002
14003         accept4: Avoid link error on Solaris.
14004         * modules/accept4 (Link): New section.
14005
14006         socket functions: Avoid link errors on Solaris.
14007         * modules/accept (Depends-on): Add socketlib.
14008         (Link): New section.
14009         * modules/bind (Depends-on): Add socketlib.
14010         (Link): New section.
14011         * modules/connect (Depends-on): Add socketlib.
14012         (Link): New section.
14013         * modules/getpeername (Depends-on): Add socketlib.
14014         (Link): New section.
14015         * modules/getsockname (Depends-on): Add socketlib.
14016         (Link): New section.
14017         * modules/getsockopt (Depends-on): Add socketlib.
14018         (Link): New section.
14019         * modules/listen (Depends-on): Add socketlib.
14020         (Link): New section.
14021         * modules/recv (Depends-on): Add socketlib.
14022         (Link): New section.
14023         * modules/recvfrom (Depends-on): Add socketlib.
14024         (Link): New section.
14025         * modules/send (Depends-on): Add socketlib.
14026         (Link): New section.
14027         * modules/sendto (Depends-on): Add socketlib.
14028         (Link): New section.
14029         * modules/setsockopt (Depends-on): Add socketlib.
14030         (Link): New section.
14031         * modules/shutdown (Depends-on): Add socketlib.
14032         (Link): New section.
14033         * modules/socket (Depends-on): Add socketlib.
14034         (Link): New section.
14035
14036 2011-09-18  Bruno Haible  <bruno@clisp.org>
14037
14038         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14039         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14040         than 5 seconds.
14041         * modules/ptsname-tests (configure.ac): Test for alarm.
14042
14043 2011-09-18  Bruno Haible  <bruno@clisp.org>
14044
14045         posix_spawn_file_actions_add*: Fix module dependencies.
14046         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14047         posix_spawn_file_actions_init.
14048         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14049         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14050
14051 2011-09-18  Bruno Haible  <bruno@clisp.org>
14052
14053         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14054         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14055         * tests/test-renameat.c (main): Likewise.
14056
14057 2011-09-18  Bruno Haible  <bruno@clisp.org>
14058
14059         Tests for module 'accept4'.
14060         * modules/accept4-tests: New file.
14061         * tests/test-accept4.c: New file.
14062
14063 2011-09-18  Bruno Haible  <bruno@clisp.org>
14064
14065         Tests for module 'accept'.
14066         * modules/accept-tests: New file.
14067         * tests/test-accept.c: New file.
14068
14069 2011-09-18  Bruno Haible  <bruno@clisp.org>
14070
14071         dup2: Support for MSVC.
14072         * lib/dup2.c: Include msvc-inval.h.
14073         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14074         _get_osfhandle calls.
14075         * modules/dup2 (Depends-on): Add msvc-inval.
14076         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14077
14078         New module 'msvc-inval'.
14079         * lib/msvc-inval.h: New file.
14080         * lib/msvc-inval.c: New file.
14081         * m4/msvc-inval.m4: New file.
14082         * modules/msvc-inval: New file.
14083
14084 2011-09-17  Bruno Haible  <bruno@clisp.org>
14085
14086         Tests for module 'pclose'.
14087         * modules/pclose-tests: New file.
14088
14089         New module 'pclose'.
14090         * lib/stdio.in.h (pclose): New declaration.
14091         * lib/pclose.c: New file.
14092         * m4/pclose.m4: New file.
14093         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14095         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14096         * modules/pclose: New file.
14097         * modules/popen-tests (Depends-on): Add pclose.
14098         * modules/popen-safer-tests (Depends-on): Likewise.
14099         * doc/posix-functions/pclose.texi: Mention the new module.
14100
14101 2011-09-17  Bruno Haible  <bruno@clisp.org>
14102
14103         popen: Support for MSVC.
14104         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14105         * lib/popen.c (popen): Provide alternate definition for native Windows.
14106         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14108         * modules/popen (Depends-on, configure.ac): Update condition.
14109         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14110         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14111         fixed.
14112
14113 2011-09-17  Bruno Haible  <bruno@clisp.org>
14114
14115         isnanl, isnand, isnanf: Work around MSVC bug.
14116         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14117
14118 2011-09-17  Bruno Haible  <bruno@clisp.org>
14119
14120         sys_socket tests: Fix recent mistake.
14121         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14122
14123 2011-09-17  Bruno Haible  <bruno@clisp.org>
14124
14125         putenv: Support for MSVC.
14126         * modules/putenv (Depends-on): Add environ.
14127         * lib/putenv.c (environ): Disable declaration.
14128         * lib/unistd.in.h: Update comment.
14129
14130 2011-09-17  Bruno Haible  <bruno@clisp.org>
14131
14132         math: Avoid macro redefinition warnings on MSVC.
14133         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14134         Undefine before redefining.
14135
14136 2011-09-17  Bruno Haible  <bruno@clisp.org>
14137
14138         doc: Mention functions which are declared as macros.
14139         * doc/posix-functions/*[fl].texi: Mention that some functions are
14140         defined as macros with arguments only.
14141
14142 2011-09-17  Bruno Haible  <bruno@clisp.org>
14143
14144         Add dependencies to new dirent related modules.
14145         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14146         * modules/fts (Depends-on): Likewise.
14147         * modules/glob (Depends-on): Likewise.
14148         * modules/savedir (Depends-on): Likewise.
14149         * modules/scandir (Depends-on): Likewise.
14150         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14151         * modules/fdopendir (Depends-on): Add opendir.
14152
14153 2011-09-17  Bruno Haible  <bruno@clisp.org>
14154
14155         inet_pton: Support for MSVC on Windows Vista or newer.
14156         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14157         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14158         HAVE_DECL_INET_PTON is defined.
14159         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14160         On platforms with <winsock2.h>, test whether inet_pton is declared in
14161         <ws2tcpip.h>. If so, arrange to replace it.
14162         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14163         REPLACE_INET_PTON.
14164         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14165         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14166         (Depends-on, configure.ac): Update condition.
14167         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14168
14169 2011-09-17  Bruno Haible  <bruno@clisp.org>
14170
14171         inet_ntop: Support for MSVC on Windows Vista or newer.
14172         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14173         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14174         HAVE_DECL_INET_NTOP is defined.
14175         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14176         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14177         <ws2tcpip.h>. If so, arrange to replace it.
14178         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14179         REPLACE_INET_NTOP.
14180         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14181         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14182         (Depends-on, configure.ac): Update condition.
14183         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14184
14185 2011-09-16  Eric Blake  <eblake@redhat.com>
14186
14187         test-fsync: yet another enhancement
14188         * tests/test-fsync.c (main): Also test behavior on read-only text
14189         file.
14190
14191 2011-09-16  Bruno Haible  <bruno@clisp.org>
14192
14193         Enhance fsync, fdatasync tests.
14194         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14195         * tests/test-fdatasync.c (main): Likewise.
14196
14197 2011-09-16  Bruno Haible  <bruno@clisp.org>
14198
14199         Support for MSVC compiler: Ensure mode_t gets defined.
14200         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14203         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14204         * tests/test-fcntl-h.c: Check that mode_t is defined.
14205         * tests/test-sys_stat.c: Likewise.
14206         * tests/test-sys_types.c: Likewise.
14207         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14208         * doc/posix-headers/sys_stat.texi: Likewise.
14209         * doc/posix-headers/sys_types.texi: Likewise.
14210
14211 2011-09-16  Bruno Haible  <bruno@clisp.org>
14212
14213         sys_stat: Support for MSVC.
14214         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14215         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14216         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14217         MSVC.
14218
14219 2011-09-16  Bruno Haible  <bruno@clisp.org>
14220
14221         Support for MSVC compiler: Ensure off_t gets defined.
14222         * lib/unistd.in.h: Include <sys/types.h>.
14223         * tests/test-fcntl-h.c: Check that off_t is defined.
14224         * tests/test-sys_stat.c: Likewise.
14225         * tests/test-sys_types.c: Likewise.
14226
14227 2011-09-16  Eric Blake  <eblake@redhat.com>
14228
14229         fdatasync: port to Solaris
14230         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14231         * modules/fdatasync (Link): Document it.
14232         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14233
14234         fdatasync: port to MacOS X 10.7
14235         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14236         declared.
14237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14238         * modules/unistd (Makefile.am): Substitute it.
14239         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14240         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14241
14242         fdatasync: minor improvements
14243         * modules/fdatasync (Depends-on): Add condition for fsync.
14244         * lib/fdatasync.c (fdatasync): Add comment.
14245         * tests/test-unistd-c++.cc: Test fdatasync.
14246
14247         unistd: update refs to newer POSIX
14248         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14249         Suggested by Bruno Haible.
14250
14251         fdatasync: new module
14252         * modules/fsync (Description): Document difference to fdatasync.
14253         * modules/fdatasync: New module.
14254         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14255         * lib/fdatasync.c (fdatasync): Likewise.
14256         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14257         defaults.
14258         * modules/unistd (Makefile.am): Set witnesses.
14259         * lib/unistd.in.h (fdatasync): Declare.
14260         * MODULES.html.sh: Document it.
14261         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14262         * modules/fdatasync-tests: New test.
14263         * tests/test-fdatasync.c: Likewise.
14264
14265 2011-09-16  Eric Blake  <eblake@redhat.com>
14266
14267         test-fsync: enhance tests
14268         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14269         * tests/test-fsync.c (main): Enhance test.
14270
14271 2011-09-15  Bruno Haible  <bruno@clisp.org>
14272
14273         Support for MSVC compiler: Ensure ssize_t gets defined.
14274         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14275         * doc/posix-headers/stdio.texi: Likewise.
14276         * modules/stdio (Depends-on): Add ssize_t.
14277         * modules/sys_socket (Depends-on): Likewise.
14278         * modules/sys_types (Depends-on): Likewise.
14279         * modules/sys_uio (Depends-on): Likewise.
14280         * modules/unistd (Depends-on): Likewise.
14281         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14282         * tests/test-sys_types.c: Check that ssize_t is defined.
14283
14284 2011-09-14  Bruno Haible  <bruno@clisp.org>
14285
14286         Avoid using #, the m4 comment starter character, near brackets.
14287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14288         delimiter character in sed expressions.
14289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14290         Suggested by Eric Blake.
14291
14292         Properly quote AC_CHECK_DECLS' 4th argument.
14293         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14294         argument.
14295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14296         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14298         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14299         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14300         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14302         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14303         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14305         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14306         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14307         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14308         * m4/isinf.m4 (gl_ISINF): Likewise.
14309         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14310         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14311         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14312         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14315         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14316         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14317         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14322         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14324         Reported by Eric Blake.
14325
14326         Properly quote AC_CHECK_DECL's 4th argument.
14327         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14328         argument.
14329         * m4/argp.m4 (gl_ARGP): Likewise.
14330         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14331         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14332         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14333         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14334         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14335         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14337         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14339         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14340         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14341         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14342         Reported by Eric Blake.
14343
14344 2011-09-14  Eric Blake  <eblake@redhat.com>
14345
14346         opendir: avoid compile warning
14347         * lib/opendir.c (includes): Always include errno.h.
14348         Reported by Tatsuro MATSUOKA.
14349
14350 2011-09-14  Jim Meyering  <meyering@redhat.com>
14351
14352         maint.mk: sc_tight_scope: propagate failure from sub-make
14353         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14354         Reported by Martin von Gagern.
14355
14356 2011-09-13  Bruno Haible  <bruno@clisp.org>
14357
14358         tempname: Support for MSVC.
14359         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14360         MSVC.
14361         * modules/tempname (Depends-on): Add fcntl-h.
14362
14363 2011-09-13  Bruno Haible  <bruno@clisp.org>
14364
14365         sys_time: Support for MSVC.
14366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14367         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14368         include <winsock2.h>.
14369         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14370         function declarations that collide with POSIX.
14371         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14372         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14373
14374 2011-09-13  Bruno Haible  <bruno@clisp.org>
14375
14376         stat: Support for MSVC.
14377         * lib/stat.c: Include pathmax.h.
14378         * modules/stat (Depends-on): Add pathmax.
14379
14380         pathmax: Support for native Windows.
14381         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14382
14383 2011-09-12  Bruno Haible  <bruno@clisp.org>
14384
14385         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14386         * lib/dirent.in.h (struct dirent): New type.
14387         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14388         DT_WHT): New macros.
14389         (DIR): New type.
14390         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14391         (readdir, rewinddir): New declarations.
14392         * lib/dirent-private.h: New file.
14393         * lib/opendir.c: New file.
14394         * lib/readdir.c: New file.
14395         * lib/rewinddir.c: New file.
14396         * lib/closedir.c: New file.
14397         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14398         * m4/opendir.m4: New file.
14399         * m4/readdir.m4: New file.
14400         * m4/rewinddir.m4: New file.
14401         * m4/closedir.m4: New file.
14402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14403         REPLACE_CLOSEDIR here.
14404         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14405         readdir, rewinddir are declared.
14406         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14407         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14408         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14409         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14410         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14411         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14412         * modules/opendir: New file.
14413         * modules/readdir: New file.
14414         * modules/rewinddir: New file.
14415         * modules/closedir: New file.
14416         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14417         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14418         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14419         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14420         * NEWS: Mention the 'fchdir' change.
14421
14422 2011-09-11  Bruno Haible  <bruno@clisp.org>
14423
14424         asm-underscore.m4: Support for MSVC.
14425         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14426         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14427
14428 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14429
14430         Doc about crypt functions.
14431         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14432         needing for _GNU_SOURCE to get crypt.
14433         * doc/posix-functions/encrypt.texi: Likewise.
14434         * doc/posix-functions/setkey.texi: Likewise.
14435
14436 2011-09-11  Bruno Haible  <bruno@clisp.org>
14437
14438         doc: Update regarding MSVC 9.
14439         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14440         tested".
14441         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14442         * doc/posix-headers/*.texi: Likewise.
14443         * doc/pastposix-functions/*.texi: Likewise.
14444         * doc/glibc-functions/*.texi: Likewise.
14445         * doc/glibc-headers/*.texi: Likewise.
14446
14447 2011-09-11  Bruno Haible  <bruno@clisp.org>
14448
14449         unistd et al.: Don't assume <unistd.h> exists.
14450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14451         does not exist.
14452         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14453         exist. But include <stdlib.h>.
14454         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14455         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14456         symlink() does not exist.
14457         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14458         include <io.h> instead.
14459         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14460         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14461         include <direct.h> instead.
14462         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14464         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14465         <io.h> instead.
14466         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14467         correctly if the system does not have hard links.
14468         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14469         <direct.h> instead.
14470         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14471         it when looking for function declarations.
14472         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14473         <direct.h> and <io.h> instead.
14474         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14475
14476 2011-09-11  Bruno Haible  <bruno@clisp.org>
14477
14478         strcase: Support for MSVC.
14479         * modules/strcase (Status, Notice): Remove obsoletion mark.
14480         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14481         * doc/posix-functions/strncasecmp.texi: Likewise.
14482
14483         strings: Don't assume <strings.h> exists.
14484         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14485         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14486         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14487         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14488
14489 2011-09-11  Bruno Haible  <bruno@clisp.org>
14490
14491         dirent: Don't assume <dirent.h> exists.
14492         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14493         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14494         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14495         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14496
14497 2011-09-11  Bruno Haible  <bruno@clisp.org>
14498
14499         Fix wint_t on MSVC.
14500         * lib/wchar.in.h (wint_t): On MSVC, override it.
14501         * lib/wctype.in.h (wint_t): Likewise.
14502         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14503         MSVC.
14504         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14505         * doc/posix-headers/wctype.texi: Likewise.
14506
14507 2011-09-11  Bruno Haible  <bruno@clisp.org>
14508
14509         sys_types: Fix typo.
14510         * lib/sys_types.in.h: Fix typo in comment.
14511         Reported by Paul Eggert.
14512
14513         Support for MSVC compiler: Ensure size_t gets defined.
14514         * modules/strings (Depends-on): Add 'sys_types'.
14515         * modules/sys_uio (Depends-on): Likewise.
14516         * lib/sys_uio.in.h: Update comment.
14517
14518         C++ tests for module 'sys_types'.
14519         * modules/sys_types-c++-tests: New file.
14520         * tests/test-sys_types-c++.cc: New file.
14521
14522         Tests for module 'sys_types'.
14523         * modules/sys_types-tests: New file.
14524         * tests/test-sys_types.c: New file.
14525
14526         New module 'sys_types'.
14527         * lib/sys_types.in.h: New file.
14528         * m4/sys_types_h.m4: New file.
14529         * modules/sys_types: New file.
14530         * doc/posix-headers/sys_types.texi: Mention the new module and the
14531         size_t problem on MSVC 9.
14532
14533 2011-09-11  Bruno Haible  <bruno@clisp.org>
14534
14535         Support for MSVC compiler: Avoid division by a literal 0.
14536         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14538         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14539         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14540         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14541         * tests/infinity.h: New file.
14542         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14543         on MSVC.
14544         * tests/test-ceilf1.c: Include infinity.h.
14545         (main): Use Infinityf.
14546         * tests/test-ceil1.c: Include infinity.h.
14547         (main): Use Infinityd.
14548         * tests/test-ceill.c: Include infinity.h.
14549         (main): Use Infinityl.
14550         * tests/test-dprintf-posix.c: Include infinity.h.
14551         (test_function): Use Infinityd.
14552         * tests/test-floorf1.c: Include infinity.h.
14553         (main): Use Infinityf.
14554         * tests/test-floor1.c: Include infinity.h.
14555         (main): Use Infinityd.
14556         * tests/test-floorl.c: Include infinity.h.
14557         (main): Use Infinityl.
14558         * tests/test-fprintf-posix.c: Include infinity.h.
14559         (test_function): Use Infinityd.
14560         * tests/test-frexp.c: Include infinity.h.
14561         (main): Use Infinityd.
14562         * tests/test-frexpl.c: Include infinity.h.
14563         (main): Use Infinityl.
14564         * tests/test-isfinite.c: Include infinity.h.
14565         (test_isfinitef): Use Infinityf.
14566         (test_isfinited): Use Infinityd.
14567         (test_isfinitel): Use Infinityl.
14568         * tests/test-isinf.c: Include infinity.h.
14569         (test_isinff): Use Infinityf.
14570         (test_isinfd): Use Infinityd.
14571         (test_isinfl): Use Infinityl.
14572         * tests/test-isnan.c: Include infinity.h.
14573         (test_float): Use Infinityf.
14574         (test_double): Use Infinityd.
14575         (test_long_double): Use Infinityl.
14576         * tests/test-isnanf.h: Include infinity.h.
14577         (main): Use Infinityf.
14578         * tests/test-isnand.h: Include infinity.h.
14579         (main): Use Infinityd.
14580         * tests/test-isnanl.h: Include infinity.h.
14581         (main): Use Infinityl.
14582         * tests/test-ldexpl.c: Include infinity.h.
14583         (main): Use Infinityl.
14584         * tests/test-printf-posix.h: Include infinity.h.
14585         (test_function): Use Infinityd.
14586         * tests/test-roundf1.c: Include infinity.h.
14587         (main): Use Infinityf.
14588         * tests/test-round1.c: Include infinity.h.
14589         (main): Use Infinityd.
14590         * tests/test-roundl.c: Include infinity.h.
14591         (main): Use Infinityl.
14592         * tests/test-signbit.c: Include infinity.h.
14593         (test_signbitf): Use Infinityf.
14594         (test_signbitd): Use Infinityd.
14595         (test_signbitl): Use Infinityl.
14596         * tests/test-snprintf-posix.h: Include infinity.h.
14597         (test_function): Use Infinityd, Infinityl.
14598         * tests/test-sprintf-posix.h: Include infinity.h.
14599         (test_function): Use Infinityd, Infinityl.
14600         * tests/test-truncf1.c: Include infinity.h.
14601         (main): Use Infinityf.
14602         * tests/test-trunc1.c: Include infinity.h.
14603         (main): Use Infinityd.
14604         * tests/test-truncl.c: Include infinity.h.
14605         (main): Use Infinityl.
14606         * tests/test-vasnprintf-posix.c: Include infinity.h.
14607         (test_function): Use Infinityd, Infinityl.
14608         * tests/test-vasprintf-posix.c: Include infinity.h.
14609         (test_function): Use Infinityd, Infinityl.
14610         * modules/ceilf-tests (Files): Add tests/infinity.h.
14611         * modules/ceil-tests (Files): Likewise.
14612         * modules/ceill-tests (Files): Likewise.
14613         * modules/dprintf-posix-tests (Files): Likewise.
14614         * modules/floorf-tests (Files): Likewise.
14615         * modules/floor-tests (Files): Likewise.
14616         * modules/floorl-tests (Files): Likewise.
14617         * modules/fprintf-posix-tests (Files): Likewise.
14618         * modules/frexp-tests (Files): Likewise.
14619         * modules/frexp-nolibm-tests (Files): Likewise.
14620         * modules/frexpl-tests (Files): Likewise.
14621         * modules/frexpl-nolibm-tests (Files): Likewise.
14622         * modules/isfinite-tests (Files): Likewise.
14623         * modules/isinf-tests (Files): Likewise.
14624         * modules/isnan-tests (Files): Likewise.
14625         * modules/isnanf-tests (Files): Likewise.
14626         * modules/isnanf-nolibm-tests (Files): Likewise.
14627         * modules/isnand-tests (Files): Likewise.
14628         * modules/isnand-nolibm-tests (Files): Likewise.
14629         * modules/isnanl-tests (Files): Likewise.
14630         * modules/isnanl-nolibm-tests (Files): Likewise.
14631         * modules/ldexpl-tests (Files): Likewise.
14632         * modules/printf-posix-tests (Files): Likewise.
14633         * modules/roundf-tests (Files): Likewise.
14634         * modules/round-tests (Files): Likewise.
14635         * modules/roundl-tests (Files): Likewise.
14636         * modules/signbit-tests (Files): Likewise.
14637         * modules/snprintf-posix-tests (Files): Likewise.
14638         * modules/sprintf-posix-tests (Files): Likewise.
14639         * modules/truncf-tests (Files): Likewise.
14640         * modules/trunc-tests (Files): Likewise.
14641         * modules/truncl-tests (Files): Likewise.
14642         * modules/vasnprintf-posix-tests (Files): Likewise.
14643         * modules/vasprintf-posix-tests (Files): Likewise.
14644         * modules/vdprintf-posix-tests (Files): Likewise.
14645         * modules/vfprintf-posix-tests (Files): Likewise.
14646         * modules/vprintf-posix-tests (Files): Likewise.
14647         * modules/vsnprintf-posix-tests (Files): Likewise.
14648         * modules/vsprintf-posix-tests (Files): Likewise.
14649         * modules/xprintf-posix-tests (Files): Likewise.
14650
14651 2011-09-11  Bruno Haible  <bruno@clisp.org>
14652
14653         Ensure pid_t gets defined.
14654         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14655         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14657         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14659         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14660         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14662         * tests/test-fcntl-h.c: Check that pid_t is defined.
14663         * tests/test-sched.c: Likewise.
14664         * tests/test-termios.c: Likewise.
14665         * tests/test-time.c: Likewise.
14666         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14667         * doc/posix-headers/signal.texi: Likewise.
14668         * doc/posix-headers/sys_types.texi: Likewise.
14669         * doc/posix-headers/time.texi: Likewise.
14670
14671 2011-09-11  Bruno Haible  <bruno@clisp.org>
14672
14673         acl: Fix compilation on Solaris 10 (older version).
14674         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14675         of ACE_EVERYONE.
14676         * lib/set-mode-acl.c (qset_acl): Likewise.
14677         Reported by Christian Jullien <eligis@orange.fr>.
14678
14679 2011-09-10  Bruno Haible  <bruno@clisp.org>
14680
14681         iconv, unsetenv: Add support for MSVC compiler.
14682         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14684
14685 2011-09-10  Bruno Haible  <bruno@clisp.org>
14686
14687         *printf: Add support for MSVC compiler.
14688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14689         handles the exception caused by the %n directive. When cross-compiling,
14690         guess no on native Windows.
14691         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14692         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14693         emulate it through vsnprintf.
14694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14695         * doc/posix-functions/dprintf.texi: Update documentation regarding
14696         MSVC 9.
14697         * doc/posix-functions/fprintf.texi: Likewise.
14698         * doc/posix-functions/printf.texi: Likewise.
14699         * doc/posix-functions/snprintf.texi: Likewise.
14700         * doc/posix-functions/sprintf.texi: Likewise.
14701         * doc/posix-functions/swprintf.texi: Likewise.
14702         * doc/posix-functions/vdprintf.texi: Likewise.
14703         * doc/posix-functions/vfprintf.texi: Likewise.
14704         * doc/posix-functions/vprintf.texi: Likewise.
14705         * doc/posix-functions/vsnprintf.texi: Likewise.
14706         * doc/posix-functions/vsprintf.texi: Likewise.
14707         * doc/glibc-functions/asprintf.texi: Likewise.
14708         * doc/glibc-functions/obstack_printf.texi: Likewise.
14709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14710         * doc/glibc-functions/vasprintf.texi: Likewise.
14711
14712 2011-09-10  Bruno Haible  <bruno@clisp.org>
14713
14714         nocrash: Add support for native Windows.
14715         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14716
14717 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14718             Bruno Haible  <bruno@clisp.org>
14719
14720         absolute-header, include-next: Add support for MSVC compiler.
14721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14722         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14723         directory separator in #line directives.
14724         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14725         recognize also backslash as directory separator in #line directives.
14726
14727 2011-09-08  Jim Meyering  <meyering@redhat.com>
14728
14729         maint.mk: mark the post-release commit log with "maint: " prefix
14730         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14731         one-line commit-log summary.
14732
14733 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14734             Bruno Haible  <bruno@clisp.org>
14735
14736         Doc about crypt functions.
14737         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14738         systems.
14739         * doc/posix-functions/encrypt.texi: Likewise.
14740         * doc/posix-functions/setkey.texi: Likewise.
14741
14742 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14743
14744         * lib/gc.h: Fix copyright header.
14745
14746 2011-09-07  Bruno Haible  <bruno@clisp.org>
14747
14748         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14749         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14750         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14751
14752 2011-09-07  Bruno Haible  <bruno@clisp.org>
14753
14754         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14755         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14756         * lib/freopen.c: Likewise.
14757         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14758         * lib/lstat.c: Likewise.
14759         * lib/stat.c: Likewise.
14760         * lib/open.c: Use different syntax for include of <fcntl.h>.
14761         * lib/openat.c: Include fcntl.h again, explicitly.
14762
14763 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14764
14765         parse-datetime: document the newly accepted format
14766         * doc/parse-datetime.texi (Combined date and time of day items):
14767         New section.
14768
14769 2011-09-06  Bruno Haible  <bruno@clisp.org>
14770
14771         acl: Fix a test failure on newer Solaris 10 with ZFS.
14772         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14773         ENOSYS as no ACL.
14774         Reported by Jim Meyering.
14775
14776 2011-09-06  Bruno Haible  <bruno@clisp.org>
14777
14778         acl: Update for AIX >= 5.3 with NFS.
14779         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14780         ENOSYS as no ACL.
14781
14782         acl: Fix a test failure on AIX >= 5.3 with NFS.
14783         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14784         as no ACL.
14785
14786 2011-09-06  Bruno Haible  <bruno@clisp.org>
14787
14788         acl: Fix a test failure on IRIX 6.5 with NFS.
14789         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14790         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14791         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14792         * lib/copy-acl.c (qcopy_acl): Likewise.
14793
14794 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14795
14796         openat: port to AIX 7.1 with large files
14797         AIX 7.1 does a "#define openat open64at" if large files are in use,
14798         so we can't simply #undef openat.  Use the orig_openat trick (similar
14799         to orig_open in lib/open.c) to work around the problem.  Problem
14800         reported by Kevin Brott for GNU tar, in the thread containing
14801         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14802         * lib/openat.c (__need_system_fcntl_h): Define first.
14803         Include <fcntl.h> and <sys/types.h> before undefining.
14804         (orig_openat) [HAVE_OPENAT]: New inline function.
14805         (openat) [HAVE_OPENAT]: Do not undef.
14806         (rpl_openat): Use orig_openat, not openat.
14807
14808 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14809             Bruno Haible  <bruno@clisp.org>
14810
14811         acl: Avoid errors on NonStop Kernel.
14812         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14813         ENOTSUP errors.
14814
14815 2011-09-05  Bruno Haible  <bruno@clisp.org>
14816
14817         acl: Clean up Solaris code.
14818         * lib/acl-internal.h: Remove no-op #if.
14819         * lib/file-has-acl.c: Likewise.
14820         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14821         * lib/copy-acl.c (qcopy_acl): Likewise.
14822
14823 2011-09-05  Bruno Haible  <bruno@clisp.org>
14824
14825         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14826         binaries built on the original Solaris 10.
14827         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14828         trivial.
14829
14830 2011-09-05  Bruno Haible  <bruno@clisp.org>
14831
14832         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14833         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14834         10.
14835         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14836         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14837         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14838         instead of acl_get, facl_get, acl_set, facl_set.
14839
14840 2011-09-05  Bruno Haible  <bruno@clisp.org>
14841
14842         copy-file: Try unit tests on more file systems.
14843         * tests/test-copy-file-1.sh: New file.
14844         * tests/test-copy-file-2.sh: New file.
14845         * modules/copy-file-tests (Files): Add them.
14846         (Makefile.am): Add them to TESTS.
14847
14848         acl: Try unit tests on more file systems.
14849         * tests/test-file-has-acl-1.sh: New file.
14850         * tests/test-file-has-acl-2.sh: New file.
14851         * tests/test-set-mode-acl-1.sh: New file.
14852         * tests/test-set-mode-acl-2.sh: New file.
14853         * tests/test-copy-acl-1.sh: New file.
14854         * tests/test-copy-acl-2.sh: New file.
14855         * modules/acl-tests (Files): Add them.
14856         (Makefile.am): Add them to TESTS.
14857
14858 2011-09-04  Bruno Haible  <bruno@clisp.org>
14859
14860         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14861         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14862         10.
14863         (OLD_ALLOW, OLD_DENY): New macros.
14864         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14865         ACE_ACCESS_ALLOWED_ACE_TYPE.
14866         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14867         ACE_ACCESS_DENIED_ACE_TYPE.
14868         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14869         (NEW_ACE_EXECUTE): Fix value.
14870         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14871         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14872         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14873         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14874         NEW_ACE_SYNCHRONIZE): New macros.
14875         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14876         instead of acl_fromtext, acl_set, facl_set.
14877         Fixes a coreutils/tests/cp/perm failure.
14878
14879 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14880
14881         openat: test for fstatat (..., 0) bug
14882         Further testing with tar suggests that fstatat (..., 0)
14883         does not work in general, on AIX 7.1; see
14884         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14885         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14886         replacement fstatat (which is what older AIX releases were using
14887         anyway).
14888         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14889         use is now changed to orig_fstatat.  This was probably the right
14890         thing to do anyway.
14891         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14892         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14893         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14894         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14895         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14896         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14897         if the bug is found.
14898
14899         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14900         This tests for another fstatat bug on AIX 7.1:
14901         fstatat (AT_FDCWD, ..., 0) does not work.  See
14902         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14903         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14904         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14905         (rpl_fstatat): Adjust so that it works around either (or both)
14906         bugs if present.
14907         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14908
14909 2011-09-03  Karl Berry  <karl@gnu.org>
14910
14911         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14912         in index entries.
14913
14914 2011-09-02  Bruno Haible  <bruno@clisp.org>
14915
14916         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14918         values of AR, ARFLAGS, RANLIB.
14919         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14920
14921 2011-09-02  Bruno Haible  <bruno@clisp.org>
14922
14923         Find 'ar' program that fits with --host argument.
14924         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14925
14926 2011-09-02  Bruno Haible  <bruno@clisp.org>
14927
14928         tests: init.sh: Support any non-GNU diff.
14929         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14930         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14931         Solaris 8.
14932
14933 2011-09-02  Bruno Haible  <bruno@clisp.org>
14934
14935         tests: init.sh: work also with any non-GNU diff that supports -u
14936         * tests/init.sh: Relax check for diff -u support.
14937         Rather than checking for GNU diff via --version, simply check
14938         for support for -u itself.  Useful at least on OpenBSD 4.9,
14939         AIX 7.1, IRIX 6.5, and Solaris 10.
14940
14941 2011-09-01  Bruno Haible  <bruno@clisp.org>
14942
14943         strtoimax, strtoumax: Document problem on HP-UX 11.
14944         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14945         * doc/posix-functions/strtoumax.texi: Likewise.
14946
14947 2011-09-01  Bruno Haible  <bruno@clisp.org>
14948
14949         strtoumax: Avoid link error on OSF/1 with DTK cc.
14950         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14951         defined as a function.
14952         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14953         strtoumax is defined, not whether it is declared.
14954
14955 2011-09-01  Bruno Haible  <bruno@clisp.org>
14956
14957         strtoimax: Avoid link error on OSF/1 with DTK cc.
14958         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14959         defined as a function.
14960         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14961         strtoimax is defined, not whether it is declared.
14962
14963 2011-09-01  Bruno Haible  <bruno@clisp.org>
14964
14965         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14966         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14967         as a function.
14968         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14969         whether it is declared.
14970
14971 2011-09-01  Bruno Haible  <bruno@clisp.org>
14972
14973         imaxabs: Avoid link error on OSF/1 with DTK cc.
14974         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14975         as a function.
14976         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14977         whether it is declared.
14978
14979 2011-09-01  Bruno Haible  <bruno@clisp.org>
14980
14981         Tests for module 'strtoumax'.
14982         * modules/strtoumax-tests: New file.
14983         * tests/test-strtoumax.c: New file.
14984
14985         Tests for module 'strtoimax'.
14986         * modules/strtoimax-tests: New file.
14987         * tests/test-strtoimax.c: New file.
14988
14989         Tests for module 'imaxdiv'.
14990         * modules/imaxdiv-tests: New file.
14991         * tests/test-imaxdiv.c: New file.
14992
14993         Tests for module 'imaxabs'.
14994         * modules/imaxabs-tests: New file.
14995         * tests/test-imaxabs.c: New file.
14996
14997 2011-09-01  Bruno Haible  <bruno@clisp.org>
14998
14999         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15000         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15001         pthread_create.
15002
15003 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15004
15005         openat: work around AIX 7.1 fstatat issue
15006         This should fix the problem that was not properly fixed
15007         in the previous change, dated 2011-08-30.
15008         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15009         __need_system_stat_h defined.
15010         (orig_fstatat) [HAVE_FSTATAT]: New function.
15011         (rpl_fstatat): Go back to the old way of doing things,
15012         except call orig_fstatat instead of fstatat.
15013         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15014         Remove unnecessary check whether fstatat fills in st_size etc.
15015
15016 2011-09-01  Bruno Haible  <bruno@clisp.org>
15017
15018         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15019         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15020         just include the system's header.
15021
15022 2011-08-31  Jim Meyering  <meyering@redhat.com>
15023
15024         tests: avoid spurious assertion failure in test-float.c on ppc64
15025         * tests/test-float.c (test_long_double): Comment out an assertion,
15026         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15027         with gcc-4.4.4.
15028
15029         maint: indent with spaces, not TABs
15030         I need to get in the habit of running gnulib's "make check".
15031         Both of these would have been caught.
15032         * m4/largefile.m4: Indent with spaces, not TABs.
15033         * lib/parse-datetime.y (iso_8601_time): Likewise.
15034         Spotted by Pádraig Brady.
15035
15036         test-parse-datetime.c: accommodate a relatively strict gcc warning
15037         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15038         to avoid a warning from gcc's -Werror=missing-declarations.
15039         Insert a few spaces-before-funcall-parenthesis.
15040
15041 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15042
15043         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15044         The parser now accepts ISO 8601 date-time strings with "T" as the
15045         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15046         with a space between the date and time strings.  Now it also parses
15047         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15048         variants like "2004-02-29T16:21:42.333-07:00"
15049         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15050         of day representation using the 'T' separator character.
15051         * doc/parse-datetime.texi (General date syntax): replace use of
15052         deprecated --iso-8601 option with --rfc-3339 in example of date
15053         command output formats that can be parsed.
15054         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15055         lib/parse-datetime.y.
15056         (gmt_offset): New function.
15057         (main): Add additional test cases to validate ISO8601 extended
15058         date and time of day parsing.
15059
15060 2011-08-31  Bruno Haible  <bruno@clisp.org>
15061
15062         freopen: Documentation.
15063         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15064         name.
15065         Reported by Claudio Bley <claudio.bley@gmail.com>.
15066
15067 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15068
15069         freopen: Don't crash if the filename argument is NULL.
15070         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15071         NULL.
15072
15073 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         openat: work around AIX 7.1 fstatat bug
15076         Problem reported by Kevin Brott for GNU tar, in the thread containing
15077         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15078         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15079         FSTATAT_ST_SIZE_ETC_BROKEN.
15080         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15081         rpl_fstatat.
15082         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15083         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15084         AC_CHECK_FUNCS_ONCE for fstatat.
15085         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15086         fchmodat, mkdirat, openat and unlinkat.
15087
15088 2011-08-30  Bruno Haible  <bruno@clisp.org>
15089
15090         Avoid endless recursions if config.h includes some header files.
15091         * lib/fopen.c (__need_FILE): Define already before including config.h.
15092         * lib/freopen.c (__need_FILE): Likewise.
15093         * lib/open.c (__need_system_fcntl_h): Likewise.
15094         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15095         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15096         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15097
15098 2011-08-25  Karl Berry  <karl@gnu.org>
15099
15100         * config/srclist.txt (ylwrap): new try.
15101         * build-aux/ylwrap: new file.
15102
15103 2011-08-23  Bruno Haible  <bruno@clisp.org>
15104
15105         tmpdir: Use a good default directory on native Windows.
15106         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15107         (P_tmpdir): Default to _P_tmpdir on native Windows.
15108         (path_search): On native Windows, try the value returned by GetTempPath
15109         before trying P_tmpdir.
15110         * modules/tmpdir (Depends-on): Add pathmax.
15111         Suggested by John Darrington <john@darrington.wattle.id.au>.
15112
15113 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15114
15115         doc: fix typo in README-release
15116         * top/README-release: Capitalize first word of a sentence.
15117
15118 2011-08-19  Jim Meyering  <meyering@redhat.com>
15119
15120         fts: do not exhaust memory when processing million-entry directories
15121         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15122         directory would require about 256*N bytes of memory.  Thus, it was
15123         easy to construct a directory too large to be processed by any of
15124         those tools.  With this change, fts' maximum memory utilization is
15125         now limited to around 30MB.
15126         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15127         (fts_read): When we've processed the final entry (i.e., when
15128         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15129         using the parent entry to read any remaining entries.  Dispatch
15130         depending on what fts_build returns:
15131         - NULL+stop, aka failure: stop
15132         - NULL otherwise: move up in the dir hierarchy
15133         - non-NULL: handle this new entry
15134         (fts_build): Declare and use new local, continue_readdir.
15135         Prepare to be called from fts_read, when the entries
15136         from a partially-read directory have just been exhausted.
15137         In that case, we'll skip the opendir and instead use the parent's
15138         fts_dirp and derive dir_fd from that.
15139         Finally, in the readdir loop, if we read max_entries entries,
15140         exit the loop ensuring *not* to call closedir.  This is required
15141         so that fts_dirp can be reused on a subsequent call.
15142         Prompted by Ben England's report of memory exhaustion in find
15143         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15144
15145         maint: fts: move decl of `dp' down into while loop; split a long line
15146         * lib/fts.c (fts_build): No semantic change.
15147
15148         fts: add/use new struct member, fts_dirp
15149         We are about to use this to manage any directory with
15150         too many entries to read all of them into memory at once.
15151         To do that, we'll need to save the DIR* pointer in each
15152         affected FTSENT struct.
15153         * lib/fts_.h: Include <dirent.h>.
15154         (struct FTSENT) [fts_dirp]: New member.
15155         * lib/fts.c (closedir_and_clear): Define.
15156         Use it in place of closedir so that we are sure to
15157         clear the new fts_dirp member when done with it.
15158         (fts_alloc): Initialize the new member.
15159         (fts_lfree): Free, if needed.
15160
15161         maint: fts: give __opendir2 a new parameter and rename
15162         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15163         than surreptitiously using sole caller's "dir_fd".
15164         (fts_opendir): Rename from __opendir2.
15165
15166         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15167         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15168
15169         maint: fts.c: correct off-by-one indentation
15170         * lib/fts.c (fts_build): Correct indentation, change style
15171         of a couple of block comments, and bracing style.
15172
15173         maint: fts.c: move __opendir2 #define "up" out of function body
15174         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15175
15176         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15177         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15178         out for a long time and besides was useful only on BSD systems.
15179
15180 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15181
15182         regex: port to Stratus OpenVOS
15183         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15184         define to empty, rather than attempting nonportable optimizations.
15185         Problem reported by Paul Green in:
15186         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15187         and fix suggested by Eric Blake in:
15188         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15189
15190 2011-08-17  Eric Blake  <eblake@redhat.com>
15191
15192         getcwd: fix test failures on mingw
15193         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15194         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15195         test if long directory cannot be created, and allow mingw errno.
15196
15197         getcwd-lgpl: fix m4 to match relaxed test for BSD
15198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15199         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15200         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15201         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15202         signature problem.
15203
15204         getcwd: fix compilation on mingw64
15205         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15206         getcwd.
15207         Reported by Marc-André Lureau.
15208
15209         pipe2: silence compiler warning
15210         * lib/pipe2.c (pipe2): Hide label if it is not used.
15211
15212 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15213
15214         relocatable-prog: fix link error
15215         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15216         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15217         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15218         into modules/relocatable-lib without noticing that
15219         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15220         also needs to build relocatable.c.
15221
15222 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15223
15224         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15226         shell code: it contained a 'break' that was not in a loop.
15227         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15228         via a shell-language loop; this may have been true in old Autoconf
15229         versions, but it's not true in Autoconf 2.68.  I found this bug
15230         when testing coreutils git on Solaris 8, whose shell complains
15231         about the syntax error.
15232
15233 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15234
15235         * lib/base64.c: Fix comment to reference RFC 4648.
15236         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15237         <gvtulder@gmail.com>.
15238
15239 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15242
15243         po/Makefile.in.in: fix make -q problem
15244         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15245         rule, since there's no file named 'check-macro-version' and its
15246         use as a file breaks make -q.
15247         (all): Don't depend on check-macro-version.
15248         (CHECK_MACRO_VERSION): New macro.
15249         (stamp-po): Use it.
15250
15251         configmake: fix make -q problem
15252         * modules/configmake (configmake.h): Update configmake.h's time stamp
15253         even if the file does not change.  Otherwise, 'make -q' fails.
15254         Problem reported by Simon Josefsson in
15255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15256
15257 2011-08-11  Jim Meyering  <meyering@redhat.com>
15258
15259         git-version-gen: correct the advice in a comment
15260         * build-aux/git-version-gen: Correct comment.
15261         Don't recommend to list .tarball-version in .gitignore.
15262
15263 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         base64: fix off-by-one buffer size bug
15266         Problem and (trivial) fix reported by Gijs van Tulder in
15267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15268         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15269         * tests/test-base64.c (main): Catch the bug.
15270
15271 2011-08-10  Eric Blake  <eblake@redhat.com>
15272
15273         closein: correct comments
15274         * lib/closein.c (close_stdin): Improve comments.
15275
15276 2011-08-09  Bruno Haible  <bruno@clisp.org>
15277
15278         More tests for 'fseeko'.
15279         * tests/test-fseeko3.c: New file, from Eric Blake.
15280         * tests/test-fseeko3.sh: New file.
15281         * modules/fseeko-tests (Files): Add them.
15282         (TESTS): Add test-fseeko3.sh.
15283         (check_PROGRAMS): Add test-fseeko3.
15284
15285 2011-08-09  Eric Blake  <eblake@redhat.com>
15286
15287         fseeko: remove unneeded hack
15288         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15289
15290         fseeko: fix bug on glibc
15291         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15292         Reported by John W. Eaton.
15293
15294 2011-08-08  Bruno Haible  <bruno@clisp.org>
15295
15296         unictype/base: Fix interoperability with preinstalled libunistring.
15297         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15298         Reported by Simon Josefsson.
15299
15300 2011-08-08  Bruno Haible  <bruno@clisp.org>
15301
15302         iswblank: Detect declaration correctly.
15303         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15304         AC_CHECK_DECLS invocation.
15305
15306 2011-08-08  Bruno Haible  <bruno@clisp.org>
15307
15308         tcgetsid: Detect declaration correctly.
15309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15310         AC_CHECK_DECLS invocation.
15311         Reported by Simon Josefsson.
15312
15313 2011-08-08  Eric Blake  <eblake@redhat.com>
15314
15315         largefile: fix typo that regressed large file support
15316         * modules/largefile (configure.ac-early): Fix section name.
15317
15318 2011-08-06  Karl Berry  <karl@gnu.org>
15319
15320         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15321         a separate module.
15322
15323 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15324
15325         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15326         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15327         get prototype for free.
15328
15329 2011-08-04  Bruno Haible  <bruno@clisp.org>
15330
15331         Tests for module 'pathmax'.
15332         * modules/pathmax-tests: New file.
15333         * tests/test-pathmax.c: New file.
15334
15335         canonicalize-lgpl: Support larger filenames on the Hurd.
15336         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15337         Reported by Paul Eggert.
15338
15339         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15340         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15341         * lib/chdir-long.h: Include pathmax.h.
15342         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15343         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15344         (PATH_MAX): Remove code that is done by pathmax.h.
15345         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15346         * lib/tmpfile.c: Add a comment.
15347         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15348         * modules/chdir-long (Depends-on): Add pathmax.
15349         * modules/getcwd (Depends-on): Add pathmax.
15350         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15351         is not defined.
15352         * doc/posix-headers/limits.texi: Mention the pathmax module.
15353         * NEWS: Mention the change.
15354
15355 2011-08-02  Bruno Haible  <bruno@clisp.org>
15356
15357         pthread_sigmask: Actually use results of gl_THREADLIB.
15358         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15359         gl_THREADLIB, not gl_[]THREADLIB.
15360         Reported by Eric Blake.
15361
15362 2011-08-02  Jim Meyering  <meyering@redhat.com>
15363
15364         maint.mk: relax the default _gl_TS_function_match regexp
15365         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15366         space between function name and "(" in an "extern" declaration.
15367         That would fail to match a decl with no space there: extern void foo();
15368
15369 2011-07-31  Iain Nicol  <iain@thenicols.net>
15370
15371         git-version-gen: document that EXTRA_DIST must include .version
15372         * build-aux/git-version-gen: In the how-to-use comment, document
15373         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15374         will fail when run from an unpacked distribution tarball.
15375
15376 2011-08-01  Bruno Haible  <bruno@clisp.org>
15377
15378         wctype-h: Fix last change.
15379         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15380         REPLACE_TOWLOWER to 0.
15381         Reported by Sam Steingold <sds@gnu.org>.
15382
15383 2011-07-31  Bruno Haible  <bruno@clisp.org>
15384
15385         frexpl: Update autoconf test.
15386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15387         according to changes of 2011-06-20.
15388
15389 2011-07-31  Bruno Haible  <bruno@clisp.org>
15390
15391         sys_utsname: Add support for Minix.
15392         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15393         <sys/utsname.h>.
15394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15395         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15396
15397 2011-07-31  Bruno Haible  <bruno@clisp.org>
15398
15399         strings: Add support for Minix.
15400         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15401         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15402         * doc/posix-headers/strings.texi: Document the Minix problem.
15403
15404 2011-07-31  Bruno Haible  <bruno@clisp.org>
15405
15406         wctype-h: Add support for Minix.
15407         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15408         REPLACE_TOWLOWER.
15409         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15410         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15411         REPLACE_ISWCNTRL.
15412
15413 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15414
15415         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15416         This is a performance improvement for 64-bit hosts: it causes the
15417         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15418
15419 2011-07-31  Bruno Haible  <bruno@clisp.org>
15420
15421         stdioext: Add support for Minix.
15422         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15423         * lib/fpurge.c (fpurge): Likewise.
15424         * lib/freadahead.c (freadahead): Likewise.
15425         * lib/freadable.c (freadable): Likewise.
15426         * lib/freading.c (freading): Likewise.
15427         * lib/freadptr.c (freadptr): Likewise.
15428         * lib/freadseek.c (freadptrinc): Likewise.
15429         * lib/fseeko.c (rpl_fseeko): Likewise.
15430         * lib/fseterr.c (fseterr): Likewise.
15431         * lib/fwritable.c (fwritable): Likewise.
15432         * lib/fwriting.c (fwriting): Likewise.
15433         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15434         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15435
15436 2011-07-31  Bruno Haible  <bruno@clisp.org>
15437
15438         errno: Port to Minix.
15439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15440         ECONNABORTED are defined.
15441         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15442         GNULIB_defined_ECONNABORTED): New macros.
15443         * lib/strerror-override.h (strerror_override): Test also
15444         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15445         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15446         ECONNABORTED.
15447         * doc/posix-headers/errno.texi: Mention the Minix problem.
15448
15449 2011-07-31  Bruno Haible  <bruno@clisp.org>
15450
15451         Work around declaration collisions on Minix.
15452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15453         defined, set REPLACE_MBSINIT.
15454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15455         defined, set REPLACE_MBRTOWC.
15456         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15457         set REPLACE_MBRLEN.
15458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15459         defined, set REPLACE_MBSRTOWCS.
15460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15461         defined, set REPLACE_WCRTOMB.
15462         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15463         defined, set REPLACE_WCSRTOMBS.
15464
15465 2011-07-31  Bruno Haible  <bruno@clisp.org>
15466
15467         Add support for Minix with ACK compiler.
15468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15469         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15470         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15471
15472 2011-07-31  Bruno Haible  <bruno@clisp.org>
15473
15474         Documentation about Minix.
15475         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15476         * doc/glibc-headers/*.texi: Likewise.
15477         * doc/posix-functions/*.texi: Likewise.
15478         * doc/glibc-functions/*.texi: Likewise.
15479
15480 2011-07-31  Bruno Haible  <bruno@clisp.org>
15481
15482         snippet/warn-on-use: Fix indentation.
15483         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15484
15485 2011-07-25  Jim Meyering  <meyering@redhat.com>
15486
15487         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15488         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15489         commands.
15490
15491 2011-07-27  Jim Meyering  <meyering@redhat.com>
15492
15493         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15494         * top/maint.mk (gl_extract_significant_defines_): Now that
15495         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15496         gnulib/lib/signal.in.h, and now that we recommend to
15497         define-if-undefined those two symbols in application code,
15498         we must filter them out of the "significant" list.
15499         This avoids a "make syntax-check" failure in coreutils.
15500
15501 2011-07-26  Eric Blake  <eblake@redhat.com>
15502
15503         warnings: add comments about previous patch
15504         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15505         * m4/include_next.m4: Likewise.
15506         * m4/warn-on-use.m4: Likewise.
15507         * m4/warnings.m4: Likewise, and simplify use.
15508         Suggested by Stefano Lattarini.
15509
15510         include-next, warnings: support older autoconf
15511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15512         AS_VAR_PUSHDEF in a way that works with older autoconf.
15513         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15514         Reported by Daniel P. Berrange.
15515
15516 2011-07-25  Bruno Haible  <bruno@clisp.org>
15517
15518         fseek, ftell: Fix doc.
15519         * doc/posix-functions/fseek.texi: Reword statement about
15520         AC_SYS_LARGEFILE.
15521         * doc/posix-functions/ftell.texi: Likewise.
15522
15523 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15524             Bruno Haible  <bruno@clisp.org>
15525
15526         Add dependencies to the 'largefile' module.
15527         * modules/fopen (Depends-on): Add 'largefile'.
15528         * modules/freopen (Depends-on): Likewise.
15529         * modules/fseeko (Depends-on): Likewise.
15530         * modules/ftello (Depends-on): Likewise.
15531         * modules/glob (Depends-on): Likewise.
15532         * modules/lseek (Depends-on): Likewise.
15533         * modules/lstat (Depends-on): Likewise.
15534         * modules/mkostemp (Depends-on): Likewise.
15535         * modules/mkostemps (Depends-on): Likewise.
15536         * modules/mkstemp (Depends-on): Likewise.
15537         * modules/mkstemps (Depends-on): Likewise.
15538         * modules/open (Depends-on): Likewise.
15539         * modules/openat (Depends-on): Likewise.
15540         * modules/pread (Depends-on): Likewise.
15541         * modules/pwrite (Depends-on): Likewise.
15542         * modules/scandir (Depends-on): Likewise.
15543         * modules/stat (Depends-on): Likewise.
15544         * modules/tmpfile (Depends-on): Likewise.
15545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15546         since the containing module now depends on the largefile module.
15547         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15548         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15549         off_t is fixed by gnulib.
15550         * doc/posix-functions/freopen.texi: Likewise.
15551         * doc/posix-functions/fseeko.texi: Likewise.
15552         * doc/posix-functions/fstatat.texi: Likewise.
15553         * doc/posix-functions/ftello.texi: Likewise.
15554         * doc/posix-functions/glob.texi: Likewise.
15555         * doc/posix-functions/lseek.texi: Likewise.
15556         * doc/posix-functions/lstat.texi: Likewise.
15557         * doc/posix-functions/mkstemp.texi: Likewise.
15558         * doc/posix-functions/open.texi: Likewise.
15559         * doc/posix-functions/openat.texi: Likewise.
15560         * doc/posix-functions/pread.texi: Likewise.
15561         * doc/posix-functions/pwrite.texi: Likewise.
15562         * doc/posix-functions/scandir.texi: Likewise.
15563         * doc/posix-functions/stat.texi: Likewise.
15564         * doc/posix-functions/tmpfile.texi: Likewise.
15565         * doc/glibc-functions/mkostemp.texi: Likewise.
15566         * doc/glibc-functions/mkostemps.texi: Likewise.
15567         * doc/glibc-functions/mkstemps.texi: Likewise.
15568
15569 2011-07-25  Bruno Haible  <bruno@clisp.org>
15570
15571         fcntl: Move AC_LIBOBJ invocation to module description.
15572         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15573         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15574
15575         fcntl: Remove call-in from fchdir.m4.
15576         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15578
15579         dup3: Remove potential call-in from fchdir.m4.
15580         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15582
15583         dup2: Move AC_LIBOBJ invocation to module description.
15584         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15585         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15586         Don't invoke AC_LIBOBJ.
15587         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15588
15589         dup2: Remove call-in from fchdir.m4.
15590         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15592
15593         fclose: Move AC_LIBOBJ invocation to module description.
15594         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15595         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15596         to 1.
15597         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15598
15599         fclose: Remove call-in from close.m4.
15600         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15601         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15602
15603         close: Move AC_LIBOBJ invocation to module description.
15604         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15605         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15606         1.
15607         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15608
15609         close: Remove call-in from fchdir.m4.
15610         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15612
15613         open: Move AC_LIBOBJ invocation to module description.
15614         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15615         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15616         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15617
15618         open: Remove call-in from fchdir.m4.
15619         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15621
15622         fchdir: Start to remove gl_REPLACE_* idiom.
15623         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15624         (gl_FUNC_FCHDIR): Invoke it.
15625
15626 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15627
15628         * lib/ftell.c (ftell): Comment out cast.
15629
15630         close: use gl_REPLACE_FCLOSE only if defined
15631         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15632         is defined.  The close module doesn't depend on the fclose module
15633         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15635         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15636
15637 2011-07-24  Jim Meyering  <meyering@redhat.com>
15638
15639         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15640         * tests/test-select.h (test_function): Declare as "static".
15641
15642 2011-07-24  Bruno Haible  <bruno@clisp.org>
15643
15644         doc: Mention the effects of AC_SYS_LARGEFILE.
15645         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15646         on this function.
15647         * doc/posix-functions/aio_error.texi: Likewise.
15648         * doc/posix-functions/aio_fsync.texi: Likewise.
15649         * doc/posix-functions/aio_read.texi: Likewise.
15650         * doc/posix-functions/aio_return.texi: Likewise.
15651         * doc/posix-functions/aio_suspend.texi: Likewise.
15652         * doc/posix-functions/aio_write.texi: Likewise.
15653         * doc/posix-functions/fgetpos.texi: Likewise.
15654         * doc/posix-functions/fopen.texi: Likewise.
15655         * doc/posix-functions/freopen.texi: Likewise.
15656         * doc/posix-functions/fsetpos.texi: Likewise.
15657         * doc/posix-functions/fstatvfs.texi: Likewise.
15658         * doc/posix-functions/ftruncate.texi: Likewise.
15659         * doc/posix-functions/ftw.texi: Likewise.
15660         * doc/posix-functions/getrlimit.texi: Likewise.
15661         * doc/posix-functions/glob.texi: Likewise.
15662         * doc/posix-functions/lio_listio.texi: Likewise.
15663         * doc/posix-functions/lockf.texi: Likewise.
15664         * doc/posix-functions/mkstemp.texi: Likewise.
15665         * doc/posix-functions/mmap.texi: Likewise.
15666         * doc/posix-functions/nftw.texi: Likewise.
15667         * doc/posix-functions/openat.texi: Likewise.
15668         * doc/posix-functions/opendir.texi: Likewise.
15669         * doc/posix-functions/posix_fadvise.texi: Likewise.
15670         * doc/posix-functions/posix_fallocate.texi: Likewise.
15671         * doc/posix-functions/pread.texi: Likewise.
15672         * doc/posix-functions/pwrite.texi: Likewise.
15673         * doc/posix-functions/readdir.texi: Likewise.
15674         * doc/posix-functions/readdir_r.texi: Likewise.
15675         * doc/posix-functions/rewinddir.texi: Likewise.
15676         * doc/posix-functions/scandir.texi: Likewise.
15677         * doc/posix-functions/seekdir.texi: Likewise.
15678         * doc/posix-functions/setrlimit.texi: Likewise.
15679         * doc/posix-functions/statvfs.texi: Likewise.
15680         * doc/posix-functions/telldir.texi: Likewise.
15681         * doc/posix-functions/tmpfile.texi: Likewise.
15682         * doc/posix-functions/truncate.texi: Likewise.
15683         * doc/glibc-functions/fallocate.texi: Likewise.
15684         * doc/glibc-functions/fstatfs.texi: Likewise.
15685         * doc/glibc-functions/fts_children.texi: Likewise.
15686         * doc/glibc-functions/fts_read.texi: Likewise.
15687         * doc/glibc-functions/getdirentries.texi: Likewise.
15688         * doc/glibc-functions/mkostemp.texi: Likewise.
15689         * doc/glibc-functions/mkostemps.texi: Likewise.
15690         * doc/glibc-functions/mkstemps.texi: Likewise.
15691         * doc/glibc-functions/preadv.texi: Likewise.
15692         * doc/glibc-functions/pwritev.texi: Likewise.
15693         * doc/glibc-functions/sendfile.texi: Likewise.
15694         * doc/glibc-functions/statfs.texi: Likewise.
15695
15696 2011-07-24  Bruno Haible  <bruno@clisp.org>
15697
15698         doc: Fix typo.
15699         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15700
15701 2011-07-24  Bruno Haible  <bruno@clisp.org>
15702
15703         doc: Mention fsusage.
15704         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15705
15706 2011-07-24  Bruno Haible  <bruno@clisp.org>
15707
15708         doc: Mention new glibc headers and functions.
15709         * doc/glibc-headers/gshadow.texi: New file.
15710         * doc/glibc-functions/endsgent.texi: New file.
15711         * doc/glibc-functions/fgetsgent.texi: New file.
15712         * doc/glibc-functions/fgetsgent_r.texi: New file.
15713         * doc/glibc-functions/getsgent.texi: New file.
15714         * doc/glibc-functions/getsgent_r.texi: New file.
15715         * doc/glibc-functions/getsgnam.texi: New file.
15716         * doc/glibc-functions/getsgnam_r.texi: New file.
15717         * doc/glibc-functions/putsgent.texi: New file.
15718         * doc/glibc-functions/setsgent.texi: New file.
15719         * doc/glibc-functions/sgetsgent.texi: New file.
15720         * doc/glibc-functions/sgetsgent_r.texi: New file.
15721         * doc/glibc-functions/malloc_info.texi: New file.
15722         * doc/glibc-functions/preadv.texi: New file.
15723         * doc/glibc-functions/pwritev.texi: New file.
15724         * doc/glibc-functions/register_printf_modifier.texi: New file.
15725         * doc/glibc-functions/register_printf_specifier.texi: New file.
15726         * doc/glibc-functions/register_printf_type.texi: New file.
15727         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15728         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15729         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15730         * doc/glibc-functions/pthread_getname_np.texi: New file.
15731         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15732         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15733         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15734         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15735         * doc/glibc-functions/pthread_setname_np.texi: New file.
15736         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15737         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15738         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15739         * doc/glibc-functions/qsort_r.texi: New file.
15740         * doc/glibc-functions/quick_exit.texi: New file.
15741         * doc/glibc-functions/syncfs.texi: New file.
15742         * doc/gnulib.texi: Include them.
15743         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15744         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15745         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15746         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15747         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15748         * doc/glibc-functions/execvpe.texi: Likewise.
15749
15750 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15751
15752         ftell: don't include <unistd.h>
15753         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15754         guaranteed to define off_t, and the ftell module depends on the
15755         stdio module.
15756
15757         ftell: do not assume wraparound signed arithmetic
15758         * lib/ftell.c: Include <limits.h>.
15759         (ftell): Don't assume wraparound signed arithmetic.
15760
15761 2011-07-24  Bruno Haible  <bruno@clisp.org>
15762
15763         close: No longer depend on module 'fclose'.
15764         * modules/close (Depends-on): Remove fclose.
15765         * NEWS: Mention the change.
15766         Suggested by Sam Steingold <sds@gnu.org>.
15767
15768 2011-07-24  Bruno Haible  <bruno@clisp.org>
15769
15770         fsusage: Enable large volume support on AIX >= 5.2.
15771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15772         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15773         instead of STAT_STATVFS.
15774         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15775
15776         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15778         f_blocks field only on MacOS X.
15779
15780         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15782         * modules/fsusage (Depends-on): Add largefile.
15783
15784 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15785
15786         * README: Modernize discussion of signed integers.
15787         Assuming overflow wraparound is no longer safe.
15788         Mention ones' complement and signed magnitude.
15789
15790 2011-07-22  Bruno Haible  <bruno@clisp.org>
15791
15792         select tests, pselect tests: Refactor.
15793         * tests/test-select.h: New file, extracted from tests/test-select.c.
15794         (select_fn): New type.
15795         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15796         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15797         test_pipe): Add my_select argument.
15798         (test_function): Renamed from main. Add my_select argument.
15799         * tests/test-select.c: Move most code to tests/test-select.h. Include
15800         test-select.h.
15801         * modules/select-tests (Files): Add tests/test-select.h.
15802         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15803         (my_select, main): New functions.
15804         * modules/pselect-tests (Files): Add tests/test-select.h,
15805         tests/macros.h, tests/signature.h.
15806         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15807         (configure.ac): Check for <sys/wait.h>.
15808
15809 2011-07-22  Bruno Haible  <bruno@clisp.org>
15810
15811         sys_select tests: Check the signature of FD_*.
15812         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15813         signature tests from here...
15814         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15815         here.
15816         * modules/sys_select-tests (Files): Add tests/signature.h.
15817
15818 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         largefile: new module, replacing large-inode
15821         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15822         * MODULES.html.sh: Add largefile, remove large-inode.
15823         * modules/largefile, m4/largefile.m4: New files.
15824         * modules/large-inode, m4/large-inode.m4: Remove.
15825
15826         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15828         implementations that use only 32 bits to count blocks.
15829         On typical hosts with 1024-byte blocks, this fails with file
15830         systems as small as 4 TiB.  Problem reported by Herb Wartens
15831         <http://debbugs.gnu.org/9140> and this should also fix a similar
15832         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15833
15834         large-inode: New module
15835         * MODULES.html.sh: Add it.
15836         * modules/large-inode, m4/large-inode.m4: New files.
15837
15838         extensions: Enable extensions on MacOS X 10.5 and later.
15839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15840
15841 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15842
15843         file-has-acl: use acl_extended_file_nofollow if available
15844         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15845         (acl_extended_file): New macro.
15846         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15847         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15848
15849 2011-07-21  Bruno Haible  <bruno@clisp.org>
15850
15851         Declare system functions in a way that works with C++.
15852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15853         declare fdopendir as extern "C".
15854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15855         declare frexpl as extern "C".
15856         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15857         declare gai_strerror as extern "C".
15858         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15859         programs, declare gai_strerror as extern "C".
15860         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15861         declare getlogin_r as extern "C".
15862         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15863         as extern "C".
15864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15865         declare ldexpl as extern "C".
15866         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15867         as extern "C".
15868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15869         program, declare getmntinfo as extern "C".
15870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15871         stpncpy as extern "C".
15872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15873         program, declare __xpg_strerror_r as extern "C".
15874         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15875         strndup as extern "C".
15876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15877         declare memset and bzero as extern "C".
15878         Reported by Sam Steingold <sds@gnu.org>.
15879
15880 2011-07-12  Jim Meyering  <meyering@redhat.com>
15881
15882         maint.mk: prohibit inclusion of "verify.h" without use
15883         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15884
15885 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15886
15887         timer-time: A new module to check for timer_settime()
15888         * m4/timer_time.m4: Check for the posix function.
15889         * modules/timer-time: Add the new module.
15890         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15891         Mention it.
15892
15893 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15894             Bruno Haible  <bruno@clisp.org>
15895
15896         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15898         not defined, assume POSIX threads and look for pthread_sigmask in
15899         $LIBS, without changing $CPPFLAGS.
15900
15901 2011-07-19  Bruno Haible  <bruno@clisp.org>
15902
15903         strstr: Update cross-compilation guess.
15904         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15905         CPUs, guess no, in view of glibc
15906         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15907         Suggested by Eric Blake. Reported by Reuben Thomas.
15908
15909 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15910
15911         getopt-gnu: suppress core dumps from detection code
15912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15913         to suppress core dumps that may well occur on glibc systems.
15914         * modules/getopt-gnu: Depend on nocrash.
15915
15916 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15917
15918         pthread_sigmask: ensure usleep is declared
15919         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15920         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15921
15922 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15923
15924         doc: Document NonStop portability issues.
15925         * doc/posix-functions/sigaction.texi (sigaction):
15926         * doc/posix-headers/signal.texi (signal.h):
15927         Document NonStop.  See Joachim Schmitz in
15928         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15929
15930 2011-07-15  Bruno Haible  <bruno@clisp.org>
15931
15932         ffsl, ffsll: Avoid unportable behaviour.
15933         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15934
15935 2011-07-15  Bruno Haible  <bruno@clisp.org>
15936
15937         ffs: More tests.
15938         * tests/test-ffs.c (NBITS): New macro.
15939         (main): Add more tests.
15940         * tests/test-ffsl.c (NBITS): New macro.
15941         (main): Add more tests.
15942         * tests/test-ffsll.c (NBITS): New macro.
15943         (main): Add more tests.
15944
15945 2011-07-15  Eric Blake  <eblake@redhat.com>
15946
15947         ffsl, ffsll: new modules
15948         * modules/ffsl: New file.
15949         * modules/ffsll: Likewise.
15950         * m4/ffsl.m4: Likewise.
15951         * m4/ffsll.m4: Likewise.
15952         * lib/ffsl.c: Likewise.
15953         * lib/ffsl.h: Likewise.
15954         * lib/ffsll.c: Likewise.
15955         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15956         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15957         * modules/string (Makefile.am): Substitute witnesses.
15958         * lib/strings.in.h (ffsl, ffsll): Declare.
15959         * modules/ffsl-tests: New test file.
15960         * modules/ffsll-tests: Likewise.
15961         * tests/test-ffsl.c: Likewise.
15962         * tests/test-ffsll.c: Likewise.
15963         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15964         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15965         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15966
15967         ffs: fix m4 prerequisite
15968         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15969
15970         ffs: avoid undefined behavior
15971         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15972         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15973         Reported by Bruno Haible.
15974
15975 2011-07-12  Bruno Haible  <bruno@clisp.org>
15976
15977         pthread_sigmask: Rely on module 'threadlib'.
15978         * modules/pthread_sigmask (Depends-on): Add threadlib.
15979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15980         is defined.
15981
15982 2011-07-12  Bruno Haible  <bruno@clisp.org>
15983
15984         regex: Depend on module 'strcase'.
15985         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15986
15987 2011-07-12  Jim Meyering  <meyering@redhat.com>
15988
15989         warn-on-use: fix typo in file name
15990         * modules/snippet/warn-on-use (Files): Correct file name:
15991         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15992
15993 2011-07-12  Bruno Haible  <bruno@clisp.org>
15994
15995         strings: Document module.
15996         * doc/posix-headers/strings.texi: Mention module 'strings'.
15997
15998 2011-07-12  Bruno Haible  <bruno@clisp.org>
15999
16000         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16001         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16002         (Files, Makefile.am): Update.
16003         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16004         * modules/stdlib (Depends-on): Update.
16005
16006 2011-07-12  Bruno Haible  <bruno@clisp.org>
16007
16008         * NEWS: Mention the changes.
16009
16010         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16011         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16012         (Files, Makefile.am): Update.
16013         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16014         * modules/arpa_inet (Depends-on): Update.
16015         * modules/ctype (Depends-on): Update.
16016         * modules/dirent (Depends-on): Update.
16017         * modules/fcntl-h (Depends-on): Update.
16018         * modules/glob (Depends-on): Update.
16019         * modules/iconv-h (Depends-on): Update.
16020         * modules/inttypes-incomplete (Depends-on): Update.
16021         * modules/langinfo (Depends-on): Update.
16022         * modules/locale (Depends-on): Update.
16023         * modules/math (Depends-on): Update.
16024         * modules/netdb (Depends-on): Update.
16025         * modules/poll-h (Depends-on): Update.
16026         * modules/pty (Depends-on): Update.
16027         * modules/search (Depends-on): Update.
16028         * modules/signal (Depends-on): Update.
16029         * modules/spawn (Depends-on): Update.
16030         * modules/stdio (Depends-on): Update.
16031         * modules/stdlib (Depends-on): Update.
16032         * modules/string (Depends-on): Update.
16033         * modules/strings (Depends-on): Update.
16034         * modules/sys_file (Depends-on): Update.
16035         * modules/sys_ioctl (Depends-on): Update.
16036         * modules/sys_select (Depends-on): Update.
16037         * modules/sys_socket (Depends-on): Update.
16038         * modules/sys_stat (Depends-on): Update.
16039         * modules/sys_time (Depends-on): Update.
16040         * modules/sys_times (Depends-on): Update.
16041         * modules/sys_utsname (Depends-on): Update.
16042         * modules/sys_wait (Depends-on): Update.
16043         * modules/termios (Depends-on): Update.
16044         * modules/time (Depends-on): Update.
16045         * modules/unistd (Depends-on): Update.
16046         * modules/wchar (Depends-on): Update.
16047         * modules/wctype-h (Depends-on): Update.
16048         * MODULES.html.sh (Support for building libraries and executables):
16049         Update.
16050
16051         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16052         * modules/snippet/unused-parameter: Renamed from
16053         modules/unused-parameter.
16054         (Files, Makefile.am): Update.
16055         * build-aux/snippet/unused-parameter.h: Renamed from
16056         build-aux/unused-parameter.h.
16057         * modules/selinux-h (Depends-on): Update.
16058         * modules/unistr/base (Depends-on): Update.
16059         * MODULES.html.sh (Core language properties): Update.
16060
16061         Rename module 'link-warning' to 'snippet/link-warning'.
16062         * modules/snippet/link-warning: Renamed from modules/link-warning.
16063         (Files, Makefile.am): Update.
16064         * build-aux/snippet/link-warning.h: Renamed from
16065         build-aux/link-warning.h.
16066         * MODULES.html.sh (Support for building libraries and executables):
16067         Update.
16068
16069         Rename module 'c++defs' to 'snippet/c++defs'.
16070         * modules/snippet/c++defs: Renamed from modules/c++defs.
16071         (Files, Makefile.am): Update.
16072         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16073         * modules/arpa_inet (Depends-on): Update.
16074         * modules/ctype (Depends-on): Update.
16075         * modules/dirent (Depends-on): Update.
16076         * modules/fcntl-h (Depends-on): Update.
16077         * modules/glob (Depends-on): Update.
16078         * modules/iconv-h (Depends-on): Update.
16079         * modules/langinfo (Depends-on): Update.
16080         * modules/locale (Depends-on): Update.
16081         * modules/math (Depends-on): Update.
16082         * modules/netdb (Depends-on): Update.
16083         * modules/poll-h (Depends-on): Update.
16084         * modules/pty (Depends-on): Update.
16085         * modules/search (Depends-on): Update.
16086         * modules/signal (Depends-on): Update.
16087         * modules/spawn (Depends-on): Update.
16088         * modules/stdio (Depends-on): Update.
16089         * modules/stdlib (Depends-on): Update.
16090         * modules/string (Depends-on): Update.
16091         * modules/strings (Depends-on): Update.
16092         * modules/sys_ioctl (Depends-on): Update.
16093         * modules/sys_select (Depends-on): Update.
16094         * modules/sys_socket (Depends-on): Update.
16095         * modules/sys_stat (Depends-on): Update.
16096         * modules/sys_time (Depends-on): Update.
16097         * modules/sys_wait (Depends-on): Update.
16098         * modules/termios (Depends-on): Update.
16099         * modules/time (Depends-on): Update.
16100         * modules/unistd (Depends-on): Update.
16101         * modules/wchar (Depends-on): Update.
16102         * modules/wctype-h (Depends-on): Update.
16103
16104         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16105         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16106         (Files, Makefile.am): Update.
16107         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16108         * modules/argv-iter (Depends-on): Update.
16109         * modules/arpa_inet (Depends-on): Update.
16110         * modules/dirent (Depends-on): Update.
16111         * modules/fcntl-h (Depends-on): Update.
16112         * modules/fnmatch (Depends-on): Update.
16113         * modules/getopt-posix (Depends-on): Update.
16114         * modules/glob (Depends-on): Update.
16115         * modules/iconv-h (Depends-on): Update.
16116         * modules/inttypes-incomplete (Depends-on): Update.
16117         * modules/locale (Depends-on): Update.
16118         * modules/math (Depends-on): Update.
16119         * modules/netdb (Depends-on): Update.
16120         * modules/search (Depends-on): Update.
16121         * modules/signal (Depends-on): Update.
16122         * modules/spawn (Depends-on): Update.
16123         * modules/stdio (Depends-on): Update.
16124         * modules/stdlib (Depends-on): Update.
16125         * modules/string (Depends-on): Update.
16126         * modules/strings (Depends-on): Update.
16127         * modules/sys_socket (Depends-on): Update.
16128         * modules/sys_stat (Depends-on): Update.
16129         * modules/sys_time (Depends-on): Update.
16130         * modules/sys_times (Depends-on): Update.
16131         * modules/sys_utsname (Depends-on): Update.
16132         * modules/time (Depends-on): Update.
16133         * modules/unistd (Depends-on): Update.
16134         * modules/wchar (Depends-on): Update.
16135         * MODULES.html.sh (Support for building libraries and executables):
16136         Update.
16137
16138 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16139
16140         Improvements on _Noreturn and related modules.
16141
16142         modules/_Exit-tests: test _Noreturn too
16143         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16144         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16145         (main): Use them.
16146
16147         stdnoreturn, stdnoreturn-tests: remove modules
16148         They're not needed here and a bit premature for use elsewhere.  See
16149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16150         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16151         * tests/test-stdnoreturn.c: Remove files.
16152         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16153         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16154         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16155         and using noreturn.
16156         * modules/openat, modules/sigpipe-die, modules/xalloc:
16157         * modules/xmemdup0, modules/xstrtol:
16158         Remove dependency on stdnoreturn.
16159
16160         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16161         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16162         Reparenthesize to avoid GCC warning.
16163         Support Microsoft's syntax.
16164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16165
16166         _Noreturn-tests: remove module
16167         * modules/_Noreturn-tests: Remove.
16168         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16169         * tests/test-_Noreturn.c: Remove.
16170         * tests/test-stdnoreturn.c: Merge from the old
16171         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16172
16173 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16174
16175         _Noreturn, stdnoreturn, and related modules.
16176
16177         * top/maint.mk: Adjust to new noreturn support.
16178         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16179         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16180
16181         xalloc: use stdnoreturn.h
16182         * lib/xalloc.h: Include <stdnoreturn.h>.
16183         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16184         * modules/xalloc (Depends-on): Add stdnoreturn.
16185
16186         xstrtol: use stdnoreturn.h
16187         * lib/xstrtol.h: Include <stdnoreturn.h>.
16188         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16189         * modules/xstrtol (Depends-on): Add stdnoreturn.
16190
16191         xmemdup0: use stdnoreturn.h
16192         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16193         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16194         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16195
16196         sigpipe-die: use stdnoreturn.h
16197         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16198         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16199         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16200
16201         openat: use stdnoreturn.h
16202         * lib/openat.h: Include <stdnoreturn.h>.
16203         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16204         * modules/openat (Depends-on): Add stdnoreturn.
16205
16206         * lib/openat-die.c (openat_save_fail): Modernize comment.
16207
16208         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16209
16210         * lib/glthread/thread.h: Modernize comment.
16211
16212         obstack: use _Noreturn
16213         * lib/obstack.c (__attribute__): Remove macro.
16214         (print_and_abort): Use _Noreturn.
16215
16216         c-stack: use _Noreturn
16217         * lib/c-stack.c (die, overflow_handler, segv_handler):
16218         Use _Noreturn rather than __attribute__((noreturn)).
16219
16220         argmatch-tests, exclude_tests: use _Noreturn
16221         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16222         Remove.
16223         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16224
16225         stdlib: use _Noreturn
16226         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16227         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16228         * modules/stdlib (Depends-on): Add _Noreturn.
16229         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16230
16231         stdnoreturn-tests: new module
16232         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16233
16234         stdnoreturn: new module
16235         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16236         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16237
16238         _Noreturn-tests: new module
16239         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16240
16241         _Noreturn: new module
16242         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16243         New section, mentioning it.
16244         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16245
16246         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16247
16248 2011-07-11  Eric Blake  <eblake@redhat.com>
16249
16250         ffs: new module
16251         * modules/ffs: New file.
16252         * m4/ffs.m4: Likewise.
16253         * lib/ffs.c: Likewise.
16254         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16255         * modules/strings (Makefile.am): Substitute witness.
16256         (Depends-on): Add c++defs.
16257         * lib/strings.in.h (ffs): Declare.
16258         * modules/ffs-tests: New test file.
16259         * tests/test-ffs.c: Test new module.
16260         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16261         * doc/posix-functions/ffs.texi (ffs): Likewise.
16262
16263         regex: avoid compiler warning
16264         * lib/regex.c (includes): Include <strings.h>, for use of
16265         strcasecmp in regcomp.c.
16266         Reported by Joachim Schmitz.
16267
16268 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16269
16270         stdint: respect system's intmax_t if INTMAX_MAX
16271         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16272         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16273         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16274         long but int64_t is long long, and where we will clash with the
16275         system intmax_t if we override it.  See
16276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16277         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16278         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16279         similarly for UINTMAX_C.
16280
16281 2011-07-08  Bruno Haible  <bruno@clisp.org>
16282
16283         pthread_sigmask tests: Avoid a compiler warning.
16284         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16285         non-zero.
16286
16287         sigprocmask tests: A better way to avoid a compiler warning.
16288         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16289         (main): Complain if system() returns non-zero.
16290         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16291
16292 2011-07-08  Bruno Haible  <bruno@clisp.org>
16293
16294         pthread_sigmask: Work around IRIX bug.
16295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16296         bug.
16297         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16298         there may be unblocked pending signals.
16299         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16300
16301 2011-07-08  Bruno Haible  <bruno@clisp.org>
16302
16303         pthread_sigmask: Work around Cygwin bug.
16304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16305         bug.
16306         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16307         the system's pthread_sigmask function.
16308         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16309
16310 2011-07-08  Bruno Haible  <bruno@clisp.org>
16311
16312         pthread_sigmask: Work around bug in single-threaded implementation.
16313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16314         FreeBSD, HP-UX, Solaris bug.
16315         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16316         * lib/pthread_sigmask.c: Include <stddef.h>.
16317         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16318         the system's pthread_sigmask function.
16319         * modules/pthread_sigmask (configure.ac): Invoke
16320         gl_PREREQ_PTHREAD_SIGMASK.
16321         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16322         HP-UX, Solaris.
16323
16324 2011-07-08  Eric Blake  <eblake@redhat.com>
16325
16326         test-sigprocmask: avoid compiler warning
16327         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16328         * tests/test-sigprocmask.c (main): Use it to silence warning.
16329         Reported by Jim Meyering.
16330
16331         test-snprintf: avoid compiler warning
16332         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16333         * tests/test-vsnprintf.c (main): Likewise.
16334         Reported by Jim Meyering.
16335
16336 2011-07-08  Bruno Haible  <bruno@clisp.org>
16337
16338         Tests for module 'pthread_sigmask'.
16339         * modules/pthread_sigmask-tests: New file.
16340         * tests/test-pthread_sigmask1.c: New file, based on
16341         tests/test-sigprocmask.c.
16342         * tests/test-pthread_sigmask2.c: New file.
16343
16344 2011-07-08  Jim Meyering  <meyering@redhat.com>
16345
16346         test-getopt.h: avoid warning about an unused variable
16347         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16348
16349 2011-07-07  Jim Meyering  <meyering@redhat.com>
16350
16351         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16352         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16353         now that it no longer contains leading TABs.
16354         Remove unused "url=FIXME" statement.
16355
16356 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16357
16358         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16360         When gl_THREADLIB is not in use, assume that the POSIX sematics
16361         are desired.  This is better for Emacs, which uses POSIX semantics
16362         on GNUish and/or POSIXish platforms, and does not use threads at
16363         all otherwise.
16364
16365         pthread_sigmask: fix typo when testing for libraries
16366         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16367         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16368
16369 2011-07-08  Eric Blake  <eblake@redhat.com>
16370
16371         fts: introduce FTS_NOATIME
16372         * lib/fts_.h (FTS_NOATIME): New bit flag.
16373         (FTS_OPTIONMASK): Adjust.
16374         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16375         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16376
16377 2011-07-08  Bruno Haible  <bruno@clisp.org>
16378
16379         Tests for module 'thread'.
16380         * modules/thread-tests: New file.
16381         * tests/test-thread_self.c: New file.
16382         * tests/test-thread_create.cc: New file.
16383
16384 2011-07-08  Bruno Haible  <bruno@clisp.org>
16385
16386         thread: Avoid gcc warnings when using gl_thread_self().
16387         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16388         'void *'.
16389         (gl_thread_self_pointer): Update.
16390
16391 2011-07-07  Bruno Haible  <bruno@clisp.org>
16392
16393         signal-c++-tests: Check declaration of pthread_sigmask.
16394         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16395         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16396         $(LIB_PTHREAD_SIGMASK).
16397
16398 2011-07-07  Bruno Haible  <bruno@clisp.org>
16399
16400         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16401         * lib/signal.in.h (pthread_sigmask): Override if
16402         REPLACE_PTHREAD_SIGMASK is 1.
16403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16404         REPLACE_PTHREAD_SIGMASK.
16405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16406         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16407         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16408         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16409         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16410
16411 2011-07-07  Bruno Haible  <bruno@clisp.org>
16412
16413         pthread_sigmask: Ensure declaration in <signal.h>.
16414         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16415         include <pthread.h>.
16416         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16417         problem.
16418
16419 2011-07-07  Bruno Haible  <bruno@clisp.org>
16420
16421         pthread_sigmask: Document the module.
16422         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16423
16424 2011-07-07  Bruno Haible  <bruno@clisp.org>
16425
16426         pthread_sigmask: Follow gnulib conventions.
16427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16428         gl_PTHREAD_SIGMASK.
16429         * modules/pthread_sigmask (configure.ac): Update.
16430
16431 2011-07-07  Bruno Haible  <bruno@clisp.org>
16432
16433         pthread_sigmask: Make declaration C++ safe.
16434         * lib/signal.in.h: In two special conditions, just do an #include_next.
16435         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16436         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16438         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16439         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16440         not REPLACE_PTHREAD_MASK.
16441         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16442         not REPLACE_PTHREAD_MASK.
16443         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16444
16445 2011-07-07  Bruno Haible  <bruno@clisp.org>
16446
16447         pthread_sigmask: Fix return value.
16448         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16449         * lib/pthread_sigmask.c: New file.
16450         * modules/pthread_sigmask (Files): Add it.
16451         (configure.ac): Invoke AC_LIBOBJ.
16452
16453 2011-07-07  Eric Blake  <eblake@redhat.com>
16454
16455         getopt: more portable argv creation
16456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16457         const, use char arrays rather than strings.
16458         Suggested by Paul Eggert.
16459
16460 2011-07-07  Bruno Haible  <bruno@clisp.org>
16461
16462         Tests for module 'sigprocmask'.
16463         * modules/sigprocmask-tests: New file.
16464         * tests/test-sigprocmask.c: New file.
16465
16466 2011-07-07  Bruno Haible  <bruno@clisp.org>
16467
16468         float tests: Tweak.
16469         * tests/test-float.c (main): Tweak skip message.
16470
16471 2011-07-07  Eric Blake  <eblake@redhat.com>
16472
16473         getopt: avoid compiler warning during configure
16474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16475         assigning string literals to non-const pointer.
16476
16477         getopt-gnu: avoid crash in glibc getopt
16478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16479         * tests/test-getopt.h (test_getopt): Enhance test.
16480         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16481         * doc/posix-functions/getopt.texi (getopt): Document it.
16482         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16483         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16484         Likewise.
16485
16486 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16487
16488         getopt: handle W; without long options in getopt [BZ #12922]
16489         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16490         but no long options are defined, just return 'W'.
16491
16492 2011-07-07  Bruno Haible  <bruno@clisp.org>
16493
16494         Avoid literal tabs.
16495         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16496         variable containing a tab instead of a literal tab.
16497         Reported by Jim Meyering.
16498
16499 2011-07-07  Bruno Haible  <bruno@clisp.org>
16500
16501         Comments.
16502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16503
16504 2011-07-06  Bruno Haible  <bruno@clisp.org>
16505
16506         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16507         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16508         <winsock2.h>.
16509         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16510         lib/sys_socket.in.h.
16511         (close, gethostname): Hide declarations from <winsock2.h>.
16512         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16513         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16514         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16515         (select): Don't override if gnulib's <sys/select.h> was already
16516         included.
16517         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16518         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16519         setsockopt, shutdown, select): Tweak indentation.
16520
16521 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16522
16523         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16524         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16525         in an application that does not use the sys_select module.
16526
16527 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16528
16529         poll: do not return 0 on timeout=-1
16530         * lib/poll.c: Loop with yield if no events occurred.
16531
16532 2011-07-06  Eric Blake  <eblake@redhat.com>
16533
16534         pthread_sigmask: always replace when not using pthread
16535         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16536         replacement when using some threading other than pthread.  Fix
16537         logic bug.
16538
16539 2011-07-06  Bruno Haible  <bruno@clisp.org>
16540
16541         Comments.
16542         * m4/printf.m4: Update comments about mingw.
16543
16544 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         sys_select: define sigset_t more portably
16547         * lib/sys_select.in.h: Always include <sys/types.h>, since
16548         we now need sigset_t and mingw defines it there.
16549         Include <signal.h> before split inclusion guard, to avoid
16550         mishaps on Solaris, whose <signal.h> eventually includes us.
16551         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16552         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16553         which come from ...
16554         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16555         gl_CHECK_TYPE_SIGSET_T.
16556         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16557         does the real work.
16558         * modules/sys_select (Depends-on): Add 'signal'.
16559
16560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16561         Suggested by Bruno Haible.
16562
16563         pselect: Use pthread_sigmask, not sigprocmask.
16564         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16565         multithreaded apps better than sigprocmask does.
16566         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16567         sigprocmask directly.
16568
16569 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16570
16571         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16572         Don't #undef,  since we don't need any underlying pselect.
16573         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16574         (Depends-on): Add select.
16575         (Link): Add $(LIBSOCKET).
16576         These changes suggested by Bruno Haible.
16577
16578         pselect: document better
16579         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16580         * doc/posix-functions/pselect.texi (pselect): Document new module.
16581
16582         pthread_sigmask: new module
16583         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16584         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16585         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16586         This is done only as a macro; I don't know how well that'll
16587         work for C++.  Move <sys/types.h> include before the include_next,
16588         to avoid mishap on Solaris.
16589         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16590         * modules/signal (Makefile.am): Substitute the check's results.
16591         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16592
16593         test-pselect: new module
16594         * modules/pselect-tests, tests/test-pselect.c: New files.
16595         * tests/test-select.c, tests/test-sys_select-c++.cc:
16596         If TEST_PSELECT is defined, test pselect instead of testing select.
16597
16598         * tests/test-sys_select.c (sigset_t): Test for it, too.
16599         Suggested by Bruno Haible.
16600
16601 2011-07-05  Eric Blake  <eblake@redhat.com>
16602
16603         snprintf: guarantee %1$d, for libintl
16604         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16605         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16606         * doc/posix-functions/snprintf.texi (snprintf): Update.
16607         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16608         * tests/test-snprintf.c (main): Enhance test.
16609         * tests/test-vsnprintf.c (main): Likewise.
16610
16611 2011-07-05  Jim Meyering  <meyering@redhat.com>
16612
16613         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16614         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16615         per Bruno's request, to accommodate this idiom (no space after "#")
16616         even when the function is inside an #if block:
16617         char *
16618         gets (char *s)
16619         #undef gets
16620         {
16621           ...
16622         }
16623
16624 2011-07-04  Jim Meyering  <meyering@redhat.com>
16625
16626         maint: indent with spaces, not TABs, and add a rule to check this
16627         * tests/test-userspec.c: Indent with spaces, not TABs.
16628         * tests/test-argp.c: Likewise.
16629         * tests/test-c-stack2.sh: Likewise.
16630         * tests/test-parse-duration.sh: Likewise
16631         * m4/strtod.m4: Likewise.
16632         * m4/alloca.m4: Likewise.
16633         * m4/pselect.m4: Likewise.
16634         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16635
16636 2011-07-03  Jim Meyering  <meyering@redhat.com>
16637
16638         maint.mk: correct omissions in prohibit_argmatch_without_use check
16639         This rule would mistakenly report that argmatch.h is included without
16640         use even when both the argmatch and invalid_arg macro were used.
16641         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16642         of argmatch and invalid_arg.
16643
16644 2011-07-03  Bruno Haible  <bruno@clisp.org>
16645
16646         Comments about EINTR.
16647         * lib/safe-read.h: Explain the purpose of this module.
16648         * lib/safe-write.h: Likewise.
16649         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16650         module.
16651         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16652         module.
16653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16654
16655 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16656
16657         xnanosleep: Rewrite to use new dtotimespec module.
16658         It has the conversion code that used to be in xnanosleep.
16659         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16660         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16661         (TIME_T_MAX): Remove.
16662         (xnanosleep): Rewrite in terms of dtotimespec.
16663         * modules/xnanosleep (Depends-on): Add dtotimespec.
16664         Remove intprops, stdbool.
16665
16666         timespec-add, timespec-sub: new modules
16667         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16668         * lib/timespec-add.c, lib/timespec-sub.c:
16669         * modules/timespec-add, modules/timespec-sub: New files.
16670
16671         dtotimespec: new module
16672         * lib/timespec.h (dtotimespec): New decl.
16673         * lib/dtotimespec.c, modules/dtotimespec: New files.
16674
16675         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16676
16677         pselect: new module
16678         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16679         (pselect): New decls.
16680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16681         since the standard pselect decl uses 'restrict'.
16682         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16683         HAVE_PSELECT, REPLACE_PSELECT.
16684         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16685         HAVE_PSELECT, REPLACE_PSELECT.
16686         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16687
16688         sys_select: don't depend on sys_socket
16689         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16691         This fix works on GNU and GNU-like platforms, but has not been tested
16692         on native Windows.
16693         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16695         gl_HEADER_SYS_SOCKET.
16696         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16697         gl_PREREQ_SYS_H_WINSOCK2.
16698
16699 2011-06-29  Eric Blake  <eblake@redhat.com>
16700
16701         pipe2: fix C89 compile problem
16702         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16703         Reported by Bruno Haible.
16704
16705         pipe, pipe2: don't corrupt fd on error
16706         * lib/pipe.c (pipe): Leave fd unchanged on error.
16707         * lib/pipe2.c (pipe2): Likewise.
16708         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16709         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16710
16711 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16712
16713         mmap-anon: do not use regular expressions inadvertently
16714         * m4/mmap-anon.m4: Remove trailing period from strings sought
16715         in the output.
16716
16717 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16718
16719         nanosleep: fix integer overflow problem
16720         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16721         arithmetic wraps around on overflow.
16722
16723         nanosleep: simplify carrying
16724         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16725         first call to the underyling nanosleep, not for the last one.
16726         This doesn't fix any bugs, but it simplifies the computation of
16727         the remaining delay.  Found while auditing integer overflow issues.
16728
16729         dup2: remove test for existence of fcntl
16730         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16731         "#if HAVE_FCNTL", in the configure-time test program.
16732         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16733         and therefore speeds up "configure" a bit.  Found while
16734         adding the dup2 module to Emacs.
16735
16736 2011-06-24  Eric Blake  <eblake@redhat.com>
16737
16738         maint.mk: enhance useless header checks
16739         * top/maint.mk (_sc_header_without_use): Check both include
16740         styles.
16741         (sc_prohibit_assert_without_use)
16742         (sc_prohibit_close_stream_without_use)
16743         (sc_prohibit_getopt_without_use)
16744         (sc_prohibit_quotearg_without_use)
16745         (sc_prohibit_quote_without_use)
16746         (sc_prohibit_long_options_without_use)
16747         (sc_prohibit_inttostr_without_use)
16748         (sc_prohibit_ignore_value_without_use)
16749         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16750         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16751         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16752         (sc_prohibit_hash_pjw_without_use)
16753         (sc_prohibit_safe_read_without_use)
16754         (sc_prohibit_argmatch_without_use)
16755         (sc_prohibit_canonicalize_without_use)
16756         (sc_prohibit_root_dev_ino_without_use)
16757         (sc_prohibit_openat_without_use)
16758         (sc_prohibit_c_ctype_without_use)
16759         (sc_prohibit_signal_without_use)
16760         (sc_prohibit_stdio--_without_use)
16761         (sc_prohibit_stdio-safer_without_use)
16762         (sc_prohibit_strings_without_use)
16763         (sc_prohibit_intprops_without_use)
16764         (sc_prohibit_stddef_without_use)
16765         (sc_prohibit_xfreopen_without_use): Update clients.
16766
16767 2011-06-24  Jim Meyering  <meyering@redhat.com>
16768
16769         syntax-check: keep one maint.mk rule in sync with its header
16770         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16771         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16772         I prefer to avoid temporary files here, so use <(...), but that
16773         is not supported by /bin/sh, so...
16774         (SHELL): Define to /bin/bash.
16775
16776 2011-06-24  Eric Blake  <eblake@redhat.com>
16777
16778         maint.mk: update sc_prohibit_intprops_without_use
16779         * top/maint.mk (_intprops_names): Match recent changes.
16780
16781 2011-06-24  Bruno Haible  <bruno@clisp.org>
16782
16783         strerror-override: No-op tweak.
16784         * lib/strerror-override.h (strerror_override): Reorder conditions,
16785         for consistency with lib/strerror-override.c.
16786
16787 2011-06-23  Eric Blake  <eblake@redhat.com>
16788
16789         maint.mk: test further PATH_MAX issues
16790         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16791         (sc_prohibit_path_max_allocation): ...and also test alloca.
16792         Suggested by Jim Meyering.
16793
16794 2011-06-22  Eric Blake  <eblake@redhat.com>
16795
16796         maint.mk: add syntax-check to avoid char[PATH_MAX]
16797         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16798
16799         stat: be robust to PATH_MAX definition
16800         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16801         * modules/stat (Depends-on): Add verify.
16802
16803         link: work around IRIX bug
16804         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16805         * lib/link.c (rpl_link): Work around it.
16806         * tests/test-link.h (test_link): Enhance test.
16807         * doc/posix-functions/link.texi (link): Document the bug.
16808
16809         getopt: silence clang warning
16810         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16811         dereference.
16812         Reported by Gustavo Martin Domato.
16813
16814 2011-06-22  Jim Meyering  <meyering@redhat.com>
16815
16816         bootstrap: do not insert a blank line into each .gitignore file
16817         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16818
16819 2011-06-21  Eric Blake  <eblake@redhat.com>
16820
16821         perror: test for output mismatch
16822         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16823         perror on IRIX.
16824
16825         strerror_r: fix OpenBSD behavior on out-of-range
16826         * lib/strerror_r.c (strerror_r): Always use maximal string.
16827         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16828
16829         strerror_r: fix OpenBSD behavior on 0
16830         * lib/strerror-override.c (strerror_override): Also override 0
16831         when needed.
16832         * lib/strerror-override.h (strerror_override): Likewise.
16833         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16834         earlier.
16835         * lib/strerror_r.c (strerror_r): Likewise.
16836         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16837         behavior...
16838         (gl_FUNC_STRERROR_0): ...into new macro.
16839         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16840         is overridden.
16841         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16842         * modules/strerror-override (Files): Add strerror.m4.
16843         (configure.ac): Also provide override for 0 when needed.
16844         * doc/posix-functions/strerror.texi (strerror): Document this.
16845         * doc/posix-functions/perror.texi (perror): Likewise.
16846
16847         perror: adjust array size
16848         * modules/perror (Depends-on): Add strerror-override.
16849         * lib/perror.c (perror): Use it to avoid magic number.
16850
16851         strerror-override: reduce size
16852         * lib/strerror-override.c (strerror_override): Use fewer lines.
16853
16854 2011-06-20  Bruno Haible  <bruno@clisp.org>
16855
16856         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16857         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16858
16859 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16860
16861         alloca: port to compilers that can optimize like GCC 4.6.0
16862         * lib/alloca.c (find_stack_direction): New signature, taken from
16863         Autoconf git.  This works with GCC 4.6.0.  This code should never
16864         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16865         be used with other compilers that optimize as well as GCC 4.6.0 does.
16866         (alloca): Adjust to new signature.
16867         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16868         New macro, which patches Autoconf in a similar way.
16869
16870         c-stack: stop worrying about stack direction
16871         * lib/c-stack.c (find_stack_direction): Remove.
16872         (segv_handler): Don't worry about stack direction growth, as it's
16873         too much of a pain to configure this correctly, given how compilers
16874         are optimizing-away our stack-growth detection code.  Instead, assume
16875         that any access to just before or just after the stack is OK.
16876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16877         Don't require AC_FUNC_ALLOCA; no longer needed.
16878
16879 2011-06-20  Eric Blake  <eblake@redhat.com>
16880
16881         test-stat: don't allocate PATH_MAX bytes
16882         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16883         PATH_MAX-sized buffer.
16884         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16885         * modules/stat-tests (Depends-on): Likewise.
16886         * tests/test-fstatat.c (includes): Drop pathmax.h.
16887         * tests/test-stat.c (includes): Likewise.
16888         Reported by Bruno Haible.
16889
16890 2011-06-20  Bruno Haible  <bruno@clisp.org>
16891
16892         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16893         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16894         * lib/float.c: New file.
16895         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16896         REPLACE_FLOAT_LDBL.
16897         * modules/float (Files): Add lib/float.c.
16898         (configure.ac): Invoke AC_LIBOBJ.
16899         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16900
16901 2011-06-20  Bruno Haible  <bruno@clisp.org>
16902
16903         Tests for module 'float'.
16904         * modules/float-tests: New file.
16905         * tests/test-float.c: New file.
16906
16907 2011-06-19  Bruno Haible  <bruno@clisp.org>
16908
16909         isinf: Coding style.
16910         * lib/isinf.c: Use GNU coding style.
16911
16912 2011-06-19  Bruno Haible  <bruno@clisp.org>
16913
16914         linkat test: Avoid test failure on AIX 7.1.
16915         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16916         * tests/test-link.h (test_link): Likewise.
16917
16918 2011-06-19  Bruno Haible  <bruno@clisp.org>
16919
16920         pread test: Avoid test failure on OpenBSD 4.9.
16921         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16922
16923 2011-06-19  Bruno Haible  <bruno@clisp.org>
16924
16925         sprintf-posix: Fix test failure on AIX 7.1.
16926         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16927         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16928         on AIX.
16929         * doc/posix-functions/fprintf.texi: Likewise.
16930         * doc/posix-functions/printf.texi: Likewise.
16931         * doc/posix-functions/snprintf.texi: Likewise.
16932         * doc/posix-functions/sprintf.texi: Likewise.
16933         * doc/posix-functions/vdprintf.texi: Likewise.
16934         * doc/posix-functions/vfprintf.texi: Likewise.
16935         * doc/posix-functions/vprintf.texi: Likewise.
16936         * doc/posix-functions/vsnprintf.texi: Likewise.
16937         * doc/posix-functions/vsprintf.texi: Likewise.
16938
16939 2011-06-19  Bruno Haible  <bruno@clisp.org>
16940
16941         roundl-ieee: Fix test failure on AIX 7.1.
16942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16943         * doc/posix-functions/roundl.texi: Mention problem with negative
16944         arguments.
16945
16946 2011-06-19  Bruno Haible  <bruno@clisp.org>
16947
16948         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16949         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16950         * doc/posix-functions/round.texi: Mention problem with negative
16951         arguments.
16952         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16953
16954 2011-06-19  Bruno Haible  <bruno@clisp.org>
16955
16956         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16958         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16959         * doc/posix-functions/roundf.texi: Mention problem with negative
16960         arguments.
16961         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16962
16963 2011-06-19  Bruno Haible  <bruno@clisp.org>
16964
16965         ceilf-ieee: Work around bug on MacOS X 10.5.
16966         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16967
16968         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16969         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16970         IEEE compliant, avoid compiler optimizations.
16971         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16972         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16973         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16974         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16975         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16976         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16979         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16981
16982 2011-06-19  Bruno Haible  <bruno@clisp.org>
16983
16984         ceilf-ieee: Work around bug on AIX 7.1.
16985         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16986         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16987
16988 2011-06-19  Bruno Haible  <bruno@clisp.org>
16989
16990         ceil-ieee: Work around bug on AIX 7.1.
16991         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16992         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16993
16994 2011-06-18  Bruno Haible  <bruno@clisp.org>
16995
16996         fsync test: Avoid test failure on MacOS X and AIX.
16997         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16998         EINVAL.
16999
17000 2011-06-18  Bruno Haible  <bruno@clisp.org>
17001
17002         openat, fdopendir tests: Fix link errors.
17003         * modules/openat-tests (Depends-on): Add progname.
17004         * modules/fdopendir-tests (Depends-on): Likewise.
17005         * tests/test-fchownat.c: Include progname.h.
17006         (main): Call set_program_name.
17007         * tests/test-fstatat.c: Include progname.h.
17008         (main): Call set_program_name.
17009         * tests/test-mkdirat.c: Include progname.h.
17010         (main): Call set_program_name.
17011         * tests/test-openat.c: Include progname.h.
17012         (main): Call set_program_name.
17013         * tests/test-unlinkat.c: Include progname.h.
17014         (main): Call set_program_name.
17015         * tests/test-fdopendir.c: Include progname.h.
17016         (main): Call set_program_name.
17017
17018 2011-06-18  Bruno Haible  <bruno@clisp.org>
17019
17020         Doc update.
17021         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17022         HP-UX.
17023         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17024
17025 2011-06-18  Bruno Haible  <bruno@clisp.org>
17026
17027         getcwd tests: Avoid compilation error on HP-UX 11.31.
17028         * modules/getcwd-tests (Depends-on): Add pathmax.
17029         * tests/test-getcwd.c: Include pathmax.h.
17030
17031 2011-06-18  Bruno Haible  <bruno@clisp.org>
17032
17033         isfinite, isinf: Fix link error on AIX 6 and 7.
17034         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17035         needed, also test the macro with a 'float' argument.
17036         * m4/isinf.m4 (gl_ISINF): Likewise.
17037
17038 2011-06-18  Bruno Haible  <bruno@clisp.org>
17039
17040         getloadavg: Don't clobber LIBS. Regression from previous commit.
17041         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17042         AC_CHECK_LIB from here...
17043         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17044         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17045         gl_func_getloadavg_done.
17046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17047
17048 2011-06-18  Bruno Haible  <bruno@clisp.org>
17049
17050         clean-temp: Improve documentation.
17051         * lib/clean-temp.h: Explain better how to use this module.
17052         Reported by John Darrington <john@darrington.wattle.id.au>.
17053
17054 2011-06-17  Bruno Haible  <bruno@clisp.org>
17055
17056         pread, pwrite: Avoid cc warning on AIX.
17057         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17058         (pwrite): Likewise.
17059
17060 2011-06-17  Bruno Haible  <bruno@clisp.org>
17061
17062         spawn-pipe tests: Fix link error.
17063         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17065
17066 2011-06-17  Bruno Haible  <bruno@clisp.org>
17067
17068         Tests: Remove unnecessary dependency.
17069         * modules/canonicalize-tests (Depends-on): Remove progname.
17070         * modules/chown-tests (Depends-on): Likewise.
17071         * modules/dirname-tests (Depends-on): Likewise.
17072         * modules/fdopendir-tests (Depends-on): Likewise.
17073         * modules/fdutimensat-tests (Depends-on): Likewise.
17074         * modules/hash-tests (Depends-on): Likewise.
17075         * modules/lchown-tests (Depends-on): Likewise.
17076         * modules/linkat-tests (Depends-on): Likewise.
17077         * modules/renameat-tests (Depends-on): Likewise.
17078         * modules/spawn-pipe-tests (Depends-on): Likewise.
17079         * modules/utimensat-tests (Depends-on): Likewise.
17080
17081 2011-06-17  Bruno Haible  <bruno@clisp.org>
17082
17083         spawn-pipe tests: Fix link error.
17084         * tests/test-spawn-pipe-child.c: Undefine fflush.
17085
17086 2011-06-17  Bruno Haible  <bruno@clisp.org>
17087
17088         Fix tests link errors.
17089         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17090         * modules/chown-tests (Makefile.am): Don't link test-chown with
17091         LIBINTL.
17092         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17093         LIBINTL.
17094         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17095         LIBINTL.
17096         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17097         LIBINTL.
17098
17099 2011-06-16  Bruno Haible  <bruno@clisp.org>
17100
17101         crypto/gc-sha1: Fix recent regression.
17102         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17103         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17104
17105         crypto/gc-md5: Fix recent regression.
17106         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17107
17108         crypto/gc-md4: Fix recent regression.
17109         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17110         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17111
17112         crypto/gc-arctwo: Fix recent regression.
17113         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17114         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17115
17116         crypto/gc-rijndael: Fix recent regression.
17117         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17118         (configure.ac): Invoke AC_LIBOBJ here.
17119         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17121
17122         crypto/gc-hmac-sha1: Fix recent regression.
17123         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17124         (configure.ac): Invoke AC_LIBOBJ here.
17125         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17127
17128         crypto/gc-hmac-md5: Fix recent regression.
17129         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17130         (configure.ac): Invoke AC_LIBOBJ here.
17131         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17133
17134         crypto/gc-des: Fix recent regression.
17135         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17136         (configure.ac): Invoke AC_LIBOBJ here.
17137         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17139
17140         crypto/gc-arcfour: Fix recent regression.
17141         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17142         (configure.ac): Invoke AC_LIBOBJ here.
17143         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17145
17146 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17147
17148         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17149         After the 2011-05-21 change, this macro requires
17150         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17151         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17152
17153 2011-06-16  Bruno Haible  <bruno@clisp.org>
17154
17155         fprintftime: Move AC_LIBOBJ invocations to module description.
17156         * m4/fprintftime.m4: Remove file.
17157         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17158         (configure.ac): Remove gl_FPRINTFTIME call.
17159         (Makefile.am): Augment lib_SOURCES.
17160         Reported by Jim Meyering.
17161
17162 2011-06-16  Bruno Haible  <bruno@clisp.org>
17163
17164         tmpfile-safer: Finish 2011-05-23 commit.
17165         * m4/stdio-safer.m4: Really remove file.
17166         Reported by Jim Meyering.
17167
17168 2011-06-16  Bruno Haible  <bruno@clisp.org>
17169
17170         syntax-check: Fix typo.
17171         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17172         printf-posix.m4.
17173         Reported by Jim Meyering.
17174
17175 2011-06-13  Jim Meyering  <meyering@redhat.com>
17176
17177         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17178         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17179
17180 2011-05-23  Bruno Haible  <bruno@clisp.org>
17181
17182         yesno: Move AC_LIBOBJ invocations to module description.
17183         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17184         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17185
17186 2011-05-23  Bruno Haible  <bruno@clisp.org>
17187
17188         xstrtol: Move AC_LIBOBJ invocations to module description.
17189         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17190         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17191
17192 2011-05-23  Bruno Haible  <bruno@clisp.org>
17193
17194         xstrtold: Move AC_LIBOBJ invocations to module description.
17195         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17196         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17197
17198 2011-05-23  Bruno Haible  <bruno@clisp.org>
17199
17200         xstrtod: Move AC_LIBOBJ invocations to module description.
17201         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17202         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17203
17204 2011-05-23  Bruno Haible  <bruno@clisp.org>
17205
17206         xnanosleep: Move AC_LIBOBJ invocations to module description.
17207         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17208         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17209
17210 2011-05-23  Bruno Haible  <bruno@clisp.org>
17211
17212         xgetcwd: Move AC_LIBOBJ invocations to module description.
17213         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17214         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17215
17216 2011-05-23  Bruno Haible  <bruno@clisp.org>
17217
17218         xalloc: Move AC_LIBOBJ invocations to module description.
17219         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17220         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17221
17222 2011-05-23  Bruno Haible  <bruno@clisp.org>
17223
17224         write-any-file: Move AC_LIBOBJ invocations to module description.
17225         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17226         invocation.
17227         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17228
17229 2011-05-23  Bruno Haible  <bruno@clisp.org>
17230
17231         utimens: Move AC_LIBOBJ invocations to module description.
17232         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17233         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17234
17235 2011-05-23  Bruno Haible  <bruno@clisp.org>
17236
17237         utimecmp: Move AC_LIBOBJ invocations to module description.
17238         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17239         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17240
17241 2011-05-23  Bruno Haible  <bruno@clisp.org>
17242
17243         userspec: Move AC_LIBOBJ invocations to module description.
17244         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17245         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17246
17247 2011-05-23  Bruno Haible  <bruno@clisp.org>
17248
17249         unlinkdir: Move AC_LIBOBJ invocations to module description.
17250         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17251         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17252
17253 2011-05-23  Bruno Haible  <bruno@clisp.org>
17254
17255         unistd-safer: Move AC_LIBOBJ invocations to module description.
17256         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17257         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17258
17259 2011-05-23  Bruno Haible  <bruno@clisp.org>
17260
17261         tempname: Move AC_LIBOBJ invocations to module description.
17262         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17263         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17264
17265 2011-05-23  Bruno Haible  <bruno@clisp.org>
17266
17267         strftime: Move AC_LIBOBJ invocations to module description.
17268         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17269         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17270
17271 2011-05-23  Bruno Haible  <bruno@clisp.org>
17272
17273         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17274         * m4/stdlib-safer.m4: Remove file.
17275         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17276         (configure.ac): Remove gl_STDLIB_SAFER call.
17277         (Makefile.am): Augment lib_SOURCES.
17278
17279 2011-05-23  Bruno Haible  <bruno@clisp.org>
17280
17281         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17282         * m4/stdio-safer.m4: Remove file.
17283         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17284         (configure.ac): Remove gl_TMPFILE_SAFER call.
17285         (Makefile.am): Augment lib_SOURCES.
17286
17287 2011-05-23  Bruno Haible  <bruno@clisp.org>
17288
17289         popen-safer: Move AC_LIBOBJ invocations to module description.
17290         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17291         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17292         (configure.ac): Remove gl_POPEN_SAFER call.
17293         (Makefile.am): Augment lib_SOURCES.
17294
17295 2011-05-23  Bruno Haible  <bruno@clisp.org>
17296
17297         freopen-safer: Move AC_LIBOBJ invocations to module description.
17298         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17299         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17300         (configure.ac): Remove gl_FREOPEN_SAFER call.
17301         (Makefile.am): Augment lib_SOURCES.
17302
17303 2011-05-23  Bruno Haible  <bruno@clisp.org>
17304
17305         fopen-safer: Move AC_LIBOBJ invocations to module description.
17306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17307         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17308         (configure.ac): Remove gl_FOPEN_SAFER call.
17309         (Makefile.am): Augment lib_SOURCES.
17310
17311 2011-05-23  Bruno Haible  <bruno@clisp.org>
17312
17313         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17314         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17315         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17316
17317 2011-05-23  Bruno Haible  <bruno@clisp.org>
17318
17319         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17320         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17321         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17322
17323 2011-05-23  Bruno Haible  <bruno@clisp.org>
17324
17325         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17326         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17327         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17328
17329 2011-05-23  Bruno Haible  <bruno@clisp.org>
17330
17331         settime: Move AC_LIBOBJ invocations to module description.
17332         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17333         * modules/settime (Makefile.am): Augment lib_SOURCES.
17334
17335 2011-05-23  Bruno Haible  <bruno@clisp.org>
17336
17337         savedir: Move AC_LIBOBJ invocations to module description.
17338         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17339         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17340
17341 2011-05-23  Bruno Haible  <bruno@clisp.org>
17342
17343         save-cwd: Move AC_LIBOBJ invocations to module description.
17344         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17345         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17346
17347 2011-05-23  Bruno Haible  <bruno@clisp.org>
17348
17349         same: Move AC_LIBOBJ invocations to module description.
17350         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17351         * modules/same (Makefile.am): Augment lib_SOURCES.
17352
17353 2011-05-23  Bruno Haible  <bruno@clisp.org>
17354
17355         safe-write: Move AC_LIBOBJ invocations to module description.
17356         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17357         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17358         instead of gl_SAFE_WRITE.
17359         (Makefile.am): Augment lib_SOURCES.
17360
17361 2011-05-23  Bruno Haible  <bruno@clisp.org>
17362
17363         safe-read: Move AC_LIBOBJ invocations to module description.
17364         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17365         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17366         of gl_SAFE_READ.
17367         (Makefile.am): Augment lib_SOURCES.
17368
17369 2011-05-23  Bruno Haible  <bruno@clisp.org>
17370
17371         safe-alloc: Move AC_LIBOBJ invocations to module description.
17372         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17373         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17374
17375 2011-05-23  Bruno Haible  <bruno@clisp.org>
17376
17377         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17378         * m4/rijndael.m4: Remove file.
17379         * modules/crypto/rijndael (Files): Remove it.
17380         (configure.ac): Remove gl_RIJNDAEL call.
17381         (Makefile.am): Augment lib_SOURCES.
17382
17383 2011-05-23  Bruno Haible  <bruno@clisp.org>
17384
17385         readtokens: Move AC_LIBOBJ invocations to module description.
17386         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17387         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17388
17389 2011-05-23  Bruno Haible  <bruno@clisp.org>
17390
17391         read-file: Move AC_LIBOBJ invocations to module description.
17392         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17393         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17394         of gl_FUNC_READ_FILE.
17395         (Makefile.am): Augment lib_SOURCES.
17396
17397 2011-05-23  Bruno Haible  <bruno@clisp.org>
17398
17399         quotearg: Move AC_LIBOBJ invocations to module description.
17400         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17401         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17402
17403 2011-05-23  Bruno Haible  <bruno@clisp.org>
17404
17405         quote: Move AC_LIBOBJ invocations to module description.
17406         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17407         * modules/quote (Makefile.am): Augment lib_SOURCES.
17408
17409 2011-05-23  Bruno Haible  <bruno@clisp.org>
17410
17411         posixver: Move AC_LIBOBJ invocations to module description.
17412         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17413         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17414
17415 2011-05-23  Bruno Haible  <bruno@clisp.org>
17416
17417         posixtm: Move AC_LIBOBJ invocations to module description.
17418         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17419         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17420
17421 2011-05-23  Bruno Haible  <bruno@clisp.org>
17422
17423         physmem: Move AC_LIBOBJ invocations to module description.
17424         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17425         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17426
17427 2011-05-23  Bruno Haible  <bruno@clisp.org>
17428
17429         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17430         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17431         invocation.
17432         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17433
17434 2011-05-23  Bruno Haible  <bruno@clisp.org>
17435
17436         mpsort: Move AC_LIBOBJ invocations to module description.
17437         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17438         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17439
17440 2011-05-23  Bruno Haible  <bruno@clisp.org>
17441
17442         modechange: Move AC_LIBOBJ invocations to module description.
17443         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17444         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17445
17446 2011-05-23  Bruno Haible  <bruno@clisp.org>
17447
17448         mkdir-p: Move AC_LIBOBJ invocations to module description.
17449         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17450         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17451
17452 2011-05-23  Bruno Haible  <bruno@clisp.org>
17453
17454         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17455         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17456         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17457
17458 2011-05-23  Bruno Haible  <bruno@clisp.org>
17459
17460         mgetgroups: Move AC_LIBOBJ invocations to module description.
17461         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17462         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17463
17464 2011-05-23  Bruno Haible  <bruno@clisp.org>
17465
17466         memxor: Move AC_LIBOBJ invocations to module description.
17467         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17468         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17469
17470 2011-05-23  Bruno Haible  <bruno@clisp.org>
17471
17472         memcoll: Move AC_LIBOBJ invocations to module description.
17473         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17474         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17475
17476 2011-05-23  Bruno Haible  <bruno@clisp.org>
17477
17478         memcasecmp: Move AC_LIBOBJ invocations to module description.
17479         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17480         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17481
17482 2011-05-23  Bruno Haible  <bruno@clisp.org>
17483
17484         crypto/md5: Move AC_LIBOBJ invocations to module description.
17485         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17486         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17487
17488 2011-05-23  Bruno Haible  <bruno@clisp.org>
17489
17490         crypto/md4: Move AC_LIBOBJ invocations to module description.
17491         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17492         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17493
17494 2011-05-23  Bruno Haible  <bruno@clisp.org>
17495
17496         crypto/md2: Move AC_LIBOBJ invocations to module description.
17497         * m4/md2.m4: Remove file.
17498         * modules/crypto/md2 (Files): Remove it.
17499         (configure.ac): Remove gl_MD2 call.
17500         (Makefile.am): Augment lib_SOURCES.
17501
17502 2011-05-23  Bruno Haible  <bruno@clisp.org>
17503
17504         long-options: Move AC_LIBOBJ invocations to module description.
17505         * m4/long-options.m4: Remove file.
17506         * modules/long-options (Files): Remove it.
17507         (configure.ac): Remove gl_LONG_OPTIONS call.
17508         (Makefile.am): Augment lib_SOURCES.
17509
17510 2011-05-23  Bruno Haible  <bruno@clisp.org>
17511
17512         i-ring: Move AC_LIBOBJ invocations to module description.
17513         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17514         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17515
17516 2011-05-23  Bruno Haible  <bruno@clisp.org>
17517
17518         idcache: Move AC_LIBOBJ invocations to module description.
17519         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17520         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17521
17522 2011-05-23  Bruno Haible  <bruno@clisp.org>
17523
17524         human: Move AC_LIBOBJ invocations to module description.
17525         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17526         * modules/human (Makefile.am): Augment lib_SOURCES.
17527
17528 2011-05-23  Bruno Haible  <bruno@clisp.org>
17529
17530         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17531         * m4/hmac-sha1.m4: Remove file.
17532         * modules/crypto/hmac-sha1 (Files): Remove it.
17533         (configure.ac): Remove gl_HMAC_SHA1 call.
17534         (Makefile.am): Augment lib_SOURCES.
17535
17536 2011-05-23  Bruno Haible  <bruno@clisp.org>
17537
17538         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17539         * m4/hmac-md5.m4: Remove file.
17540         * modules/crypto/hmac-md5 (Files): Remove it.
17541         (configure.ac): Remove gl_HMAC_MD5 call.
17542         (Makefile.am): Augment lib_SOURCES.
17543
17544 2011-05-23  Bruno Haible  <bruno@clisp.org>
17545
17546         hash: Move AC_LIBOBJ invocations to module description.
17547         * m4/hash.m4: Remove file.
17548         * modules/hash (Files): Remove it.
17549         (configure.ac): Remove gl_HASH call.
17550         (Makefile.am): Augment lib_SOURCES.
17551
17552 2011-05-23  Bruno Haible  <bruno@clisp.org>
17553
17554         hard-locale: Move AC_LIBOBJ invocations to module description.
17555         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17556         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17557
17558 2011-05-23  Bruno Haible  <bruno@clisp.org>
17559
17560         getugroups: Move AC_LIBOBJ invocations to module description.
17561         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17562         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17563
17564 2011-05-23  Bruno Haible  <bruno@clisp.org>
17565
17566         gettime: Move AC_LIBOBJ invocations to module description.
17567         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17568         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17569
17570 2011-05-23  Bruno Haible  <bruno@clisp.org>
17571
17572         getndelim2: Move AC_LIBOBJ invocations to module description.
17573         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17574         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17575
17576 2011-05-23  Bruno Haible  <bruno@clisp.org>
17577
17578         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17579         * m4/gc-pbkdf2-sha1.m4: Remove file.
17580         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17581         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17582         (Makefile.am): Augment lib_SOURCES.
17583
17584 2011-05-23  Bruno Haible  <bruno@clisp.org>
17585
17586         fts: Move AC_LIBOBJ invocations to module description.
17587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17588         * modules/fts (configure.ac): ... to here.
17589
17590 2011-05-23  Bruno Haible  <bruno@clisp.org>
17591
17592         file-type: Move AC_LIBOBJ invocations to module description.
17593         * m4/file-type.m4: Remove file.
17594         * modules/file-type (Files): Remove it.
17595         (configure.ac): Remove gl_FILE_TYPE call.
17596         (Makefile.am): Augment lib_SOURCES.
17597
17598 2011-05-23  Bruno Haible  <bruno@clisp.org>
17599
17600         filenamecat*: Respect rules for use of AC_LIBOBJ.
17601         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17602         Remove AC_LIBOBJ invocation.
17603         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17604         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17605
17606 2011-05-23  Bruno Haible  <bruno@clisp.org>
17607
17608         filemode: Move AC_LIBOBJ invocations to module description.
17609         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17610         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17611
17612 2011-05-23  Bruno Haible  <bruno@clisp.org>
17613
17614         openat-safer: Move AC_LIBOBJ invocations to module description.
17615         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17616         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17617
17618 2011-05-23  Bruno Haible  <bruno@clisp.org>
17619
17620         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17621         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17622         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17623
17624 2011-05-23  Bruno Haible  <bruno@clisp.org>
17625
17626         exclude: Move AC_LIBOBJ invocations to module description.
17627         * m4/exclude.m4: Remove file.
17628         * modules/exclude (Files): Remove it.
17629         (configure.ac): Remove gl_EXCLUDE call.
17630         (Makefile.am): Augment lib_SOURCES.
17631
17632 2011-05-23  Bruno Haible  <bruno@clisp.org>
17633
17634         dirname*: Respect rules for use of AC_LIBOBJ.
17635         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17636         invocations.
17637         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17638         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17639
17640 2011-05-23  Bruno Haible  <bruno@clisp.org>
17641
17642         dirent-safer: Move AC_LIBOBJ invocations to module description.
17643         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17644         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17645
17646 2011-05-23  Bruno Haible  <bruno@clisp.org>
17647
17648         crypto/des: Move AC_LIBOBJ invocations to module description.
17649         * m4/des.m4: Remove file.
17650         * modules/crypto/des (Files): Remove it.
17651         (configure.ac): Remove gl_DES call.
17652         (Makefile.am): Augment lib_SOURCES.
17653
17654 2011-05-23  Bruno Haible  <bruno@clisp.org>
17655
17656         cycle-check: Move AC_LIBOBJ invocations to module description.
17657         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17658         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17659
17660 2011-05-23  Bruno Haible  <bruno@clisp.org>
17661
17662         c-strtold: Move AC_LIBOBJ invocations to module description.
17663         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17664         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17665
17666 2011-05-23  Bruno Haible  <bruno@clisp.org>
17667
17668         c-strtod: Move AC_LIBOBJ invocations to module description.
17669         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17670         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17671
17672 2011-05-23  Bruno Haible  <bruno@clisp.org>
17673
17674         crc: Move AC_LIBOBJ invocations to module description.
17675         * m4/crc.m4: Remove file.
17676         * modules/crc (Files): Remove it.
17677         (configure.ac): Remove gl_CRC call.
17678         (Makefile.am): Augment lib_SOURCES.
17679
17680 2011-05-23  Bruno Haible  <bruno@clisp.org>
17681
17682         close-stream: Move AC_LIBOBJ invocations to module description.
17683         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17684         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17685
17686 2011-05-23  Bruno Haible  <bruno@clisp.org>
17687
17688         closeout: Move AC_LIBOBJ invocations to module description.
17689         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17690         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17691
17692 2011-05-23  Bruno Haible  <bruno@clisp.org>
17693
17694         closein: Move AC_LIBOBJ invocations to module description.
17695         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17696         * modules/closein (Makefile.am): Augment lib_SOURCES.
17697
17698 2011-05-23  Bruno Haible  <bruno@clisp.org>
17699
17700         cloexec: Move AC_LIBOBJ invocations to module description.
17701         * m4/cloexec.m4: Remove file.
17702         * modules/cloexec (Files): Remove it.
17703         (configure.ac): Remove gl_CLOEXEC call.
17704         (Makefile.am): Augment lib_SOURCES.
17705
17706 2011-05-23  Bruno Haible  <bruno@clisp.org>
17707
17708         check-version: Move AC_LIBOBJ invocations to module description.
17709         * m4/check-version.m4: Remove file.
17710         * modules/check-version (Files): Remove it.
17711         (configure.ac): Remove gl_CHECK_VERSION call.
17712         (Makefile.am): Augment lib_SOURCES.
17713
17714 2011-05-23  Bruno Haible  <bruno@clisp.org>
17715
17716         chdir-safer: Move AC_LIBOBJ invocations to module description.
17717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17718         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17719
17720 2011-05-23  Bruno Haible  <bruno@clisp.org>
17721
17722         canonicalize: Move AC_LIBOBJ invocations to module description.
17723         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17724         AC_LIBOBJ invocation.
17725         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17726
17727 2011-05-23  Bruno Haible  <bruno@clisp.org>
17728
17729         canon-host: Move AC_LIBOBJ invocations to module description.
17730         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17731         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17732         instead of gl_CANON_HOST.
17733         (Makefile.am): Augment lib_SOURCES.
17734
17735 2011-05-23  Bruno Haible  <bruno@clisp.org>
17736
17737         backupfile: Move AC_LIBOBJ invocations to module description.
17738         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17739         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17740
17741 2011-05-23  Bruno Haible  <bruno@clisp.org>
17742
17743         argmatch: Move AC_LIBOBJ invocations to module description.
17744         * m4/argmatch.m4: Remove file.
17745         * modules/argmatch (Files): Remove it.
17746         (configure.ac): Remove gl_ARGMATCH call.
17747         (Makefile.am): Augment lib_SOURCES.
17748
17749 2011-05-23  Bruno Haible  <bruno@clisp.org>
17750
17751         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17752         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17753         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17754
17755 2011-05-23  Bruno Haible  <bruno@clisp.org>
17756
17757         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17758         * m4/arcfour.m4: Remove file.
17759         * modules/crypto/arcfour (Files): Remove it.
17760         (configure.ac): Remove gl_ARCFOUR call.
17761         (Makefile.am): Augment lib_SOURCES.
17762
17763 2011-05-22  Bruno Haible  <bruno@clisp.org>
17764
17765         write: Move AC_LIBOBJ invocations to module description.
17766         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17767         * modules/write (configure.ac): ... to here.
17768
17769 2011-05-22  Bruno Haible  <bruno@clisp.org>
17770
17771         wmemset: Move AC_LIBOBJ invocations to module description.
17772         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17773         here...
17774         * modules/wmemset (configure.ac): ... to here.
17775
17776 2011-05-22  Bruno Haible  <bruno@clisp.org>
17777
17778         wmemmove: Move AC_LIBOBJ invocations to module description.
17779         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17780         here...
17781         * modules/wmemmove (configure.ac): ... to here.
17782
17783 2011-05-22  Bruno Haible  <bruno@clisp.org>
17784
17785         wmemcpy: Move AC_LIBOBJ invocations to module description.
17786         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17787         here...
17788         * modules/wmemcpy (configure.ac): ... to here.
17789
17790 2011-05-22  Bruno Haible  <bruno@clisp.org>
17791
17792         wmemcmp: Move AC_LIBOBJ invocations to module description.
17793         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17794         here...
17795         * modules/wmemcmp (configure.ac): ... to here.
17796
17797 2011-05-22  Bruno Haible  <bruno@clisp.org>
17798
17799         wmemchr: Move AC_LIBOBJ invocations to module description.
17800         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17801         here...
17802         * modules/wmemchr (configure.ac): ... to here.
17803
17804 2011-05-22  Bruno Haible  <bruno@clisp.org>
17805
17806         wcswidth: Move AC_LIBOBJ invocations to module description.
17807         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17808         here...
17809         * modules/wcswidth (configure.ac): ... to here.
17810
17811 2011-05-22  Bruno Haible  <bruno@clisp.org>
17812
17813         wcwidth: Respect rules for use of AC_LIBOBJ.
17814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17815         invocation from here...
17816         * modules/wcwidth (configure.ac): ... to here.
17817         (Depends-on): Update conditions.
17818
17819 2011-05-22  Bruno Haible  <bruno@clisp.org>
17820
17821         wctype: Move AC_LIBOBJ invocations to module description.
17822         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17823         invocation from here...
17824         * modules/wctype (configure.ac): ... to here.
17825         (Depends-on): Update conditions.
17826
17827 2011-05-22  Bruno Haible  <bruno@clisp.org>
17828
17829         wctrans: Move AC_LIBOBJ invocations to module description.
17830         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17831         invocation from here...
17832         * modules/wctrans (configure.ac): ... to here.
17833
17834 2011-05-22  Bruno Haible  <bruno@clisp.org>
17835
17836         wctomb: Move AC_LIBOBJ invocations to module description.
17837         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17838         invocations from here...
17839         * modules/wctomb (configure.ac): ... to here.
17840
17841 2011-05-22  Bruno Haible  <bruno@clisp.org>
17842
17843         wctob: Move AC_LIBOBJ invocations to module description.
17844         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17845         gl_PREREQ_WCTOB invocations from here...
17846         * modules/wctob (configure.ac): ... to here.
17847         (Depends-on): Update conditions.
17848
17849 2011-05-22  Bruno Haible  <bruno@clisp.org>
17850
17851         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17852         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17853         here...
17854         * modules/wcsxfrm (configure.ac): ... to here.
17855
17856 2011-05-22  Bruno Haible  <bruno@clisp.org>
17857
17858         wcstok: Move AC_LIBOBJ invocations to module description.
17859         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17860         * modules/wcstok (configure.ac): ... to here.
17861
17862 2011-05-22  Bruno Haible  <bruno@clisp.org>
17863
17864         wcsstr: Move AC_LIBOBJ invocations to module description.
17865         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17866         * modules/wcsstr (configure.ac): ... to here.
17867
17868 2011-05-22  Bruno Haible  <bruno@clisp.org>
17869
17870         wcsspn: Move AC_LIBOBJ invocations to module description.
17871         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17872         * modules/wcsspn (configure.ac): ... to here.
17873
17874 2011-05-22  Bruno Haible  <bruno@clisp.org>
17875
17876         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17877         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17878         gl_PREREQ_WCSRTOMBS invocations from here...
17879         * modules/wcsrtombs (configure.ac): ... to here.
17880
17881 2011-05-22  Bruno Haible  <bruno@clisp.org>
17882
17883         wcsrchr: Move AC_LIBOBJ invocations to module description.
17884         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17885         here...
17886         * modules/wcsrchr (configure.ac): ... to here.
17887
17888 2011-05-22  Bruno Haible  <bruno@clisp.org>
17889
17890         wcspbrk: Move AC_LIBOBJ invocations to module description.
17891         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17892         here...
17893         * modules/wcspbrk (configure.ac): ... to here.
17894
17895 2011-05-22  Bruno Haible  <bruno@clisp.org>
17896
17897         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17898         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17899         gl_PREREQ_WCSNRTOMBS invocations from here...
17900         * modules/wcsnrtombs (configure.ac): ... to here.
17901
17902 2011-05-22  Bruno Haible  <bruno@clisp.org>
17903
17904         wcsnlen: Move AC_LIBOBJ invocations to module description.
17905         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17906         here...
17907         * modules/wcsnlen (configure.ac): ... to here.
17908
17909 2011-05-22  Bruno Haible  <bruno@clisp.org>
17910
17911         wcsncpy: Move AC_LIBOBJ invocations to module description.
17912         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17913         here...
17914         * modules/wcsncpy (configure.ac): ... to here.
17915
17916 2011-05-22  Bruno Haible  <bruno@clisp.org>
17917
17918         wcsncmp: Move AC_LIBOBJ invocations to module description.
17919         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17920         here...
17921         * modules/wcsncmp (configure.ac): ... to here.
17922
17923 2011-05-22  Bruno Haible  <bruno@clisp.org>
17924
17925         wcsncat: Move AC_LIBOBJ invocations to module description.
17926         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17927         here...
17928         * modules/wcsncat (configure.ac): ... to here.
17929
17930 2011-05-22  Bruno Haible  <bruno@clisp.org>
17931
17932         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17933         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17934         from here...
17935         * modules/wcsncasecmp (configure.ac): ... to here.
17936
17937 2011-05-22  Bruno Haible  <bruno@clisp.org>
17938
17939         wcslen: Move AC_LIBOBJ invocations to module description.
17940         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17941         * modules/wcslen (configure.ac): ... to here.
17942
17943 2011-05-22  Bruno Haible  <bruno@clisp.org>
17944
17945         wcsdup: Move AC_LIBOBJ invocations to module description.
17946         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17947         * modules/wcsdup (configure.ac): ... to here.
17948
17949 2011-05-22  Bruno Haible  <bruno@clisp.org>
17950
17951         wcscspn: Move AC_LIBOBJ invocations to module description.
17952         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17953         here...
17954         * modules/wcscspn (configure.ac): ... to here.
17955
17956 2011-05-22  Bruno Haible  <bruno@clisp.org>
17957
17958         wcscpy: Move AC_LIBOBJ invocations to module description.
17959         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17960         * modules/wcscpy (configure.ac): ... to here.
17961
17962 2011-05-22  Bruno Haible  <bruno@clisp.org>
17963
17964         wcscoll: Move AC_LIBOBJ invocations to module description.
17965         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17966         here...
17967         * modules/wcscoll (configure.ac): ... to here.
17968
17969 2011-05-22  Bruno Haible  <bruno@clisp.org>
17970
17971         wcscmp: Move AC_LIBOBJ invocations to module description.
17972         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17973         * modules/wcscmp (configure.ac): ... to here.
17974
17975 2011-05-22  Bruno Haible  <bruno@clisp.org>
17976
17977         wcschr: Move AC_LIBOBJ invocations to module description.
17978         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17979         * modules/wcschr (configure.ac): ... to here.
17980
17981 2011-05-22  Bruno Haible  <bruno@clisp.org>
17982
17983         wcscat: Move AC_LIBOBJ invocations to module description.
17984         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17985         * modules/wcscat (configure.ac): ... to here.
17986
17987 2011-05-22  Bruno Haible  <bruno@clisp.org>
17988
17989         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17990         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17991         here...
17992         * modules/wcscasecmp (configure.ac): ... to here.
17993
17994 2011-05-22  Bruno Haible  <bruno@clisp.org>
17995
17996         wcrtomb: Move AC_LIBOBJ invocations to module description.
17997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17998         invocations from here...
17999         * modules/wcrtomb (configure.ac): ... to here.
18000
18001 2011-05-22  Bruno Haible  <bruno@clisp.org>
18002
18003         wcpncpy: Move AC_LIBOBJ invocations to module description.
18004         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18005         here...
18006         * modules/wcpncpy (configure.ac): ... to here.
18007
18008 2011-05-22  Bruno Haible  <bruno@clisp.org>
18009
18010         wcpcpy: Move AC_LIBOBJ invocations to module description.
18011         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18012         * modules/wcpcpy (configure.ac): ... to here.
18013
18014 2011-05-22  Bruno Haible  <bruno@clisp.org>
18015
18016         waitpid: Move AC_LIBOBJ invocations to module description.
18017         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18018         invocation from here...
18019         * modules/waitpid (configure.ac): ... to here.
18020
18021 2011-05-22  Bruno Haible  <bruno@clisp.org>
18022
18023         utimensat: Move AC_LIBOBJ invocations to module description.
18024         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18025         here...
18026         * modules/utimensat (configure.ac): ... to here.
18027
18028 2011-05-22  Bruno Haible  <bruno@clisp.org>
18029
18030         usleep: Move AC_LIBOBJ invocations to module description.
18031         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18032         here...
18033         * modules/usleep (configure.ac): ... to here.
18034
18035 2011-05-22  Bruno Haible  <bruno@clisp.org>
18036
18037         unlockpt: Move AC_LIBOBJ invocations to module description.
18038         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18039         gl_PREREQ_UNLOCKPT invocations from here...
18040         * modules/unlockpt (configure.ac): ... to here.
18041
18042 2011-05-22  Bruno Haible  <bruno@clisp.org>
18043
18044         unlink: Respect rules for use of AC_LIBOBJ.
18045         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18046         * modules/unlink (configure.ac): ... to here.
18047
18048 2011-05-22  Bruno Haible  <bruno@clisp.org>
18049
18050         uname: Move AC_LIBOBJ invocations to module description.
18051         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18053         here...
18054         * modules/uname (configure.ac): ... to here.
18055
18056 2011-05-22  Bruno Haible  <bruno@clisp.org>
18057
18058         ttyname_r: Move AC_LIBOBJ invocations to module description.
18059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18060         gl_PREREQ_TTYNAME_R invocations from here...
18061         * modules/ttyname_r (configure.ac): ... to here.
18062
18063 2011-05-22  Bruno Haible  <bruno@clisp.org>
18064
18065         tsearch: Move AC_LIBOBJ invocations to module description.
18066         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18067         invocations from here...
18068         * modules/tsearch (configure.ac): ... to here.
18069
18070 2011-05-22  Bruno Haible  <bruno@clisp.org>
18071
18072         towctrans: Move AC_LIBOBJ invocations to module description.
18073         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18074         AC_LIBOBJ invocation from here...
18075         * modules/towctrans (configure.ac): ... to here.
18076
18077 2011-05-22  Bruno Haible  <bruno@clisp.org>
18078
18079         tmpfile: Move AC_LIBOBJ invocations to module description.
18080         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18081         invocations from here...
18082         * modules/tmpfile (configure.ac): ... to here.
18083
18084 2011-05-22  Bruno Haible  <bruno@clisp.org>
18085
18086         times: Move AC_LIBOBJ invocations to module description.
18087         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18088         * modules/times (configure.ac): ... to here.
18089
18090 2011-05-22  Bruno Haible  <bruno@clisp.org>
18091
18092         time_r: Move AC_LIBOBJ invocations to module description.
18093         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18094         invocations from here...
18095         * modules/time_r (configure.ac): ... to here.
18096
18097 2011-05-22  Bruno Haible  <bruno@clisp.org>
18098
18099         timegm: Move AC_LIBOBJ invocations to module description.
18100         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18101         invocations from here...
18102         * modules/timegm (configure.ac): ... to here.
18103
18104 2011-05-22  Bruno Haible  <bruno@clisp.org>
18105
18106         tcgetsid: Move AC_LIBOBJ invocations to module description.
18107         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18108         and gl_PREREQ_TCGETSID invocations from here...
18109         * modules/tcgetsid (configure.ac): ... to here.
18110         (Depends-on): Update conditions.
18111
18112 2011-05-22  Bruno Haible  <bruno@clisp.org>
18113
18114         symlinkat: Move AC_LIBOBJ invocations to module description.
18115         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18116         here...
18117         * modules/symlinkat (configure.ac): ... to here.
18118
18119 2011-05-22  Bruno Haible  <bruno@clisp.org>
18120
18121         symlink: Move AC_LIBOBJ invocations to module description.
18122         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18123         here...
18124         * modules/symlink (configure.ac): ... to here.
18125
18126 2011-05-22  Bruno Haible  <bruno@clisp.org>
18127
18128         strverscmp: Move AC_LIBOBJ invocations to module description.
18129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18131         from here...
18132         * modules/strverscmp (configure.ac): ... to here.
18133
18134 2011-05-22  Bruno Haible  <bruno@clisp.org>
18135
18136         strtok_r: Move AC_LIBOBJ invocations to module description.
18137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18138         and gl_PREREQ_STRTOK_R invocations from here...
18139         * modules/strtok_r (configure.ac): ... to here.
18140         (Depends-on): Update conditions.
18141
18142 2011-05-22  Bruno Haible  <bruno@clisp.org>
18143
18144         strtoumax: Move AC_LIBOBJ invocations to module description.
18145         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18147         from here...
18148         * modules/strtoumax (configure.ac): ... to here.
18149
18150 2011-05-22  Bruno Haible  <bruno@clisp.org>
18151
18152         strtoimax: Move AC_LIBOBJ invocations to module description.
18153         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18155         from here...
18156         * modules/strtoimax (configure.ac): ... to here.
18157
18158 2011-05-22  Bruno Haible  <bruno@clisp.org>
18159
18160         strtoull: Move AC_LIBOBJ invocations to module description.
18161         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18163         from here...
18164         * modules/strtoull (configure.ac): ... to here.
18165
18166 2011-05-22  Bruno Haible  <bruno@clisp.org>
18167
18168         strtoll: Move AC_LIBOBJ invocations to module description.
18169         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18171         here...
18172         * modules/strtoll (configure.ac): ... to here.
18173
18174 2011-05-22  Bruno Haible  <bruno@clisp.org>
18175
18176         strtoul: Move AC_LIBOBJ invocations to module description.
18177         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18178         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18179         * modules/strtoul (configure.ac): ... to here.
18180
18181 2011-05-22  Bruno Haible  <bruno@clisp.org>
18182
18183         strtol: Move AC_LIBOBJ invocations to module description.
18184         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18185         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18186         * modules/strtol (configure.ac): ... to here.
18187
18188 2011-05-22  Bruno Haible  <bruno@clisp.org>
18189
18190         strtod: Move AC_LIBOBJ invocations to module description.
18191         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18192         invocations from here...
18193         * modules/strtod (configure.ac): ... to here.
18194
18195 2011-05-22  Bruno Haible  <bruno@clisp.org>
18196
18197         strstr*: Move AC_LIBOBJ invocations to module description.
18198         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18199         invocations from here...
18200         * modules/strstr-simple (configure.ac): ... to here.
18201         * modules/strstr (configure.ac): ... and here.
18202
18203 2011-05-22  Bruno Haible  <bruno@clisp.org>
18204
18205         strsignal: Move AC_LIBOBJ invocations to module description.
18206         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18207         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18208         * modules/strsignal (configure.ac): ... to here.
18209         (Depends-on): Update conditions.
18210
18211 2011-05-22  Bruno Haible  <bruno@clisp.org>
18212
18213         strsep: Move AC_LIBOBJ invocations to module description.
18214         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18216         here...
18217         * modules/strsep (configure.ac): ... to here.
18218
18219 2011-05-22  Bruno Haible  <bruno@clisp.org>
18220
18221         strptime: Move AC_LIBOBJ invocations to module description.
18222         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18223         gl_PREREQ_STRPTIME invocations from here...
18224         * modules/strptime (configure.ac): ... to here.
18225
18226 2011-05-22  Bruno Haible  <bruno@clisp.org>
18227
18228         strpbrk: Move AC_LIBOBJ invocations to module description.
18229         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18231         here...
18232         * modules/strpbrk (configure.ac): ... to here.
18233
18234 2011-05-22  Bruno Haible  <bruno@clisp.org>
18235
18236         strnlen: Move AC_LIBOBJ invocations to module description.
18237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18238         invocations from here...
18239         * modules/strnlen (configure.ac): ... to here.
18240
18241 2011-05-22  Bruno Haible  <bruno@clisp.org>
18242
18243         strndup: Move AC_LIBOBJ invocations to module description.
18244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18245         invocations from here...
18246         * modules/strndup (configure.ac): ... to here.
18247         (Depends-on): Update conditions.
18248
18249 2011-05-22  Bruno Haible  <bruno@clisp.org>
18250
18251         strncat: Move AC_LIBOBJ invocations to module description.
18252         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18253         invocations from here...
18254         * modules/strncat (configure.ac): ... to here.
18255
18256 2011-05-22  Bruno Haible  <bruno@clisp.org>
18257
18258         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18259         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18260         invocations from here...
18261         * modules/strdup (configure.ac): ... to here.
18262         * modules/strdup-posix (configure.ac): ... and here.
18263
18264 2011-05-22  Bruno Haible  <bruno@clisp.org>
18265
18266         strcspn: Move AC_LIBOBJ invocations to module description.
18267         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18269         here...
18270         * modules/strcspn (configure.ac): ... to here.
18271
18272 2011-05-22  Bruno Haible  <bruno@clisp.org>
18273
18274         strchrnul: Move AC_LIBOBJ invocations to module description.
18275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18276         gl_PREREQ_STRCHRNUL invocations from here...
18277         * modules/strchrnul (configure.ac): ... to here.
18278
18279 2011-05-22  Bruno Haible  <bruno@clisp.org>
18280
18281         strcasestr*: Move AC_LIBOBJ invocations to module description.
18282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18283         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18284         * modules/strcasestr-simple (configure.ac): ... to here.
18285         * modules/strcasestr (configure.ac): ... and here.
18286
18287 2011-05-22  Bruno Haible  <bruno@clisp.org>
18288
18289         strcase: Move AC_LIBOBJ invocations to module description.
18290         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18291         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18292         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18293         gl_PREREQ_STRNCASECMP invocations from here...
18294         * modules/strcase (configure.ac): ... to here.
18295
18296 2011-05-22  Bruno Haible  <bruno@clisp.org>
18297
18298         stpncpy: Move AC_LIBOBJ invocations to module description.
18299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18300         here...
18301         * modules/stpncpy (configure.ac): ... to here.
18302
18303 2011-05-22  Bruno Haible  <bruno@clisp.org>
18304
18305         stpcpy: Move AC_LIBOBJ invocations to module description.
18306         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18308         here...
18309         * modules/stpcpy (configure.ac): ... to here.
18310
18311 2011-05-21  Bruno Haible  <bruno@clisp.org>
18312
18313         stat: Move AC_LIBOBJ invocations to module description.
18314         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18315         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18316         here...
18317         * modules/stat (configure.ac): ... to here.
18318
18319 2011-05-21  Bruno Haible  <bruno@clisp.org>
18320
18321         sleep: Move AC_LIBOBJ invocations to module description.
18322         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18323         * modules/sleep (configure.ac): ... to here.
18324
18325 2011-05-21  Bruno Haible  <bruno@clisp.org>
18326
18327         signbit: Move AC_LIBOBJ invocations to module description.
18328         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18329         * modules/signbit (configure.ac): ... to here.
18330
18331 2011-05-21  Bruno Haible  <bruno@clisp.org>
18332
18333         sigprocmask: Move AC_LIBOBJ invocations to module description.
18334         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18335         gl_PREREQ_SIGPROMASK invocations from here...
18336         * modules/sigprocmask (configure.ac): ... to here.
18337
18338 2011-05-21  Bruno Haible  <bruno@clisp.org>
18339
18340         sigaction: Move AC_LIBOBJ invocations to module description.
18341         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18342         gl_PREREQ_SIGACTION invocations from here...
18343         * modules/sigaction (configure.ac): ... to here.
18344
18345 2011-05-21  Bruno Haible  <bruno@clisp.org>
18346
18347         sig2str: Move AC_LIBOBJ invocations to module description.
18348         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18350         here...
18351         * modules/sig2str (configure.ac): ... to here.
18352
18353 2011-05-21  Bruno Haible  <bruno@clisp.org>
18354
18355         setlocale: Move AC_LIBOBJ invocations to module description.
18356         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18357         gl_PREREQ_SETLOCALE invocations from here...
18358         * modules/setlocale (configure.ac): ... to here.
18359
18360 2011-05-21  Bruno Haible  <bruno@clisp.org>
18361
18362         unsetenv: Move AC_LIBOBJ invocations to module description.
18363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18364         and gl_PREREQ_UNSETENV invocations from here...
18365         * modules/unsetenv (configure.ac): ... to here.
18366         (Depends-on): Update.
18367
18368 2011-05-21  Bruno Haible  <bruno@clisp.org>
18369
18370         setenv: Move AC_LIBOBJ invocations to module description.
18371         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18372         here...
18373         * modules/setenv (configure.ac): ... to here.
18374
18375 2011-05-21  Bruno Haible  <bruno@clisp.org>
18376
18377         selinux-h: Move AC_LIBOBJ invocations to module description.
18378         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18379         AC_LIBOBJ invocation from here...
18380         * modules/selinux-h (configure.ac): ... to here.
18381
18382 2011-05-21  Bruno Haible  <bruno@clisp.org>
18383
18384         select: Respect rules for use of AC_LIBOBJ.
18385         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18386         here...
18387         * modules/select (configure.ac): ... to here.
18388
18389 2011-05-21  Bruno Haible  <bruno@clisp.org>
18390
18391         scandir: Move AC_LIBOBJ invocations to module description.
18392         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18393         invocations from here...
18394         * modules/scandir (configure.ac): ... to here.
18395
18396 2011-05-21  Bruno Haible  <bruno@clisp.org>
18397
18398         rpmatch: Move AC_LIBOBJ invocations to module description.
18399         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18401         here...
18402         * modules/rpmatch (configure.ac): ... to here.
18403
18404 2011-05-21  Bruno Haible  <bruno@clisp.org>
18405
18406         rmdir: Respect rules for use of AC_LIBOBJ.
18407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18408         * modules/rmdir (configure.ac): ... to here.
18409
18410 2011-05-21  Bruno Haible  <bruno@clisp.org>
18411
18412         renameat: Move AC_LIBOBJ invocations to module description.
18413         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18414         here...
18415         * modules/renameat (configure.ac): ... to here.
18416
18417 2011-05-21  Bruno Haible  <bruno@clisp.org>
18418
18419         rename: Respect rules for use of AC_LIBOBJ.
18420         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18421         here...
18422         * modules/rename (configure.ac): ... to here.
18423
18424 2011-05-21  Bruno Haible  <bruno@clisp.org>
18425
18426         remove: Move AC_LIBOBJ invocations to module description.
18427         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18428         here...
18429         * modules/remove (configure.ac): ... to here.
18430
18431 2011-05-21  Bruno Haible  <bruno@clisp.org>
18432
18433         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18434         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18435         macro.
18436         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18437         * modules/relocatable-lib (configure.ac): ... to here.
18438         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18439         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18440
18441 2011-05-21  Bruno Haible  <bruno@clisp.org>
18442
18443         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18444         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18445         here...
18446         * modules/relocatable-prog (configure.ac): ... to here.
18447
18448 2011-05-21  Bruno Haible  <bruno@clisp.org>
18449
18450         regex: Move AC_LIBOBJ invocations to module description.
18451         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18452         invocations from here...
18453         * modules/regex (configure.ac): ... to here.
18454
18455 2011-05-21  Bruno Haible  <bruno@clisp.org>
18456
18457         realloc-*: Move AC_LIBOBJ invocations to module description.
18458         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18459         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18460         AC_LIBOBJ invocations from here...
18461         * modules/realloc-gnu (configure.ac): ... to here.
18462         * modules/realloc-posix (configure.ac): ... and here.
18463
18464 2011-05-21  Bruno Haible  <bruno@clisp.org>
18465
18466         readutmp: Move AC_LIBOBJ invocations to module description.
18467         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18468         * modules/readutmp (configure.ac): ... to here.
18469
18470 2011-05-21  Bruno Haible  <bruno@clisp.org>
18471
18472         readlinkat: Move AC_LIBOBJ invocations to module description.
18473         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18474         here...
18475         * modules/readlinkat (configure.ac): ... to here.
18476
18477 2011-05-21  Bruno Haible  <bruno@clisp.org>
18478
18479         readlink: Move AC_LIBOBJ invocations to module description.
18480         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18481         gl_PREREQ_READLINK invocations from here...
18482         * modules/readlink (configure.ac): ... to here.
18483
18484 2011-05-21  Bruno Haible  <bruno@clisp.org>
18485
18486         readline: Move AC_LIBOBJ invocations to module description.
18487         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18488         gl_PREREQ_READLINE invocations from here...
18489         * modules/readline (configure.ac): ... to here.
18490
18491 2011-05-21  Bruno Haible  <bruno@clisp.org>
18492
18493         read: Move AC_LIBOBJ invocations to module description.
18494         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18495         * modules/read (configure.ac): ... to here.
18496
18497 2011-05-21  Bruno Haible  <bruno@clisp.org>
18498
18499         rawmemchr: Move AC_LIBOBJ invocations to module description.
18500         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18502         from here...
18503         * modules/rawmemchr (configure.ac): ... to here.
18504
18505 2011-05-21  Bruno Haible  <bruno@clisp.org>
18506
18507         random_r: Move AC_LIBOBJ invocations to module description.
18508         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18509         gl_PREREQ_RANDOM_R invocations from here...
18510         * modules/random_r (configure.ac): ... to here.
18511
18512 2011-05-21  Bruno Haible  <bruno@clisp.org>
18513
18514         pwrite: Move AC_LIBOBJ invocations to module description.
18515         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18516         * modules/pwrite (configure.ac): ... to here.
18517
18518 2011-05-21  Bruno Haible  <bruno@clisp.org>
18519
18520         putenv: Move AC_LIBOBJ invocations to module description.
18521         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18522         * modules/putenv (configure.ac): ... to here.
18523
18524 2011-05-21  Bruno Haible  <bruno@clisp.org>
18525
18526         login_tty: Move AC_LIBOBJ invocations to module description.
18527         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18528         * modules/login_tty (configure.ac): ... to here.
18529
18530 2011-05-21  Bruno Haible  <bruno@clisp.org>
18531
18532         openpty: Move AC_LIBOBJ invocations to module description.
18533         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18534         * modules/openpty (configure.ac): ... to here.
18535
18536 2011-05-21  Bruno Haible  <bruno@clisp.org>
18537
18538         forkpty: Move AC_LIBOBJ invocations to module description.
18539         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18540         * modules/forkpty (configure.ac): ... to here.
18541
18542 2011-05-21  Bruno Haible  <bruno@clisp.org>
18543
18544         ptsname: Move AC_LIBOBJ invocations to module description.
18545         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18546         invocations from here...
18547         * modules/ptsname (configure.ac): ... to here.
18548
18549 2011-05-21  Bruno Haible  <bruno@clisp.org>
18550
18551         pread: Move AC_LIBOBJ invocations to module description.
18552         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18553         * modules/pread (configure.ac): ... to here.
18554
18555 2011-05-21  Bruno Haible  <bruno@clisp.org>
18556
18557         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18558         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18559         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18560         * modules/posix_spawn (configure.ac): ... to here.
18561         * modules/posix_spawnp (configure.ac): ... and here.
18562
18563 2011-05-21  Bruno Haible  <bruno@clisp.org>
18564
18565         popen: Move AC_LIBOBJ invocations to module description.
18566         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18567         invocations from here...
18568         * modules/popen (configure.ac): ... to here.
18569
18570 2011-05-21  Bruno Haible  <bruno@clisp.org>
18571
18572         poll: Move AC_LIBOBJ invocations to module description.
18573         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18574         invocations from here...
18575         * modules/poll (configure.ac): ... to here.
18576
18577 2011-05-21  Bruno Haible  <bruno@clisp.org>
18578
18579         pipe-posix: Move AC_LIBOBJ invocations to module description.
18580         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18581         * modules/pipe-posix (configure.ac): ... to here.
18582
18583 2011-05-21  Bruno Haible  <bruno@clisp.org>
18584
18585         openat: Respect rules for use of AC_LIBOBJ.
18586         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18587         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18588         * modules/openat (configure.ac): ... to here.
18589
18590 2011-05-21  Bruno Haible  <bruno@clisp.org>
18591
18592         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18593         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18594         invocation from here...
18595         * modules/obstack-printf (configure.ac): ... to here.
18596         * modules/obstack-printf-posix (configure.ac): ... and here.
18597
18598 2011-05-21  Bruno Haible  <bruno@clisp.org>
18599
18600         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18601         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18602         from here...
18603         * modules/nl_langinfo (configure.ac): ... to here.
18604
18605 2011-05-21  Bruno Haible  <bruno@clisp.org>
18606
18607         nanosleep: Move AC_LIBOBJ invocations to module description.
18608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18609         gl_PREREQ_NANOSLEEP invocations from here...
18610         * modules/nanosleep (configure.ac): ... to here.
18611
18612 2011-05-21  Bruno Haible  <bruno@clisp.org>
18613
18614         mountlist: Move AC_LIBOBJ invocations to module description.
18615         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18616         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18617         * modules/mountlist (configure.ac): ... to here.
18618
18619 2011-05-21  Bruno Haible  <bruno@clisp.org>
18620
18621         mktime: Respect rules for use of AC_LIBOBJ.
18622         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18623         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18624         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18625         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18626         * modules/mktime (configure.ac): ... to here.
18627         * modules/mktime-internal (configure.ac): ... and here.
18628         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18629
18630 2011-05-21  Bruno Haible  <bruno@clisp.org>
18631
18632         mkstemps: Move AC_LIBOBJ invocations to module description.
18633         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18634         here...
18635         * modules/mkstemps (configure.ac): ... to here.
18636
18637 2011-05-21  Bruno Haible  <bruno@clisp.org>
18638
18639         mkstemp: Move AC_LIBOBJ invocations to module description.
18640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18641         gl_PREREQ_MKSTEMP invocations from here...
18642         * modules/mkstemp (configure.ac): ... to here.
18643
18644 2011-05-21  Bruno Haible  <bruno@clisp.org>
18645
18646         mkostemps: Move AC_LIBOBJ invocations to module description.
18647         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18648         here...
18649         * modules/mkostemps (configure.ac): ... to here.
18650
18651 2011-05-21  Bruno Haible  <bruno@clisp.org>
18652
18653         mkostemp: Move AC_LIBOBJ invocations to module description.
18654         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18655         gl_PREREQ_MKOSTEMP invocations from here...
18656         * modules/mkostemp (configure.ac): ... to here.
18657
18658 2011-05-21  Bruno Haible  <bruno@clisp.org>
18659
18660         mknod: Move AC_LIBOBJ invocations to module description.
18661         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18662         * modules/mknod (configure.ac): ... to here.
18663
18664 2011-05-21  Bruno Haible  <bruno@clisp.org>
18665
18666         mkfifoat: Move AC_LIBOBJ invocations to module description.
18667         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18668         here...
18669         * modules/mkfifoat (configure.ac): ... to here.
18670
18671 2011-05-21  Bruno Haible  <bruno@clisp.org>
18672
18673         mkfifo: Respect rules for use of AC_LIBOBJ.
18674         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18675         here...
18676         * modules/mkfifo (configure.ac): ... to here.
18677
18678 2011-05-21  Bruno Haible  <bruno@clisp.org>
18679
18680         mkdtemp: Move AC_LIBOBJ invocations to module description.
18681         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18682         invocations from here...
18683         * modules/mkdtemp (configure.ac): ... to here.
18684
18685 2011-05-21  Bruno Haible  <bruno@clisp.org>
18686
18687         mkdir: Move AC_LIBOBJ invocations to module description.
18688         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18689         * modules/mkdir (configure.ac): ... to here.
18690
18691 2011-05-21  Bruno Haible  <bruno@clisp.org>
18692
18693         memset: Move AC_LIBOBJ invocations to module description.
18694         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18696         here...
18697         * modules/memset (configure.ac): ... to here.
18698
18699 2011-05-21  Bruno Haible  <bruno@clisp.org>
18700
18701         memrchr: Move AC_LIBOBJ invocations to module description.
18702         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18704         here...
18705         * modules/memrchr (configure.ac): ... to here.
18706
18707 2011-05-21  Bruno Haible  <bruno@clisp.org>
18708
18709         mempcpy: Move AC_LIBOBJ invocations to module description.
18710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18712         here...
18713         * modules/mempcpy (configure.ac): ... to here.
18714
18715 2011-05-21  Bruno Haible  <bruno@clisp.org>
18716
18717         memmove: Move AC_LIBOBJ invocations to module description.
18718         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18720         here...
18721         * modules/memmove (configure.ac): ... to here.
18722
18723 2011-05-21  Bruno Haible  <bruno@clisp.org>
18724
18725         memmem*: Move AC_LIBOBJ invocations to module description.
18726         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18727         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18728         here...
18729         (gl_FUNC_MEMMEM): ... and here...
18730         * modules/memmem-simple (configure.ac): ... to here.
18731         * modules/memmem (configure.ac): ... and here.
18732
18733 2011-05-21  Bruno Haible  <bruno@clisp.org>
18734
18735         memcpy: Move AC_LIBOBJ invocations to module description.
18736         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18738         here...
18739         * modules/memcpy (configure.ac): ... to here.
18740
18741 2011-05-21  Bruno Haible  <bruno@clisp.org>
18742
18743         memcmp: Simplify autoconf macro.
18744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18745         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18746         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18747
18748 2011-05-21  Bruno Haible  <bruno@clisp.org>
18749
18750         memcmp: Move AC_LIBOBJ invocations to module description.
18751         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18752         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18753         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18754         * modules/memcmp (configure.ac): ... to here.
18755         (Depends-on): Update conditions.
18756
18757 2011-05-21  Bruno Haible  <bruno@clisp.org>
18758
18759         memchr: Respect rules for use of AC_LIBOBJ.
18760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18761         invocations from here...
18762         * modules/memchr (configure.ac): ... to here.
18763
18764 2011-05-21  Bruno Haible  <bruno@clisp.org>
18765
18766         mbtowc: Move AC_LIBOBJ invocations to module description.
18767         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18768         invocations from here...
18769         * modules/mbtowc (configure.ac): ... to here.
18770
18771 2011-05-21  Bruno Haible  <bruno@clisp.org>
18772
18773         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18774         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18775         gl_PREREQ_MBSRTOWCS invocations from here...
18776         * modules/mbsrtowcs (configure.ac): ... to here.
18777
18778 2011-05-21  Bruno Haible  <bruno@clisp.org>
18779
18780         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18781         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18782         gl_PREREQ_MBSNRTOWCS invocations from here...
18783         * modules/mbsnrtowcs (configure.ac): ... to here.
18784
18785 2011-05-21  Bruno Haible  <bruno@clisp.org>
18786
18787         mbsinit: Move AC_LIBOBJ invocations to module description.
18788         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18789         invocations from here...
18790         * modules/mbsinit (configure.ac): ... to here.
18791
18792 2011-05-21  Bruno Haible  <bruno@clisp.org>
18793
18794         mbrlen: Move AC_LIBOBJ invocations to module description.
18795         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18796         invocations from here...
18797         * modules/mbrlen (configure.ac): ... to here.
18798
18799 2011-05-21  Bruno Haible  <bruno@clisp.org>
18800
18801         mbrtowc: Respect rules for use of AC_LIBOBJ.
18802         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18803         invocations from here...
18804         * modules/mbrtowc (configure.ac): ... to here.
18805
18806 2011-05-21  Bruno Haible  <bruno@clisp.org>
18807
18808         malloc-*: Move AC_LIBOBJ invocations to module description.
18809         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18810         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18811         AC_LIBOBJ invocations from here...
18812         * modules/malloc-gnu (configure.ac): ... to here.
18813         * modules/malloc-posix (configure.ac): ... and here.
18814
18815 2011-05-21  Bruno Haible  <bruno@clisp.org>
18816
18817         lstat, openat: Respect rules for use of AC_LIBOBJ.
18818         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18820         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18821         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18822         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18823         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18824         here.
18825         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18826
18827 2011-05-21  Bruno Haible  <bruno@clisp.org>
18828
18829         lseek: Move AC_LIBOBJ invocations to module description.
18830         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18831         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18832         * modules/lseek (configure.ac): ... to here.
18833
18834 2011-05-21  Bruno Haible  <bruno@clisp.org>
18835
18836         linkat: Move AC_LIBOBJ invocations to module description.
18837         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18838         here...
18839         * modules/linkat (configure.ac): ... to here.
18840
18841 2011-05-21  Bruno Haible  <bruno@clisp.org>
18842
18843         link: Respect rules for use of AC_LIBOBJ.
18844         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18845         * modules/link (configure.ac): ... to here.
18846
18847 2011-05-21  Bruno Haible  <bruno@clisp.org>
18848
18849         lchown: Move AC_LIBOBJ invocations to module description.
18850         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18851         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18852         * modules/lchown (configure.ac): ... to here.
18853
18854 2011-05-21  Bruno Haible  <bruno@clisp.org>
18855
18856         iswctype: Move AC_LIBOBJ invocations to module description.
18857         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18858         here...
18859         * modules/iswctype (configure.ac): ... to here.
18860
18861 2011-05-21  Bruno Haible  <bruno@clisp.org>
18862
18863         iswblank: Move AC_LIBOBJ invocations to module description.
18864         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18865         here...
18866         * modules/iswblank (configure.ac): ... to here.
18867
18868 2011-05-21  Bruno Haible  <bruno@clisp.org>
18869
18870         atanl: Move AC_LIBOBJ invocations to module description.
18871         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18872         * modules/atanl (configure.ac): ... to here.
18873
18874 2011-05-21  Bruno Haible  <bruno@clisp.org>
18875
18876         acosl: Move AC_LIBOBJ invocations to module description.
18877         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18878         * modules/acosl (configure.ac): ... to here.
18879
18880 2011-05-21  Bruno Haible  <bruno@clisp.org>
18881
18882         asinl: Respect rules for use of AC_LIBOBJ.
18883         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18884         * modules/asinl (configure.ac): ... to here.
18885
18886 2011-05-21  Bruno Haible  <bruno@clisp.org>
18887
18888         tanl: Move AC_LIBOBJ invocations to module description.
18889         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18890         * modules/tanl (configure.ac): ... to here.
18891
18892 2011-05-21  Bruno Haible  <bruno@clisp.org>
18893
18894         cosl: Move AC_LIBOBJ invocations to module description.
18895         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18896         * modules/cosl (configure.ac): ... to here.
18897
18898 2011-05-21  Bruno Haible  <bruno@clisp.org>
18899
18900         sinl: Move AC_LIBOBJ invocations to module description.
18901         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18902         * modules/sinl (configure.ac): ... to here.
18903
18904 2011-05-21  Bruno Haible  <bruno@clisp.org>
18905
18906         logl: Move AC_LIBOBJ invocations to module description.
18907         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18908         * modules/logl (configure.ac): ... to here.
18909
18910 2011-05-21  Bruno Haible  <bruno@clisp.org>
18911
18912         expl: Move AC_LIBOBJ invocations to module description.
18913         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18914         * modules/expl (configure.ac): ... to here.
18915
18916 2011-05-21  Bruno Haible  <bruno@clisp.org>
18917
18918         roundl: Move AC_LIBOBJ invocations to module description.
18919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18920         * modules/roundl (configure.ac): ... to here.
18921
18922 2011-05-21  Bruno Haible  <bruno@clisp.org>
18923
18924         round: Move AC_LIBOBJ invocations to module description.
18925         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18926         * modules/round (configure.ac): ... to here.
18927
18928 2011-05-21  Bruno Haible  <bruno@clisp.org>
18929
18930         roundf: Move AC_LIBOBJ invocations to module description.
18931         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18932         * modules/roundf (configure.ac): ... to here.
18933
18934 2011-05-21  Bruno Haible  <bruno@clisp.org>
18935
18936         truncl: Move AC_LIBOBJ invocations to module description.
18937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18938         * modules/truncl (configure.ac): ... to here.
18939
18940 2011-05-21  Bruno Haible  <bruno@clisp.org>
18941
18942         trunc: Move AC_LIBOBJ invocations to module description.
18943         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18944         * modules/trunc (configure.ac): ... to here.
18945
18946 2011-05-21  Bruno Haible  <bruno@clisp.org>
18947
18948         truncf: Move AC_LIBOBJ invocations to module description.
18949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18950         * modules/truncf (configure.ac): ... to here.
18951
18952 2011-05-21  Bruno Haible  <bruno@clisp.org>
18953
18954         ceill: Move AC_LIBOBJ invocations to module description.
18955         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18956         * modules/ceill (configure.ac): ... to here.
18957
18958 2011-05-21  Bruno Haible  <bruno@clisp.org>
18959
18960         ceil: Move AC_LIBOBJ invocations to module description.
18961         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18962         * modules/ceil (configure.ac): ... to here.
18963
18964 2011-05-21  Bruno Haible  <bruno@clisp.org>
18965
18966         ceilf: Move AC_LIBOBJ invocations to module description.
18967         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18968         * modules/ceilf (configure.ac): ... to here.
18969
18970 2011-05-21  Bruno Haible  <bruno@clisp.org>
18971
18972         floorl: Respect rules for use of AC_LIBOBJ.
18973         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18974         * modules/floorl (configure.ac): ... to here.
18975
18976 2011-05-21  Bruno Haible  <bruno@clisp.org>
18977
18978         floor: Respect rules for use of AC_LIBOBJ.
18979         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18980         * modules/floor (configure.ac): ... to here.
18981
18982 2011-05-21  Bruno Haible  <bruno@clisp.org>
18983
18984         floorf: Move AC_LIBOBJ invocations to module description.
18985         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18986         * modules/floorf (configure.ac): ... to here.
18987
18988 2011-05-20  Bruno Haible  <bruno@clisp.org>
18989
18990         sqrtl: Respect rules for use of AC_LIBOBJ.
18991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18992         * modules/sqrtl (configure.ac): ... to here.
18993
18994 2011-05-20  Bruno Haible  <bruno@clisp.org>
18995
18996         ldexpl: Respect rules for use of AC_LIBOBJ.
18997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18998         * modules/ldexpl (configure.ac): ... to here.
18999
19000 2011-05-20  Bruno Haible  <bruno@clisp.org>
19001
19002         frexpl*: Respect rules for use of AC_LIBOBJ.
19003         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19004         invocation from here...
19005         * modules/frexpl (configure.ac): ... to here.
19006         * modules/frexpl-nolibm (configure.ac): ... and here.
19007
19008 2011-05-20  Bruno Haible  <bruno@clisp.org>
19009
19010         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19011         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19012         invocation from here...
19013         * modules/frexp (configure.ac): ... to here.
19014         * modules/frexp-nolibm (configure.ac): ... and here.
19015
19016 2011-05-20  Bruno Haible  <bruno@clisp.org>
19017
19018         isnan: Respect rules for use of AC_LIBOBJ.
19019         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19020         invocations here.
19021         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19022         REPLACE_ISNAN.
19023         * modules/isnand (configure.ac): Likewise.
19024         * modules/isnanl (configure.ac): Likewise.
19025
19026 2011-05-20  Bruno Haible  <bruno@clisp.org>
19027
19028         isnanl*: Respect rules for use of AC_LIBOBJ.
19029         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19030         invocation from here...
19031         * modules/isnanl (configure.ac): ... to here.
19032         * modules/isnanl-nolibm (configure.ac): ... and here.
19033
19034 2011-05-20  Bruno Haible  <bruno@clisp.org>
19035
19036         isnand*: Move AC_LIBOBJ invocations to module description.
19037         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19038         invocation from here...
19039         * modules/isnand (configure.ac): ... to here.
19040         * modules/isnand-nolibm (configure.ac): ... and here.
19041
19042 2011-05-20  Bruno Haible  <bruno@clisp.org>
19043
19044         isnanf*: Move AC_LIBOBJ invocations to module description.
19045         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19046         invocation from here...
19047         * modules/isnanf (configure.ac): ... to here.
19048         * modules/isnanf-nolibm (configure.ac): ... and here.
19049
19050 2011-05-20  Bruno Haible  <bruno@clisp.org>
19051
19052         isnan*: Separate the AC_LIBOBJ invocations.
19053         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19054         AC_LIBOBJ invocation.
19055         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19056         here.
19057         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19058         AC_LIBOBJ invocation.
19059         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19060         here.
19061         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19062         AC_LIBOBJ invocation.
19063         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19064         here.
19065         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19066
19067 2011-05-08  Bruno Haible  <bruno@clisp.org>
19068
19069         isinf: Move AC_LIBOBJ invocations to module description.
19070         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19071         * modules/isinf (configure.ac): ... to here.
19072
19073 2011-05-08  Bruno Haible  <bruno@clisp.org>
19074
19075         isfinite: Move AC_LIBOBJ invocations to module description.
19076         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19077         * modules/isfinite (configure.ac): ... to here.
19078
19079 2011-05-08  Bruno Haible  <bruno@clisp.org>
19080
19081         isblank: Move AC_LIBOBJ invocations to module description.
19082         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19083         here...
19084         * modules/isblank (configure.ac): ... to here.
19085
19086 2011-05-08  Bruno Haible  <bruno@clisp.org>
19087
19088         isapipe: Move AC_LIBOBJ invocations to module description.
19089         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19090         gl_PREREQ_ISAPIPE invocations from here...
19091         * modules/isapipe (configure.ac): ... to here.
19092         (Depends-on): Update condition.
19093
19094 2011-05-08  Bruno Haible  <bruno@clisp.org>
19095
19096         ioctl: Move AC_LIBOBJ invocations to module description.
19097         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19098         invocations from here...
19099         * modules/ioctl (configure.ac): ... to here.
19100         (Depends-on): Update condition.
19101
19102 2011-05-08  Bruno Haible  <bruno@clisp.org>
19103
19104         imaxdiv: Move AC_LIBOBJ invocations to module description.
19105         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19106         invocations from here...
19107         * modules/imaxdiv (configure.ac): ... to here.
19108
19109 2011-05-08  Bruno Haible  <bruno@clisp.org>
19110
19111         imaxabs: Move AC_LIBOBJ invocations to module description.
19112         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19113         invocations from here...
19114         * modules/imaxabs (configure.ac): ... to here.
19115
19116 2011-05-08  Bruno Haible  <bruno@clisp.org>
19117
19118         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19120         AC_LIBOBJ invocations from here...
19121         * modules/getaddrinfo (configure.ac): ... to here.
19122         (Depends-on): Add conditions.
19123
19124 2011-05-08  Bruno Haible  <bruno@clisp.org>
19125
19126         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19129         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19130         (gl_PREREQ_INET_PTON): ... from here.
19131         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19132         gl_PREREQ_INET_PTON here.
19133         (Depends-on): Update condition.
19134
19135 2011-05-08  Bruno Haible  <bruno@clisp.org>
19136
19137         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19138         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19139         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19140         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19141         (gl_PREREQ_INET_NTOP): ... from here.
19142         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19143         gl_PREREQ_INET_NTOP here.
19144         (Depends-on): Update condition.
19145
19146 2011-05-08  Bruno Haible  <bruno@clisp.org>
19147
19148         iconv_open: Move AC_LIBOBJ invocations to module description.
19149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19150         AC_LIBOBJ invocations from here...
19151         * modules/iconv_open (configure.ac): ... to here.
19152
19153 2011-05-08  Bruno Haible  <bruno@clisp.org>
19154
19155         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19156         If module 'iconv_open' is among the main modules and module
19157         'iconv_open-utf' is among the tests dependencies, then
19158         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19159         return the special iconv_t values. Therefore iconv() and iconv_close()
19160         must support these special iconv_t values, already in lib, not only in
19161         tests.
19162         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19164         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19165         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19166         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19167         (Depends-on): Add the dependencies of iconv_open-utf.
19168         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19169         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19170         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19171
19172 2011-05-08  Bruno Haible  <bruno@clisp.org>
19173
19174         group-member: Move AC_LIBOBJ invocations to module description.
19175         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19176         gl_PREREQ_GROUP_MEMBER invocations from here...
19177         * modules/group-member (configure.ac): ... to here.
19178
19179 2011-05-08  Bruno Haible  <bruno@clisp.org>
19180
19181         grantpt: Move AC_LIBOBJ invocations to module description.
19182         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19183         invocations from here...
19184         * modules/grantpt (configure.ac): ... to here.
19185
19186 2011-05-08  Bruno Haible  <bruno@clisp.org>
19187
19188         glob: Move AC_LIBOBJ invocations to module description.
19189         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19190         from here...
19191         * modules/glob (configure.ac): ... to here.
19192
19193 2011-05-08  Bruno Haible  <bruno@clisp.org>
19194
19195         getusershell: Move AC_LIBOBJ invocations to module description.
19196         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19197         Move AC_LIBOBJ invocation from here...
19198         * modules/getusershell (configure.ac): ... to here.
19199         (Depends-on): Update condition.
19200
19201 2011-05-08  Bruno Haible  <bruno@clisp.org>
19202
19203         gettimeofday: Move AC_LIBOBJ invocations to module description.
19204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19205         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19206         gl_PREREQ_GETTIMEOFDAY invocations from here...
19207         * modules/gettimeofday (configure.ac): ... to here.
19208
19209 2011-05-08  Bruno Haible  <bruno@clisp.org>
19210
19211         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19212         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19213         just gl_FUNC_TZSET.
19214         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19215         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19217         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19218
19219 2011-05-08  Bruno Haible  <bruno@clisp.org>
19220
19221         getsubopt: Move AC_LIBOBJ invocations to module description.
19222         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19223         gl_PREREQ_GETSUBOPT invocations from here...
19224         * modules/getsubopt (configure.ac): ... to here.
19225
19226 2011-05-08  Bruno Haible  <bruno@clisp.org>
19227
19228         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19229         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19230         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19231         * modules/getpass-gnu (configure.ac): ... to here.
19232
19233 2011-05-08  Bruno Haible  <bruno@clisp.org>
19234
19235         getpass: Move AC_LIBOBJ invocations to module description.
19236         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19237         gl_PREREQ_GETPASS invocations from here...
19238         * modules/getpass (configure.ac): ... to here.
19239
19240 2011-05-08  Bruno Haible  <bruno@clisp.org>
19241
19242         getpagesize: Move AC_LIBOBJ invocations to module description.
19243         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19244         from here...
19245         * modules/getpagesize (configure.ac): ... to here.
19246
19247 2011-05-08  Bruno Haible  <bruno@clisp.org>
19248
19249         getopt: Move AC_LIBOBJ invocations to module description.
19250         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19251         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19252         invocations from here...
19253         * modules/getopt-gnu (configure.ac): ... to here.
19254         * modules/getopt-posix (configure.ac): ... and here.
19255         (Depends-on): Update condition.
19256
19257 2011-05-08  Bruno Haible  <bruno@clisp.org>
19258
19259         getopt, argp: Respect rules for use of AC_LIBOBJ.
19260         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19261         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19262         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19263         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19264
19265 2011-05-08  Bruno Haible  <bruno@clisp.org>
19266
19267         getlogin_r: Move AC_LIBOBJ invocations to module description.
19268         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19269         gl_PREREQ_GETLOGIN_R invocations from here...
19270         * modules/getlogin_r (configure.ac): ... to here.
19271
19272 2011-05-08  Bruno Haible  <bruno@clisp.org>
19273
19274         getlogin: Move AC_LIBOBJ invocations to module description.
19275         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19276         here...
19277         * modules/getlogin (configure.ac): ... to here.
19278
19279 2011-05-08  Bruno Haible  <bruno@clisp.org>
19280
19281         getloadavg: Move AC_LIBOBJ invocations to module description.
19282         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19283         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19284         * modules/getloadavg (configure.ac): ... to here.
19285
19286 2011-05-08  Bruno Haible  <bruno@clisp.org>
19287
19288         gethrxtime: Move AC_LIBOBJ invocations to module description.
19289         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19290         LIB_GETHRXTIME from here...
19291         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19292         invocations from here...
19293         * modules/gethrxtime (configure.ac): ... to here.
19294
19295 2011-05-08  Bruno Haible  <bruno@clisp.org>
19296
19297         gethostname: Move AC_LIBOBJ invocations to module description.
19298         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19299         gl_PREREQ_GETHOSTNAME invocations from here...
19300         * modules/gethostname (configure.ac): ... to here.
19301
19302 2011-05-08  Bruno Haible  <bruno@clisp.org>
19303
19304         getgroups: Move AC_LIBOBJ invocations to module description.
19305         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19306         here...
19307         * modules/getgroups (configure.ac): ... to here.
19308
19309 2011-05-08  Bruno Haible  <bruno@clisp.org>
19310
19311         getdtablesize: Move AC_LIBOBJ invocations to module description.
19312         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19313         invocation from here...
19314         * modules/getdtablesize (configure.ac): ... to here.
19315
19316 2011-05-08  Bruno Haible  <bruno@clisp.org>
19317
19318         getdomainname: Move AC_LIBOBJ invocations to module description.
19319         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19320         gl_PREREQ_GETDOMAINNAME invocations from here...
19321         * modules/getdomainname (configure.ac): ... to here.
19322
19323 2011-05-08  Bruno Haible  <bruno@clisp.org>
19324
19325         getline: Move AC_LIBOBJ invocations to module description.
19326         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19327         invocations from here...
19328         * modules/getline (configure.ac): ... to here.
19329
19330 2011-05-08  Bruno Haible  <bruno@clisp.org>
19331
19332         getline: Simplify.
19333         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19334         It's already handled through the module dependency.
19335
19336 2011-05-08  Bruno Haible  <bruno@clisp.org>
19337
19338         getdelim: Move AC_LIBOBJ invocations to module description.
19339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19340         and gl_PREREQ_GETDELIM invocations from here...
19341         * modules/getdelim (configure.ac): ... to here.
19342         (Depends-on): Fix condition.
19343
19344 2011-05-08  Bruno Haible  <bruno@clisp.org>
19345
19346         getcwd: Move AC_LIBOBJ invocations to module description.
19347         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19348         invocations from here...
19349         * modules/getcwd (configure.ac): ... to here.
19350
19351 2011-05-08  Bruno Haible  <bruno@clisp.org>
19352
19353         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19354         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19355         here...
19356         * modules/getcwd-lgpl (configure.ac): ... to here.
19357
19358 2011-05-07  Bruno Haible  <bruno@clisp.org>
19359
19360         crypto/gc: Move AC_LIBOBJ invocations to module description.
19361         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19362         * modules/crypto/gc (configure.ac): ... to here.
19363
19364 2011-05-07  Bruno Haible  <bruno@clisp.org>
19365
19366         fwriting: Move AC_LIBOBJ invocations to module description.
19367         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19368         here...
19369         * modules/fwriting (configure.ac): ... to here.
19370
19371 2011-05-07  Bruno Haible  <bruno@clisp.org>
19372
19373         fwritable: Move AC_LIBOBJ invocations to module description.
19374         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19375         here...
19376         * modules/fwritable (configure.ac): ... to here.
19377
19378 2011-05-07  Bruno Haible  <bruno@clisp.org>
19379
19380         futimens: Move AC_LIBOBJ invocations to module description.
19381         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19382         here...
19383         * modules/futimens (configure.ac): ... to here.
19384
19385 2011-05-07  Bruno Haible  <bruno@clisp.org>
19386
19387         ftruncate: Move AC_LIBOBJ invocations to module description.
19388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19389         gl_PREREQ_FTRUNCATE invocations from here...
19390         * modules/ftruncate (configure.ac): ... to here.
19391
19392 2011-05-07  Bruno Haible  <bruno@clisp.org>
19393
19394         fsync: Move AC_LIBOBJ invocations to module description.
19395         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19396         invocations from here...
19397         * modules/fsync (configure.ac): ... to here.
19398
19399 2011-05-07  Bruno Haible  <bruno@clisp.org>
19400
19401         fsusage: Move AC_LIBOBJ invocations to module description.
19402         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19403         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19404         * modules/fsusage (configure.ac): ... to here.
19405
19406 2011-05-07  Bruno Haible  <bruno@clisp.org>
19407
19408         freopen: Move AC_LIBOBJ invocations to module description.
19409         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19410         invocations from here...
19411         * modules/freopen (configure.ac): ... to here.
19412
19413 2011-05-07  Bruno Haible  <bruno@clisp.org>
19414
19415         free: Move AC_LIBOBJ invocations to module description.
19416         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19417         invocations from here...
19418         * modules/free (configure.ac): ... to here.
19419
19420 2011-05-07  Bruno Haible  <bruno@clisp.org>
19421
19422         freadable: Move AC_LIBOBJ invocations to module description.
19423         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19424         here...
19425         * modules/freadable (configure.ac): ... to here.
19426
19427 2011-05-07  Bruno Haible  <bruno@clisp.org>
19428
19429         fpurge: Move AC_LIBOBJ invocations to module description.
19430         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19431         invocations from here...
19432         * modules/fpurge (configure.ac): ... to here.
19433
19434 2011-05-07  Bruno Haible  <bruno@clisp.org>
19435
19436         fpending: Move AC_LIBOBJ invocations to module description.
19437         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19438         gl_FUNC_FPENDING.
19439         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19440         invocations from here...
19441         * modules/fpending (configure.ac): ... to here.
19442
19443 2011-05-07  Bruno Haible  <bruno@clisp.org>
19444
19445         fopen: Move AC_LIBOBJ invocations to module description.
19446         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19447         invocations from here...
19448         * modules/fopen (configure.ac): ... to here.
19449
19450 2011-05-07  Bruno Haible  <bruno@clisp.org>
19451
19452         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19453         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19454         gl_FUNC_FNMATCH_POSIX.
19455         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19456         invocations from here...
19457         * modules/fnmatch (configure.ac): ... to here.
19458         * modules/fnmatch-gnu (configure.ac): ... and here.
19459
19460 2011-05-07  Bruno Haible  <bruno@clisp.org>
19461
19462         flock: Move AC_LIBOBJ invocations to module description.
19463         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19464         invocations from here...
19465         * modules/flock (configure.ac): ... to here.
19466
19467 2011-05-07  Bruno Haible  <bruno@clisp.org>
19468
19469         fileblocks: Move AC_LIBOBJ invocations to module description.
19470         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19471         gl_PREREQ_FILEBLOCKS invocations from here...
19472         * modules/fileblocks (configure.ac): ... to here.
19473
19474 2011-05-06  Bruno Haible  <bruno@clisp.org>
19475
19476         fflush: Move AC_LIBOBJ invocations to module description.
19477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19478         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19479         invocations from here...
19480         * modules/fflush (configure.ac): ... to here.
19481
19482 2011-05-06  Bruno Haible  <bruno@clisp.org>
19483
19484         fdopendir: Move AC_LIBOBJ invocations to module description.
19485         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19486         here...
19487         * modules/fdopendir (configure.ac): ... to here.
19488         (Depends-on): Improve conditions.
19489
19490 2011-05-06  Bruno Haible  <bruno@clisp.org>
19491
19492         _Exit: Move AC_LIBOBJ invocations to module description.
19493         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19494         invocations from here...
19495         * modules/_Exit (configure.ac): ... to here.
19496
19497 2011-05-21  Bruno Haible  <bruno@clisp.org>
19498
19499         euidaccess: Respect rules for use of AC_LIBOBJ.
19500         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19502         from here...
19503         * modules/euidaccess (configure.ac): ... to here.
19504
19505 2011-05-06  Bruno Haible  <bruno@clisp.org>
19506
19507         error: Move AC_LIBOBJ invocations to module description.
19508         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19509         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19510         invocations from here...
19511         * modules/error (configure.ac): ... to here.
19512
19513 2011-05-06  Bruno Haible  <bruno@clisp.org>
19514
19515         duplocale: Move AC_LIBOBJ invocations to module description.
19516         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19517         gl_PREREQ_DUPLOCALE invocations from here...
19518         * modules/duplocale (configure.ac): ... to here.
19519
19520 2011-05-05  Bruno Haible  <bruno@clisp.org>
19521
19522         dirfd: Move AC_LIBOBJ invocations to module description.
19523         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19524         gl_FUNC_DIRFD.
19525         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19526         here...
19527         * modules/dirfd (configure.ac): ... to here.
19528         (Depends-on): Fix condition.
19529
19530 2011-05-05  Bruno Haible  <bruno@clisp.org>
19531
19532         chown: Respect rules for use of AC_LIBOBJ.
19533         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19534         * modules/chown (configure.ac): ... to here.
19535
19536 2011-05-05  Bruno Haible  <bruno@clisp.org>
19537
19538         chdir-long: Move AC_LIBOBJ invocations to module description.
19539         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19540         gl_PREREQ_CHDIR_LONG invocations from here...
19541         * modules/chdir-long (configure.ac): ... to here.
19542
19543 2011-05-05  Bruno Haible  <bruno@clisp.org>
19544
19545         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19546         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19547         from here...
19548         * modules/canonicalize-lgpl (configure.ac): ... to here.
19549
19550 2011-05-05  Bruno Haible  <bruno@clisp.org>
19551
19552         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19553         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19554         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19555         REPLACE_CALLOC.
19556         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19557         * modules/calloc-gnu (configure.ac): Likewise.
19558
19559 2011-05-05  Bruno Haible  <bruno@clisp.org>
19560
19561         btowc: Move AC_LIBOBJ invocations to module description.
19562         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19563         invocations from here...
19564         * modules/btowc (configure.ac): ... to here.
19565
19566 2011-05-21  Bruno Haible  <bruno@clisp.org>
19567
19568         atexit: Move AC_LIBOBJ invocations to module description.
19569         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19571         here...
19572         * modules/atexit (configure.ac): ... to here.
19573
19574 2011-05-05  Bruno Haible  <bruno@clisp.org>
19575
19576         atoll: Move AC_LIBOBJ invocations to module description.
19577         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19578         invocations from here...
19579         * modules/atoll (configure.ac): ... to here.
19580
19581 2011-05-05  Bruno Haible  <bruno@clisp.org>
19582
19583         argz: Move AC_LIBOBJ invocations to module description.
19584         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19585         * modules/argz (configure.ac): ... to here.
19586
19587 2011-05-05  Bruno Haible  <bruno@clisp.org>
19588
19589         alphasort: Move AC_LIBOBJ invocations to module description.
19590         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19591         gl_PREREQ_ALPHASORT invocations from here...
19592         * modules/alphasort (configure.ac): ... to here.
19593
19594 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         verify: new macro verify_expr; verify_true deprecated
19597         * NEWS: Mention this.
19598         * doc/verify.texi (Compile-time Assertions): Document this.
19599         * lib/verify.h (verify_true): Deprecate.
19600         (verify_expr): New macro.
19601         * tests/test-verify.c (function): Test verify_expr.
19602
19603 2011-06-14  Jim Meyering  <meyering@redhat.com>
19604
19605         init.sh: give more portable redirection-related advice in a comment
19606         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19607         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19608         for lots of discussion.  Stefano Lattarini suggested the solution
19609         of putting "9>&2" after the command.  Reported by Bruno Haible.
19610
19611 2011-06-13  Bruno Haible  <bruno@clisp.org>
19612
19613         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19615         'none'.
19616
19617 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19618
19619         ftoastr: use strtof only if HAVE_STRTOF
19620         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19622         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19623         * modules/ftoastr (configure.ac): Check for strtof.
19624
19625 2011-06-13  Bruno Haible  <bruno@clisp.org>
19626
19627         gnulib-tool: Addendum to 2011-06-08 commit.
19628         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19629         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19630
19631 2011-06-13  Bruno Haible  <bruno@clisp.org>
19632
19633         fseeko: Provide a non-inline replacement of fseek().
19634         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19635         * modules/fseeko (Depends-on): Add fseek.
19636         * modules/fseek (License): Change to LGPLv2+.
19637
19638 2011-06-13  Bruno Haible  <bruno@clisp.org>
19639
19640         ftello: Provide a non-inline replacement of ftell().
19641         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19642         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19643         not have ftello() (such as on mingw).
19644         * modules/ftello (Depends-on): Add ftell.
19645         * modules/ftell (License): Change to LGPLv2+.
19646
19647 2011-05-07  Bruno Haible  <bruno@clisp.org>
19648
19649         ftell: Move AC_LIBOBJ invocations to module description.
19650         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19651         * modules/ftell (configure.ac): ... to here.
19652
19653 2011-05-07  Bruno Haible  <bruno@clisp.org>
19654
19655         ftello: Respect rules for use of AC_LIBOBJ.
19656         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19657         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19658         here...
19659         * modules/ftello (configure.ac): ... to here.
19660
19661 2011-05-07  Bruno Haible  <bruno@clisp.org>
19662
19663         fseeko: Simplify.
19664         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19665         (gl_FUNC_FSEEKO): Inline it here.
19666
19667 2011-05-07  Bruno Haible  <bruno@clisp.org>
19668
19669         fseek: Move AC_LIBOBJ invocations to module description.
19670         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19671         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19672         * modules/fseek (configure.ac): ... to here.
19673
19674 2011-05-07  Bruno Haible  <bruno@clisp.org>
19675
19676         fseek: Respect rules for use of AC_LIBOBJ.
19677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19678         here...
19679         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19680
19681 2011-05-07  Bruno Haible  <bruno@clisp.org>
19682
19683         fseeko: Respect rules for use of AC_LIBOBJ.
19684         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19685         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19686         here...
19687         * modules/fseeko (configure.ac): ... to here.
19688
19689 2011-06-13  Bruno Haible  <bruno@clisp.org>
19690
19691         gnulib-tool: Allow comments in the 'Depends-on' section.
19692         * doc/gnulib.texi (Module description): Mention comment syntax in the
19693         Depends-on section.
19694         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19695
19696 2011-06-13  Bruno Haible  <bruno@clisp.org>
19697
19698         file-set.h: guard __attibute__ use, now that it's not always defined
19699         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19700         versions that support it.  This fixes a coreutils build failure with
19701         the vendor cc on HP-UX 11.31.
19702
19703 2011-06-12  Bruno Haible  <bruno@clisp.org>
19704
19705         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19706         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19707         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19708         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19709         (acl, aclsort): New declarations.
19710         (aclv_nontrivial): New declaration.
19711         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19712         (file_has_acl): Read also the second kind of HP-UX ACLs.
19713         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19714         kind of HP-UX ACLs if the first kind fails.
19715         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19716         second kind of HP-UX ACLs.
19717         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19718         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19719         agree.
19720         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19721         hpuxjfs.
19722         Handle hpuxjfs.
19723         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19724         hpuxjfs.
19725         Handle hpuxjfs.
19726         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19727         (func_test_same_acls): Use both lsacl and getacl.
19728         Handle hpuxjfs.
19729         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19730         (func_test_same_acls): Use both lsacl and getacl.
19731         Handle hpuxjfs.
19732
19733 2011-06-12  Bruno Haible  <bruno@clisp.org>
19734
19735         acl: Complete the 2010-08-10 fix.
19736         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19737         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19738         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19739         explicitly.
19740         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19741         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19742
19743 2011-06-12  Bruno Haible  <bruno@clisp.org>
19744
19745         spawn-pipe tests: Comments.
19746         * tests/test-spawn-pipe-child.c (main): Update comment.
19747         Reported by James Youngman <jay@gnu.org>.
19748
19749 2011-06-11  James Youngman  <jay@gnu.org>
19750
19751         New module 'stat-size'.
19752         * modules/stat-size: New module.  Provides macros for accessing
19753         file size information in instances of struct stat.  Depends on the
19754         fileblocks module because it calls st_blocks.
19755         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19756         * doc/gnulib.texi: Include stat-size.texi.
19757         * doc/stat-size.texi: Documentation for this module.
19758         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19759         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19760         AC_STRUCT_ST_BLOCKS.
19761
19762 2011-06-09  Bruno Haible  <bruno@clisp.org>
19763
19764         thread: Support pthreads-win32.
19765         * lib/glthread/thread.h (gl_thread_self): Define differently on
19766         pthreads-win32.
19767         (gl_null_thread): New declaration.
19768         (gl_thread_self_pointer): New macro.
19769         * lib/glthread/thread.c (gl_null_thread): New constant.
19770         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19771         gl_thread_self.
19772         * tests/test-tls.c: Likewise.
19773         Suggested by Paul Eggert. Reported by Eric Blake.
19774
19775 2011-06-09  Bruno Haible  <bruno@clisp.org>
19776
19777         thread: Fix confusion between NULL and 0.
19778         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19779         Reported by Paul Eggert.
19780
19781 2011-06-09  Bruno Haible  <bruno@clisp.org>
19782
19783         spawn-pipe tests: Avoid test failure on HP-UX 11.
19784         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19785         is closed.
19786
19787 2011-06-09  Bruno Haible  <bruno@clisp.org>
19788
19789         acl tests: Fix compilation error on HP-UX 11.
19790         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19791
19792 2011-06-09  Bruno Haible  <bruno@clisp.org>
19793
19794         rmdir: Avoid test failure on HP-UX 10.20.
19795         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19796         EEXIST.
19797
19798 2011-06-08  Eric Blake  <eblake@redhat.com>
19799
19800         perror: fix test on mingw
19801         * modules/perror-tests (Depends-on): Add dup2.
19802
19803         strerror_r-posix: fix on MacOS
19804         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19805         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19806         logic bug.
19807         * lib/strerror_r.c (strerror_r): Fix the bug.
19808         * lib/strerror.c (strerror): Likewise.
19809         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19810         problem.
19811         * doc/posix-functions/strerror.texi (strerror): Likewise.
19812         * doc/posix-functions/perror.texi (perror): Likewise.
19813         * tests/test-strerror.c (main): Enhance test.
19814         * tests/test-strerror_r.c (main): Likewise.
19815
19816 2011-06-08  Bruno Haible  <bruno@clisp.org>
19817
19818         gnulib-tool: Better isolation between different gnulib-tool invocations.
19819         * gnulib-tool: New option --witness-c-macro.
19820         (witness_c_macro): New variable.
19821         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19822         AM_CPPFLAGS define it as a C macro.
19823         (func_emit_tests_Makefile_am): Likewise.
19824         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19825         read it from there.
19826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19827         m4_define, not AC_DEFUN.
19828         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19829         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19830         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19831         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19832         s|...|...|, to substitute the values of the GNULIB_* module indicator
19833         variables.
19834         * modules/dirent (Makefile.am): Likewise.
19835         * modules/fcntl-h (Makefile.am): Likewise.
19836         * modules/iconv-h (Makefile.am): Likewise.
19837         * modules/langinfo (Makefile.am): Likewise.
19838         * modules/locale (Makefile.am): Likewise.
19839         * modules/math (Makefile.am): Likewise.
19840         * modules/netdb (Makefile.am): Likewise.
19841         * modules/poll-h (Makefile.am): Likewise.
19842         * modules/pty (Makefile.am): Likewise.
19843         * modules/search (Makefile.am): Likewise.
19844         * modules/signal (Makefile.am): Likewise.
19845         * modules/spawn (Makefile.am): Likewise.
19846         * modules/stdio (Makefile.am): Likewise.
19847         * modules/stdlib (Makefile.am): Likewise.
19848         * modules/string (Makefile.am): Likewise.
19849         * modules/sys_ioctl (Makefile.am): Likewise.
19850         * modules/sys_select (Makefile.am): Likewise.
19851         * modules/sys_socket (Makefile.am): Likewise.
19852         * modules/sys_stat (Makefile.am): Likewise.
19853         * modules/sys_times (Makefile.am): Likewise.
19854         * modules/sys_utsname (Makefile.am): Likewise.
19855         * modules/sys_wait (Makefile.am): Likewise.
19856         * modules/termios (Makefile.am): Likewise.
19857         * modules/time (Makefile.am): Likewise.
19858         * modules/unistd (Makefile.am): Likewise.
19859         * modules/wchar (Makefile.am): Likewise.
19860
19861 2011-06-08  Eric Blake  <eblake@redhat.com>
19862
19863         strerror: simplify replacement
19864         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19865         * modules/strerror (configure.ac): No prereqs needed here...
19866         * modules/strerror-override (configure.ac): ...but this needs it.
19867         (Files): Add file for needed prereq macro.
19868
19869 2011-06-08  Bruno Haible  <bruno@clisp.org>
19870
19871         strerror_r-posix: Tweaks.
19872         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19873         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19875         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19876         (gl_FUNC_STRERROR_R): ... to here.
19877         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19878
19879 2011-06-07  Eric Blake  <eblake@redhat.com>
19880
19881         perror: document fixed bugs
19882         * doc/posix-functions/perror.texi (perror): Document recent
19883         patches.
19884
19885 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19886
19887         stat-time: get_stat_birthtime failure is better-defined
19888         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19889         return a timestamp whose tv_sec and tv_nsec values are both -1.
19890         Previously, the spec said only that the tv_nsec value was negative.
19891         This upward-compatible change simplifies GNU tar a bit.
19892
19893 2011-06-07  Eric Blake  <eblake@redhat.com>
19894
19895         strerror_r-posix: work around cygwin 1.7.9
19896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19897         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19898         bug without replacing strerror_r.
19899         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19900         strerror_r is buggy, but without requiring strerror_r compilation.
19901         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19902
19903         test-perror: relax test to ignore cygwin bug
19904         * tests/test-perror2.c (main): Relax test on requiring detection
19905         of stream errors, and use unbuffered stream.
19906         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19907         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19908         * doc/posix-functions/fputc.texi (fputc): Likewise.
19909         * doc/posix-functions/fputs.texi (fputs): Likewise.
19910         * doc/posix-functions/fputws.texi (fputws): Likewise.
19911         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19912         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19913         * doc/posix-functions/getopt.texi (getopt): Likewise.
19914         * doc/posix-functions/perror.texi (perror): Likewise.
19915         * doc/posix-functions/printf.texi (printf): Likewise.
19916         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19917         * doc/posix-functions/psignal.texi (psignal): Likewise.
19918         * doc/posix-functions/putc.texi (putc): Likewise.
19919         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19920         Likewise.
19921         * doc/posix-functions/putchar.texi (putchar): Likewise.
19922         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19923         Likewise.
19924         * doc/posix-functions/puts.texi (puts): Likewise.
19925         * doc/posix-functions/putwc.texi (putwc): Likewise.
19926         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19927         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19928         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19929         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19931         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19932         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19933         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19934
19935 2011-05-22  Bruno Haible  <bruno@clisp.org>
19936
19937         strerror: Move AC_LIBOBJ invocations to module description.
19938         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19939         gl_PREREQ_STRERROR invocations from here...
19940         * modules/strerror (configure.ac): ... to here.
19941
19942 2011-05-21  Bruno Haible  <bruno@clisp.org>
19943
19944         perror: Use common idiom.
19945         * modules/perror (configure.ac): Reorder statements.
19946
19947 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19948
19949         tests: fix usage message in 'mktempd_'
19950         * tests/init.sh (mktempd_): In the usage message, use literal
19951         'mktempd_', not '$ME' (which is even undefined), as the name of
19952         the subroutine.
19953
19954 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19955
19956         tests init: new function 'fatal_', for hard errors
19957         Before this patch, the only way offered by tests/init.sh to
19958         properly signal a hard error was the `framework_failure_'
19959         function.  But the error message issued by that function,
19960         as its name would suggest, refers to a set-up failure in the
19961         testsuite, while hard errors can obviously also be due to
19962         other reasons.  The best way to fix this inconsistency is to
19963         introduce a new function with a more general error message.
19964         * tests/init.sh (fatal_): New function.
19965
19966 2011-06-06  Eric Blake  <eblake@redhat.com>
19967
19968         canonicalize-lgpl: use common idiom
19969         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19970         over newer POSIX -Rf.
19971         Reported by Bruno Haible.
19972
19973         canonicalize-lgpl: work around AIX realpath bug
19974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19975         * doc/posix-functions/realpath.texi (realpath): Document it.
19976         Reported by Bruno Haible.
19977
19978         strerror: work around FreeBSD bug
19979         * lib/strerror.c (strerror): Special case 0.
19980         Reported by Bruno Haible.
19981
19982         strerror-override: avoid bloating errno module
19983         * modules/errno (Files, configure.ac): Move replacement strings...
19984         * modules/strerror-override: ...to new module.
19985         * modules/strerror (Depends-on): Add strerror-override.
19986         * modules/strerror_r-posix (Depends-on): Likewise.
19987         * MODULES.html.sh: Document new module.
19988         Reported by Bruno Haible.
19989
19990 2011-06-06  Bruno Haible  <bruno@clisp.org>
19991
19992         spawn-pipe tests: Rename program.
19993         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19994         * tests/test-spawn-pipe-child.c: Update comment.
19995         * tests/test-spawn-pipe.sh: Update.
19996         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19997
19998         spawn-pipe tests: Link the child program only against libc.
19999         * tests/test-spawn-pipe-child.c: New file, extracted from
20000         tests/test-spawn-pipe.c.
20001         (main): Expect only one argument.
20002         (is_open): New function, copied from tests/test-pipe.c.
20003         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20004         (child_main): Remove function.
20005         (test_pipe): Pass only one argument to the child program.
20006         (main): Remove child process code. Expect the child program's name as
20007         first argument.
20008         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20009         argument.
20010         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20011         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20012         test-spawn-pipe-child against no libraries.
20013
20014 2011-06-06  Bruno Haible  <bruno@clisp.org>
20015
20016         careadlinkat: Avoid mismatch between ssize_t and int.
20017         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20018         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20019
20020 2011-06-06  Jim Meyering  <meyering@redhat.com>
20021
20022         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20023         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20024         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20025
20026 2011-06-05  Bruno Haible  <bruno@clisp.org>
20027
20028         ansi-c++-opt: Interoperability with libtool.
20029         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20030         set the variable to "no", not to ":".
20031         * NEWS: Mention the change.
20032
20033 2011-06-05  Bruno Haible  <bruno@clisp.org>
20034
20035         acl: Fix test failure on AIX 7.
20036         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20037         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20038
20039 2011-06-05  Bruno Haible  <bruno@clisp.org>
20040
20041         pipe-filter-ii: Fix test failure on AIX and IRIX.
20042         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20043         with EAGAIN, retry with a smaller buffer size.
20044
20045 2011-06-05  Bruno Haible  <bruno@clisp.org>
20046
20047         localename: Fix link dependencies.
20048         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20049         * modules/localename-tests (Makefile.am): Link test-localename with
20050         $(LIBTHREAD).
20051
20052 2011-06-05  Bruno Haible  <bruno@clisp.org>
20053
20054         error: Avoid gcc warning.
20055         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20056
20057 2011-06-05  Bruno Haible  <bruno@clisp.org>
20058
20059         unsetenv: Avoid gcc warning.
20060         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20061
20062 2011-06-05  Bruno Haible  <bruno@clisp.org>
20063
20064         setenv: Avoid gcc warning.
20065         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20066
20067 2011-06-05  Bruno Haible  <bruno@clisp.org>
20068
20069         sys_select: Ensure memset is declared also on AIX 7.
20070         * lib/sys_select.in.h: Include <string.h> also on AIX.
20071         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20072         self-contained also on AIX 7.1.
20073
20074 2011-06-04  Jim Meyering  <meyering@redhat.com>
20075
20076         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20077         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20078         function name, "error".
20079         (_gl_translatable_diag_func_re): New configurable variable.
20080
20081 2011-06-04  Bruno Haible  <bruno@clisp.org>
20082
20083         getopt: Avoid gcc warning.
20084         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20085
20086 2011-06-04  Bruno Haible  <bruno@clisp.org>
20087
20088         strerror_r: Fix comments.
20089         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20090         commit.
20091
20092 2011-06-04  Bruno Haible  <bruno@clisp.org>
20093
20094         perror: Fix compilation error.
20095         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20096         Undefine fprintf, not sprintf.
20097         * modules/perror (Depends-on): Remove intprops, verify.
20098
20099 2011-06-04  Bruno Haible  <bruno@clisp.org>
20100
20101         setlocale: Enable replacement on Cygwin 1.5.
20102         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20103         Cygwin 1.5.x.
20104         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20105         LC_CTYPE category also exists on Cygwin 1.5.x.
20106
20107 2011-06-04  Bruno Haible  <bruno@clisp.org>
20108
20109         strerror-override: Don't disable symbol renamings.
20110         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20111         * lib/strerror-override.c: Include config.h.
20112         (strerror_override): Don't undefine.
20113
20114 2011-06-03  Bruno Haible  <bruno@clisp.org>
20115
20116         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20117         * lib/localename.h: Update copyright header.
20118         * lib/localename.c: Likewise.
20119         * lib/relocatable.h: Likewise.
20120         * lib/relocatable.c: Likewise.
20121
20122 2011-06-02  Bruno Haible  <bruno@clisp.org>
20123
20124         doc: Fix a module name.
20125         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20126
20127 2011-06-02  Bruno Haible  <bruno@clisp.org>
20128
20129         pipe2: Remove dependency on 'nonblocking' module.
20130         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20131         O_NONBLOCK is defined by gnulib.
20132         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20133         is zero.
20134         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20135         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20136         defined by gnulib.
20137         (get_nonblocking_flag): New function.
20138         (main): Test O_NONBLOCK flag only if it is nonzero.
20139         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20140
20141 2011-06-03  Jim Meyering  <meyering@redhat.com>
20142
20143         maint: three new prohibit-header-without-use rules
20144         Prohibit use of cloexec.h, posixver.h, same.h without use.
20145         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20146         (sc_prohibit_posixver_without_use): Likewise.
20147         (sc_prohibit_same_without_use): Likewise.
20148
20149 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20150
20151         allocator: 'die' routine is now given requested size
20152         * lib/allocator.h (struct allocator.die): New size arg.
20153         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20154         If the actual problem is an ssize_t limitation, not a size_t or
20155         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20156
20157 2011-06-01  Eric Blake  <eblake@redhat.com>
20158
20159         strerror: drop strerror_r dependency
20160         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20161         * lib/strerror-override.c (strerror_override): ...to new file.
20162         * lib/strerror-override.h: Add prototype.
20163         * lib/strerror-impl.h: Delete.
20164         * lib/strerror.c (strerror): New implementation.
20165         * modules/errno (Files): Add new files.
20166         (configure.ac): Compile new file as appropriate.
20167         * modules/strerror (Files): Drop unused file.
20168         (Depends-on): Drop strerror_r-posix.
20169         * MODULES.html.sh: Document strerror_r-posix.
20170         Requested by Sam Steingold.
20171
20172         perror: call strerror_r directly
20173         * modules/perror (Files): Drop strerror-impl.h.
20174         * lib/perror.c (perror): Use our own stack buffer, rather than
20175         calling a wrapper that uses static storage.
20176         * doc/posix-functions/perror.texi (perror): Document a limitation
20177         of our replacement.
20178
20179         strerror_r: fix includes for FreeBSD
20180         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20181         since we use abort on some platforms.
20182         Reported by Matthias Bolte.
20183
20184 2011-05-31  Bruno Haible  <bruno@clisp.org>
20185
20186         Fix link errors in tests: openat-die uses gettext-h.
20187         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20188         against $(LIBINTL).
20189         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20190         against $(LIBINTL).
20191         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20192         $(LIBINTL).
20193         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20194         against $(LIBINTL).
20195         * modules/linkat-tests (Makefile.am): Link test-linkat against
20196         $(LIBINTL).
20197         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20198         $(LIBINTL).
20199         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20200         against $(LIBINTL).
20201         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20202         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20203         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20204         $(LIBINTL).
20205         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20206         $(LIBINTL).
20207         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20208         $(LIBINTL).
20209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20210
20211 2011-05-31  Bruno Haible  <bruno@clisp.org>
20212
20213         Fix link errors in tests: wait-process uses gettext-h.
20214         * modules/nonblocking-pipe-tests (Makefile.am): Set
20215         test_nonblocking_pipe_main_LDADD.
20216         * modules/nonblocking-socket-tests (Makefile.am): Link
20217         test-nonblocking-socket-main against $(LIBINTL).
20218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20219
20220 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20221
20222         assert-h: work around 'verify' incompatibility
20223         * lib/verify.h: Use @...@ directives, not ifdef.
20224         * modules/assert-h (assert.h): Implement the directives.
20225         (assert.h): Substitute the symbol-prefix more consistently.
20226
20227 2011-05-29  Jim Meyering  <meyering@redhat.com>
20228
20229         trim: remove three superfluous assignments
20230         * lib/trim.c (trim2): Remove three superfluous assignments
20231         and correct brace positioning.
20232
20233 2011-05-29  Bruno Haible  <bruno@clisp.org>
20234
20235         wctype-h: Avoid namespace pollution on Solaris 2.6.
20236         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20237         identifiers.
20238         * doc/posix-headers/wctype.texi: Mention the problem.
20239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20240
20241 2011-05-28  Jim Meyering  <meyering@redhat.com>
20242
20243         parse-datetime.y: accommodate -Wstrict-overflow
20244         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20245         placate -Wstrict-overflow.
20246
20247         trim: avoid a warning from -O2 -Wstrict-overflow
20248         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20249
20250 2011-05-29  Bruno Haible  <bruno@clisp.org>
20251
20252         gnulib-tool: Fix bug in yesterday's commit.
20253         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20254         twice.
20255
20256 2011-05-29  Bruno Haible  <bruno@clisp.org>
20257
20258         Allow multiple gnulib generated include files to be combined.
20259         * gnulib-tool (func_compute_include_guard_prefix): New function.
20260         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20261         ${gl_include_guard_prefix} references.
20262         (func_import, func_create_testdir): Invoke
20263         func_compute_include_guard_prefix.
20264         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20265         * lib/ctype.in.h: Likewise.
20266         * lib/dirent.in.h: Likewise.
20267         * lib/errno.in.h: Likewise.
20268         * lib/fcntl.in.h: Likewise.
20269         * lib/float.in.h: Likewise.
20270         * lib/getopt.in.h: Likewise.
20271         * lib/iconv.in.h: Likewise.
20272         * lib/langinfo.in.h: Likewise.
20273         * lib/locale.in.h: Likewise.
20274         * lib/math.in.h: Likewise.
20275         * lib/netdb.in.h: Likewise.
20276         * lib/netinet_in.in.h: Likewise.
20277         * lib/poll.in.h: Likewise.
20278         * lib/pthread.in.h: Likewise.
20279         * lib/pty.in.h: Likewise.
20280         * lib/sched.in.h: Likewise.
20281         * lib/se-selinux.in.h: Likewise.
20282         * lib/search.in.h: Likewise.
20283         * lib/signal.in.h: Likewise.
20284         * lib/spawn.in.h: Likewise.
20285         * lib/stdarg.in.h: Likewise.
20286         * lib/stddef.in.h: Likewise.
20287         * lib/stdint.in.h: Likewise.
20288         * lib/stdio.in.h: Likewise.
20289         * lib/stdlib.in.h: Likewise.
20290         * lib/string.in.h: Likewise.
20291         * lib/strings.in.h: Likewise.
20292         * lib/sys_file.in.h: Likewise.
20293         * lib/sys_ioctl.in.h: Likewise.
20294         * lib/sys_select.in.h: Likewise.
20295         * lib/sys_socket.in.h: Likewise.
20296         * lib/sys_stat.in.h: Likewise.
20297         * lib/sys_time.in.h: Likewise.
20298         * lib/sys_times.in.h: Likewise.
20299         * lib/sys_uio.in.h: Likewise.
20300         * lib/sys_utsname.in.h: Likewise.
20301         * lib/sys_wait.in.h: Likewise.
20302         * lib/sysexits.in.h: Likewise.
20303         * lib/termios.in.h: Likewise.
20304         * lib/time.in.h: Likewise.
20305         * lib/unistd.in.h: Likewise.
20306         * lib/wchar.in.h: Likewise.
20307         * lib/wctype.in.h: Likewise.
20308         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20309         * modules/ctype (Makefile.am): Likewise.
20310         * modules/dirent (Makefile.am): Likewise.
20311         * modules/errno (Makefile.am): Likewise.
20312         * modules/fcntl-h (Makefile.am): Likewise.
20313         * modules/float (Makefile.am): Likewise.
20314         * modules/getopt-posix (Makefile.am): Likewise.
20315         * modules/iconv-h (Makefile.am): Likewise.
20316         * modules/langinfo (Makefile.am): Likewise.
20317         * modules/locale (Makefile.am): Likewise.
20318         * modules/math (Makefile.am): Likewise.
20319         * modules/netdb (Makefile.am): Likewise.
20320         * modules/netinet_in (Makefile.am): Likewise.
20321         * modules/poll-h (Makefile.am): Likewise.
20322         * modules/pthread (Makefile.am): Likewise.
20323         * modules/pty (Makefile.am): Likewise.
20324         * modules/sched (Makefile.am): Likewise.
20325         * modules/search (Makefile.am): Likewise.
20326         * modules/selinux-h (Makefile.am): Likewise.
20327         * modules/signal (Makefile.am): Likewise.
20328         * modules/spawn (Makefile.am): Likewise.
20329         * modules/stdarg (Makefile.am): Likewise.
20330         * modules/stddef (Makefile.am): Likewise.
20331         * modules/stdint (Makefile.am): Likewise.
20332         * modules/stdio (Makefile.am): Likewise.
20333         * modules/stdlib (Makefile.am): Likewise.
20334         * modules/string (Makefile.am): Likewise.
20335         * modules/strings (Makefile.am): Likewise.
20336         * modules/sys_file (Makefile.am): Likewise.
20337         * modules/sys_ioctl (Makefile.am): Likewise.
20338         * modules/sys_select (Makefile.am): Likewise.
20339         * modules/sys_socket (Makefile.am): Likewise.
20340         * modules/sys_stat (Makefile.am): Likewise.
20341         * modules/sys_time (Makefile.am): Likewise.
20342         * modules/sys_times (Makefile.am): Likewise.
20343         * modules/sys_uio (Makefile.am): Likewise.
20344         * modules/sys_utsname (Makefile.am): Likewise.
20345         * modules/sys_wait (Makefile.am): Likewise.
20346         * modules/sysexits (Makefile.am): Likewise.
20347         * modules/termios (Makefile.am): Likewise.
20348         * modules/time (Makefile.am): Likewise.
20349         * modules/unistd (Makefile.am): Likewise.
20350         * modules/wchar (Makefile.am): Likewise.
20351         * modules/wctype-h (Makefile.am): Likewise.
20352         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20353
20354 2011-05-29  Bruno Haible  <bruno@clisp.org>
20355
20356         assert-h: Allow multiple gnulib generated replacements to coexist.
20357         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20358
20359 2011-05-29  Bruno Haible  <bruno@clisp.org>
20360
20361         argp: Allow coexistence with strerror_r-posix module.
20362         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20363         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20364         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20365         not the glibc signature.
20366
20367 2011-05-28  Bruno Haible  <bruno@clisp.org>
20368
20369         gnulib-tool: Alternative structure of testdirs, similar to --import.
20370         * gnulib-tool: New option --single-configure.
20371         (func_usage): Document it.
20372         (single_configure): New variable.
20373         (func_modules_transitive_closure_separately,
20374         func_modules_transitive_closure_separately,
20375         func_determine_use_libtests, func_modules_add_dummy_separately,
20376         func_modules_to_filelist_separately): New functions, extracted from
20377         func_import.
20378         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20379         (func_import): Use the new functions.
20380         (func_create_testdir): Set final_modules. Handle $single_configure =
20381         true case.
20382
20383 2011-05-28  Bruno Haible  <bruno@clisp.org>
20384
20385         getloadavg: Remove an unreliable safety check.
20386         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20387         getloadavg.c is in place.
20388         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20389         Reported by Sam Steingold <sds@gnu.org>.
20390
20391 2011-05-28  Bruno Haible  <bruno@clisp.org>
20392
20393         doc: Cleanup yet another file produced by texinfo.tex.
20394         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20395
20396 2011-05-28  Bruno Haible  <bruno@clisp.org>
20397
20398         Finish the conditional dependencies mechanism.
20399         * gnulib-tool: New option --no-conditional-dependencies.
20400         (func_usage): Document it. Don't mark --conditional-dependencies as
20401         experimental.
20402         (cond_dependencies): The possible values can now be true, false, empty.
20403         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20404         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20405         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20406
20407 2011-05-28  Bruno Haible  <bruno@clisp.org>
20408
20409         doc: Use a recent texinfo.tex.
20410         * doc/Makefile (tex_opts): New variable.
20411         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20412
20413 2011-05-28  Jim Meyering  <meyering@redhat.com>
20414
20415         intprops.h: adjust comment to match code change
20416         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20417         only once, it *may* have side effects.  Also fix an unrelated typo.
20418         (_GL_INT_SIGNED): Likewise.
20419
20420 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20421
20422         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20423
20424 2011-05-26  Bruno Haible  <bruno@clisp.org>
20425
20426         mbsrchr: Avoid collision with system function on Interix.
20427         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20428         Reported by Markus Duft <mduft@gentoo.org>.
20429
20430 2011-05-15  James Youngman  <jay@gnu.org>
20431
20432         getopt: for ambiguous options, enumerate the possibilities.
20433         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20434         the ambiguous options when an ambiguous prefix is given. This was
20435         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20436         glibc change was
20437         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20438
20439 2011-05-25  Eric Blake  <eblake@redhat.com>
20440
20441         getcwd: work around mingw bug
20442         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20443         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20444         Reported by Matthias Bolte.
20445
20446 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20447
20448         test-intprops: disable -Wtype-limits diagnostics
20449         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20450         diagnostics.  Otherwise, the integer overflow macros generate many
20451         diagnostics.  Reported by Jim Meyering in
20452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20453
20454         intprops: shorten, to pacify gcc -Woverlength-strings
20455         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20456         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20457         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20458         likely to run afoul of C compiler limits for string constant lengths.
20459         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20460
20461 2011-05-24  Eric Blake  <eblake@redhat.com>
20462
20463         docs: document recently fixed glibc printf bug
20464         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20465         * doc/posix-functions/printf.texi (printf): Likewise.
20466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20468
20469         closein-tests: convert to init.sh
20470         * modules/closein-tests (Files): Add init.sh
20471         * tests/test-closein.sh Use it.
20472
20473         yesno-tests: convert to init.sh
20474         * modules/yesno-tests (Files): Add init.sh.
20475         * tests/test-yesno.sh: Use it.
20476
20477         atexit-tests: ensure reliable exit status
20478         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20479         Reported by Bruno Haible.
20480
20481 2011-05-24  Bruno Haible  <bruno@clisp.org>
20482
20483         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20485         gl_PREREQ_STRERROR_R invocations from here...
20486         * modules/strerror_r-posix (configure.ac): ... to here.
20487
20488 2011-05-24  Eric Blake  <eblake@redhat.com>
20489
20490         strerror_r: fix missing header
20491         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20492
20493         strerror_r: fix AIX test failures
20494         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20495         ERANGE failure.
20496
20497         strerror_r: fix Solaris test failures
20498         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20499         failures.
20500         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20501
20502         strerror_r: enforce POSIX recommendations
20503         * lib/strerror_r.c (safe_copy): New helper method.
20504         (strerror_r): Guarantee a non-empty string.
20505         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20506         recent POSIX rulings and to match our strerror guarantees.
20507         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20508
20509 2011-05-24  Jim Meyering  <meyering@redhat.com>
20510
20511         test-perror2.c: avoid warning about unused variable
20512         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20513
20514 2011-05-24  Eric Blake  <eblake@redhat.com>
20515
20516         perror: avoid spurious test failure on HP-UX
20517         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20518
20519         tests: fix logic bug in init.sh
20520         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20521         shell.
20522
20523 2011-05-24  Jim Meyering  <meyering@redhat.com>
20524
20525         utimensat: do not reference an out-of-scope buffer
20526         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20527         declared in an inner scope, yet "times" would be dereferenced outside
20528         the scope in which "ts" was valid.
20529         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20530         of ts[2] "out/up", so that the use of aliased "times" (via
20531         "times = ts;") does not end up referencing an out-of-scope "ts"
20532
20533         opendir-safer.c: don't clobber errno; don't close negative FD
20534         * lib/opendir-safer.c (opendir_safer):
20535         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20536         file descriptor, and more importantly, don't clobber the
20537         offending errno value with EINVAL.  Before, upon failure
20538         of dup_safer, we would pass the negative file descriptor to
20539         fdopendir, which would clobber errno.
20540
20541 2011-05-23  Bruno Haible  <bruno@clisp.org>
20542
20543         idcache: Fix module description.
20544         * modules/idcache (Include): Set to "idcache.h".
20545
20546 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20547
20548         gnulib-tool: fix portability problem with MacOS sed
20549         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20550         before the "}".  Problem reported by Leo in
20551         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20552         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20553         sed_extract_condition1, sed_extract_condition2.
20554
20555 2011-05-23  Bruno Haible  <bruno@clisp.org>
20556
20557         hash: Simplify autoconf macro.
20558         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20559
20560 2011-05-23  Bruno Haible  <bruno@clisp.org>
20561
20562         getugroups: Fix module description.
20563         * modules/getugroups (Include): Set to "getugroups.h".
20564
20565 2011-05-23  Bruno Haible  <bruno@clisp.org>
20566
20567         linkat: Simplify autoconf macro.
20568         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20569
20570 2011-05-23  Bruno Haible  <bruno@clisp.org>
20571             Eric Blake  <eblake@redhat.com>
20572
20573         linkat, renameat: Update dependencies.
20574         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20575         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20576         symlinkat.
20577
20578 2011-05-23  Jim Meyering  <meyering@redhat.com>
20579
20580         maint.mk: more tight_scope improvements
20581         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20582         (_gl_TS_headers): Define only in if-0'd block.
20583         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20584         sometimes we must *not* use it.  Adjust uses accordingly.
20585         (sc_tight_scope): Use much simpler grep-based test to determine
20586         whether we skip this rule.
20587
20588         maint.mk: generalize/improve the tight-scope rule
20589         * top/maint.mk: Emit a warning when the test is skipped.
20590         (_gl_TS_dir): Add $(srcdir)/ prefix.
20591         (_gl_TS_function_match): Simplify, rather than trying
20592         to enumerate common types.  Otherwise, it would fail to match an
20593         "extern unsigned char const *" declaration in idutils.
20594         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20595         a way to support use of that type of macro.
20596         (_gl_TS_var_match): Simplify regexp.
20597         (_gl_TS_obj_files): New configurable variable.
20598         (_gl_TS_headers): Likewise.
20599
20600 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20601
20602         verify: fix bug when gnulib <assert.h> is also included
20603         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20604         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20605         Perhaps there's a better way, but this fixes the immediate problem.
20606         Problem reported by Bruno Haible in
20607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20608
20609 2011-05-22  Bruno Haible  <bruno@clisp.org>
20610
20611         xgetcwd: Simplify autoconf macro.
20612         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20613
20614 2011-05-22  Bruno Haible  <bruno@clisp.org>
20615
20616         New module 'mktime-internal'.
20617         * modules/mktime-internal: New file.
20618         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20619         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20620         mktime_internal as a C macro if libc has __mktime_internal.
20621         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20622         conditions.
20623         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20624
20625 2011-05-22  Bruno Haible  <bruno@clisp.org>
20626
20627         timegm: Correct mktime replacement statements.
20628         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20629         defining mktime as a C macro. This completes a 2009-07-28 commit.
20630
20631 2011-05-22  Bruno Haible  <bruno@clisp.org>
20632
20633         timegm: Simplify autoconf macro.
20634         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20635
20636 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20637
20638         clock-time: change to LGPLv2+.
20639         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20640         BSD-like but we have no mark for that; this is good enough for now.
20641
20642 2011-05-21  Bruno Haible  <bruno@clisp.org>
20643
20644         strerror_r: Fix comments.
20645         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20646
20647 2011-05-21  Bruno Haible  <bruno@clisp.org>
20648
20649         relocatable-prog-wrapper: Fix possible link error.
20650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20651         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20652         (gl_FUNC_SETENV): ... to here.
20653         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20654         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20655
20656 2011-05-21  Bruno Haible  <bruno@clisp.org>
20657
20658         relocatable-prog-wrapper: Assume strerror() exists.
20659         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20660         m4/strerror.m4.
20661         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20662         * lib/relocwrapper.c: Remove mention of strerror module.
20663         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20664         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20665         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20666         C macro.
20667
20668 2011-05-21  Bruno Haible  <bruno@clisp.org>
20669
20670         select: Simplify replacement idiom.
20671         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20672         Win32 platforms.
20673         * lib/sys_select.in.h (select): Simplify accordingly.
20674         * modules/select (Depends-on): Likewise.
20675
20676 2011-05-21  Bruno Haible  <bruno@clisp.org>
20677
20678         mkdir-p: Simplify autoconf macro.
20679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20680         gl_FUNC_LCHOWN.
20681
20682 2011-05-21  Eric Blake  <eblake@redhat.com>
20683
20684         strerror_r: avoid clobbering strerror on cygwin
20685         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20686         fall back instead to sys_errlist.
20687         * modules/strerror (configure.ac): Add witness.
20688         * tests/test-strerror_r.c (main): Enhance test.
20689         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20690         * tests/test-perror2.c (main): Free memory before exit.
20691
20692 2011-05-21  Bruno Haible  <bruno@clisp.org>
20693
20694         mkdtemp: Use gnulib naming conventions.
20695         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20696         * modules/mkdtemp (configure.ac): Update.
20697
20698 2011-05-20  Eric Blake  <eblake@redhat.com>
20699
20700         strerror_r: avoid corrupting errno on Solaris
20701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20702         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20703
20704         strerror_r: avoid compiler warning
20705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20706
20707         strerror_r: simplify AIX code
20708         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20709
20710         test-perror: avoid spurious failure on FreeBSD
20711         * modules/perror-tests (Depends-on): Add strerror, now that
20712         strerror_r no longer pulls it in.
20713
20714 2011-05-20  Bruno Haible  <bruno@clisp.org>
20715
20716         strerror_r-posix: Remove unused dependencies.
20717         * modules/strerror_r-posix (Depends-on): Remove strerror.
20718         Reported by Eric Blake.
20719
20720 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20721
20722         intprops: remove assumption about A|B representation
20723         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20724         is a valid integer if both A and B are.  Although this is true for
20725         all known practical hosts, the C standard doesn't guarantee it,
20726         and the code need not assume it.  Also, this change may work around
20727         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20729
20730 2011-05-20  Eric Blake  <eblake@redhat.com>
20731
20732         perror: work around FreeBSD bug
20733         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20734         is broken.  Move AC_LIBOBJ...
20735         * modules/perror (configure.ac): Here.
20736         * doc/posix-functions/perror.texi (perror): Document this.
20737         * tests/test-perror2.c (main): Enhance test.
20738
20739         test-perror: check for strerror interactions
20740         * tests/macros.h (STREQ): Add macro.
20741         * modules/perror-tests (Files): Add second test.
20742         * tests/test-perror2.c (main): New file.
20743         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20744
20745         test-perror: rewrite to use init script
20746         * modules/perror-tests (Files): Add init.sh.
20747         * tests/test-perror.sh: Use temporary directory.
20748
20749 2011-05-20  Jim Meyering  <meyering@redhat.com>
20750
20751         maint: replace misused "a" with "an"
20752         * doc/intprops.texi: "a integer"
20753         * doc/regex.texi: "a explanation"
20754         * lib/alignof.h: "a object"
20755         * lib/argmatch.h: "a explanation"
20756         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20757         * lib/stdint.in.h: "a integer"
20758         * lib/userspec.c: "a owner"
20759         * doc/gnulib.texi: Fix "a idea", and reword.
20760
20761 2011-05-19  Jim Meyering  <meyering@redhat.com>
20762
20763         maint: correct misuse of "a" and "an"
20764         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20765         * lib/argp-help.c: "an docum...": s/an/a/
20766         * lib/argp-parse.c: "An vector": s/An/A/
20767         * lib/execute.c: "an native": s/an/a/
20768         * lib/spawn-pipe.c: Likewise.
20769         * lib/gc.h: "an Gc_rc": s/an/a/
20770         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20771         * lib/fts.c: "an stat.st_dev": s/an/a/
20772
20773 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20774
20775         intprops-tests: work around HP-UX 11.23 cc bug with constants
20776         * tests/test-intprops.c (VERIFY): New macro.
20777         (main): Use it, instead of verify, to work around the compiler bug; see
20778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20779
20780         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20781         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20782         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20783         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20784         (_GL_REMAINDER_OVERFLOW): Use it.
20785
20786         intprops-tests: revert unsigned part of previous change
20787         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20788         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20789         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20791
20792 2011-05-19  Bruno Haible  <bruno@clisp.org>
20793
20794         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20795         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20796         strerror_r() returned without filling the buffer.
20797         Reported by Eric Blake.
20798
20799 2011-05-19  Eric Blake  <eblake@redhat.com>
20800
20801         strerror_r: guarantee unchanged errno
20802         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20803         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20804         failure.
20805         * tests/test-strerror_r.c (main): Enhance test.
20806
20807 2011-05-19  Bruno Haible  <bruno@clisp.org>
20808
20809         strerror_r: Reorder #if blocks.
20810         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20811         for consistency with the previous commit.
20812
20813 2011-05-19  Bruno Haible  <bruno@clisp.org>
20814
20815         perror: Avoid clobbering the strerror buffer when possible.
20816         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20817         * lib/strerror.c: Include it.
20818         * modules/strerror (Files): Add lib/strerror-impl.h.
20819         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20820         (my_strerror): New function, defined through lib/strerror-impl.h.
20821         (perror): Use it instead of strerror.
20822         * modules/perror (Files): Add lib/strerror-impl.h.
20823         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20824
20825 2011-05-19  Eric Blake  <eblake@redhat.com>
20826
20827         strerror_r: fix on newer cygwin
20828         * lib/strerror_r.c (strerror_r): Cygwin now has
20829         __xpg_strerror_r, use it.
20830
20831 2011-05-19  Bruno Haible  <bruno@clisp.org>
20832
20833         strerror_r: Avoid clobbering the strerror buffer when possible.
20834         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20835         (sys_nerr, sys_errlist): New declarations.
20836         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20837         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20838         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20839
20840 2011-05-19  Bruno Haible  <bruno@clisp.org>
20841
20842         strerror_r: Fix test failure on mingw.
20843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20844         EXTEND_STRERROR_R.
20845         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20846         macros from errno.in.h instead.
20847
20848 2011-05-19  Eric Blake  <eblake@redhat.com>
20849
20850         strerror: relax test for Solaris
20851         * tests/test-strerror.c (main): Permit Solaris behavior.
20852         * tests/test-strerror_r.c (main): Likewise.
20853
20854         strerror: enforce POSIX ruling on strerror(0)
20855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20857         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20858         * doc/posix-functions/strerror.texi (strerror): Document it.
20859         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20860         * tests/test-strerror.c (main): Strengthen test.
20861         * tests/test-strerror_r.c (main): Likewise.
20862
20863 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20864
20865         intprop-tests: port to older and more-pedantic compilers
20866         * modules/intprops-tests (Files): Add tests/macros.h.
20867         * tests/test-intprops.c: Include macros.h.
20868         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20869         it's no longer documented to expand to an integer constant expression.
20870         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20871         argument is floating point, as it's no longer documented to expand
20872         to an integer constant expression in that case.
20873         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20874         compiler bugs reported by Bruno Haible.  See
20875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20876         (U0, U1): New constants, to work around the same bugs.  Also,
20877         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20878
20879         intprops: work around C compiler bugs
20880         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20881         bug in Sun C 5.11 2010/08/13 and other compilers; see
20882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20883
20884         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20885         * doc/intprops.texi (Integer Type Determination): Fix
20886         documentation for TYPE_IS_INTEGER: it returns an constant
20887         expression, not an integer constant expression.  Fix doc for
20888         TYPE_SIGNED: it returns an integer constant expression only if its
20889         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20890         hardly worth documented that way....)
20891
20892 2011-05-18  Bruno Haible  <bruno@clisp.org>
20893
20894         strerror_r: Avoid clobbering the strerror buffer when possible.
20895         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20896         Handle gnulib defined errno values here. When strerror() returns NULL
20897         or an empty string, return EINVAL.
20898         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20899         gnulib defined errno values here.
20900         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20901
20902 2011-05-18  Eric Blake  <eblake@redhat.com>
20903
20904         fnmatch: avoid compiler warning
20905         * lib/fnmatch_loop.c (FCT): Use correct type.
20906         Reported by Matthias Bolte.
20907
20908 2011-05-13  Jim Meyering  <meyering@redhat.com>
20909
20910         maint.mk: three new prohibit_<HDR>_without_use rules
20911         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20912         (sc_prohibit_stdio-safer_without_use): Likewise.
20913         (sc_prohibit_xfreopen_without_use): Likewise.
20914
20915 2011-05-17  Jim Meyering  <meyering@redhat.com>
20916
20917         announce-gen: fail if the NEWS delta is empty
20918         If there's nothing noteworthy in NEWS, then either you forgot
20919         or you shouldn't be releasing.
20920         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20921
20922 2011-05-17  Pádraig Brady <P@draigBrady.com>
20923
20924         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20925         reserved symbols starting with double underscore from the check.
20926
20927 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20928
20929         intprops: add doc
20930         * doc/intprops.texi: New file, documenting intprops.
20931         * doc/gnulib.texi (Particular Modules): Include it.
20932
20933         verify: add doc to gnulib manual and fix example
20934         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20935         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20936         (Compile-time Assertions): Fix example so it can't overflow.
20937
20938 2011-05-17  Jim Meyering  <meyering@redhat.com>
20939
20940         warnings.m4: don't usurp save_CPPFLAGS variable name
20941         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20942
20943         doc: fix typo
20944         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20945
20946 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20947             Bruno Haible  <bruno@clisp.org>
20948
20949         doc: Tweak recent change.
20950         * README (Portability guidelines): Tweak new text.
20951         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20952         Interix 6.1.
20953
20954 2011-05-16  Eric Blake  <eblake@redhat.com>
20955
20956         inttypes: avoid autoconf warning
20957         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20958         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20959
20960 2011-05-16  Sam Steingold <sds@gnu.org>
20961         and Eric Blake  <eblake@redhat.com>
20962
20963         vc-list-files: accept multiple directory operands
20964         * build-aux/vc-list-files: Iterate over all remaining operands.
20965
20966 2011-05-16  Bruno Haible  <bruno@clisp.org>
20967
20968         Fix confusion regarding deprecated modules.
20969         * modules/calloc (Status, Notice): Mark module as deprecated, not
20970         obsolete.
20971         * modules/fnmatch-posix (Status, Notice): Likewise.
20972         * modules/getdate (Status, Notice): Likewise.
20973         * modules/getopt (Status, Notice): Likewise.
20974         * modules/malloc (Status, Notice): Likewise.
20975         * modules/pipe (Status, Notice): Likewise.
20976         * modules/realloc (Status, Notice): Likewise.
20977         * modules/rename-dest-slash (Status, Notice): Likewise.
20978         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20979         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20980         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20981         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20982         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20983
20984 2011-05-16  Bruno Haible  <bruno@clisp.org>
20985
20986         doc: List the target platforms.
20987         * doc/gnulib-intro.texi (Target Platforms): New section.
20988         * doc/gnulib.texi (Introduction): Update menu.
20989         * README (Portability guidelines): Refer to the new section. Update
20990         statement about oldest supported environment. Remove rationale why
20991         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20992         unportable C89 function.
20993         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20994         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20995
20996 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20997
20998         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20999
21000 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21001
21002         intprops-tests: new module
21003         * modules/intprops-tests, tests/test-intprops.c: New files.
21004
21005         intprops: add safe, portable integer overflow checking
21006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21007         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21008         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21009         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21010         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21011         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21012         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21013         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21014         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21015         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21016         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21017
21018 2011-05-12  James Youngman  <jay@gnu.org>
21019
21020         Add a test for glibc's Bugzilla bug #12378.
21021         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21022         doesn't allow the literal matching of a lone "[" (which is
21023         required by POSIX).
21024         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21025
21026 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21027
21028         Sync glibc change fixing Bugzilla bug #12378.
21029         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21030         beginning and fall back to matching as normal character if the
21031         string ends before the matching ']' is found.  This is what POSIX
21032         requires.
21033
21034 2011-05-13  Eric Blake  <eblake@redhat.com>
21035
21036         getcwd-lgpl: relax test for FreeBSD
21037         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21038         issue.
21039         * tests/test-getcwd-lgpl.c (main): Relax test.
21040         Reported by Matthias Bolte.
21041
21042 2011-05-11  Eric Blake  <eblake@redhat.com>
21043
21044         test-fflush: silence compiler warning
21045         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21046
21047 2011-05-11  Bruno Haible  <bruno@clisp.org>
21048
21049         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21050         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21051         * modules/canonicalize (Depends-on): Add 'nocrash'.
21052         * modules/canonicalize-lgpl (Depends-on): Likewise.
21053         * doc/posix-functions/realpath.texi: Update platforms list.
21054         Reported by Ryan Schmidt <ryandesign@macports.org>.
21055
21056 2011-05-11  Bruno Haible  <bruno@clisp.org>
21057
21058         group-member: Declare function in <unistd.h>.
21059         * lib/unistd.in.h (group_member): New declaration.
21060         * lib/group-member.h: Remove file.
21061         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21062         * tests/test-unistd-c++.cc: Check signature of group_member.
21063         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21064         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21065         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21066         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21067         HAVE_GROUP_MEMBER.
21068         * modules/group-member (Files): Remove lib/group-member.h.
21069         (Depends-on): Add unistd. Specify conditions.
21070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21071         (Include): Change to <unistd.h>.
21072         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21073         HAVE_GROUP_MEMBER.
21074         * NEWS: Mention the change.
21075         * lib/euidaccess.c: Don't include group-member.h.
21076
21077 2011-05-11  Bruno Haible  <bruno@clisp.org>
21078
21079         group-member: Document module.
21080         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21081         module.
21082
21083 2011-05-11  Bruno Haible  <bruno@clisp.org>
21084
21085         fclose: Fix mistake earlier today.
21086         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21087
21088 2011-05-11  Eric Blake  <eblake@redhat.com>
21089
21090         fclose: preserve fflush errors
21091         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21092         Reported by Jim Meyering.
21093
21094         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21095         * build-aux/bootstrap (check_versions): When no specific version
21096         is required, merely check that the app produces an exit status
21097         that indicates its existence.
21098
21099         maint.mk: drop redundant check
21100         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21101         the same but better.
21102
21103 2011-05-11  Bruno Haible  <bruno@clisp.org>
21104
21105         fclose: Fix possible link error.
21106         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21107         unregister_shadow_fd. Improve comments.
21108         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21109         Eric Blake.
21110
21111 2011-05-11  Jim Meyering  <meyering@redhat.com>
21112
21113         maint.mk: improve "can not" detection and generalize rule name
21114         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21115         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21116         Use the same technique as in sc_prohibit_doubled_word, so that
21117         we recognize "can not" also when the words are separated by a newline.
21118         Suggested by Eric Blake.
21119         (perl_filename_lineno_text_): Define.  Factored out of...
21120         (prohibit_doubled_word_): ...here.  Use the new definition.
21121         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21122         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21123         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21124
21125 2011-05-10  Eric Blake  <eblake@redhat.com>
21126
21127         fclose: avoid double close race when possible
21128         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21129         all but WINDOWS_SOCKETS.
21130
21131 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21132
21133         openat: correct new comment
21134         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21135
21136 2011-05-10  Jim Meyering  <meyering@redhat.com>
21137
21138         openat: add comments
21139         * lib/openat-proc.c (openat_proc_name): Add comments,
21140         mostly from Eric Blake.
21141
21142 2011-05-09  Eric Blake  <eblake@redhat.com>
21143
21144         openat: reduce syscalls in first probe of /proc
21145         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21146         be a directory.  Simplify the probe for .. bugs.
21147         * modules/openat (Depends-on): Drop same-inode.
21148         Reported by Bastien ROUCARIES.
21149
21150 2011-05-09  Jim Meyering  <meyering@redhat.com>
21151
21152         maint.mk: change semantics/name of tight_scope variables
21153         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21154         Rename variables to align with semantics that make them more useful.
21155
21156         maint.mk: tweak new rule's name not to impinge
21157         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21158         (sc_tight_scope): Use new rule name rather than $@-0.
21159
21160         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21161         * top/maint.mk (sc_tight_scope): New rule.
21162         (sc_tight_scope-0): New rule, ifdef'd out.
21163         (_gl_TS_dir): Default.
21164         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21165         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21166
21167 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21168
21169         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21170         Haible <bruno@clisp.org>.
21171
21172 2011-05-08  Bruno Haible  <bruno@clisp.org>
21173
21174         Comments.
21175         * m4/isnanf.m4: Add comment.
21176         * m4/isnanl.m4: Likewise.
21177
21178 2011-05-08  Bruno Haible  <bruno@clisp.org>
21179
21180         glob: Remove obsolete macro.
21181         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21182
21183 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21184
21185         intprops: Sun C 5.11 supports __typeof__
21186         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21187         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21188         which is new.
21189         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21190
21191         intprops: switch to usual gnulib indenting and naming
21192         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21193         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21194
21195         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21196
21197 2011-05-08  Jim Meyering  <meyering@redhat.com>
21198
21199         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21200         * top/maint.mk (release-prep): Use make's --no-print-directory
21201         option when generating the announcement.  This eliminates the
21202         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21203         generated announcement template.
21204
21205 2011-05-08  Bruno Haible  <bruno@clisp.org>
21206
21207         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21208         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21209         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21210
21211 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         ignore-value, verify: Omit include files from lib_SOURCES.
21214         * modules/ignore-value, modules/verify (Makefile.am):
21215         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21216         that leads Automake to duplicate use of am__objects_... variables
21217         in Makefile.in.  See
21218         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21219
21220 2011-05-07  Bruno Haible  <bruno@clisp.org>
21221
21222         fclose: Simplify autoconf macro.
21223         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21224         defined.
21225
21226 2011-05-07  Bruno Haible  <bruno@clisp.org>
21227
21228         canonicalize-lgpl: Fix autoconf macro ordering bug.
21229         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21230         gl_STDLIB_H_DEFAULTS.
21231
21232 2011-05-06  Eric Blake  <eblake@redhat.com>
21233
21234         maintainer-makefile: make sc_po_check easier to tune
21235         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21236         to probe for strings, such as an alternate location for gnulib.
21237
21238         fclose: guarantee behavior on seekable stdin
21239         * modules/fclose (Depends-on): Add fflush.
21240         * doc/posix-functions/fclose.texi (fclose): Document this.
21241         * tests/test-fclose.c (main): Make test for this unconditional.
21242
21243 2011-05-06  Bruno Haible  <bruno@clisp.org>
21244
21245         fflush, fpurge: Relicense under LGPLv2+.
21246         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21247         * modules/fpurge (License): Likewise.
21248         With permission from Eric Blake and Jim Meyering.
21249         Suggested by Eric Blake.
21250
21251 2011-05-06  Karl Berry  <karl@gnu.org>
21252
21253         * MODULES.html.sh (func_all_modules): remove exit.
21254
21255 2011-05-06  Jim Meyering  <meyering@redhat.com>
21256
21257         maint.mk: use info-gnu@ as the default only for a stable release
21258         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21259         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21260         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21262
21263 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21264
21265         assert-h: new module, which supports C1X-style static_assert
21266         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21267         * lib/verify.h: Revamp so that this can be copied into assert.h,
21268         while retaining the ability to use it standalone as before.
21269         Rename private identifiers so as not to encroach on the
21270         standard C namespace, since this is now used by assert.h.
21271         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21272         the old verify_true.
21273         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21274         the old verify_true.  Use _GL_VERIFY_TYPE.
21275         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21276         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21277         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21278         defined when this file is copied into the replacement assert.h.
21279         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21280         and _Static_assert is not built in.
21281         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21282         defined, and use the new macros mentioned above.
21283         * doc/posix-headers/assert.texi: Document this.
21284
21285 2011-05-05  Bruno Haible  <bruno@clisp.org>
21286
21287         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21288         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21289         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21290         gl_REPLACE_FCLOSE here.
21291         * modules/fflush (Depends-on): Remove fclose.
21292         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21293         combination with module 'fclose'.
21294
21295 2011-05-05  Bruno Haible  <bruno@clisp.org>
21296
21297         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21298         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21299         gl_FUNC_FFLUSH.
21300         (gl_FUNC_FFLUSH): Use it.
21301         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21303         gl_REPLACE_FSEEKO here.
21304
21305 2011-05-05  Bruno Haible  <bruno@clisp.org>
21306
21307         tzset: Relicense under LGPL.
21308         * modules/tzset (License): Change to LGPL.
21309         No agreement needed; it's a no-op.
21310
21311         strtoimax, strtoumax: Relicense under LGPL.
21312         * modules/strtoimax (License): Change to LGPL.
21313         * modules/strtoumax (License): Likewise.
21314         With permission from Jim Meyering, Paul Eggert:
21315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21317
21318         getgroups: Relicense under LGPL.
21319         * modules/getgroups (License): Change to LGPL.
21320         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21324
21325         nanosleep: Relicense under LGPL.
21326         * modules/nanosleep (License): Change to LGPL.
21327         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21328         Haible:
21329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21333
21334         futimens: Relicense under LGPL.
21335         * modules/futimens (License): Change to LGPL.
21336         With permission from Eric Blake:
21337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21338
21339         fflush: Relicense under LGPL.
21340         * modules/fflush (License): Change to LGPL.
21341         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21345
21346         tmpfile: Relicense under LGPL.
21347         * modules/tmpfile (License): Change to LGPL.
21348         With permission from Ben Pfaff:
21349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21350
21351         isfinite: Relicense under LGPL.
21352         * modules/isfinite (License): Change to LGPL.
21353         With permission from Ben Pfaff, Bruno Haible:
21354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21356
21357         acosl..tanl: Relicense under LGPL.
21358         * modules/acosl (License): Change to LGPL.
21359         * modules/asinl (License): Likewise.
21360         * modules/atanl (License): Likewise.
21361         * modules/cosl (License): Likewise.
21362         * modules/expl (License): Likewise.
21363         * modules/logl (License): Likewise.
21364         * modules/sinl (License): Likewise.
21365         * modules/sqrtl (License): Likewise.
21366         * modules/tanl (License): Likewise.
21367         Source code originally from glibc and Paolo Bonzini. Agreements:
21368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21370
21371 2011-05-05  Bruno Haible  <bruno@clisp.org>
21372
21373         signal: Define sighandler_t.
21374         * lib/signal.in.h (sighandler_t): New type.
21375         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21376         whether sighandler_t is defined.
21377         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21378         * modules/signal (Depends-on): Add extensions.
21379         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21380         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21381         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21382
21383 2011-05-05  Eric Blake  <eblake@redhat.com>
21384
21385         maint: remove useless REPLACE_*_H macros
21386         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21387         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21388         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21389         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21390         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21391         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21392         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21393         * m4/btowc.m4: Update callers.
21394         * m4/dirfd.m4: Likewise.
21395         * m4/duplocale.m4: Likewise.
21396         * m4/fchdir.m4: Likewise.
21397         * m4/fdopendir.m4: Likewise.
21398         * m4/inet_ntop.m4: Likewise.
21399         * m4/inet_pton.m4: Likewise.
21400         * m4/ioctl.m4: Likewise.
21401         * m4/mbrlen.m4: Likewise.
21402         * m4/mbrtowc.m4: Likewise.
21403         * m4/mbsinit.m4: Likewise.
21404         * m4/mbsnrtowcs.m4: Likewise.
21405         * m4/mbsrtowcs.m4: Likewise.
21406         * m4/poll.m4: Likewise.
21407         * m4/setlocale.m4: Likewise.
21408         * m4/wcrtomb.m4: Likewise.
21409         * m4/wcsnrtombs.m4: Likewise.
21410         * m4/wcsrtombs.m4: Likewise.
21411         * m4/wctob.m4: Likewise.
21412         * m4/wcwidth.m4: Likewise.
21413         * modules/posix_spawn: Likewise.
21414         * modules/posix_spawn_file_actions_addclose: Likewise.
21415         * modules/posix_spawn_file_actions_adddup2: Likewise.
21416         * modules/posix_spawn_file_actions_addopen: Likewise.
21417         * modules/posix_spawn_file_actions_destroy: Likewise.
21418         * modules/posix_spawn_file_actions_init: Likewise.
21419         * modules/posix_spawnattr_destroy: Likewise.
21420         * modules/posix_spawnattr_getflags: Likewise.
21421         * modules/posix_spawnattr_getpgroup: Likewise.
21422         * modules/posix_spawnattr_getschedparam: Likewise.
21423         * modules/posix_spawnattr_getschedpolicy: Likewise.
21424         * modules/posix_spawnattr_getsigdefault: Likewise.
21425         * modules/posix_spawnattr_getsigmask: Likewise.
21426         * modules/posix_spawnattr_init: Likewise.
21427         * modules/posix_spawnattr_setflags: Likewise.
21428         * modules/posix_spawnattr_setpgroup: Likewise.
21429         * modules/posix_spawnattr_setschedparam: Likewise.
21430         * modules/posix_spawnattr_setschedpolicy: Likewise.
21431         * modules/posix_spawnattr_setsigdefault: Likewise.
21432         * modules/posix_spawnattr_setsigmask: Likewise.
21433         * modules/posix_spawnp: Likewise.
21434
21435 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21436
21437         Add option to do-release-commit-and-tag to specify branch.
21438         * build-aux/do-release-commit-and-tag: Add --branch.
21439
21440 2011-05-03  Bruno Haible  <bruno@clisp.org>
21441
21442         Avoid unnecessary compilation units, through conditional dependencies.
21443         * modules/accept (Depends-on): Add conditions to the dependencies.
21444         * modules/acosl (Depends-on): Likewise.
21445         * modules/argz (Depends-on): Likewise.
21446         * modules/asinl (Depends-on): Likewise.
21447         * modules/atanl (Depends-on): Likewise.
21448         * modules/atoll (Depends-on): Likewise.
21449         * modules/bind (Depends-on): Likewise.
21450         * modules/btowc (Depends-on): Likewise.
21451         * modules/canonicalize-lgpl (Depends-on): Likewise.
21452         * modules/ceil (Depends-on): Likewise.
21453         * modules/ceilf (Depends-on): Likewise.
21454         * modules/ceill (Depends-on): Likewise.
21455         * modules/chdir-long (Depends-on): Likewise.
21456         * modules/chown (Depends-on): Likewise.
21457         * modules/close (Depends-on): Likewise.
21458         * modules/connect (Depends-on): Likewise.
21459         * modules/cosl (Depends-on): Likewise.
21460         * modules/dirfd (Depends-on): Likewise.
21461         * modules/dprintf (Depends-on): Likewise.
21462         * modules/dprintf-posix (Depends-on): Likewise.
21463         * modules/error (Depends-on): Likewise.
21464         * modules/euidaccess (Depends-on): Likewise.
21465         * modules/expl (Depends-on): Likewise.
21466         * modules/faccessat (Depends-on): Likewise.
21467         * modules/fchdir (Depends-on): Likewise.
21468         * modules/fclose (Depends-on): Likewise.
21469         * modules/fcntl (Depends-on): Likewise.
21470         * modules/fdopendir (Depends-on): Likewise.
21471         * modules/fflush (Depends-on): Likewise.
21472         * modules/floor (Depends-on): Likewise.
21473         * modules/floorf (Depends-on): Likewise.
21474         * modules/floorl (Depends-on): Likewise.
21475         * modules/fnmatch (Depends-on): Likewise.
21476         * modules/fopen (Depends-on): Likewise.
21477         * modules/fprintf-posix (Depends-on): Likewise.
21478         * modules/frexp (Depends-on): Likewise.
21479         * modules/frexp-nolibm (Depends-on): Likewise.
21480         * modules/frexpl (Depends-on): Likewise.
21481         * modules/frexpl-nolibm (Depends-on): Likewise.
21482         * modules/fseek (Depends-on): Likewise.
21483         * modules/fsusage (Depends-on): Likewise.
21484         * modules/ftell (Depends-on): Likewise.
21485         * modules/ftello (Depends-on): Likewise.
21486         * modules/futimens (Depends-on): Likewise.
21487         * modules/getcwd (Depends-on): Likewise.
21488         * modules/getcwd-lgpl (Depends-on): Likewise.
21489         * modules/getdelim (Depends-on): Likewise.
21490         * modules/getdomainname (Depends-on): Likewise.
21491         * modules/getgroups (Depends-on): Likewise.
21492         * modules/gethostname (Depends-on): Likewise.
21493         * modules/getline (Depends-on): Likewise.
21494         * modules/getlogin_r (Depends-on): Likewise.
21495         * modules/getopt-posix (Depends-on): Likewise.
21496         * modules/getpeername (Depends-on): Likewise.
21497         * modules/getsockname (Depends-on): Likewise.
21498         * modules/getsockopt (Depends-on): Likewise.
21499         * modules/getsubopt (Depends-on): Likewise.
21500         * modules/getusershell (Depends-on): Likewise.
21501         * modules/glob (Depends-on): Likewise.
21502         * modules/grantpt (Depends-on): Likewise.
21503         * modules/iconv_open (Depends-on): Likewise.
21504         * modules/iconv_open-utf (Depends-on): Likewise.
21505         * modules/inet_ntop (Depends-on): Likewise.
21506         * modules/inet_pton (Depends-on): Likewise.
21507         * modules/ioctl (Depends-on): Likewise.
21508         * modules/isapipe (Depends-on): Likewise.
21509         * modules/isfinite (Depends-on): Likewise.
21510         * modules/isinf (Depends-on): Likewise.
21511         * modules/lchown (Depends-on): Likewise.
21512         * modules/ldexpl (Depends-on): Likewise.
21513         * modules/link (Depends-on): Likewise.
21514         * modules/linkat (Depends-on): Likewise.
21515         * modules/listen (Depends-on): Likewise.
21516         * modules/logl (Depends-on): Likewise.
21517         * modules/lstat (Depends-on): Likewise.
21518         * modules/mbrlen (Depends-on): Likewise.
21519         * modules/mbrtowc (Depends-on): Likewise.
21520         * modules/mbsinit (Depends-on): Likewise.
21521         * modules/mbsnrtowcs (Depends-on): Likewise.
21522         * modules/mbsrtowcs (Depends-on): Likewise.
21523         * modules/mbtowc (Depends-on): Likewise.
21524         * modules/memcmp (Depends-on): Likewise.
21525         * modules/mkdir (Depends-on): Likewise.
21526         * modules/mkdtemp (Depends-on): Likewise.
21527         * modules/mkfifo (Depends-on): Likewise.
21528         * modules/mkfifoat (Depends-on): Likewise.
21529         * modules/mknod (Depends-on): Likewise.
21530         * modules/mkostemp (Depends-on): Likewise.
21531         * modules/mkostemps (Depends-on): Likewise.
21532         * modules/mkstemp (Depends-on): Likewise.
21533         * modules/mkstemps (Depends-on): Likewise.
21534         * modules/mktime (Depends-on): Likewise.
21535         * modules/nanosleep (Depends-on): Likewise.
21536         * modules/open (Depends-on): Likewise.
21537         * modules/openat (Depends-on): Likewise.
21538         * modules/perror (Depends-on): Likewise.
21539         * modules/poll (Depends-on): Likewise.
21540         * modules/popen (Depends-on): Likewise.
21541         * modules/posix_spawn (Depends-on): Likewise.
21542         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21543         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21544         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21545         * modules/posix_spawnp (Depends-on): Likewise.
21546         * modules/pread (Depends-on): Likewise.
21547         * modules/printf-posix (Depends-on): Likewise.
21548         * modules/ptsname (Depends-on): Likewise.
21549         * modules/putenv (Depends-on): Likewise.
21550         * modules/pwrite (Depends-on): Likewise.
21551         * modules/readline (Depends-on): Likewise.
21552         * modules/readlink (Depends-on): Likewise.
21553         * modules/readlinkat (Depends-on): Likewise.
21554         * modules/recv (Depends-on): Likewise.
21555         * modules/recvfrom (Depends-on): Likewise.
21556         * modules/regex (Depends-on): Likewise.
21557         * modules/remove (Depends-on): Likewise.
21558         * modules/rename (Depends-on): Likewise.
21559         * modules/renameat (Depends-on): Likewise.
21560         * modules/rmdir (Depends-on): Likewise.
21561         * modules/round (Depends-on): Likewise.
21562         * modules/roundf (Depends-on): Likewise.
21563         * modules/roundl (Depends-on): Likewise.
21564         * modules/rpmatch (Depends-on): Likewise.
21565         * modules/select (Depends-on): Likewise.
21566         * modules/send (Depends-on): Likewise.
21567         * modules/sendto (Depends-on): Likewise.
21568         * modules/setenv (Depends-on): Likewise.
21569         * modules/setlocale (Depends-on): Likewise.
21570         * modules/setsockopt (Depends-on): Likewise.
21571         * modules/shutdown (Depends-on): Likewise.
21572         * modules/sigaction (Depends-on): Likewise.
21573         * modules/signbit (Depends-on): Likewise.
21574         * modules/sigprocmask (Depends-on): Likewise.
21575         * modules/sinl (Depends-on): Likewise.
21576         * modules/sleep (Depends-on): Likewise.
21577         * modules/snprintf (Depends-on): Likewise.
21578         * modules/snprintf-posix (Depends-on): Likewise.
21579         * modules/socket (Depends-on): Likewise.
21580         * modules/sprintf-posix (Depends-on): Likewise.
21581         * modules/sqrtl (Depends-on): Likewise.
21582         * modules/stat (Depends-on): Likewise.
21583         * modules/strchrnul (Depends-on): Likewise.
21584         * modules/strdup-posix (Depends-on): Likewise.
21585         * modules/strerror (Depends-on): Likewise.
21586         * modules/strerror_r-posix (Depends-on): Likewise.
21587         * modules/strndup (Depends-on): Likewise.
21588         * modules/strnlen (Depends-on): Likewise.
21589         * modules/strptime (Depends-on): Likewise.
21590         * modules/strsep (Depends-on): Likewise.
21591         * modules/strsignal (Depends-on): Likewise.
21592         * modules/strstr-simple (Depends-on): Likewise.
21593         * modules/strtod (Depends-on): Likewise.
21594         * modules/strtoimax (Depends-on): Likewise.
21595         * modules/strtok_r (Depends-on): Likewise.
21596         * modules/strtoumax (Depends-on): Likewise.
21597         * modules/symlink (Depends-on): Likewise.
21598         * modules/symlinkat (Depends-on): Likewise.
21599         * modules/tanl (Depends-on): Likewise.
21600         * modules/tcgetsid (Depends-on): Likewise.
21601         * modules/tmpfile (Depends-on): Likewise.
21602         * modules/trunc (Depends-on): Likewise.
21603         * modules/truncf (Depends-on): Likewise.
21604         * modules/truncl (Depends-on): Likewise.
21605         * modules/uname (Depends-on): Likewise.
21606         * modules/unlink (Depends-on): Likewise.
21607         * modules/unlockpt (Depends-on): Likewise.
21608         * modules/unsetenv (Depends-on): Likewise.
21609         * modules/usleep (Depends-on): Likewise.
21610         * modules/utimensat (Depends-on): Likewise.
21611         * modules/vasprintf (Depends-on): Likewise.
21612         * modules/vdprintf (Depends-on): Likewise.
21613         * modules/vdprintf-posix (Depends-on): Likewise.
21614         * modules/vfprintf-posix (Depends-on): Likewise.
21615         * modules/vprintf-posix (Depends-on): Likewise.
21616         * modules/vsnprintf (Depends-on): Likewise.
21617         * modules/vsnprintf-posix (Depends-on): Likewise.
21618         * modules/vsprintf-posix (Depends-on): Likewise.
21619         * modules/wcrtomb (Depends-on): Likewise.
21620         * modules/wcscasecmp (Depends-on): Likewise.
21621         * modules/wcscspn (Depends-on): Likewise.
21622         * modules/wcsdup (Depends-on): Likewise.
21623         * modules/wcsncasecmp (Depends-on): Likewise.
21624         * modules/wcsnrtombs (Depends-on): Likewise.
21625         * modules/wcspbrk (Depends-on): Likewise.
21626         * modules/wcsrtombs (Depends-on): Likewise.
21627         * modules/wcsspn (Depends-on): Likewise.
21628         * modules/wcsstr (Depends-on): Likewise.
21629         * modules/wcstok (Depends-on): Likewise.
21630         * modules/wcswidth (Depends-on): Likewise.
21631         * modules/wctob (Depends-on): Likewise.
21632         * modules/wctomb (Depends-on): Likewise.
21633         * modules/wctype (Depends-on): Likewise.
21634         * modules/wcwidth (Depends-on): Likewise.
21635         * modules/write (Depends-on): Likewise.
21636
21637 2011-05-03  Bruno Haible  <bruno@clisp.org>
21638
21639         Support for conditional dependencies.
21640         * doc/gnulib.texi (Module description): Document the syntax of
21641         conditional dependencies.
21642         * gnulib-tool: New option --conditional-dependencies.
21643         (func_usage): Document it.
21644         (cond_dependencies): New variable.
21645         (func_get_automake_snippet_conditional,
21646         func_get_automake_snippet_unconditional): New functions, extracted from
21647         func_get_automake_snippet.
21648         (func_get_automake_snippet): Use them.
21649         (sed_first_32_chars): New variable.
21650         (func_module_shellfunc_name): New function.
21651         (func_module_shellvar_name): New function.
21652         (func_module_conditional_name): New function.
21653         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21654         func_cond_module_condition): New functions.
21655         (func_modules_transitive_closure): Add support for conditional
21656         dependencies.
21657         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21658         conditional automake snippet in an automake conditional.
21659         (func_emit_autoconf_snippets): Emit shell functions that contain the
21660         code for conditional modules.
21661         (func_import, func_create_testdir): Update specification.
21662
21663 2011-05-03  Eric Blake  <eblake@redhat.com>
21664
21665         test-getaddrinfo: report error information
21666         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21667
21668 2011-05-03  Jim Meyering  <meyering@redhat.com>
21669
21670         bootstrap: avoid build failure when $GZIP is set
21671         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21672         program name.  If defined at all, it is supposed to list gzip options.
21673         Reported by Alan Curry in http://debbugs.gnu.org/8609
21674
21675 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21676
21677         readme-release: new module with release instructions
21678         * modules/readme-release: New module.
21679         * top/README-release: New file, from coreutils, grep, diffutils.
21680         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21681
21682 2011-05-02  Eric Blake  <eblake@redhat.com>
21683
21684         fflush: also replace fclose when fixing fflush
21685         * modules/fflush (Depends-on): Add fclose.
21686         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21687         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21688         memstreams with no backing fd.
21689         * doc/posix-functions/fclose.texi (fclose): Document the use of
21690         fflush module to fix the bug.
21691         * tests/test-fclose.c (main): Relax test when fclose is used in
21692         isolation.
21693
21694         fclose: add some tests
21695         * modules/fclose-tests: New test module.
21696         * tests/test-fclose.c: New file.
21697         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21698
21699         fclose: reduced dependencies
21700         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21701         simpler lseek.
21702         * lib/fclose.c (rpl_fclose): Likewise.
21703         Reported by Simon Josefsson.
21704
21705         exit: drop remaining clients
21706         * modules/argmatch (Depends-on): Replace exit with stdlib.
21707         * modules/copy-file (Depends-on): Likewise.
21708         * modules/execute (Depends-on): Likewise.
21709         * modules/exitfail (Depends-on): Likewise.
21710         * modules/obstack (Depends-on): Likewise.
21711         * modules/pagealign_alloc (Depends-on): Likewise.
21712         * modules/pipe-filter-gi (Depends-on): Likewise.
21713         * modules/pipe-filter-ii (Depends-on): Likewise.
21714         * modules/savewd (Depends-on): Likewise.
21715         * modules/spawn-pipe (Depends-on): Likewise.
21716         * modules/wait-process (Depends-on): Likewise.
21717         * modules/xsetenv (Depends-on): Likewise.
21718         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21719         * modules/git-merge-changelog (Depends-on): Likewise.
21720         * modules/long-options (Depends-on): Likewise.
21721         * modules/pt_chown (Depends-on): Likewise.
21722         * modules/sysexits (Depends-on): Likewise.
21723
21724         freading: relax license from LGPLv3+ to LGPLv2+
21725         * modules/freading (License): Relax LGPL version.
21726
21727 2011-05-02  Bruno Haible  <bruno@clisp.org>
21728
21729         fchdir: Remove unused dependencies.
21730         * modules/fchdir (Depends-on): Remove include_next.
21731
21732 2011-05-02  Bruno Haible  <bruno@clisp.org>
21733
21734         gnulib-tool: Refactor.
21735         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21736         from func_emit_autoconf_snippets.
21737         (func_emit_autoconf_snippets): Use it.
21738
21739 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21740
21741         * NEWS: Document removal of 'exit'.
21742         * modules/exit: Remove file.
21743
21744 2011-05-01  Bruno Haible  <bruno@clisp.org>
21745
21746         Update DEPENDENCIES.
21747         * DEPENDENCIES (gettext): Recommend the newest release.
21748         Reported by Simon Josefsson.
21749
21750 2011-05-01  Bruno Haible  <bruno@clisp.org>
21751
21752         gnulib-tool: Reduce code duplication.
21753         * gnulib-tool (func_emit_autoconf_snippets): New function.
21754         (func_import, func_create_testdir): Use it.
21755
21756 2011-04-30  Eric Blake  <eblake@redhat.com>
21757
21758         fclose: don't fail on non-seekable input stream
21759         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21760         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21761         since fflush is allowed to fail in that case.
21762
21763 2011-04-30  Bruno Haible  <bruno@clisp.org>
21764
21765         dup3: cleanup
21766         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21767
21768 2011-04-30  Bruno Haible  <bruno@clisp.org>
21769
21770         netdb: Make it work in C++ mode.
21771         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21772         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21773         module.
21774         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21775         gl_MODULE_INDICATOR_FOR_TESTS.
21776         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21777         * modules/netdb-c++-tests: New file.
21778         * tests/test-netdb-c++.cc: New file.
21779
21780 2011-04-30  Bruno Haible  <bruno@clisp.org>
21781
21782         New modules 'vfscanf', 'vscanf'.
21783         * modules/vfscanf: New file.
21784         * modules/vscanf: New file.
21785         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21786         here.
21787         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21788         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21789
21790 2011-04-30  Bruno Haible  <bruno@clisp.org>
21791
21792         passfd: Add comments.
21793         * lib/passfd.c: Add comments about platforms.
21794
21795 2011-04-30  Bruno Haible  <bruno@clisp.org>
21796
21797         sys_uio: Make <sys/uio.h> self-contained.
21798         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21799         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21800
21801 2011-04-30  Bruno Haible  <bruno@clisp.org>
21802
21803         sys_socket: Ensure 'struct iovec' definition.
21804         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21805         <sys/socket.h>.
21806         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21807
21808 2011-04-30  Bruno Haible  <bruno@clisp.org>
21809
21810         sys_uio: Protect definition of 'struct iovec'.
21811         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21812         it as a C struct.
21813
21814 2011-04-30  Bruno Haible  <bruno@clisp.org>
21815
21816         manywarnings: fix indentation
21817         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21818
21819 2011-04-30  Pádraig Brady <P@draigBrady.com>
21820
21821         manywarnings: add -Wno-missing-field-initializers if needed.
21822         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21823         option if it's needed to allow initialization with { 0, }
21824
21825 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21826
21827         announce-gen: cosmetic improvement
21828         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21829
21830 2011-04-29  Jim Meyering  <meyering@redhat.com>
21831
21832         vc-list-files: indent with spaces, not TABs
21833         * build-aux/vc-list-files: Convert leading TABs to spaces,
21834         to match the style of most other files in gnulib.
21835
21836         announce-gen: indent with spaces, not TABs
21837         * build-aux/announce-gen: Convert all TABs to spaces, to match
21838         the style of most other files in gnulib.
21839
21840 2011-04-29  Eric Blake  <eblake@redhat.com>
21841
21842         quotearg: avoid uninitialized variable use
21843         * lib/quotearg.c (quoting_options_from_style): Initialize
21844         remaining fields, and ensure that custom styles are only used via
21845         quoting_options rather than quoting_style.
21846
21847 2011-04-29  Jim Meyering  <meyering@redhat.com>
21848
21849         maint.mk: remove unused VC-tag variable
21850         * top/maint.mk (VC-tag): Remove unused variable.
21851
21852 2011-04-29  Bruno Haible  <bruno@clisp.org>
21853
21854         netdb: fix gai_strerror replacements
21855         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21856         * modules/netdb: Substitute it.
21857
21858 2011-04-29  Jim Meyering  <meyering@redhat.com>
21859
21860         test-getcwd.c: avoid new set-but-not-used warning
21861         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21862         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21863         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21864         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21865
21866         test-hash.c: avoid a new shadowing warning
21867         * tests/test-hash.c (main): Don't shadow "dup".
21868
21869 2011-04-28  Eric Blake  <eblake@redhat.com>
21870
21871         getaddrinfo: fix gai_strerror signature
21872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21873         and work around mingw with UNICODE defined.
21874         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21875         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21876         * modules/netdb (Makefile.am): Substitute it.
21877         * lib/netdb.in.h (gai_strerror): Declare replacement.
21878         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21879         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21880         the fix.
21881
21882         getsockopt: avoid compiler warning
21883         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21884         Reported by Matthias Bolte.
21885
21886         tests: drop unused link dependency
21887         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21888         * modules/dirent-safer-tests (Makefile.am): Likewise.
21889         * modules/fdopendir-tests (Makefile.am): Likewise.
21890         * modules/mkfifoat-tests (Makefile.am): Likewise.
21891         * modules/openat-safer-tests (Makefile.am): Likewise.
21892         * modules/openat-tests (Makefile.am): Likewise.
21893         * modules/readlinkat-tests (Makefile.am): Likewise.
21894         * modules/symlinkat-tests (Makefile.am): Likewise.
21895         * modules/linkat-tests (Makefile.am): Likewise.
21896         (Depends-on): Switch to filenamecat-lgpl.
21897         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21898         LIBINTL.
21899         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21900         * tests/test-linkat.c (main): Don't require xalloc.
21901
21902         hash, mgetgroups: drop xalloc dependency
21903         * lib/hash.c (includes): Adjust includes.
21904         * lib/mgetgroups.c (includes): Likewise.
21905         (xgetgroups): Move...
21906         * lib/xgetgroups.c: ...to new file.
21907         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21908         * modules/xgetgroups: New file, split from...
21909         * modules/mgetgroups: ...here.
21910         (Depends-on): Add xalloc-oversized.
21911         * modules/hash (Depends-on): Likewise.
21912         * modules/hash-tests (Depends-on): Drop xalloc.
21913         (test_hash_LDADD): Drop unused library.
21914         * tests/test-hash.c (main): Break xalloc dependency.
21915         (includes): Drop unused include.
21916
21917         xalloc-oversized: new module
21918         * modules/xalloc-oversized: New module.
21919         * modules/xalloc (Depends-on): Add it.
21920         * lib/xalloc.h (xalloc_oversized): Move...
21921         * lib/xalloc-oversized.h: ...into new file.
21922
21923         utimecmp: drop dependency on xmalloc
21924         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21925         due to memory pressure.
21926         * modules/utimecmp (Depends-on): Drop xalloc.
21927
21928 2011-04-27  Eric Blake  <eblake@redhat.com>
21929
21930         getcwd: fix mingw bugs
21931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21932         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21933         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21934
21935 2011-04-27  Bruno Haible  <bruno@clisp.org>
21936
21937         mkstemps: Ensure declaration on MacOS X 10.5.
21938         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21939         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21940         MacOS X.
21941
21942 2011-04-27  Bruno Haible  <bruno@clisp.org>
21943
21944         mkstemp: More documentation.
21945         * doc/posix-functions/mkstemp.texi: Document header file problem on
21946         MacOS X.
21947
21948 2011-04-27  Bruno Haible  <bruno@clisp.org>
21949
21950         mkstemp: Tweak configure message when cross-compiling.
21951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21952         result as a guess.
21953
21954 2011-04-27  Bruno Haible  <bruno@clisp.org>
21955
21956         clean-temp: Clarify what it does.
21957         * lib/clean-temp.h: Add more comments.
21958         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21959         module.
21960         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21961         * doc/glibc-functions/mkstemps.texi: Likewise.
21962         * doc/glibc-functions/mkostemps.texi: Likewise.
21963
21964 2011-04-27  Eric Blake  <eblake@redhat.com>
21965
21966         fchdir: avoid extra chdir and fix test
21967         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21968         getcwd-lgpl.
21969         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21970         have to be canonical.
21971         (canonicalize_file_name): Drop unused macro.
21972         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21973
21974         filenamecat-lgpl: fix licence
21975         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21976         when it was first created.
21977
21978         linkat, renameat: add missing dependency
21979         * modules/linkat (Depends-on): Require getcwd-lgpl.
21980         * modules/renameat (Depends-on): Likewise.
21981
21982         tests: reduce dependencies
21983         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21984         * tests/test-renameat.c (main): Likewise.
21985         * modules/linkat-tests (Depends-on): Relax dependency.
21986         * modules/renameat-tests (Depends-on): Likewise.
21987         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21988         dependency explicit.
21989
21990         save-cwd: reduce default dependency
21991         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21992         * lib/save-cwd.c: Update comments.
21993         * NEWS: Document the semantic change.
21994
21995         getcwd: enhance tests
21996         * tests/test-getcwd-lgpl.c: New file, taken from...
21997         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21998         repeat long path stress tests from m4 probe.
21999         * modules/getcwd-lgpl-tests: New module.
22000         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22001         * m4/getcwd-abort-bug.m4: Update comment.
22002         * m4/getcwd-path-max.m4: Likewise.
22003
22004         getcwd-lgpl: new module
22005         * modules/getcwd-lgpl: New module.
22006         * lib/getcwd-lgpl.c: New file.
22007         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22008         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22009         * modules/getcwd (configure.ac): Set C witness.
22010         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22011
22012         getcwd: tweak comments
22013         * m4/getcwd-abort-bug.m4: Fix comments.
22014         * m4/getcwd-path-max.m4: Likewise.
22015         * m4/getcwd.m4: Likewise.
22016
22017 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22018         and Eric Blake  <eblake@redhat.com>
22019
22020         mkstemp: replace if system version uses wrong permissions
22021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22022         read/write mode bits set in file created by mkstemp.
22023         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22024
22025 2011-04-27  Eric Blake  <eblake@redhat.com>
22026
22027         passfd: avoid compiler warning
22028         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22029         Reported by Laine Stump.
22030
22031 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22032
22033         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22034         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22035
22036 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22037         and Eric Blake  <eblake@redhat.com>
22038
22039         mkstemp: mention clean-temp module
22040         * lib/mkstemp.c: Add comment.
22041         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22042
22043 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22044
22045         inttypes: also provide default values for 32-bit tests
22046         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22047         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22048
22049 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22050
22051         strtoumax: remove dependency on strtoimax
22052         This is like the strtoull change of yesterday.
22053         * modules/strtoumax (Files): Add lib/strtoimax.c.
22054         (Depends-on): Remove strtoimax and add verify.
22055
22056         inttypes-incomplete: new module
22057         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22058         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22059         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22060         of gl_INTTYPES_H.
22061         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22062         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22063         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22064         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22065         * modules/strtoumax, modules/xstrtol (Depends-on):
22066         Depend on inttypes-incomplete, not inttypes.
22067         * modules/inttypes-incomplete: New module, containing the contents
22068         of the old modules/inttypes module, except that the Files: section
22069         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22070         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22071         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22072         (Depends-on): Depend only on inttypes-incomplete.
22073         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22074
22075         inttypes: omit now-redundant strtoimax and strtoumax work
22076         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22077         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22078
22079         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22080         This supports apps that need pointers to strtoimax and strtoumax,
22081         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22082         nonexistent functions.  See
22083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22084         et seq.
22085         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22087         a macro.
22088         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22089
22090 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22091
22092         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22093
22094 2011-04-25  Bruno Haible  <bruno@clisp.org>
22095
22096         strtol, strtoul: Mark modules as obsolete.
22097         * modules/strtol (Status, Notice): New sections.
22098         * modules/strtoul (Status, Notice): New sections.
22099
22100 2011-04-25  Bruno Haible  <bruno@clisp.org>
22101
22102         strtod: Remove check for strtod, unless supporting old platforms.
22103         * modules/strtod-obsolete: New file.
22104         * m4/strtod-obsolete.m4: New file.
22105         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22106         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22107         * modules/strtod (Depends-on): Add strtod-obsolete.
22108         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22109
22110 2011-04-25  Bruno Haible  <bruno@clisp.org>
22111
22112         strcase: Make module obsolete.
22113         * modules/strcase (Status, Notice): New sections.
22114
22115 2011-04-25  Bruno Haible  <bruno@clisp.org>
22116
22117         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22118         * modules/dup2-obsolete: New file.
22119         * m4/dup2-obsolete.m4: New file.
22120         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22121         gl_FUNC_DUP2_OBSOLETE is not also defined.
22122         * modules/dup2 (Depends-on): Add dup2-obsolete.
22123         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22124
22125 2011-04-25  Bruno Haible  <bruno@clisp.org>
22126
22127         strnlen: Avoid memchr related link error on old obsolete platforms.
22128         * modules/memchr-obsolete: New file.
22129         * m4/memchr-obsolete.m4: New file.
22130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22131         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22132         * modules/memchr (Depends-on): Add memchr-obsolete.
22133         * modules/strnlen (Depends-on): Likewise.
22134         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22135
22136 2011-04-25  Jim Meyering  <meyering@redhat.com>
22137
22138         maint.mk: makefile_at_at_check extend and clean up
22139         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22140         in addition to */Makefile.am.
22141         Exempt legitimate uses of @VAR@ notation, e.g.,
22142         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22143         Remove obsolete coreutils-specific comment.
22144         Prompted by discussion here:
22145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22146
22147 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22148
22149         strtoul: remove dependency on strtol
22150         This is so that 'configure' need not check for strtol merely because
22151         the application needs strtoul.
22152         * modules/strtoul (Files): Add lib/strtol.c.
22153         (Depends-on): Remove strtol.
22154
22155         strtoull: remove dependency on strtoul
22156         This is like the strtoll change.
22157         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22158         (Depends-on): Remove strtoul.
22159
22160         strtoll: remove dependency on strtol
22161         This is so that 'configure' need not check for strtol merely because
22162         the application needs strtoll.
22163         * modules/strtoll (Files): Add lib/strtol.c.
22164         (Depends-on): Remove strtol.
22165
22166 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22167
22168         inttypes: Move some configure check to module 'imaxdiv'.
22169         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22170         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22171         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22172
22173 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22174
22175         inttypes: Move some configure check to module 'imaxabs'.
22176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22177         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22178         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22179
22180 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22181
22182         inttypes: Remove configure tests that are not needed since 2009-12-31.
22183         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22184         gl_cv_header_working_inttypes_h.
22185
22186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22187
22188         * modules/strnlen (Depends-on): Remove memchr.
22189         The strnlen implementation doesn't need the memchr module's fixes; see
22190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22191
22192         strtol: remove dependency on wchar
22193         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22194         * modules/strtol (Depends-on): Remove wchar.
22195
22196 2011-04-21  Eric Blake  <eblake@redhat.com>
22197
22198         passfd: fix test regression on Linux
22199         * modules/passfd-tests (configure.ac): Correct socketpair check.
22200
22201         passfd: speed up configure and drop unused code
22202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22203         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22204         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22205         Instead of probing at configure for unix_scm_rights_bsd44_way,
22206         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22207         check to a struct member probe.
22208         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22209         (sendfd, recvfd): Update preprocessor checks.
22210         * modules/passfd (Files): Reflect rename, and drop unused file.
22211         (Depends-on): Drop unused dependency.
22212
22213         passfd: allow compilation on mingw
22214         * modules/sys_socket (Depends-on): Add sys_uio.
22215         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22216         iovec and a minimal struct msghdr.
22217         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22218         * tests/test-sys_socket.c (main): Enhance test.
22219         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22220         guaranteed to provide what we need.
22221         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22222         * modules/passfd-tests (Depends-on): Add sys_wait.
22223         * tests/test-passfd.c (main): Skip test on mingw, for now.
22224         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22225         partial 'struct msghdr' implementation.
22226
22227         sys_uio: new module
22228         * modules/sys_uio: New module.
22229         * modules/sys_uio-tests: Likewise.
22230         * lib/sys_uio.in.h: New file.
22231         * m4/sys_uio_h.m4: Likewise.
22232         * tests/test-sys_uio.c: Likewise.
22233         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22234         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22235
22236 2011-04-20  Jim Meyering  <meyering@redhat.com>
22237
22238         useless-if-before-free: avoid false-positive
22239         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22240         disjunct so that it too requires a terminating ";".  Without that,
22241         this script would identify as useless one statement from gcc that
22242         was not:
22243           if (aligned_ptr)
22244             free (((void **) aligned_ptr) [-1]);
22245
22246 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22247
22248         doc: update users.txt.
22249         * users.txt: Add barcode.
22250
22251 2011-04-19  Bruno Haible  <bruno@clisp.org>
22252
22253         ioctl: Remove link dependency on native Windows.
22254         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22255         (gl_close_fn, gl_ioctl_fn): New types.
22256         (struct fd_hook): Renamed from struct close_hook. Change type of
22257         private_close_fn field. Add private_ioctl_fn field.
22258         (close_hook_fn): Add parameter for primary close method.
22259         (execute_close_hooks, execute_all_close_hooks): Likewise.
22260         (ioctl_hook_fn): New type.
22261         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22262         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22263         argument.
22264         (unregister_fd_hook): Renamed from unregister_close_hook.
22265         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22266         Don't include <unistd.h>.
22267         (close): Remove undef.
22268         (anchor): Update.
22269         (execute_close_hooks): Add argument for primary close method.
22270         (execute_all_close_hooks): Likewise.
22271         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22272         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22273         argument. Allow each argument to be NULL.
22274         (unregister_fd_hook): Renamed from unregister_close_hook.
22275         * lib/close.c (rpl_close): Pass 'close' function pointer to
22276         execute_all_close_hooks.
22277         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22278         (primary_ioctl): New function.
22279         (ioctl): Don't call ioctlsocket here. Instead, call
22280         execute_all_ioctl_hooks.
22281         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22282         close method.
22283         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22284         (fd_sockets_hook): Renamed from close_sockets_hook.
22285         (gl_sockets_startup, gl_sockets_cleanup): Update.
22286         * modules/fd-hook: Renamed from modules/close-hook. Update.
22287         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22288         * modules/sockets (Depends-on): Likewise.
22289         * modules/ioctl (Depends-on): Add fd-hook.
22290         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22291         GNULIB_SOCKET.
22292
22293 2011-04-19  Bruno Haible  <bruno@clisp.org>
22294
22295         Move the support of O_NONBLOCK in open() to the 'open' module.
22296         * modules/nonblocking (Depends-on): Remove 'open'.
22297         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22298         gl_cv_have_open_O_NONBLOCK.
22299         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22300         O_NONBLOCK support.
22301         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22302
22303 2011-04-17  Bruno Haible  <bruno@clisp.org>
22304
22305         pipe2: Simplify code.
22306         * lib/pipe2.c (pipe2): Reduce code duplication.
22307
22308 2011-04-17  Bruno Haible  <bruno@clisp.org>
22309
22310         nonblocking: Add comment.
22311         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22312
22313 2011-04-17  Bruno Haible  <bruno@clisp.org>
22314
22315         nonblocking: Add tests for sockets.
22316         * tests/test-nonblocking-socket.sh: New file.
22317         * tests/test-nonblocking-socket-main.c: New file.
22318         * tests/test-nonblocking-socket-child.c: New file.
22319         * tests/test-nonblocking-socket.h: New file.
22320         * tests/socket-server.h: New file.
22321         * tests/socket-client.h: New file.
22322         * modules/nonblocking-socket-tests: New file.
22323         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22324
22325 2011-04-17  Bruno Haible  <bruno@clisp.org>
22326
22327         nonblocking: Add tests for pipes.
22328         * tests/test-nonblocking-pipe.sh: New file.
22329         * tests/test-nonblocking-pipe-main.c: New file.
22330         * tests/test-nonblocking-pipe-child.c: New file.
22331         * tests/test-nonblocking-pipe.h: New file.
22332         * tests/test-nonblocking-writer.h: New file.
22333         * tests/test-nonblocking-reader.h: New file.
22334         * tests/test-nonblocking-misc.h: New file.
22335         * modules/nonblocking-pipe-tests: New file.
22336         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22337
22338 2011-04-16  Bruno Haible  <bruno@clisp.org>
22339
22340         gettext: Clarify the needed programmer actions.
22341         * modules/gettext (Notice): New field.
22342         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22343
22344 2011-04-16  Bruno Haible  <bruno@clisp.org>
22345
22346         strchrnul: Tweak last commit.
22347         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22348         bug.
22349         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22350         as in _GL_FUNCDECL_SYS.
22351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22352         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22353
22354 2011-04-15  Eric Blake  <eblake@redhat.com>
22355
22356         strchrnul: work around cygwin bug
22357         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22358         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22360         * modules/string (Makefile.am): Substitute it.
22361         * lib/string.in.h (strchrnul): Use it.
22362
22363 2011-04-15  Bruno Haible  <bruno@clisp.org>
22364
22365         Don't require lib/stdio-write.c when only module 'stdio' is used.
22366         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22367         invocation.
22368         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22369
22370 2011-04-14  Bruno Haible  <bruno@clisp.org>
22371
22372         Support non-blocking pipe I/O in read() on native Windows.
22373         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22374         (read): New declaration.
22375         * lib/read.c: New file.
22376         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22377         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22378         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22379         vscanf): New declarations.
22380         * lib/stdio-read.c: New file.
22381         * m4/read.m4: New file.
22382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22383         REPLACE_READ.
22384         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22385         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22386         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22387         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22389         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22390         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22391         * modules/read: New file.
22392         * modules/nonblocking (Files): Add lib/stdio-read.c.
22393         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22394         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22395         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22396         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22397         * modules/pread (Depends-on): Add read.
22398         * modules/safe-read (Depends-on): Likewise.
22399         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22400         gets, scanf, vfscanf, vscanf): Verify signatures.
22401         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22402         problem with non-blocking pipes.
22403         * doc/posix-functions/fgetc.texi: Likewise.
22404         * doc/posix-functions/fgets.texi: Likewise.
22405         * doc/posix-functions/fread.texi: Likewise.
22406         * doc/posix-functions/fscanf.texi: Likewise.
22407         * doc/posix-functions/getc.texi: Likewise.
22408         * doc/posix-functions/getchar.texi: Likewise.
22409         * doc/posix-functions/gets.texi: Likewise.
22410         * doc/posix-functions/scanf.texi: Likewise.
22411         * doc/posix-functions/vfscanf.texi: Likewise.
22412         * doc/posix-functions/vscanf.texi: Likewise.
22413
22414 2011-04-14  Bruno Haible  <bruno@clisp.org>
22415
22416         Support non-blocking pipe I/O in write() on native Windows.
22417         * lib/write.c (rpl_write): Split a write request that failed merely
22418         because the byte count was larger than the pipe buffer's size.
22419         * doc/posix-functions/write.texi: Mention the problem with large byte
22420         counts.
22421
22422 2011-04-14  Bruno Haible  <bruno@clisp.org>
22423
22424         wchar: Ensure that wchar_t gets defined on uClibc.
22425         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22426         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22427
22428 2011-04-13  Bruno Haible  <bruno@clisp.org>
22429
22430         safe-write, full-read: Avoid unnecessary compilation units.
22431         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22432         (Depends-on): Remove safe-read. Add ssize_t.
22433         * modules/full-read (Files): Add lib/full-write.c.
22434         (Depends-on): Add full-write.
22435
22436 2011-04-13  Bruno Haible  <bruno@clisp.org>
22437
22438         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22439         * modules/pwrite (Depends-on): Add 'write'.
22440
22441 2011-04-13  Bruno Haible  <bruno@clisp.org>
22442
22443         Support non-blocking pipe I/O in write() on native Windows.
22444         * lib/unistd.in.h (write): Enable replacement also if
22445         GNULIB_UNISTD_H_NONBLOCKING is 1.
22446         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22447         (rpl_write): When failing to write on a non-blocking pipe, change
22448         errno from ENOSPC to EAGAIN.
22449         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22450         putchar, puts, vfprintf, vprintf): Enable replacement also if
22451         GNULIB_STDIO_H_NONBLOCKING is 1.
22452         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22453         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22454         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22455         CALL_WITH_SIGPIPE_EMULATION.
22456         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22457         * m4/nonblocking.m4: New file.
22458         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22459         for non-blocking I/O support.
22460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22461         GNULIB_UNISTD_H_NONBLOCKING.
22462         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22463         required for non-blocking I/O support.
22464         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22465         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22466         lib/stdio-write.c, m4/asm-underscore.m4.
22467         (Depends-on): Add stdio, unistd.
22468         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22469         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22470         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22471         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22472         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22473         problem with non-blocking pipes.
22474         * doc/posix-functions/fputc.texi: Likewise.
22475         * doc/posix-functions/fputs.texi: Likewise.
22476         * doc/posix-functions/fwrite.texi: Likewise.
22477         * doc/posix-functions/printf.texi: Likewise.
22478         * doc/posix-functions/putc.texi: Likewise.
22479         * doc/posix-functions/putchar.texi: Likewise.
22480         * doc/posix-functions/puts.texi: Likewise.
22481         * doc/posix-functions/vfprintf.texi: Likewise.
22482         * doc/posix-functions/vprintf.texi: Likewise.
22483         * doc/posix-functions/write.texi: Likewise.
22484
22485 2011-04-10  Jim Meyering  <meyering@redhat.com>
22486
22487         maint.mk: prohibit doubled words
22488         Detect them also when they're separated by a newline.
22489         There are 3 ways to customize it:
22490           - disable the test on a per file basis, as usual with rules using
22491             $(VC_LIST_EXCEPT)
22492           - replace the default doubled-word-selecting regexp (affects all files)
22493           - ignore a particular file-vs-doubled-word match
22494         I nearly used that last one to ignore the "is is" match in
22495         coreutils' NEWS file, since the text was "ls -is is ..."
22496         To do that, I would have added this line to cfg.mk:
22497           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22498         but it would have ignored any "is is" match in NEWS.
22499         Low probability, but still...
22500         Instead, I changed the text, slightly:
22501           -  ls -is is now consistent with ls -lis in ignoring values returned
22502           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22503         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22504         (prohibit_doubled_word_): Define.
22505         (sc_prohibit_doubled_word): New rule.
22506         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22507
22508 2011-04-10  Jim Meyering  <meyering@redhat.com>
22509
22510         maint: fix doubled-word typo in comment
22511         * m4/gethostname.m4: s/is is/it is/
22512         * m4/getdomainname.m4: Likewise.
22513
22514 2011-04-10  Jim Meyering  <meyering@redhat.com>
22515
22516         maint: remove doubled word: s/it it/it/
22517         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22518
22519 2011-04-10  Jim Meyering  <meyering@redhat.com>
22520
22521         maint.mk: remove useless semicolon and backslash
22522         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22523         semicolon and backslash.
22524
22525 2011-04-10  Bruno Haible  <bruno@clisp.org>
22526
22527         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22528         * modules/stdint-tests (Depends-on): Add wchar.
22529
22530 2011-04-10  Jim Meyering  <meyering@redhat.com>
22531
22532         maint: remove doubled words in comments, e.g., s/a a/a/
22533         * lib/strptime.c (day_of_the_week): s/the the/the/
22534         * tests/test-chown.h (test_chown): s/a a/a/
22535
22536         test-chown.h: correct a cast
22537         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22538         when the destination is a stat.st_gid.
22539
22540 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22541
22542         getaddrinfo: Fix test for sa_len member.
22543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22544         include <sys/types.h> before <sys/socket.h>.
22545
22546 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22547
22548         maint: change "can not" to "cannot"
22549         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22550         boundaries.
22551
22552 2011-04-09  Jim Meyering  <meyering@redhat.com>
22553
22554         maint: change "a a" to "a"
22555         * tests/test-lchown.h (test_lchown): s/a a/a/
22556
22557         maint.mk: prohibit \<the the\>
22558         * top/maint.mk (sc_prohibit_the_the): New rule.
22559
22560         maint: fix "the the" in comment
22561         * lib/count-one-bits.h: s/the the/the/
22562
22563         maint: change "can not" to "cannot"
22564         But do not change the occurrences in maintain.texi or in
22565         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22566         * doc/gnulib-tool.texi: s/can not/cannot/
22567         * doc/posix-functions/accept.texi (accept): Likewise.
22568         * doc/posix-functions/socket.texi (socket): Likewise.
22569         * lib/mbrtowc.c: Likewise.
22570
22571         maint.mk: prohibit use of "can not"
22572         * top/maint.mk (sc_prohibit_can_not): New rule.
22573         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22574
22575 2011-04-09  Bruno Haible  <bruno@clisp.org>
22576
22577         careadlinkat: Guard against misuse of careadlinkatcwd.
22578         * lib/careadlinkat.c: Include <stdlib.h>.
22579         (careadlinkatcwd): Check that the fd argument is as expected.
22580
22581 2011-04-09  Bruno Haible  <bruno@clisp.org>
22582
22583         careadlinkat: Use common coding style.
22584         * lib/careadlinkat.c: Move gnulib includes after system includes.
22585
22586 2011-04-09  Bruno Haible  <bruno@clisp.org>
22587
22588         careadlinkat: Clarify specification.
22589         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22590         (careadlinkatcwd): Add comment.
22591         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22592
22593 2011-04-09  Bruno Haible  <bruno@clisp.org>
22594
22595         areadlinkat: Avoid link error on many platforms.
22596         * modules/areadlinkat (Depends-on): Add areadlink.
22597
22598 2011-04-09  Bruno Haible  <bruno@clisp.org>
22599
22600         allocator, careadlinkat: Fix double-inclusion guard.
22601         * lib/allocator.h: Fix double-inclusion guard.
22602         * lib/careadlinkat.h: Likewise.
22603
22604 2011-04-09  Bruno Haible  <bruno@clisp.org>
22605
22606         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22607         * lib/relocwrapper.c: Update dependencies hierarchy.
22608         * build-aux/install-reloc: Update list of files to be compiled.
22609         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22610         lib/allocator.[hc].
22611
22612 2011-04-08  Eric Blake  <eblake@redhat.com>
22613
22614         strftime: silence gnulib-tool warning
22615         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22616
22617 2011-04-08  Bruno Haible  <bruno@clisp.org>
22618
22619         verify: Fix syntax error with GCC 4.6 in C++ mode.
22620         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22621         (HAVE_STATIC_ASSERT): New macro.
22622         (verify_true, verify): Use 'static_assert' if it is supported and
22623         '_Static_assert' is not supported.
22624
22625 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22626
22627         allocator: New module.
22628         * modules/allocator, lib/allocator.c: New files.
22629         * lib/allocator.h (stdlib_allocator): New decl.
22630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22631         Remove.  Do not include <stdlib.h>.
22632         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22633         * modules/careadlinkat (Files): Remove lib/allocator.h.
22634         (Depends-on): Add allocator.
22635
22636         stdlib: let modules use system malloc, realloc
22637         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22638         if !_GL_USE_STDLIB_ALLOC.
22639         (malloc, realloc): Limit this change to a smaller scope.
22640
22641         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22642         (malloc, realloc): Don't #undef; no longer needed.
22643         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22644         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22645         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22646         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22647         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22648         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22649         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22650         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22651
22652         careadlinkat: rename members to avoid problem
22653         * lib/allocator.h (struct allocator): Rename members from
22654         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22655         and realloc are #define'd.  Reported by Eric Blake in
22656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22657         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22658
22659 2011-04-08  Eric Blake  <eblake@redhat.com>
22660
22661         nonblocking: reduce dependency
22662         * tests/test-nonblocking.c: Only test sockets when in use.
22663         * modules/nonblocking-tests (Depends-on): Drop socket.
22664         (Makefile.am): Link even if sockets are not present.
22665         * modules/pipe2-tests (Makefile.am): Likewise.
22666         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22667
22668         pipe2: fix O_NONBLOCK support on mingw
22669         * modules/pipe2 (Depends-on): Add nonblocking.
22670         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22671         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22672         * tests/test-nonblocking.c (main): Likewise.
22673         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22674
22675         fcntl-h: fix O_ACCMODE on cygwin
22676         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22677         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22678
22679         pipe-filter: drop O_NONBLOCK workarounds
22680         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22681         * modules/pipe-filter-ii (Depends-on): Likewise.
22682         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22683
22684         nonblocking: provide O_NONBLOCK for mingw
22685         * modules/nonblocking (Depends-on): Add open.
22686         (configure.ac): Set new witness macro.
22687         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22688         * modules/fcntl-h (Makefile.am): Substitute it.
22689         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22690         nonblocking module is in use.
22691         * lib/nonblocking.c: Adjust portability test.
22692         * lib/open.c (open): Don't let native open see gnulib flag.
22693         * tests/test-fcntl-h.c (main): Enhance test.
22694         * tests/test-open.h (test_open): Likewise.
22695         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22696
22697         careadlinkat: fix compilation error on mingw
22698         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22699         within struct allocator.
22700
22701 2011-04-06  Eric Blake  <eblake@redhat.com>
22702
22703         binary-io: relicense under LGPLv2+
22704         * modules/binary-io (License): Relax to LGPLv2+.
22705         Requested for libvirt, and required by pipe2.
22706
22707 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22708
22709         verify: use _Static_assert if available
22710         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22711         (verify_true, verify): Use it if available.  This generates better
22712         diagnostics with GCC 4.6.0 and later.
22713
22714 2011-04-05  Bruno Haible  <bruno@clisp.org>
22715
22716         Remove leftover generated .h files after config.status changed.
22717
22718         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22719         GL_GENERATE_ALLOCA_H.
22720         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22721         GL_GENERATE_ALLOCA_H evaluates to false.
22722
22723         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22724         GL_GENERATE_ARGZ_H.
22725         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22726         evaluates to false.
22727
22728         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22729         GL_GENERATE_BYTESWAP_H.
22730         * modules/byteswap (Makefile.am): Remove byteswap.h if
22731         GL_GENERATE_BYTESWAP_H evaluates to false.
22732
22733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22734         GL_GENERATE_ERRNO_H.
22735         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22736         evaluates to false.
22737
22738         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22739         GL_GENERATE_FLOAT_H.
22740         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22741         evaluates to false.
22742
22743         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22744         GL_GENERATE_FNMATCH_H.
22745         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22746         GL_GENERATE_FNMATCH_H evaluates to false.
22747
22748         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22749         GL_GENERATE_GLOB_H.
22750         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22751         evaluates to false.
22752
22753         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22754         automake conditional GL_GENERATE_ICONV_H.
22755         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22756         evaluates to false.
22757
22758         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22759         GL_GENERATE_NETINET_IN_H.
22760         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22761         GL_GENERATE_NETINET_IN_H evaluates to false.
22762
22763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22764         conditional GL_GENERATE_PTHREAD_H.
22765         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22766         * modules/pthread (Makefile.am): Remove pthread.h if
22767         GL_GENERATE_PTHREAD_H evaluates to false.
22768
22769         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22770         GL_GENERATE_SCHED_H.
22771         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22772         evaluates to false.
22773
22774         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22775         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22776         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22777         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22778
22779         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22780         GL_GENERATE_STDARG_H.
22781         * modules/stdarg (Makefile.am): Remove stdarg.h if
22782         GL_GENERATE_STDARG_H evaluates to false.
22783
22784         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22785         GL_GENERATE_STDBOOL_H.
22786         * modules/stdbool (Makefile.am): Remove stdbool.h if
22787         GL_GENERATE_STDBOOL_H evaluates to false.
22788
22789         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22790         conditional GL_GENERATE_STDDEF_H.
22791         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22792         * modules/stddef (Makefile.am): Remove stddef.h if
22793         GL_GENERATE_STDDEF_H evaluates to false.
22794
22795         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22796         GL_GENERATE_STDINT_H.
22797         * modules/stdint (Makefile.am): Remove stdint.h if
22798         GL_GENERATE_STDINT_H evaluates to false.
22799
22800         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22801         GL_GENERATE_SYSEXITS_H.
22802         * modules/sysexits (Makefile.am): Remove sysexits.h if
22803         GL_GENERATE_SYSEXITS_H evaluates to false.
22804
22805         Reported by Karl Berry and Ralf Wildenhues.
22806
22807 2011-04-05  Bruno Haible  <bruno@clisp.org>
22808
22809         Ensure to rebuild generated .h files when config.status has changed.
22810         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22811         config.status.
22812         * modules/ctype (Makefile.am): Likewise.
22813         * modules/dirent (Makefile.am): Likewise.
22814         * modules/errno (Makefile.am): Likewise.
22815         * modules/fcntl-h (Makefile.am): Likewise.
22816         * modules/float (Makefile.am): Likewise.
22817         * modules/getopt-posix (Makefile.am): Likewise.
22818         * modules/glob (Makefile.am): Likewise.
22819         * modules/iconv-h (Makefile.am): Likewise.
22820         * modules/inttypes (Makefile.am): Likewise.
22821         * modules/langinfo (Makefile.am): Likewise.
22822         * modules/locale (Makefile.am): Likewise.
22823         * modules/math (Makefile.am): Likewise.
22824         * modules/netdb (Makefile.am): Likewise.
22825         * modules/netinet_in (Makefile.am): Likewise.
22826         * modules/poll-h (Makefile.am): Likewise.
22827         * modules/pthread (Makefile.am): Likewise.
22828         * modules/pty (Makefile.am): Likewise.
22829         * modules/sched (Makefile.am): Likewise.
22830         * modules/search (Makefile.am): Likewise.
22831         * modules/selinux-h (Makefile.am): Likewise.
22832         * modules/signal (Makefile.am): Likewise.
22833         * modules/spawn (Makefile.am): Likewise.
22834         * modules/stdarg (Makefile.am): Likewise.
22835         * modules/stdbool (Makefile.am): Likewise.
22836         * modules/stddef (Makefile.am): Likewise.
22837         * modules/stdint (Makefile.am): Likewise.
22838         * modules/stdio (Makefile.am): Likewise.
22839         * modules/stdlib (Makefile.am): Likewise.
22840         * modules/string (Makefile.am): Likewise.
22841         * modules/strings (Makefile.am): Likewise.
22842         * modules/sys_file (Makefile.am): Likewise.
22843         * modules/sys_ioctl (Makefile.am): Likewise.
22844         * modules/sys_select (Makefile.am): Likewise.
22845         * modules/sys_socket (Makefile.am): Likewise.
22846         * modules/sys_stat (Makefile.am): Likewise.
22847         * modules/sys_time (Makefile.am): Likewise.
22848         * modules/sys_times (Makefile.am): Likewise.
22849         * modules/sys_utsname (Makefile.am): Likewise.
22850         * modules/sys_wait (Makefile.am): Likewise.
22851         * modules/sysexits (Makefile.am): Likewise.
22852         * modules/termios (Makefile.am): Likewise.
22853         * modules/time (Makefile.am): Likewise.
22854         * modules/unistd (Makefile.am): Likewise.
22855         * modules/wchar (Makefile.am): Likewise.
22856         * modules/wctype-h (Makefile.am): Likewise.
22857         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22858
22859 2011-04-05  Bruno Haible  <bruno@clisp.org>
22860
22861         pipe2: Relicense under LGPLv2+.
22862         * modules/pipe2 (License): Change to LGPLv2+.
22863         Requested by Eric Blake, for libvirt.
22864
22865 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22866
22867         bootstrap: compute gnulib_extra_files after updating build_aux
22868         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22869         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22870
22871 2011-04-05  Eric Blake  <eblake@redhat.com>
22872
22873         bootstrap: preserve git whitelist item sorting
22874         * build-aux/bootstrap (sort_patterns): New function.
22875         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22876
22877 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22878
22879         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22880         sc_space_tab check.
22881
22882 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22883
22884         areadlink, areadlinkat: rewrite in terms of careadlinkat
22885         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22886         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22887         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22888         (malloc, realloc): Remove #undefs.
22889         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22890         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22891         readlink, ssize_t, stdint, unistd.
22892         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22893         areadlink, stdint.
22894
22895         careadlinkat: new module
22896         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22897         * modules/careadlinkat: New files, written by me with
22898         a review and feedback from Ben Pfaff in
22899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22900
22901 2011-04-01  Bruno Haible  <bruno@clisp.org>
22902
22903         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22904         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22905         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22906         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22907         Reported by Bruce Korb <bruce.korb@gmail.com>.
22908
22909 2011-04-01  Bruno Haible  <bruno@clisp.org>
22910
22911         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22912         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22913         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22914         * modules/wcpcpy (Depends-on): Add extensions.
22915         * modules/wcpncpy (Depends-on): Likewise.
22916         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22917         systems.
22918         * doc/posix-functions/wcpncpy.texi: Likewise.
22919         * doc/posix-functions/wcwidth.texi: Likewise.
22920
22921 2011-03-31  Eric Blake  <eblake@redhat.com>
22922
22923         nonblocking: fix mingw test failures
22924         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22925         non-blocking flag on regular file.
22926         (get_nonblocking_flag): Set errno on invalid fd.
22927         * tests/test-nonblocking.c (main): Avoid test failure on
22928         directories if fchdir is not active.
22929         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22930
22931 2011-03-31  Bruno Haible  <bruno@clisp.org>
22932
22933         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22934         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22935         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22936         Reported by Simon Josefsson <simon@josefsson.org>.
22937
22938 2011-03-31  Bruno Haible  <bruno@clisp.org>
22939         and Eric Blake  <eblake@redhat.com>
22940
22941         nonblocking: new module
22942         * modules/nonblocking: New module.
22943         * modules/nonblocking-tests: Likewise.
22944         * lib/nonblocking.h: New file.
22945         * lib/nonblocking.c: Likewise.
22946         * tests/test-nonblocking.c: New test.
22947         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22948
22949 2011-03-30  Bruno Haible  <bruno@clisp.org>
22950
22951         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22952         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22953         instead of 'printf' format for GCC >= 4.4.
22954         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22955         (fprintf, printf, vfprintf, vprintf): Declare with
22956         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22957         the system's vfprintf() function.
22958         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22959
22960 2011-03-30  Eric Blake  <eblake@redhat.com>
22961
22962         passfd: fix scoping bug
22963         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22964         before sendmsg/recvmsg.
22965
22966         passfd: standardize coding conventions
22967         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22968         can be learned at compile time.
22969         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22970         ifdefs.
22971         (sendfd, recvfd): Follow gnulib code conventions.
22972
22973         passfd: fix incorrect sendmsg arguments
22974         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22975         incorrect msg_controllen value.
22976         * modules/passfd-tests (Depends-on): Check for alarm.
22977         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22978         Reported by Bastien ROUCARIES.
22979
22980 2011-03-30  Bruno Haible  <bruno@clisp.org>
22981
22982         c-strcasestr: Relicense under LGPLv2+.
22983         * modules/c-strcasestr (License): Change to LGPLv2+.
22984         Requested by Eric Blake, for libvirt.
22985
22986 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22987
22988         * users.txt: Add libidn2.  Fix libtasn1 link.
22989
22990 2011-03-30  Jim Meyering  <meyering@redhat.com>
22991
22992         tests: readlink* ("",... fails with EINVAL on newer kernels
22993         readlink and readlinkat have typically failed with ENOENT for
22994         the invalid, empty file name,  "".  However, with the advent
22995         of linux-2.6.39, they fail with EINVAL.
22996         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22997         when operating on the empty file name.
22998         * tests/test-readlink.h (test_readlink): Likewise.
22999
23000 2011-03-29  Bruno Haible  <bruno@clisp.org>
23001
23002         Relicense some modules under LGPLv2+, for libidn2.
23003         * modules/array-mergesort (License): Change to LGPLv2+.
23004         * modules/c-strcaseeq (License): Likewise.
23005         * modules/striconveh (License): Likewise.
23006         * modules/striconveha (License): Likewise.
23007         * modules/uniconv/base (License): Likewise.
23008         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23009         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23010         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23011         * modules/unictype/base (License): Likewise.
23012         * modules/unictype/bidiclass-of (License): Likewise.
23013         * modules/unictype/category-M (License): Likewise.
23014         * modules/unictype/category-none (License): Likewise.
23015         * modules/unictype/category-of (License): Likewise.
23016         * modules/unictype/category-test (License): Likewise.
23017         * modules/unictype/category-test-withtable (License): Likewise.
23018         * modules/unictype/combining-class (License): Likewise.
23019         * modules/unictype/joiningtype-of (License): Likewise.
23020         * modules/unictype/scripts (License): Likewise.
23021         * modules/uninorm/base (License): Likewise.
23022         * modules/uninorm/canonical-decomposition (License): Likewise.
23023         * modules/uninorm/composition (License): Likewise.
23024         * modules/uninorm/decompose-internal (License): Likewise.
23025         * modules/uninorm/decomposition-table (License): Likewise.
23026         * modules/uninorm/nfc (License): Likewise.
23027         * modules/uninorm/nfd (License): Likewise.
23028         * modules/uninorm/u32-normalize (License): Likewise.
23029         * modules/unistr/base (License): Likewise.
23030         * modules/unistr/u32-cpy (License): Likewise.
23031         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23032         * modules/unistr/u32-to-u8 (License): Likewise.
23033         * modules/unistr/u32-uctomb (License): Likewise.
23034         * modules/unistr/u8-check (License): Likewise.
23035         * modules/unistr/u8-mblen (License): Likewise.
23036         * modules/unistr/u8-mbtouc (License): Likewise.
23037         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23038         * modules/unistr/u8-mbtoucr (License): Likewise.
23039         * modules/unistr/u8-prev (License): Likewise.
23040         * modules/unistr/u8-strlen (License): Likewise.
23041         * modules/unistr/u8-to-u32 (License): Likewise.
23042         * modules/unistr/u8-uctomb (License): Likewise.
23043         * modules/unitypes (License): Likewise.
23044         Requested by Simon Josefsson.
23045
23046 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23047
23048         lib-symbol-visibility: Add a notice.
23049         * modules/lib-symbol-visibility (Notice): New field.
23050
23051 2011-03-29  Bruno Haible  <bruno@clisp.org>
23052
23053         getaddrinfo: Doc fix.
23054         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23055         section "fixed in Gnulib".
23056
23057 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23058
23059         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23060         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23061
23062 2011-03-26  Bruno Haible  <bruno@clisp.org>
23063
23064         unictype/property-byname: Reduce the number of load-time relocations.
23065         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23066         (UC_PROPERTY_INDEX_*): New enumeration values.
23067         (uc_property_byname): Convert an index from the lookup table to an
23068         uc_property_t.
23069         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23070         values.
23071
23072 2011-03-26  Bruno Haible  <bruno@clisp.org>
23073
23074         unictype/property-byname: Allow omitted word separators and aliases.
23075         * lib/unictype/pr_byname.gperf: Add property names without word
23076         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23077         for 'space'.
23078
23079 2011-03-26  Bruno Haible  <bruno@clisp.org>
23080
23081         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23082         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23083         also hyphens to space.
23084         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23085         without spaces.
23086         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23087
23088 2011-03-26  Bruno Haible  <bruno@clisp.org>
23089
23090         unictype/joiningtype-byname: Recognize long names as well.
23091         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23092         a long name.
23093         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23094         unictype/joiningtype_byname.h.
23095         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23096         * lib/unictype/joiningtype_byname.gperf: New file.
23097         * modules/unictype/joiningtype-byname (Files): Add
23098         lib/unictype/joiningtype_byname.gperf.
23099         (Depends-on): Add gperf.
23100         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23101         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23102         long names.
23103
23104         Tests for module 'unictype/joiningtype-longname'.
23105         * modules/unictype/joiningtype-longname-tests: New file.
23106         * tests/unictype/test-joiningtype_longname.c: New file.
23107
23108         New module 'unictype/joiningtype-longname'.
23109         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23110         * lib/unictype/joiningtype_longname.c: New file.
23111         * modules/unictype/joiningtype-longname: New file.
23112         * modules/unictype/joiningtype-all (Depends-on): Add
23113         unictype/joiningtype-longname.
23114
23115 2011-03-26  Bruno Haible  <bruno@clisp.org>
23116
23117         unictype/bidiclass-byname: Recognize long names as well.
23118         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23119         name.
23120         * lib/unictype/bidi_byname.c: Include <string.h>,
23121         unictype/bidi_byname.h.
23122         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23123         * lib/unictype/bidi_byname.gperf: New file.
23124         * modules/unictype/bidiclass-byname (Files): Add
23125         lib/unictype/bidi_byname.gperf.
23126         (Depends-on): Add gperf.
23127         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23128         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23129         long names.
23130
23131         Tests for module 'unictype/bidiclass-longname'.
23132         * modules/unictype/bidiclass-longname-tests: New file.
23133         * tests/unictype/test-bidi_longname.c: New file.
23134
23135         New module 'unictype/bidiclass-longname'.
23136         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23137         * lib/unictype/bidi_longname.c: New file.
23138         * modules/unictype/bidiclass-longname: New file.
23139         * modules/unictype/bidiclass-all (Depends-on): Add
23140         unictype/bidiclass-longname.
23141
23142 2011-03-26  Bruno Haible  <bruno@clisp.org>
23143
23144         unictype/bidi*: Rename modules.
23145         * modules/unictype/bidiclass-all: Renamed from
23146         modules/unictype/bidicategory-all.
23147         * modules/unictype/bidiclass-name: Renamed from
23148         modules/unictype/bidiclass-name.
23149         (Description): Update.
23150         * modules/unictype/bidiclass-name-tests: Renamed from
23151         modules/unictype/bidicategory-name-tests.
23152         * modules/unictype/bidiclass-byname: Renamed from
23153         modules/unictype/bidicategory-byname.
23154         (Description): Update.
23155         * modules/unictype/bidiclass-byname-tests: Renamed from
23156         modules/unictype/bidicategory-byname-tests.
23157         * modules/unictype/bidiclass-of: Renamed from
23158         modules/unictype/bidicategory-of.
23159         (Description): Update.
23160         * modules/unictype/bidiclass-of-tests: Renamed from
23161         modules/unictype/bidicategory-of-tests.
23162         * modules/unictype/bidiclass-test: Renamed from
23163         modules/unictype/bidicategory-test.
23164         (Description): Update.
23165         * modules/unictype/bidiclass-test-tests: Renamed from
23166         modules/unictype/bidicategory-test-tests.
23167         * modules/unictype/bidicategory-all: New file, a simple redirection.
23168         * modules/unictype/bidicategory-name: Likewise.
23169         * modules/unictype/bidicategory-byname: Likewise.
23170         * modules/unictype/bidicategory-of: Likewise.
23171         * modules/unictype/bidicategory-test: Likewise.
23172         * modules/unictype/property-bidi-* (Dependencies): Update.
23173         * lib/unictype/bidi_*.c: Update comment.
23174
23175 2011-03-26  Bruno Haible  <bruno@clisp.org>
23176
23177         unictype/bidi*: Rename functions, part 2.
23178         * modules/unictype/bidicategory-name (configure.ac): Update required
23179         libunistring version.
23180         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23181
23182 2011-03-25  Bruno Haible  <bruno@clisp.org>
23183
23184         New module 'unictype/combining-class-all'.
23185         * modules/unictype/combining-class-all: New file.
23186
23187         Tests for module 'unictype/combining-class-byname'.
23188         * modules/unictype/combining-class-byname-tests: New file.
23189         * tests/unictype/test-combiningclass_byname.c: New file.
23190
23191         New module 'unictype/combining-class-byname'.
23192         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23193         * lib/unictype/combiningclass_byname.c: New file.
23194         * lib/unictype/combiningclass_byname.gperf: New file.
23195         * modules/unictype/combining-class-byname: New file.
23196
23197         Tests for module 'unictype/combining-class-longname'.
23198         * modules/unictype/combining-class-longname-tests: New file.
23199         * tests/unictype/test-combiningclass_longname.c: New file.
23200
23201         New module 'unictype/combining-class-longname'.
23202         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23203         * lib/unictype/combiningclass_longname.c: New file.
23204         * modules/unictype/combining-class-longname: New file.
23205
23206         Tests for module 'unictype/combining-class-name'.
23207         * modules/unictype/combining-class-name-tests: New file.
23208         * tests/unictype/test-combiningclass_name.c: New file.
23209
23210         New module 'unictype/combining-class-name'.
23211         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23212         * lib/unictype/combiningclass_name.c: New file.
23213         * modules/unictype/combining-class-name: New file.
23214
23215 2011-03-25  Bruno Haible  <bruno@clisp.org>
23216
23217         unictype/combining-class: Rename source files.
23218         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23219         of unictype/combining.h.
23220         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23221         Update.
23222         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23223         * modules/unictype/combining-class (Description): Fix.
23224         (Files, Makefile.am): Update.
23225         * tests/unictype/test-combiningclass.c: Renamed from
23226         tests/unictype/test-combining.c.
23227         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23228
23229 2011-03-25  Bruno Haible  <bruno@clisp.org>
23230
23231         unictype: Update list of canonical combining classes.
23232         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23233
23234 2011-03-25  Bruno Haible  <bruno@clisp.org>
23235
23236         unictype/category-byname: Recognize long names as well.
23237         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23238         a long name.
23239         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23240         unictype/categ_byname.h.
23241         (UC_CATEGORY_INDEX_*): New enumeration values.
23242         (uc_general_category_byname): Use uc_general_category_lookup and
23243         convert from index to value.
23244         * lib/unictype/categ_byname.gperf: New file.
23245         * modules/unictype/category-byname (Files): Add
23246         lib/unictype/categ_byname.gperf.
23247         (Depends-on): Add gperf.
23248         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23249         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23250         long names.
23251
23252         Tests for module 'unictype/category-longname'.
23253         * modules/unictype/category-longname-tests: New file.
23254         * tests/unictype/test-categ_longname.c: New file.
23255
23256         New module 'unictype/category-longname'.
23257         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23258         * lib/unictype/categ_longname.c: New file.
23259         * modules/unictype/category-longname: New file.
23260         * modules/unictype/category-all (Depends-on): Add it.
23261
23262 2011-03-25  Bruno Haible  <bruno@clisp.org>
23263
23264         Tests for module 'unictype/category-LC'.
23265         * modules/unictype/category-LC-tests: New file.
23266         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23267
23268         New module 'unictype/category-LC'.
23269         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23270         (UC_CATEGORY_LC): New declaration.
23271         (UC_CASED_LETTER): New macro.
23272         * lib/gen-uni-tables.c (is_category_LC): New function.
23273         (output_categories): Also handle category LC.
23274         (UC_CATEGORY_MASK_LC): New enumeration value.
23275         (general_category_byname): Also handle category LC.
23276         * lib/unictype/categ_LC.c: New file.
23277         * lib/unictype/categ_LC.h: New file, automatically generated.
23278         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23279         category LC.
23280         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23281         * modules/unictype/category-LC: New file.
23282         * modules/unictype/category-byname (Depends-on): Add
23283         unictype/category-LC.
23284         * modules/unictype/category-all (Depends-on): Likewise.
23285
23286 2011-03-25  Eric Blake  <eblake@redhat.com>
23287
23288         xmalloc: revert yesterday's regression
23289         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23290         realloc's underlying behavior (allowing allocation of zero-size
23291         objects, especially if malloc-gnu is also in use).
23292
23293 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23294
23295         maint.mk: add missing version to VC-tag
23296         * top/maint.mk: git tag was missing actual tag name; add it.
23297
23298         valgrind: do leak checking, and exit with code 1 on error (not 0)
23299         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23300         to VALGRIND.
23301
23302 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23303
23304         posix-modules: say what it does.
23305         * posix-modules: Add a line to the --help output saying what it does.
23306
23307 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         xmalloc: Do not leak if underlying realloc is C99 compatible.
23310         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23311         This avoids a leak on C99-based systems.  See
23312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23313
23314 2011-03-24  Eric Blake  <eblake@redhat.com>
23315
23316         realloc: document portability problem
23317         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23318         passing 0 size to realloc.
23319
23320 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23321
23322         doc: update users.txt
23323         * users.txt: Add cvsps, tmpwatch
23324
23325 2011-03-23  Matt Rice  <ratmice@gmail.com>
23326
23327         doc: update users.txt
23328         * users.txt: Add gdb.
23329
23330 2011-03-23  Jim Meyering  <meyering@redhat.com>
23331
23332         doc: update users.txt
23333         Looking through matches up to the following URL (there are still
23334         several more pages), I found several projects that use gnulib:
23335         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23336         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23337         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23338
23339 2011-03-22  Bruno Haible  <bruno@clisp.org>
23340
23341         unictype/bidi*: Rename functions.
23342         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23343         uc_bidi_class, uc_is_bidi_class): New declarations.
23344         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23345         uc_bidi_category_byname.
23346         (uc_bidi_category_byname): New function.
23347         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23348         u_bidi_category_name.
23349         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23350         (uc_bidi_category_name): New function.
23351         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23352         uc_bidi_category.
23353         (uc_bidi_category): New function.
23354         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23355         uc_is_bidi_category. Invoke uc_bidi_class.
23356         (uc_is_bidi_category): New function.
23357         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23358         instead of uc_bidi_category_byname.
23359         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23360         instead of uc_bidi_category_name.
23361         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23362         uc_bidi_category.
23363         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23364         instead of uc_is_bidi_category.
23365
23366 2011-03-21  Bruno Haible  <bruno@clisp.org>
23367
23368         New module 'unictype/joininggroup-all'.
23369         * modules/unictype/joininggroup-all: New file.
23370
23371         Tests for module 'unictype/joininggroup-of'.
23372         * modules/unictype/joininggroup-of-tests: New file.
23373         * tests/unictype/test-joininggroup_of.c: New file.
23374         * tests/unictype/test-joininggroup_of.h: New file, automatically
23375         generated by gen-uni-tables.
23376
23377         New module 'unictype/joininggroup-of'.
23378         * modules/unictype/joininggroup-of: New file.
23379         * lib/unictype/joininggroup_of.c: New file.
23380         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23381         gen-uni-tables.
23382
23383         Tests for module 'unictype/joininggroup-byname'.
23384         * modules/unictype/joininggroup-byname-tests: New file.
23385         * tests/unictype/test-joininggroup_byname.c: New file.
23386
23387         New module 'unictype/joininggroup-byname'.
23388         * modules/unictype/joininggroup-byname: New file.
23389         * lib/unictype/joininggroup_byname.c: New file.
23390         * lib/unictype/joininggroup_byname.gperf: New file.
23391
23392         Tests for module 'unictype/joininggroup-name'.
23393         * modules/unictype/joininggroup-name-tests: New file.
23394         * tests/unictype/test-joininggroup_name.c: New file.
23395
23396         New module 'unictype/joininggroup-name'.
23397         * modules/unictype/joininggroup-name: New file.
23398         * lib/unictype/joininggroup_name.c: New file.
23399         * lib/unictype/joininggroup_name.h: New file.
23400
23401         New module 'unictype/joiningtype-all'.
23402         * modules/unictype/joiningtype-all: New file.
23403
23404         Tests for module 'unictype/joiningtype-of'.
23405         * modules/unictype/joiningtype-of-tests: New file.
23406         * tests/unictype/test-joiningtype_of.c: New file.
23407         * tests/unictype/test-joiningtype_of.h: New file, automatically
23408         generated by gen-uni-tables.
23409
23410         New module 'unictype/joiningtype-of'.
23411         * modules/unictype/joiningtype-of: New file.
23412         * lib/unictype/joiningtype_of.c: New file.
23413         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23414         gen-uni-tables.
23415
23416         Tests for module 'unictype/joiningtype-byname'.
23417         * modules/unictype/joiningtype-byname-tests: New file.
23418         * tests/unictype/test-joiningtype_byname.c: New file.
23419
23420         New module 'unictype/joiningtype-byname'.
23421         * modules/unictype/joiningtype-byname: New file.
23422         * lib/unictype/joiningtype_byname.c: New file.
23423
23424         Tests for module 'unictype/joiningtype-name'.
23425         * modules/unictype/joiningtype-name-tests: New file.
23426         * tests/unictype/test-joiningtype_name.c: New file.
23427
23428         New module 'unictype/joiningtype-name'.
23429         * modules/unictype/joiningtype-name: New file.
23430         * lib/unictype/joiningtype_name.c: New file.
23431
23432         unictype: Add support for Arabic shaping properties.
23433         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23434         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23435         declarations.
23436         (UC_JOINING_GROUP_*): New enumeration values.
23437         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23438         declarations.
23439         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23440         (unicode_joining_type): New variable.
23441         (UC_JOINING_GROUP_*): New enumeration values.
23442         (unicode_joining_group): New variable.
23443         (fill_arabicshaping, joining_type_as_c_identifier,
23444         output_joining_type_test, output_joining_type,
23445         joining_group_as_c_identifier, output_joining_group_test,
23446         output_joining_group): New functions.
23447         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23448         fill_arabicshaping and output_joining_type_test, output_joining_type,
23449         output_joining_group_test, output_joining_group.
23450         Reported by Simon Josefsson.
23451
23452 2011-03-21  Jim Meyering  <meyering@redhat.com>
23453
23454         strftime: fix a bug in yesterday's change
23455         * lib/strftime.c (add): Accommodate width's initial value of -1.
23456         Otherwise, nstrftime would copy uninitialized data into
23457         the result buffer.
23458
23459 2011-03-21  Jim Meyering  <meyering@redhat.com>
23460
23461         tests: add strftime-tests module
23462         * tests/test-strftime.c: New file.
23463         * modules/strftime-tests: New module.
23464
23465 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         strftime: don't assume a byte count fits in 'int'
23468         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23469         found this problem by static analysis, using gcc -Wstrict-overflow
23470         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23471         on an integer overflow having undefined behavior, but it turns out
23472         that the argument is a size, which might not fit in 'int' anyway,
23473
23474 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         stdio: don't require ignore_value around fwrite
23477
23478         This patch works around libc bug 11959
23479         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23480         Without this patch, applications must often write
23481         ignore_value (fwrite (...)) even though the ignore_value is
23482         not helpful here.  It's common to write many objects, using
23483         fwrite/printf/etc., and then use ferror to detect output error.
23484
23485         I considered making this patch optional, but decided against it,
23486         because libc is obviously being inconsistent here: there is no
23487         reason libc should insist that user code must inspect fwrite
23488         return's value without also insisting that it inspect printf's,
23489         putchar's, etc.  If user code wants to have a strict style where
23490         all these functions' values are checked (so that ferror need not
23491         be checked), we could add support for that style in a new gnulib
23492         module, but in the meantime it's better to be consistent and to
23493         support common usage.
23494
23495         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23496         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23497         that we are compiling in checking mode, and if not C++, and
23498         if not already wrapping fwrite for some other reason.
23499         (fwrite): #define to rpl_fwrite if the latter is defined.
23500
23501 2011-03-20  Bruno Haible  <bruno@clisp.org>
23502
23503         verror: Fix compilation error introduced on 2011-02-13.
23504         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23505         instead of __attribute__.
23506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23507
23508 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23509             Bruno Haible  <bruno@clisp.org>
23510
23511         socklen: do not depend on sys_socket
23512         While trying to modify Emacs to use gnulib's socklen module,
23513         I discovered a circular dependency: socklen depends on sys_socket
23514         and vice versa.  Emacs can use socklen, but it does not need
23515         sys_socket because it has its own substitute for sys/socket.h.
23516         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23517         gl_TYPE_SOCKLEN_T.
23518         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23519         gl_PREREQ_SYS_H_SOCKET.
23520         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23521         gl_PREREQ_SYS_H_SOCKET.
23522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23523         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23524         * modules/socklen (Depends-on): Do not depend on sys_socket.
23525         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23526
23527 2011-03-20  Jim Meyering  <meyering@redhat.com>
23528
23529         maint.mk: sort file names *after* new transformation
23530         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23531         prefix would have led to an unwarranted failure in GNU parted.
23532         Sort after that transformation.
23533
23534 2011-03-19  Jim Meyering  <meyering@redhat.com>
23535
23536         maint.mk: fix po-file syntax-check rule
23537         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23538         Patch by Bruno Haible.
23539
23540 2011-03-19  Bruno Haible  <bruno@clisp.org>
23541
23542         socklen: Update comment.
23543         * m4/socklen.m4: Update comment about platforms.
23544
23545 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23546             Bruno Haible  <bruno@clisp.org>
23547
23548         inet_ntop, inet_pton: Simplify.
23549         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23550         documented to provide socklen_t and we already depend on sys_socket.
23551         * modules/inet_pton (Depends-on): Likewise.
23552         * lib/arpa_inet.in.h: Adjust comment.
23553
23554 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23555             Bruno Haible  <bruno@clisp.org>
23556
23557         netdb: Simplify.
23558         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23559         documented to provide socklen_t and we already depend on sys_socket.
23560         * lib/netdb.in.h: Adjust comment.
23561
23562 2011-03-19  Bruno Haible  <bruno@clisp.org>
23563
23564         sys_socket, netdb: Document problem with socklen_t.
23565         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23566         platforms.
23567         * doc/posix-headers/netdb.texi: Likewise.
23568
23569 2011-03-18  Eric Blake  <eblake@redhat.com>
23570
23571         maint.mk: let po check work in VPATH build
23572         * top/maint.mk (po_file): Allow cfg.mk override.
23573         (sc_po_check): Allow VPATH use.
23574         Reported by Jiri Denemark.
23575
23576 2011-03-16  Jim Meyering  <meyering@redhat.com>
23577
23578         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23579         Before, you would have had to create one .x-sc_ file per rule in order
23580         to exempt offending files.  Now, you may instead use a Make variable --
23581         usually defined in cfg.mk -- whose name identifies the affected rule.
23582         * top/maint.mk (_sc_excl): Define.
23583         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23584         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23585
23586 2011-03-13  Bruno Haible  <bruno@clisp.org>
23587
23588         ignore-value tests: Avoid warnings.
23589         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23590         empty for gcc < 3.4.
23591
23592 2011-03-13  Bruno Haible  <bruno@clisp.org>
23593
23594         passfd: Fix link error on Solaris.
23595         * modules/passfd (Description): Correct.
23596         (Depends-on): Add socketlib.
23597         (Link): New section.
23598         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23599
23600 2011-03-13  Bruno Haible  <bruno@clisp.org>
23601
23602         passfd: Fix link error on AIX 5.2.
23603         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23604
23605 2011-03-13  Bruno Haible  <bruno@clisp.org>
23606
23607         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23608         * lib/sys_socket.in.h: Include <stddef.h>.
23609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23610         CMSG_FIRSTHDR. Remove unused variable.
23611
23612 2011-03-13  Bruno Haible  <bruno@clisp.org>
23613
23614         passfd: Fix compilation error on OpenBSD.
23615         * lib/passfd.c: Include <sys/uio.h>.
23616
23617 2011-03-13  Bruno Haible  <bruno@clisp.org>
23618
23619         passfd test: Fix warnings.
23620         * tests/test-passfd.c: Include <sys/wait.h>.
23621         (main): Fix typo.
23622
23623 2011-03-13  Bruno Haible  <bruno@clisp.org>
23624
23625         passfd module, part 4, tweaks.
23626         * tests/test-passfd.c: Reorder includes.
23627         (main): Fix perror and printf calls.
23628
23629 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23630
23631         passfd module, part 4.
23632         * modules/passfd-tests: New file.
23633         * tests/test-passfd.c: New file.
23634
23635 2011-03-13  Jim Meyering  <meyering@redhat.com>
23636
23637         Makefile: rely on GNU make; derive syntax-check rule names
23638         Rather than requiring that each sc_ rule be listed as a dependent
23639         of "check", use features of GNU make to derive the list.
23640         * Makefile (syntax-check-rules): Define.
23641         (check): Depend on the new variable, not the hard-coded list.
23642
23643 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23644             Bruno Haible  <bruno@clisp.org>
23645
23646         passfd module, part 3.
23647         * lib/passfd.h (recvfd): Add a flags argument.
23648         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23649         (recvfd): Add a flags argument.
23650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23651         exists.
23652         * modules/passfd (Depends-on): Add cloexec.
23653         Suggested by Eric Blake.
23654
23655 2011-03-13  Bruno Haible  <bruno@clisp.org>
23656
23657         passfd module, part 2, tweaks.
23658         * modules/passfd (Files): Reorder.
23659         (Depends-on): Remove errno.
23660         (Include): Remove <sys/socket.h>, <sys/un.h>.
23661         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23662         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23663         specification header. Include <sys/socket.h> always. Don't include
23664         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23665         (sendfd): Clarify that it sets errno when it fails.
23666         (recvfd): Fix specification.
23667
23668 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23669
23670         passfd module, part 2.
23671         * modules/passfd: New file.
23672         * lib/passfd.h: New file.
23673         * lib/passfd.c: New file.
23674
23675 2011-03-12  Bruno Haible  <bruno@clisp.org>
23676
23677         wcswidth, mbswidth: Avoid integer overflow.
23678         * lib/wcswidth.c: Include <limits.h>.
23679         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23680         * lib/mbswidth.c: Include <limits.h>.
23681         (mbsnwidth): Avoid 'int' overflow.
23682         Reported by Jim Meyering.
23683
23684 2011-03-12  Bruno Haible  <bruno@clisp.org>
23685
23686         futimens, utimensat: Avoid endless recursion on Solaris 10.
23687         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23688         Solaris.
23689         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23690         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23691
23692 2011-03-11  Jim Meyering  <meyering@redhat.com>
23693
23694         maint.mk: relax a regexp to accommodate other formatting styles
23695         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23696         between "ngettext" and the following "(".
23697
23698 2011-03-11  Pádraig Brady <P@draigBrady.com>
23699
23700         maint.mk: suppress a false positive warning
23701         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23702         diagnostics are marked with ngettext.
23703
23704 2011-03-10  Eric Blake  <eblake@redhat.com>
23705
23706         wchar: add explicit dependencies, for Tru64
23707         * modules/mbmemcasecoll (Depends-on): Add wchar.
23708         * modules/mbtowc (Depends-on): Likewise.
23709         * modules/vasnprintf (Depends-on): Likewise.
23710         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23711         * modules/wctomb (Depends-on): Likewise.
23712         Reported by Peter O'Gorman.
23713
23714 2011-03-08  Bruno Haible  <bruno@clisp.org>
23715
23716         passfd module, part 1, tweaks.
23717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23718         Improve indentation. Improve AC_MSG_CHECKING messages.
23719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23720         gl_SOCKET_FAMILIES.
23721
23722 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23723
23724         passfd module, part 1.
23725         * m4/afunix.m4: New file.
23726         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23727         sockets.
23728
23729 2011-03-08  Bruno Haible  <bruno@clisp.org>
23730
23731         regex-quote: New API.
23732         * lib/regex-quote.h: Include <stdbool.h>.
23733         (struct regex_quote_spec): New type.
23734         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23735         New declarations.
23736         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23737         'const struct regex_quote_spec *' argument.
23738         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23739         (pcre_special): New constant.
23740         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23741         New functions.
23742         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23743         'const struct regex_quote_spec *' argument.
23744         * modules/regex-quote (Depends-on): Add stdbool.
23745         * tests/test-regex-quote.c (check): Update for new API. Add test for
23746         anchored results.
23747         * NEWS: Mention the API change.
23748         Reported by Reuben Thomas and Eric Blake.
23749
23750 2011-03-06  Bruno Haible  <bruno@clisp.org>
23751
23752         regex-quote: Fix creation of POSIX extended regular expressions.
23753         * lib/regex-quote.c (ere_special): Add grouping and alternation
23754         operators.
23755
23756 2011-03-05  Bruno Haible  <bruno@clisp.org>
23757
23758         doc: Improve doc regarding autopoint vs. gnulib.
23759         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23760         disable autopoint while running autoreconf.
23761         Suggested by Ralf Wildenhues.
23762
23763 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23764
23765         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23766         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23767
23768 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23769
23770         parse-duration: remove xalloc.h dependency
23771         * lib/parse-duration.c (parse_period): handle NULL return from
23772         strdup instead of calling xstrdup().
23773         * modules/parse-duration: remove "xalloc" dependency
23774
23775 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23776
23777         bootstrap: honor m4_base when running aclocal
23778         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23779
23780 2011-03-02  Jim Meyering  <meyering@redhat.com>
23781
23782         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23783         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23784         on request from Matt Booth.
23785
23786 2011-03-01  Eric Blake  <eblake@redhat.com>
23787
23788         test-link: work on Hurd
23789         * tests/test-link.h (test_link): Hurd rejects linking directories
23790         with EISDIR instead of the POSIX-mandated EPERM.
23791
23792 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23793
23794         stdio: simplify by moving files to printf-posix, sigpipe
23795         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23796         since this symbol is needed only if printf is replaced.
23797         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23798         Require gl_ASM_SYMBOL_PREFIX.
23799         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23800         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23801         (Depends-on): Add 'raise'.
23802         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23803         * modules/stdio (Files): Remove lib/stdio-write.c,
23804         m4/asm-underscore.m4.
23805         (Depends-on): Remove 'raise'.
23806
23807         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23808         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23810         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23811
23812 2011-02-28  Bruno Haible  <bruno@clisp.org>
23813
23814         localcharset: Assume ANSI C behaviour of free().
23815         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23816         calling free().
23817         Suggested by Simon Josefsson <simon@josefsson.org>.
23818
23819 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23820             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23821             Bruno Haible  <bruno@clisp.org>  (tiny change)
23822
23823         On Cygwin, use /proc file system instead of win32 API.
23824         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23825         Win32 file names.
23826         (DllMain): Simplify by removing Cygwin specific code.
23827         (find_shared_library_fullname): Use Linux specific implementation also
23828         for Cygwin.
23829         (get_shared_library_fullname): Update accordingly.
23830         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23831         Win32 file names.
23832         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23833         Cygwin specific code.
23834
23835 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23836             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23837
23838         Fix OpenMP flag detection for various Fortran compilers.
23839         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23840         OpenMP-conditional compilation construct, to force compile
23841         failure with missing OpenMP flag.
23842         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23843
23844 2011-02-25  Eric Blake  <eblake@redhat.com>
23845
23846         strstr: expand test coverage
23847         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23848         compilation.
23849         * tests/test-memmem.c (main): Duplicate tests.
23850         * tests/test-strcasestr.c (main): Likewise.
23851         * tests/test-c-strcasestr.c (main): Likewise.
23852
23853 2011-02-25  Jim Meyering  <meyering@redhat.com>
23854
23855         maint.mk: detect missing-NL-at-EOF, too
23856         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23857         it also detects when a file lacks a newline at EOF.
23858         (require_exactly_one_NL_at_EOF_): Renamed from
23859         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23860         since people may well have .x-sc_... file names tied to the
23861         existing name.  Suggested by Eric Blake.
23862
23863 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23864
23865         dirname: move m4/dos.m4 functionality into lib/dosname.h
23866
23867         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23868         extracts symbols from it, puts them into config.h; but it's much
23869         easier to use the symbols directly.  filename.h already does this,
23870         but it disagrees with dos.m4 in some respects.  This patch
23871         introduces a different include file dosname.h that packages up
23872         dos.m4, and then later we can work on merging filename.h and
23873         dosname.h.  Applications that need only the easy-to-configure
23874         symbols should consider including dosname.h rather than dirname.h.
23875         * NEWS: Mention incompatible changes.
23876         * m4/dos.m4: Remove.
23877         * lib/dosname.h, modules/dosname: New files.
23878         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23879         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23880         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23881         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23882         Include dosname.h, not dirname.h.
23883         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23884         Include dosname.h, for definitions of symbols like ISSLASH
23885         that used to be in config.h.
23886         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23888         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23890         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23891         * modules/rmdir (Files): Likewise.
23892         * modules/stat (Files): Likewise.
23893         * modules/unlink (Files): Likewise.
23894         * modules/dirname-lgpl (Depends-on): Add dosname.
23895         * modules/lstat (Depends-on): Likewise.
23896         * modules/openat (Depends-on): Likewise.
23897         * modules/rmdir (Depends-on): Likewise.
23898         * modules/savewd (Depends-on): Likewise.
23899         * modules/stat (Depends-on): Likewise.
23900         * modules/unlink (Depends-on): Likewise.
23901         * modules/openat (Depends-on): Remove dirname-lgpl.
23902         * modules/savewd (Depends-on): Likewise.
23903         * tests/test-dirname.c: Do not use removed symbols like
23904         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23905         the remaining symbols, e.g., ISSLASH ('\\').
23906
23907 2011-02-25  Eric Blake  <eblake@redhat.com>
23908
23909         strstr: revert patches that introduced bug and pessimization
23910         * lib/str-two-way.h: Add another reference.
23911         (two_way_short_needle, two_way_long_needle): Revert changes from
23912         2011-02-24; they pessimize search speed.
23913         (critical_factorization): Partially revert changes from
23914         2010-06-22; they violate the requirement that the left half of the
23915         needle be smaller than the period of the needle.
23916
23917 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23918
23919         filenamecat: remove unnecessary dependency on dirname-lgpl
23920         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23921         is no direct dependency, just an indirect one via filenamecat-lgpl.
23922
23923         remove: remove unnecessary use of m4/dos.m4
23924         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23925         * modules/remove (FILES): Remove m4/dos.m4.
23926
23927         * lib/openat-proc.c: Don't include dirname.h; not needed.
23928
23929         backupfile: remove unnecessary use of m4/dos.m4
23930         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23931         of its symbols are used by the backupfile code.  backupfile.c does
23932         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23933         for the rare case of programs that want all their backup file
23934         names to live within 8+3 limits, and dos.m4 doesn't address that.
23935         * modules/backupfile (Files): Remove m4/dos.m4.
23936
23937 2011-02-24  Jim Meyering  <meyering@redhat.com>
23938
23939         strstr: fix a bug whereby strstr would mistakenly return NULL
23940         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23941         in period calculation.
23942         (two_way_long_needle): Likewise.
23943         The original problem was reported by Mike Stump in
23944         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23945         Ralf Wildenhues provided the short needle and haystack.
23946         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23947         Add a more involved test to trigger the bug in two_way_long_needle.
23948
23949 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23950
23951         gnulib-tool: remove use of bold display in help screen
23952         * gnulib-tool (func_usage): Do not use bold display anymore in the
23953         help screen.  That was just meant to be a temporary emphasis for a
23954         backward-incompatible change.
23955
23956 2011-02-23  Bruno Haible  <bruno@clisp.org>
23957
23958         Fix misindentation of preprocessor directives.
23959         * lib/argp-namefrob.h: Reindent preprocessor directives.
23960         * lib/getopt_int.h (struct _getopt_data): Likewise.
23961         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23962         * lib/vasnprintf.c (decode_long_double): Likewise.
23963         * tests/test-argmatch.c: Insert blank lines, for clarity.
23964         * tests/test-exclude.c: Likewise.
23965
23966 2011-02-22  Bruno Haible  <bruno@clisp.org>
23967
23968         ioctl: Fix for MacOS X in 64-bit mode.
23969         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23970         value.
23971         Suggested by Eric Blake.
23972         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23973
23974 2011-02-22  Jim Meyering  <meyering@redhat.com>
23975
23976         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23977         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23978         in lib/.
23979
23980 2011-02-22  Eric Blake  <eblake@redhat.com>
23981
23982         maint: avoid any CDPATH issue
23983         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23984
23985         maint: adjust cpp indentation for my modules, as well
23986         * Makefile (sc_cpp_indent_check): Add my name.
23987         * lib/fbufmode.c: Filter through cppi.
23988         * lib/fpurge.c: Likewise.
23989         * lib/freadable.c: Likewise.
23990         * lib/freading.c: Likewise.
23991         * lib/fwritable.c: Likewise.
23992         * lib/fwriting.c: Likewise.
23993         * lib/sigaction.c: Likewise.
23994
23995 2011-02-22  Jim Meyering  <meyering@redhat.com>
23996
23997         maint: adjust cpp indentation to reflect nesting depth
23998         I.e., in a block of code that begins with an unnested "#if",
23999         put one space between the "#" in column 1 and following token.
24000         For example,
24001         -#include <sys/vfs.h>
24002         +# include <sys/vfs.h>
24003         Do this only in .c files that are part of a module I maintain.
24004         * lib/linkat.c: Filter through cppi.
24005         * lib/nanosleep.c: Likewise.
24006         * lib/openat.c: Likewise.
24007         * lib/openat-die.c: Likewise.
24008         * lib/dup3.c: Likewise.
24009         * lib/fchownat.c: Likewise.
24010         * lib/flock.c: Likewise.
24011         * lib/fsync.c: Likewise.
24012         * lib/fts.c: Likewise.
24013         * lib/getpass.c: Likewise.
24014         * lib/gettimeofday.c: Likewise.
24015         * lib/userspec.c: Likewise.
24016         * Makefile (sc_cpp_indent_check): New rule, to check this.
24017
24018 2011-02-22  Bruno Haible  <bruno@clisp.org>
24019
24020         New module 'wctomb'.
24021         * lib/stdlib.in.h (wctomb): New declaration.
24022         * lib/wctomb.c: New file.
24023         * lib/wctomb-impl.h: New file.
24024         * m4/wctomb.m4: New file.
24025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24026         REPLACE_WCTOMB.
24027         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24028         REPLACE_WCTOMB.
24029         * modules/wctomb: New file.
24030         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24031         * doc/posix-functions/wctomb.texi: Mention the new module.
24032         * modules/wctob (Depends-on): Add wctomb.
24033
24034 2011-02-22  Bruno Haible  <bruno@clisp.org>
24035
24036         New module 'mbtowc'.
24037         * lib/stdlib.in.h (mbtowc): New declaration.
24038         * lib/mbtowc.c: New file.
24039         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24040         * m4/mbtowc.m4: New file.
24041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24042         REPLACE_MBTOWC.
24043         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24044         REPLACE_MBTOWC.
24045         * modules/mbtowc: New file.
24046         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24047         * doc/posix-functions/mbtowc.texi: Mention the new module.
24048         * modules/btowc (Depends-on): Add mbtowc.
24049
24050 2011-02-22  Bruno Haible  <bruno@clisp.org>
24051
24052         wcrtomb: Add more tests for native Windows platforms.
24053         * tests/test-wcrtomb-w32-1.sh: New file.
24054         * tests/test-wcrtomb-w32-2.sh: New file.
24055         * tests/test-wcrtomb-w32-3.sh: New file.
24056         * tests/test-wcrtomb-w32-4.sh: New file.
24057         * tests/test-wcrtomb-w32-5.sh: New file.
24058         * tests/test-wcrtomb-w32.c: New file.
24059         * modules/wcrtomb-tests (Files): Add them.
24060         (Makefile.am): Arrange to run these tests.
24061         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24062         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24063
24064 2011-02-20  Bruno Haible  <bruno@clisp.org>
24065
24066         wcrtomb: Enhance test.
24067         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24068
24069 2011-02-20  Bruno Haible  <bruno@clisp.org>
24070
24071         mbrtowc: Tiny optimization.
24072         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24073
24074 2011-02-20  Jim Meyering  <meyering@redhat.com>
24075
24076         test-exclude.c: remove unmatched #endif
24077         * tests/test-exclude.c: Remove stray #endif, left over from
24078         the change of a week ago.
24079
24080 2011-02-19  Jim Meyering  <meyering@redhat.com>
24081
24082         git-version-gen: skip "-dirty" check when appropriate
24083         * build-aux/git-version-gen: Don't run any git commands when the
24084         version string comes from .tarball-version.  Prior to this, we
24085         would run git update-index --refresh even from a just-unpacked
24086         tarball directory, and that could affect a .git/ directory in a
24087         parent of the build directory.  Reported by Mike Frysinger.
24088
24089 2011-02-19  Bruno Haible  <bruno@clisp.org>
24090
24091         unictype/property-byname: Reduce the size of the 'data' segment.
24092         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24093
24094 2011-02-19  Bruno Haible  <bruno@clisp.org>
24095
24096         unictype/scripts: Reduce the size of the 'data' segment.
24097         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24098         '%pic'.
24099         * lib/unictype/scripts_byname.gperf: Regenerated.
24100
24101 2011-02-19  Bruno Haible  <bruno@clisp.org>
24102
24103         stdint: Update documentation.
24104         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24105
24106 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24107
24108         stdint: omit redundant check for wchar.h
24109         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24110         always tests whether wchar.h exists, so remove the now-redundant test.
24111
24112 2011-02-18  Bruno Haible  <bruno@clisp.org>
24113
24114         stdint: Cut dependency to module 'wchar'.
24115         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24116         include the necessary prerequisites.
24117         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24118         * modules/stdint (Depends-on): Remove wchar.
24119         (Makefile.am): Substitute HAVE_WCHAR_H.
24120         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24121
24122 2011-02-18  Eric Blake  <eblake@redhat.com>
24123
24124         longlong: skip, rather than fail, on cross-compilation
24125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24126         when cross-compiling; regression from 2011-02-16.
24127
24128 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24129
24130         * NEWS: Mention 2011-02-08 change to stdlib.
24131
24132 2011-02-17  Bruno Haible  <bruno@clisp.org>
24133
24134         getloadavg: Add comments about platforms.
24135         * m4/getloadavg.m4: Add comment.
24136         * lib/getloadavg.c: Likewise.
24137
24138 2011-02-17  Bruno Haible  <bruno@clisp.org>
24139
24140         getloadavg: Fix link error on Solaris 2.6.
24141         * modules/getloadavg (Link): New section.
24142         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24143         linking test-getloadavg.
24144         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24145         getloadavg.
24146
24147 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24148
24149         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24150         It was 'int', but this doesn't match the IRIX 6.5 manual.
24151         Suggested by Bruno Haible in
24152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24153
24154 2011-02-17  Bruno Haible  <bruno@clisp.org>
24155
24156         havelib: Fix comments.
24157         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24158         change.
24159
24160 2011-02-17  Bruno Haible  <bruno@clisp.org>
24161
24162         havelib: Update config.rpath.
24163         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24164
24165 2011-02-17  Bruno Haible  <bruno@clisp.org>
24166
24167         getloadavg test: Add some plausibility checks.
24168         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24169         is improbable.
24170
24171 2011-02-16  Eric Blake  <eblake@redhat.com>
24172
24173         maintainer-makefile: make syntax-check a no-op from tarballs
24174         * top/maint.mk (no-vc-detected): New rule.
24175         (local-checks-available): Use it to avoid hanging if someone tries
24176         'make syntax-check' from a tarball.  Also append to any non-syntax
24177         checks already defined in cfg.mk.
24178
24179 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24180
24181         longlong: tune, particularly for common case of c99
24182
24183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24184         or running anything if c99, or if unsigned long long int does not
24185         work.  In either case, we know the answer without further tests.
24186         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24187         it at most once, and use its results for both long long int and
24188         unsigned long long int.  This is more likely to be efficient in
24189         the common case where the program wants to check for both long
24190         long int and unsigned long long int.
24191         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24192         since the answer is already known.
24193
24194 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         getloadavg: set errno
24197         * lib/getloadavg.c: Set errno when returning -1.  If no other
24198         error number looks appropriate, set it to ENOSYS if the getloadavg
24199         looks like it can't possibly ever work, ENOTSUP otherwise.
24200         Suggested by Bruno Haible in
24201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24202
24203         getloadavg: trim unused parts and speed up 'configure'
24204         * NEWS: Document this.
24205         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24206         always compiled if getloadavg is absent.
24207         Move test code to ...
24208         * tests/test-getloadavg.c: New file, containing previous
24209         contents of test from lib/getloadavg.c.  It also contains
24210         suggestions by Bruno Haible in
24211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24212         * modules/getloadavg-tests: New file.
24213         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24214         Do tests in the same order as they're needed for getloadavg.c.
24215         Omit setgid-related tests that generate symbols KMEM_GROUP,
24216         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24217         Do only the tests that are needed to see whether the system has
24218         getloadavg, moving the other tests into ...
24219         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24220         NLIST_NAME_UNION; nobody should be using it.  Do not define
24221         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24222         relevant, as the user of this module shouldn't care how getloadavg
24223         is implemented.
24224
24225         getloadavg: omit unused var
24226         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24227
24228 2011-02-15  Jim Meyering  <meyering@redhat.com>
24229
24230         doc: update users.txt
24231         * users.txt: Update iwhd's URL.
24232
24233 2011-02-13  Bruno Haible  <bruno@clisp.org>
24234
24235         Consistent macro naming for macros that use GCC __attribute__.
24236         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24237         _ATTRIBUTE_NONNULL_.
24238         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24239         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24240         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24241         ATTRIBUTE_DEPRECATED.
24242         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24243         ATTRIBUTE_NORETURN.
24244         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24245         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24246         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24247         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24248         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24249         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24250         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24251         ATTRIBUTE_SENTINEL.
24252         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24253         ATTRIBUTE_RETURN_CHECK.
24254         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24255         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24256         ATTRIBUTE_NORETURN.
24257         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24258         Reported by Paul Eggert.
24259
24260 2011-02-13  Bruno Haible  <bruno@clisp.org>
24261
24262         Don't interfere with a program's definition of __attribute__.
24263         * lib/argp.h (__attribute__): Remove definition.
24264         (_GL_ATTRIBUTE_FORMAT): New macro.
24265         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24266         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24267         (_GL_ATTRIBUTE_FORMAT): New macro.
24268         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24269         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24270         GCC 3 or newer.
24271         * lib/error.h (__attribute__): Remove definition.
24272         (_GL_ATTRIBUTE_FORMAT): New macro.
24273         (error, error_at_line): Use it.
24274         * lib/hash.h (__attribute__): Remove definition.
24275         (ATTRIBUTE_WUR): Update definition. Define always.
24276         * lib/openat.h (__attribute__): Remove definition.
24277         (ATTRIBUTE_NORETURN): Update definition. Define always.
24278         * lib/sigpipe-die.h (__attribute__): Remove definition.
24279         (ATTRIBUTE_NORETURN): Update definition. Define always.
24280         * lib/vasnprintf.h (__attribute__): Remove definition.
24281         (_GL_ATTRIBUTE_FORMAT): New macro.
24282         (asnprintf, vasnprintf): Use it.
24283         * lib/xalloc.h (__attribute__): Remove definition.
24284         (ATTRIBUTE_NORETURN): Update definition. Define always.
24285         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24286         * lib/xmemdup0.h (__attribute__): Remove definition.
24287         (ATTRIBUTE_NORETURN): Update definition. Define always.
24288         * lib/xprintf.h (__attribute__): Remove definition.
24289         (_GL_ATTRIBUTE_FORMAT): New macro.
24290         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24291         * lib/xstrtol.h (__attribute__): Remove definition.
24292         (ATTRIBUTE_NORETURN): Update definition. Define always.
24293         * lib/xvasprintf.h (__attribute__): Remove definition.
24294         (_GL_ATTRIBUTE_FORMAT): New macro.
24295         (xasprintf, xvasprintf): Use it.
24296         * tests/test-argmatch.c (__attribute__): Remove definition.
24297         (ATTRIBUTE_NORETURN): Update definition. Define always.
24298         * tests/test-exclude.c (__attribute__): Remove definition.
24299         (ATTRIBUTE_NORETURN): Update definition. Define always.
24300         Reported by Paul Eggert.
24301
24302 2011-02-13  Bruno Haible  <bruno@clisp.org>
24303
24304         mbrtowc: Add more tests for native Windows platforms.
24305         * tests/test-mbrtowc-w32-1.sh: New file.
24306         * tests/test-mbrtowc-w32-2.sh: New file.
24307         * tests/test-mbrtowc-w32-3.sh: New file.
24308         * tests/test-mbrtowc-w32-4.sh: New file.
24309         * tests/test-mbrtowc-w32-5.sh: New file.
24310         * tests/test-mbrtowc-w32.c: New file.
24311         * modules/mbrtowc-tests (Files): Add them.
24312         (Makefile.am): Arrange to run these tests.
24313         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24314         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24315
24316 2011-02-13  Bruno Haible  <bruno@clisp.org>
24317
24318         mbrtowc: Work around native Windows bug.
24319         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24320         guess when no suitable locale for testing was found.
24321         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24322
24323 2011-02-13  Bruno Haible  <bruno@clisp.org>
24324
24325         mbsinit: Work around mingw bug.
24326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24327         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24328         Windows.
24329         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24330
24331 2011-02-13  Bruno Haible  <bruno@clisp.org>
24332
24333         mbsinit: Don't crash for a NULL argument.
24334         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24335         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24336
24337 2011-02-13  Bruno Haible  <bruno@clisp.org>
24338
24339         Don't interfere with a program's definition of __attribute__.
24340         * lib/stdio.in.h (__attribute__): Remove definition.
24341         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24342         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24343         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24344         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24345         * lib/string.in.h (__attribute__): Remove definition.
24346         Reported by Paul Eggert.
24347
24348 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         stdlib: don't get in the way of non-GCC __attribute__
24351         See thread starting at
24352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24353         Revert previous stdlib change, installing the following instead:
24354         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24355         to get in the way of a non-GCC compiler that supports __attribute__.
24356         (_GL_ATTRIBUTE_RETURN): New macro.
24357         (_Exit): Use it instead of __attribute__.
24358
24359 2011-02-12  Bruno Haible  <bruno@clisp.org>
24360
24361         quotearg test: Avoid test failure on mingw.
24362         * tests/test-quotearg.sh: Convert the locale identifier from native
24363         Windows syntax to Unix syntax.
24364
24365 2011-02-12  Bruno Haible  <bruno@clisp.org>
24366
24367         setlocale: Prefer gnulib's override over libintl's override.
24368         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24369         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24370         GNULIB_defined_setlocale is set.
24371
24372 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24373
24374         stdlib: support non-GCC __attribute__
24375
24376         Fix a serious and tricky problem encountered when attempting to
24377         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24378         5.5, but it crashed due to memory corruption on Solaris 10 with
24379         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24380         bits that are otherwise zero.  This tagging is optional inside
24381         Emacs but is preferred and is used when __attribute__ ((__aligned
24382         (8))) works, as it does with both recent-enough GCC and with Sun C
24383         5.11.  However, Sun C 5.11 is not GCC and does not #define
24384         __GNUC__ and __GNUC_MINOR__.
24385
24386         When I added the getloadavg module to Emacs, it brought in
24387         stdlib.in.h, which contained this fragment:
24388
24389            #ifndef __attribute__
24390            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24391            #  define __attribute__(Spec)   /* empty */
24392            # endif
24393            #endif
24394
24395         When files that include <stdlib.h> were compiled with Sun C 5.11,
24396         the above code disabled __attribute__ ((__aligned (8))), which
24397         caused variables to not be properly aligned, which eventually led
24398         to the pointer corruption mentioned above.  (This was a bit hard
24399         to diagnose, unfortunately.)
24400
24401         Several "#define __attribute__(X) /* empty */" code snippets need
24402         to be eradicated from Gnulib to work with non-GCC compilers that
24403         support __attribute__.  The Autoconf way to do this is to test for
24404         each kind of attribute that we want support for, and selectively
24405         enable that in source code.
24406
24407         Fix this problem just for stdlib.h, by adding a test for the
24408         __noreturn__ attribute, and change stdlib.in.h to use that test
24409         when needed.  This technique can be easily generalized to the
24410         other *.in.h files and attributes, and a similar technique can be
24411         used for *.h and *.c files.  This patch is enough to solve the
24412         problem for Emacs + getloadavg, and I thought I'd publish it for
24413         feedback before undertaking further, similar fixes in other
24414         modules.
24415
24416         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24417         because it's not needed for stdlib.h.  It merely substitutes the
24418         value directly into stdlib.h.  We may well need to #define it, or
24419         similar symbols, for other modules, but it's nice to also have an
24420         option to not #define it for applications like Emacs that do not
24421         need it.
24422
24423         * lib/stdlib.in.h (__attribute__): Do not #define.
24424         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24425         be defined only if the _Exit module is also used.
24426         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24428         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24429         platforms.
24430         * modules/_Exit (Files): Add m4/attribute.m4.
24431         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24432         * m4/attribute.m4: New file.
24433
24434 2011-02-12  Bruno Haible  <bruno@clisp.org>
24435
24436         wcsrtombs: Work around bug on native Windows.
24437         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24438         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24439         instead of len.
24440         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24441
24442 2011-02-12  Bruno Haible  <bruno@clisp.org>
24443
24444         mbsrtowcs: Work around bug on native Windows.
24445         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24446         against mingw bug.
24447         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24448
24449 2011-02-12  Bruno Haible  <bruno@clisp.org>
24450
24451         Avoid setlocale bugs in tests.
24452         * modules/btowc (Dependencies): Add setlocale.
24453         * modules/c-strcase (Dependencies): Likewise.
24454         * modules/mbmemcasecmp (Dependencies): Likewise.
24455         * modules/mbmemcasecoll (Dependencies): Likewise.
24456         * modules/mbrtowc (Dependencies): Likewise.
24457         * modules/mbscasecmp (Dependencies): Likewise.
24458         * modules/mbscasestr (Dependencies): Likewise.
24459         * modules/mbschr (Dependencies): Likewise.
24460         * modules/mbscspn (Dependencies): Likewise.
24461         * modules/mbsinit (Dependencies): Likewise.
24462         * modules/mbsncasecmp (Dependencies): Likewise.
24463         * modules/mbsnrtowcs (Dependencies): Likewise.
24464         * modules/mbspbrk (Dependencies): Likewise.
24465         * modules/mbspcasecmp (Dependencies): Likewise.
24466         * modules/mbsrchr (Dependencies): Likewise.
24467         * modules/mbsrtowcs (Dependencies): Likewise.
24468         * modules/mbsspn (Dependencies): Likewise.
24469         * modules/mbsstr (Dependencies): Likewise.
24470         * modules/nl_langinfo (Dependencies): Likewise.
24471         * modules/quotearg (Dependencies): Likewise.
24472         * modules/unicase/locale-language (Dependencies): Likewise.
24473         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24474         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24475         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24476         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24477         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24478         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24479         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24480         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24481         * modules/vasnprintf-posix (Dependencies): Likewise.
24482         * modules/wcrtomb (Dependencies): Likewise.
24483         * modules/wcsnrtombs (Dependencies): Likewise.
24484         * modules/wcsrtombs (Dependencies): Likewise.
24485
24486 2011-02-12  Bruno Haible  <bruno@clisp.org>
24487
24488         setlocale: Workaround native Windows bug.
24489         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24490         succeeds but sets LC_CTYPE to "C", report a failure.
24491         * tests/test-setlocale2.sh: New file.
24492         * tests/test-setlocale2.c: New file.
24493         * modules/setlocale-tests (Files): Add the new files.
24494         (Makefile.am): Enable test-setlocale2.sh test.
24495         * doc/posix-functions/setlocale.texi: Mention workaround.
24496
24497 2011-02-11  Bruno Haible  <bruno@clisp.org>
24498
24499         Tests for module 'setlocale'.
24500         * modules/setlocale-tests: New file.
24501         * tests/test-setlocale1.sh: New file.
24502         * tests/test-setlocale1.c: New file.
24503
24504         New module 'setlocale'.
24505         * lib/locale.in.h (setlocale): New declaration.
24506         * lib/setlocale.c: New file, based on
24507         gettext/gettext-runtime/intl/setlocale.c.
24508         * m4/setlocale.m4: New file.
24509         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24510         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24511         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24512         REPLACE_SETLOCALE.
24513         * modules/setlocale: New file.
24514         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24515         * doc/posix-functions/setlocale.texi: Mention the new module.
24516
24517 2011-02-11  Bruno Haible  <bruno@clisp.org>
24518
24519         Prepare for locale dependent tests on mingw.
24520         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24521         because it has the wrong locale encoding.
24522         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24523         French_France.1252 instead of "fr".
24524         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24525         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24526         because it has the wrong locale encoding.
24527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24528         native Windows, try Turkish_Turkey.65001.
24529         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24530         Chinese_China.54936.
24531
24532         Prepare for locale dependent tests on mingw.
24533         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24534         differently.
24535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24536         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24537         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24539
24540 2011-02-11  Eric Blake  <eblake@redhat.com>
24541
24542         strptime: avoid compiler warnings
24543         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24544         compiler warnings about dead code.
24545         Reported by Daniel P. Berrange.
24546
24547 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24548
24549         doc: update users.txt
24550         * users.txt: Add rcs.
24551
24552 2011-02-10  John W. Eaton  <jwe@gnu.org>
24553
24554         doc: update users.txt
24555         * users.txt: Add octave.
24556
24557 2011-02-10  Jim Meyering  <meyering@redhat.com>
24558
24559         doc: update users.txt
24560         * users.txt: Add iwhd.
24561
24562 2011-02-09  Bruno Haible  <bruno@clisp.org>
24563
24564         gnulib-tool: Make copyright notice adjustment more robust.
24565         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24566         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24567         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24568         License".
24569         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24570
24571 2011-02-06  Bruno Haible  <bruno@clisp.org>
24572
24573         New module 'towctrans'.
24574         * modules/towctrans: New file.
24575         * lib/wctype.in.h (towctrans): New declaration.
24576         * lib/towctrans.c: New file.
24577         * lib/towctrans-impl.h: New file.
24578         * m4/towctrans.m4: New file.
24579         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24580         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24581         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24582         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24583         * doc/posix-functions/towctrans.texi: Mention the new module.
24584
24585 2011-02-06  Bruno Haible  <bruno@clisp.org>
24586
24587         New module 'wctrans'.
24588         * modules/wctrans: New file.
24589         * lib/wctype.in.h (wctrans): New declaration.
24590         * lib/wctrans.c: New file.
24591         * lib/wctrans-impl.h: New file.
24592         * m4/wctrans.m4: New file.
24593         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24594         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24595         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24596         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24597         * doc/posix-functions/wctrans.texi: Mention the new module.
24598
24599 2011-02-06  Bruno Haible  <bruno@clisp.org>
24600
24601         New module 'iswctype'.
24602         * modules/iswctype: New file.
24603         * lib/wctype.in.h (iswctype): New declaration.
24604         * lib/iswctype.c: New file.
24605         * lib/iswctype-impl.h: New file.
24606         * m4/iswctype.m4: New file.
24607         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24608         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24609         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24610         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24611         * doc/posix-functions/iswctype.texi: Mention the new module and the
24612         HP-UX 11.00 problem.
24613
24614 2011-02-06  Bruno Haible  <bruno@clisp.org>
24615
24616         New module 'wctype'.
24617         * modules/wctype: Change to represent the wctype() substitute.
24618         * lib/wctype.in.h (wctype): New declaration.
24619         * lib/wctype.c: New file.
24620         * lib/wctype-impl.h: New file.
24621         * m4/wctype.m4: New file.
24622         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24623         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24624         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24625         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24626         * doc/posix-functions/wctype.texi: Mention the new module and the
24627         HP-UX 11.00 problem.
24628
24629 2011-02-06  Bruno Haible  <bruno@clisp.org>
24630
24631         wctype-h: Ensure wctype_t and wctrans_t are defined.
24632         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24633         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24634         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24635         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24636         HAVE_WCTRANS_T.
24637         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24638
24639 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24640
24641         flock: fix license typo
24642
24643         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24644         omitted.
24645
24646 2011-02-08  Bruno Haible  <bruno@clisp.org>
24647
24648         Split large sed scripts, for HP-UX sed.
24649         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24650         to avoid HP-UX limit of 99 commands, in the near future.
24651         * modules/stdlib (Makefile.am): Likewise.
24652         * modules/unistd (Makefile.am): Likewise.
24653         * modules/wchar (Makefile.am): Likewise.
24654         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24655         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24657
24658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24659             Bruno Haible  <bruno@clisp.org>
24660
24661         stdlib: improve random_r modularization
24662         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24663         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24664         you also need the random_r module to get this material right.
24665         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24667         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24668
24669 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24670
24671         stdlib: don't depend on stdint
24672         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24673         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24674         be independent of whether stdint.h is needed.
24675         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24676         here, instead of ...
24677         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24678         struct random_data should be using the random_r module, not just
24679         the stdlib module (which wouldn't make sense: what package needs
24680         just struct random_data without also needing random_r?).
24681         * modules/stdlib (Depends-on): Remove stdint.
24682
24683         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24684         See the thread rooted at
24685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24686         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24687         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24688         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24689         __VMS)); previously it was always included (via fcntl--.h).
24690         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24691         hand; this is good enough for load averages.  Also, do not use
24692         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24693         flags directly if available and don't bother otherwise.  (Packages
24694         that need the extra reliability should use the modules that define
24695         these flags on older platforms that lack them.)
24696         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24697         fcntl-safer.
24698
24699 2011-02-08  Jim Meyering  <meyering@redhat.com>
24700
24701         di-set.h, ino-map.h: add multiple-inclusion guard
24702         Technically, the guard is required only for ino-map.h, due to its
24703         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24704         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24705         * lib/ino-map.h: Likewise.
24706
24707 2011-02-06  Bruno Haible  <bruno@clisp.org>
24708
24709         iswblank: Ensure declaration on glibc systems.
24710         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24711         * modules/iswblank (Dependencies): Add 'extensions'.
24712         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24713
24714 2011-02-06  Bruno Haible  <bruno@clisp.org>
24715
24716         New module 'iswblank'.
24717         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24718         * modules/iswblank: New file.
24719         * modules/wctype-h (Files): Remove lib/iswblank.c.
24720         (Makefile.am): Substitute GNULIB_ISWBLANK.
24721         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24722         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24723         (gl_WCTYPE_H_DEFAULTS): New macro.
24724         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24725         * modules/iswblank-tests: New file.
24726         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24727         * tests/test-wctype-h.c (main): Remove iswblank tests.
24728         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24729         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24730         of 'wctype-h'.
24731         * NEWS: Mention the change.
24732         * modules/mbchar (Depends-on): Add iswblank.
24733
24734 2011-02-08  Bruno Haible  <bruno@clisp.org>
24735
24736         di-set tests: Refactor.
24737         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24738         unnecessary includes.
24739         (ASSERT): Remove macro.
24740         (main): Make C90 compliant by avoiding variable declaration after
24741         statement.
24742         * modules/di-set-tests (Files): Add tests/macros.h.
24743
24744 2011-02-08  Bruno Haible  <bruno@clisp.org>
24745
24746         ino-map tests: Refactor.
24747         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24748         unnecessary includes.
24749         (ASSERT): Remove macro.
24750         (main): Make C90 compliant by avoiding variable declaration after
24751         statement.
24752         * modules/ino-map-tests (Files): Add tests/macros.h.
24753
24754 2011-02-08  Jim Meyering  <meyering@redhat.com>
24755
24756         di-set: add "const" to a cast
24757         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24758         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24759
24760 2011-02-06  Bruno Haible  <bruno@clisp.org>
24761
24762         Rename module 'wctype' to 'wctype-h'.
24763         * modules/wctype-h: Renamed from modules/wctype.
24764         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24765         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24766         (Files, Depends-on, Makefile.am): Update.
24767         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24768         (Files, Makefile.am): Update.
24769         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24770         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24771         * doc/posix-headers/wctype.texi: Update.
24772         * doc/posix-functions/iswalnum.texi: Update.
24773         * doc/posix-functions/iswalpha.texi: Update.
24774         * doc/posix-functions/iswblank.texi: Update.
24775         * doc/posix-functions/iswcntrl.texi: Update.
24776         * doc/posix-functions/iswdigit.texi: Update.
24777         * doc/posix-functions/iswgraph.texi: Update.
24778         * doc/posix-functions/iswlower.texi: Update.
24779         * doc/posix-functions/iswprint.texi: Update.
24780         * doc/posix-functions/iswpunct.texi: Update.
24781         * doc/posix-functions/iswspace.texi: Update.
24782         * doc/posix-functions/iswupper.texi: Update.
24783         * doc/posix-functions/iswxdigit.texi: Update.
24784         * doc/posix-functions/towlower.texi: Update.
24785         * doc/posix-functions/towupper.texi: Update.
24786         * NEWS: Mention the change.
24787         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24788         * modules/mbchar (Dependencies): Likewise.
24789         * modules/mbswidth (Dependencies): Likewise.
24790         * modules/quotearg (Dependencies): Likewise.
24791         * modules/regex (Dependencies): Likewise.
24792         * modules/wcscasecmp (Dependencies): Likewise.
24793         * modules/wcsncasecmp (Dependencies): Likewise.
24794         * modules/wcwidth (Dependencies): Likewise.
24795
24796 2011-02-06  Bruno Haible  <bruno@clisp.org>
24797
24798         New module 'wcswidth'.
24799         * modules/wcswidth: New file.
24800         * lib/wchar.in.h (wcswidth): New declaration.
24801         * lib/wcswidth.c: New file.
24802         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24803         * m4/wcswidth.m4: New file.
24804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24806         REPLACE_WCSWIDTH.
24807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24808         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24809         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24810         * doc/posix-functions/wcswidth.texi: Mention the new module.
24811
24812 2011-02-06  Bruno Haible  <bruno@clisp.org>
24813
24814         New module 'wcstok'.
24815         * modules/wcstok: New file.
24816         * lib/wchar.in.h (wcstok): New declaration.
24817         * lib/wcstok.c: New file.
24818         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24819         * m4/wcstok.m4: New file.
24820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24823         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24824         * doc/posix-functions/wcstok.texi: Mention the new module.
24825
24826 2011-02-06  Bruno Haible  <bruno@clisp.org>
24827
24828         New module 'wcsstr'.
24829         * modules/wcsstr: New file.
24830         * lib/wchar.in.h (wcsstr): New declaration.
24831         * lib/wcsstr.c: New file.
24832         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24833         * m4/wcsstr.m4: New file.
24834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24837         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24838         * doc/posix-functions/wcsstr.texi: Mention the new module.
24839
24840 2011-02-06  Bruno Haible  <bruno@clisp.org>
24841
24842         New module 'wcspbrk'.
24843         * modules/wcspbrk: New file.
24844         * lib/wchar.in.h (wcspbrk): New declaration.
24845         * lib/wcspbrk.c: New file.
24846         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24847         * m4/wcspbrk.m4: New file.
24848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24851         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24852         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24853
24854 2011-02-06  Bruno Haible  <bruno@clisp.org>
24855
24856         New module 'wcsspn'.
24857         * modules/wcsspn: New file.
24858         * lib/wchar.in.h (wcsspn): New declaration.
24859         * lib/wcsspn.c: New file.
24860         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24861         * m4/wcsspn.m4: New file.
24862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24865         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24866         * doc/posix-functions/wcsspn.texi: Mention the new module.
24867
24868 2011-02-06  Bruno Haible  <bruno@clisp.org>
24869
24870         New module 'wcscspn'.
24871         * modules/wcscspn: New file.
24872         * lib/wchar.in.h (wcscspn): New declaration.
24873         * lib/wcscspn.c: New file.
24874         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24875         * m4/wcscspn.m4: New file.
24876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24879         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24880         * doc/posix-functions/wcscspn.texi: Mention the new module.
24881
24882 2011-02-06  Bruno Haible  <bruno@clisp.org>
24883
24884         New module 'wcsrchr'.
24885         * modules/wcsrchr: New file.
24886         * lib/wchar.in.h (wcsrchr): New declaration.
24887         * lib/wcsrchr.c: New file.
24888         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24889         * m4/wcsrchr.m4: New file.
24890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24893         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24894         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24895
24896 2011-02-06  Bruno Haible  <bruno@clisp.org>
24897
24898         New module 'wcschr'.
24899         * modules/wcschr: New file.
24900         * lib/wchar.in.h (wcschr): New declaration.
24901         * lib/wcschr.c: New file.
24902         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24903         * m4/wcschr.m4: New file.
24904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24907         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24908         * doc/posix-functions/wcschr.texi: Mention the new module.
24909
24910 2011-02-06  Bruno Haible  <bruno@clisp.org>
24911
24912         New module 'wcsdup'.
24913         * modules/wcsdup: New file.
24914         * lib/wchar.in.h (wcsdup): New declaration.
24915         * lib/wcsdup.c: New file.
24916         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24917         * m4/wcsdup.m4: New file.
24918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24921         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24922         * doc/posix-functions/wcsdup.texi: Mention the new module.
24923
24924 2011-02-06  Bruno Haible  <bruno@clisp.org>
24925
24926         New module 'wcsxfrm'.
24927         * modules/wcsxfrm: New file.
24928         * lib/wchar.in.h (wcsxfrm): New declaration.
24929         * lib/wcsxfrm.c: New file.
24930         * lib/wcsxfrm-impl.h: New file.
24931         * m4/wcsxfrm.m4: New file.
24932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24935         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24936         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24937
24938 2011-02-06  Bruno Haible  <bruno@clisp.org>
24939
24940         New module 'wcscoll'.
24941         * modules/wcscoll: New file.
24942         * lib/wchar.in.h (wcscoll): New declaration.
24943         * lib/wcscoll.c: New file.
24944         * lib/wcscoll-impl.h: New file.
24945         * m4/wcscoll.m4: New file.
24946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24949         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24950         * doc/posix-functions/wcscoll.texi: Mention the new module.
24951
24952 2011-02-06  Bruno Haible  <bruno@clisp.org>
24953
24954         New module 'wcsncasecmp'.
24955         * modules/wcsncasecmp: New file.
24956         * lib/wchar.in.h (wcsncasecmp): New declaration.
24957         * lib/wcsncasecmp.c: New file.
24958         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24959         * m4/wcsncasecmp.m4: New file.
24960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24963         HAVE_WCSNCASECMP.
24964         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24965         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24966
24967 2011-02-06  Bruno Haible  <bruno@clisp.org>
24968
24969         New module 'wcscasecmp'.
24970         * modules/wcscasecmp: New file.
24971         * lib/wchar.in.h (wcscasecmp): New declaration.
24972         * lib/wcscasecmp.c: New file.
24973         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24974         * m4/wcscasecmp.m4: New file.
24975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24978         HAVE_WCSCASECMP.
24979         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24980         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24981
24982 2011-02-05  Bruno Haible  <bruno@clisp.org>
24983
24984         New module 'wcsncmp'.
24985         * modules/wcsncmp: New file.
24986         * lib/wchar.in.h (wcsncmp): New declaration.
24987         * lib/wcsncmp.c: New file.
24988         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24989         * m4/wcsncmp.m4: New file.
24990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24993         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24994         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24995
24996 2011-02-05  Bruno Haible  <bruno@clisp.org>
24997
24998         New module 'wcscmp'.
24999         * modules/wcscmp: New file.
25000         * lib/wchar.in.h (wcscmp): New declaration.
25001         * lib/wcscmp.c: New file.
25002         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25003         * m4/wcscmp.m4: New file.
25004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25007         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25008         * doc/posix-functions/wcscmp.texi: Mention the new module.
25009
25010 2011-02-05  Bruno Haible  <bruno@clisp.org>
25011
25012         New module 'wcsncat'.
25013         * modules/wcsncat: New file.
25014         * lib/wchar.in.h (wcsncat): New declaration.
25015         * lib/wcsncat.c: New file.
25016         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25017         * m4/wcsncat.m4: New file.
25018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25021         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25022         * doc/posix-functions/wcsncat.texi: Mention the new module.
25023
25024 2011-02-05  Bruno Haible  <bruno@clisp.org>
25025
25026         New module 'wcscat'.
25027         * modules/wcscat: New file.
25028         * lib/wchar.in.h (wcscat): New declaration.
25029         * lib/wcscat.c: New file.
25030         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25031         * m4/wcscat.m4: New file.
25032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25035         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25036         * doc/posix-functions/wcscat.texi: Mention the new module.
25037
25038 2011-02-05  Bruno Haible  <bruno@clisp.org>
25039
25040         New module 'wcpncpy'.
25041         * modules/wcpncpy: New file.
25042         * lib/wchar.in.h (wcpncpy): New declaration.
25043         * lib/wcpncpy.c: New file.
25044         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25045         * m4/wcpncpy.m4: New file.
25046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25048         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25049         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25050         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25051
25052 2011-02-05  Bruno Haible  <bruno@clisp.org>
25053
25054         New module 'wcsncpy'.
25055         * modules/wcsncpy: New file.
25056         * lib/wchar.in.h (wcsncpy): New declaration.
25057         * lib/wcsncpy.c: New file.
25058         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25059         * m4/wcsncpy.m4: New file.
25060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25063         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25064         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25065
25066 2011-02-05  Bruno Haible  <bruno@clisp.org>
25067
25068         New module 'wcpcpy'.
25069         * modules/wcpcpy: New file.
25070         * lib/wchar.in.h (wcpcpy): New declaration.
25071         * lib/wcpcpy.c: New file.
25072         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25073         * m4/wcpcpy.m4: New file.
25074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25076         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25077         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25078         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25079
25080 2011-02-05  Bruno Haible  <bruno@clisp.org>
25081
25082         New module 'wcscpy'.
25083         * modules/wcscpy: New file.
25084         * lib/wchar.in.h (wcscpy): New declaration.
25085         * lib/wcscpy.c: New file.
25086         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25087         * m4/wcscpy.m4: New file.
25088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25091         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25092         * doc/posix-functions/wcscpy.texi: Mention the new module.
25093
25094 2011-02-05  Bruno Haible  <bruno@clisp.org>
25095
25096         New module 'wcsnlen'.
25097         * modules/wcsnlen: New file.
25098         * lib/wchar.in.h (wcsnlen): New declaration.
25099         * lib/wcsnlen.c: New file.
25100         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25101         * m4/wcsnlen.m4: New file.
25102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25105         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25106         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25107
25108 2011-02-05  Bruno Haible  <bruno@clisp.org>
25109
25110         New module 'wcslen'.
25111         * modules/wcslen: New file.
25112         * lib/wchar.in.h (wcslen): New declaration.
25113         * lib/wcslen.c: New file.
25114         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25115         * m4/wcslen.m4: New file.
25116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25119         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25120         * doc/posix-functions/wcslen.texi: Mention the new module.
25121
25122 2011-02-05  Bruno Haible  <bruno@clisp.org>
25123
25124         New module 'wmemset'.
25125         * modules/wmemset: New file.
25126         * lib/wchar.in.h (wmemset): New declaration.
25127         * lib/wmemset.c: New file.
25128         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25129         * m4/wmemset.m4: New file.
25130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25132         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25133         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25134         * doc/posix-functions/wmemset.texi: Mention the new module.
25135
25136 2011-02-05  Bruno Haible  <bruno@clisp.org>
25137
25138         New module 'wmemmove'.
25139         * modules/wmemmove: New file.
25140         * lib/wchar.in.h (wmemmove): New declaration.
25141         * lib/wmemmove.c: New file.
25142         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25143         * m4/wmemmove.m4: New file.
25144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25146         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25147         HAVE_WMEMMOVE.
25148         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25149         * doc/posix-functions/wmemmove.texi: Mention the new module.
25150
25151 2011-02-05  Bruno Haible  <bruno@clisp.org>
25152
25153         New module 'wmemcpy'.
25154         * modules/wmemcpy: New file.
25155         * lib/wchar.in.h (wmemcpy): New declaration.
25156         * lib/wmemcpy.c: New file.
25157         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25158         * m4/wmemcpy.m4: New file.
25159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25161         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25162         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25163         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25164
25165 2011-02-05  Bruno Haible  <bruno@clisp.org>
25166
25167         New module 'wmemcmp'.
25168         * modules/wmemcmp: New file.
25169         * lib/wchar.in.h (wmemcmp): New declaration.
25170         * lib/wmemcmp.c: New file.
25171         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25172         * m4/wmemcmp.m4: New file.
25173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25175         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25176         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25177         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25178
25179 2011-02-07  Jim Meyering  <meyering@redhat.com>
25180
25181         di-set, ino-map: new modules, from coreutils
25182         * lib/di-set.c: New file.
25183         * lib/di-set.h: Likewise.
25184         * lib/ino-map.c: Likewise.
25185         * lib/ino-map.h: Likewise.
25186         * modules/di-set: Likewise.
25187         * modules/di-set-tests: Likewise.
25188         * modules/ino-map: Likewise.
25189         * modules/ino-map-tests: Likewise.
25190         * tests/test-di-set.c: Likewise.
25191         * tests/test-ino-map.c: Likewise.
25192
25193 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25194
25195         getloadavg: merge minor changes from Emacs
25196
25197         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25198         (getloadavg): Use memset, not bzero.
25199
25200         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25201         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25202         clash (bug#86).
25203
25204 2010-11-14  Bruno Haible  <bruno@clisp.org>
25205
25206         Allow multiple gnulib generated replacements to coexist.
25207         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25208         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25209         * lib/langinfo.in.h (nl_item): Likewise.
25210         * lib/math.in.h (_NaN, NAN): Likewise.
25211         * lib/netdb.in.h (struct addrinfo): Likewise.
25212         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25213         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25214         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25215         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25216         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25217         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25218         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25219         pthread_mutexattr_init, pthread_mutexattr_settype,
25220         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25221         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25222         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25223         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25224         * lib/sched.in.h (struct sched_param): Likewise.
25225         * lib/se-selinux.in.h (security_class_t, security_context_t,
25226         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25227         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25228         lsetfilecon, fsetfilecon, security_check_context,
25229         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25230         Likewise.
25231         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25232         Likewise.
25233         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25234         _gl_function_taking_int_returning_void_t, union sigval,
25235         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25236         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25237         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25238         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25239         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25240         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25241         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25242         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25243         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25244         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25245         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25246         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25247         socklen_t, rpl_fd_isset): Likewise.
25248         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25249         * lib/sys_time.in.h (struct timeval): Likewise.
25250         * lib/sys_times.in.h (struct tms): Likewise.
25251         * lib/sys_utsname.in.h (struct utsname):
25252         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25253         * lib/unistd.in.h (getpagesize): Likewise.
25254         * lib/wchar.in.h (mbstate_t): Likewise.
25255         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25256         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25257         towlower, towupper): Likewise.
25258         Reported by Sam Steingold <sds@gnu.org>.
25259
25260 2011-02-05  Eric Blake  <eblake@redhat.com>
25261
25262         unsetenv: work around Haiku issues
25263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25264         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25265
25266 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25267
25268         libposix: avoid calling error() within libposix
25269         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25270         is defined.
25271
25272 2011-02-05  Eric Blake  <eblake@redhat.com>
25273
25274         strerror_r-posix: port to cygwin
25275         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25276         implementation.
25277         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25278         * tests/test-strerror_r.c (main): Fix test.
25279         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25280         issue.
25281
25282 2011-02-05  Bruno Haible  <bruno@clisp.org>
25283
25284         New module 'wmemchr'.
25285         * modules/wmemchr: New file.
25286         * lib/wchar.in.h (wmemchr): New declaration.
25287         * lib/wmemchr.c: New file.
25288         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25289         * m4/wmemchr.m4: New file.
25290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25292         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25293         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25294         * doc/posix-functions/wmemchr.texi: Mention the new module.
25295
25296 2011-02-04  Eric Blake  <eblake@redhat.com>
25297
25298         fdopendir: detect FreeBSD bug
25299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25300         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25301
25302 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25303
25304         stdbool: do not define HAVE_STDBOOL_H
25305         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25306         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25307         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25308         imported from the latest Autoconf git.  It was motivated by Emacs,
25309         which uses gnulib but does not need HAVE_STDBOOL_H.
25310
25311 2011-02-04  Bruno Haible  <bruno@clisp.org>
25312
25313         wcsnrtombs: Prepare for new module wwcsnrtombs.
25314         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25315         * lib/wcsnrtombs.c: Include it.
25316         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25317
25318         wcsrtombs: Prepare for new module wwcsrtombs.
25319         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25320         * lib/wcsrtombs.c: Include it.
25321         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25322
25323         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25324         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25325         * lib/mbsnrtowcs.c: Include it.
25326         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25327
25328         mbsrtowcs: Prepare for new module mbsrtowwcs.
25329         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25330         * lib/mbsrtowcs.c: Include it.
25331         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25332
25333 2011-02-04  Bruno Haible  <bruno@clisp.org>
25334
25335         vasnprintf: Reduce use of malloc for small format strings.
25336         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25337         (arguments): Add room for the first 7 arguments.
25338         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25339         (char_directives, u8_directives, u16_directives, u32_directives): Add
25340         room for the first 7 directives.
25341         * lib/printf-parse.c: Include <string.h>.
25342         (PRINTF_PARSE): Change memory handling code so that it uses the first
25343         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25344         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25345         Reported by Pádraig Brady <P@draigbrady.com>.
25346
25347 2011-01-31  Eric Blake  <eblake@redhat.com>
25348
25349         dup2: work around Haiku bug
25350         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25351         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25352         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25353         * tests/test-dup2.c (main): Enhance test.
25354
25355 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25356
25357         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25358         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25359         declared by eglibc 2.11.2.
25360         * lib/stdio.in.h: Likewise.
25361
25362 2011-01-31  Eric Blake  <eblake@redhat.com>
25363
25364         ignore-value: add missing test dependency
25365         * tests/test-ignore-value.c: Revert previous change; stdio.h
25366         provides off_t.
25367         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25368
25369 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25370
25371         mktime: clarify long_int width checking
25372         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25373         the top level, to make it clearer that the assumption about
25374         long_int width is being checked.  See
25375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25376
25377 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25378
25379         ignore-value: Fix self-test.
25380         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25381
25382 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25383
25384         TYPE_MAXIMUM: avoid theoretically undefined behavior
25385         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25386         negative number, which the C Standard says has undefined behavior.
25387         In practice this is not a problem, but might as well do it by the book.
25388         Reported by Rich Felker and Eric Blake; see
25389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25390         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25391         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25393         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25394         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25395         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25396
25397         mktime: #undef mktime before #defining it
25398         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25399
25400         mktime: systematically normalize tm_isdst comparisons
25401         * lib/mktime.c (isdst_differ): New function.
25402         (__mktime_internal): Use it systematically for all isdst comparisons.
25403         This completes the fix for libc BZ #6723, and removes the need for
25404         normalizing tm_isdst.  See
25405         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25406         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25407
25408         mktime: fix some integer overflow issues and sidestep the rest
25409
25410         This was prompted by a bug report by Benjamin Lindner for MinGW
25411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25412         His bug is due to signed integer overflow (0 - INT_MIN), and I
25413         I scanned through mktime.c looking for other integer overflow
25414         problems, fixing all the bugs I found.
25415
25416         Although the C Standard says the resulting code is still not safe
25417         in the presence of integer overflow, in practice it should be good
25418         enough for all real-world two's-complement implementations, except
25419         for debugging environments that deliberately trap on integer
25420         overflow (e.g., gcc -ftrapv).
25421
25422         * lib/mktime.c (WRAPV): New macro.
25423         (SHR): Also check that long_int and time_t shift right in the
25424         usual way, before using the fast-but-unportable method.
25425         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25426         used.  The code already assumed two's complement, so there's
25427         no need to test for alternatives.  All uses removed.
25428         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25429         the C standard.  Problem reported by Rich Felker in
25430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25431         (twos_complement_arithmetic): Also check long_int and time_t.
25432         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25433         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25434         (__mktime_internal): Avoid integer overflow with unary subtraction
25435         in two instances where -1 - X is an adequate replacement for -X,
25436         since the calculations are approximate.
25437
25438 2011-01-29  Eric Blake  <eblake@redhat.com>
25439
25440         mktime: avoid infinite loop
25441         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25442         type; behavior is still undefined but portable to all known targets.
25443         Reported by Rich Felker.
25444
25445 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25446
25447         rename, unlink, same-inode: Relicense.
25448         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25449         * modules/unlink (License): Likewise.
25450         * modules/same-inode (License): Likewise.
25451
25452 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25453
25454         mktime: avoid problems on NetBSD 5 / i386
25455         * lib/mktime.c (long_int): New type.  This works around a problem
25456         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25457         but time_t is 64 bits, and where I expect the existing code is
25458         wrong in some cases.
25459         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25460         (ydhms_diff): Bring back the compile-time check for wide-enough
25461         year and yday.
25462
25463         mktime: fix misspelling in comment
25464         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25465         This merges all recent glibc changes of importance.
25466
25467 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25468
25469         move-if-change: cope with concurrent mv of identical file.
25470         * build-aux/move-if-change (CMPPROG): Accept environment
25471         variable as an override for `cmp'.
25472         (usage): Document CMPPROG.
25473         Adjust comparison to drop stdout.  Cope with failure of mv if
25474         the target file exists and is identical to the source, for
25475         parallel builds.
25476         Report from H.J. Lu against binutils in PR binutils/12283.
25477
25478 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25479
25480         * users.txt: Mention sharutils.
25481
25482 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25483
25484         * users.txt: Mention OATH Toolkit.
25485
25486 2011-01-27  Bruno Haible  <bruno@clisp.org>
25487
25488         Prepare for supporting FreeBSD 10.
25489         * build-aux/config.libpath: Remove handling of freebsd1*.
25490
25491 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25492
25493         Prepare for supporting FreeBSD 10.
25494         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25495         match FreeBSD 10.0.
25496
25497 2011-01-27  Bruno Haible  <bruno@clisp.org>
25498
25499         vma-iter, get-rusage-as: Add OpenBSD support.
25500         * modules/vma-iter (configure.ac): Test for mquery.
25501         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25502         * lib/vma-iter.c: Include <sys/mman.h>.
25503         (vma_iterate): Add an implementation based on mquery().
25504         * lib/resource-ext.h (get_rusage_as): Update comments.
25505         * lib/get-rusage-as.c: Likewise.
25506         * lib/get-rusage-data.c: Likewise.
25507
25508 2011-01-26  Karl Berry  <karl@gnu.org>
25509
25510         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25511         variables to make it easier to override the makeinfo program used.
25512
25513 2011-01-26  Eric Blake  <eblake@redhat.com>
25514
25515         fcntl: work around Haiku F_DUPFD bugs
25516         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25517         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25518         cloexec bit on duplication.
25519         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25520
25521 2011-01-26  Bruno Haible  <bruno@clisp.org>
25522
25523         Enable memory leak tests on AIX.
25524         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25525         * tests/test-fprintf-posix3.c (main): Likewise.
25526
25527 2011-01-26  Bruno Haible  <bruno@clisp.org>
25528
25529         Tests for module 'get-rusage-data'.
25530         * modules/get-rusage-data-tests: New file.
25531         * tests/test-get-rusage-data.c: New file.
25532
25533         New module 'get-rusage-data'.
25534         * lib/resource-ext.h (get_rusage_data): New declaration.
25535         * lib/get-rusage-data.c: New file.
25536         * modules/get-rusage-data: New file.
25537
25538 2011-01-25  Bruno Haible  <bruno@clisp.org>
25539
25540         get-rusage-as: Allow for easier testing.
25541         * lib/resource-ext.h (get_rusage_as): Add comment.
25542         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25543         (main): New function for interactive testing.
25544
25545 2011-01-25  Bruno Haible  <bruno@clisp.org>
25546
25547         vma-iter: Treat Haiku like BeOS.
25548         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25549         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25550
25551 2011-01-25  Eric Blake  <eblake@redhat.com>
25552
25553         c-stack: fix regression on cygwin when libsigsegv is present
25554         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25555
25556 2011-01-24  Bruno Haible  <bruno@clisp.org>
25557
25558         vma-iter: Avoid empty intervals.
25559         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25560         on an empty interval.
25561
25562 2011-01-24  Jim Meyering  <meyering@redhat.com>
25563
25564         u64: remove unnecessary #include
25565         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25566
25567 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25568
25569         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25570         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25571
25572 2011-01-23  Bruno Haible  <bruno@clisp.org>
25573
25574         New module 'vma-iter'.
25575         * lib/vma-iter.h: New file.
25576         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25577         * modules/vma-iter: New file.
25578         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25579         for get_rusage_as_via_iterator.
25580         (vma_iterate_callback): New function.
25581         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25582         * modules/get-rusage-as (Depends-on): Add vma-iter.
25583
25584 2011-01-23  Bruno Haible  <bruno@clisp.org>
25585
25586         uninorm: Tweak includes.
25587         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25588         Reported by Jim Meyering.
25589
25590 2011-01-23  Bruno Haible  <bruno@clisp.org>
25591
25592         get-rusage-as: Improve on NetBSD.
25593         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25594         /proc, like on FreeBSD.
25595
25596 2011-01-23  Jim Meyering  <meyering@redhat.com>
25597
25598         xreadlink.h: remove unnecessary #include
25599         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25600
25601         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25602         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25603
25604 2011-01-23  Bruno Haible  <bruno@clisp.org>
25605
25606         get-rusage-as: Fix bug.
25607         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25608         original limit when aborting the first loop.
25609
25610 2011-01-23  Bruno Haible  <bruno@clisp.org>
25611
25612         wctype: Ensure valid C syntax.
25613         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25614         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25615
25616 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25617
25618         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25620         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25621         as they are needed only for configure's test case.
25622         This removes two unnecessary symbols from config.h.
25623
25624         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25625         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25627         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25628         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25631         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25633         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25634         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25636         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25638         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25639         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25640         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25641         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25642
25643 2011-01-21  Eric Blake  <eblake@redhat.com>
25644
25645         maintainer-makefile: work with older git for submodule check
25646         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25647         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25648         Reported by Matthias Bolte.
25649
25650         bootstrap: minor portability fixes
25651         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25652         (usage): Omit leading capital and trailing . on help phrases, per
25653         GNU Coding Standards.
25654         (check_versions, top level): Prefix messages with script name.
25655
25656 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25657
25658         bootstrap: support --no-git option
25659         * build-aux/bootstrap: Add --no-git option, to be used when
25660         --gnulib-srcdir points to the exact desired checkout.
25661
25662 2011-01-21  Eric Blake  <eblake@redhat.com>
25663
25664         strerror_r-posix: work with glibc 2.13
25665         * lib/strerror_r.c (strerror_r): Fix return type.
25666
25667 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25668             Bruno Haible  <bruno@clisp.org>
25669
25670         uN_strstr: New unit tests.
25671         * modules/unistr/u8-strstr-tests: New file.
25672         * modules/unistr/u16-strstr-tests: New file.
25673         * modules/unistr/u32-strstr-tests: New file.
25674         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25675         * tests/unistr/test-u8-strstr.c: New file.
25676         * tests/unistr/test-u16-strstr.c: New file.
25677         * tests/unistr/test-u32-strstr.c: New file.
25678
25679 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25680             Bruno Haible  <bruno@clisp.org>
25681
25682         Make uN_strstr functions O(n) worst-case.
25683         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25684         16-bit and 32-bit unit cases, use the unibyte algorithm from
25685         lib/mbsstr.c.
25686         * lib/unistr/u8-strstr.c: Include <string.h>.
25687         (UNIT_IS_UINT8_T): New macro.
25688         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25689         (U_STRLEN, U_STRNLEN): New macros.
25690         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25691         (U_STRLEN, U_STRNLEN): New macros.
25692         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25693         (configure.ac): Update required libunistring version.
25694         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25695         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25696         malloca.
25697         (configure.ac): Update required libunistring version.
25698         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25699         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25700         malloca.
25701         (configure.ac): Update required libunistring version.
25702
25703 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25704             Bruno Haible  <bruno@clisp.org>
25705
25706         Prepare for faster uN_strstr functions.
25707         * lib/str-kmp.h: Support definable UNITs.
25708         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25709         needle_len argument.
25710         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25711         * lib/mbscasestr.c (mbscasestr): Likewise.
25712
25713 2011-01-21  Pádraig Brady <P@draigBrady.com>
25714
25715         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25716         * tests/test-malloca.c (main): Unset the environment variable
25717         to greatly speed up the test.
25718         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25719         * modules/malloca-tests: Depend on unsetenv.
25720
25721 2011-01-21  Pádraig Brady <P@draigBrady.com>
25722
25723         ignore-value: remove stdint dependency
25724         * lib/ignore-value.h: Remove <stdint.h>
25725         * modules/ignore-value: Remove stdint dependency.
25726
25727 2011-01-21  Jim Meyering  <meyering@redhat.com>
25728
25729         maint.mk: adjust variable name to be consistent with other gl_ vars
25730         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25731         to be lower case.
25732
25733 2011-01-20  Jim Meyering  <meyering@redhat.com>
25734
25735         maint.mk: make "check" depend on public-submodule-commit by default
25736         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25737
25738 2011-01-20  Bruno Haible  <bruno@clisp.org>
25739
25740         mbfile, mbiter: Complete change from 2008-12-21.
25741         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25742         * m4/mbiter.m4 (gl_MBITER): Likewise.
25743
25744 2011-01-20  Jim Meyering  <meyering@redhat.com>
25745
25746         init.sh: insert space between each function name and "()"
25747         * tests/init.sh: Make it a little easier to see that a function's
25748         name is "warn_", and not "warn" when looking at the first part of
25749         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25750
25751 2011-01-20  Jim Meyering  <meyering@redhat.com>
25752
25753         mountlist: clean up code formatting
25754         * lib/mountlist.c (read_file_system_list): Split a long line,
25755         correct bracing style, use NULL in place of "(struct statfs *)0",
25756         don't parenthesize return value, add spaces around "=" and after
25757         ";-in-for-stmt".
25758
25759 2011-01-14  Markus Duft <mduft@gentoo.org>
25760
25761         mountlist: add support for Interix
25762         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25763         Apply statvfs to all entries of /dev/fs.
25764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25765         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25766
25767 2011-01-20  Jim Meyering  <meyering@redhat.com>
25768
25769         maint.mk: improve the public-submodule-commit rule
25770         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25771         to suppress printing of its commands... unless V=1.
25772         Add git submodule's --quiet option to suppress printing of e.g.,
25773         "Entering gnulib" output.
25774         "cd" into $(srcdir) before running git submodule.
25775
25776 2011-01-20  Bruno Haible  <bruno@clisp.org>
25777
25778         include_next: Fix bug introduced on 2011-01-18.
25779         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25780         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25781         ac_cv_header_... variable if the second argument is not 'check'.
25782         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25783         gl_NEXT_HEADERS_INTERNAL.
25784
25785 2011-01-20  Bruno Haible  <bruno@clisp.org>
25786
25787         Allow the user to avoid the GNULIB_TEST_* macros.
25788         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25789         Suggested by Paul Eggert.
25790
25791 2011-01-14  Jim Meyering  <meyering@redhat.com>
25792
25793         bootstrap: avoid failure when there is no .gitmodules file
25794         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25795         has been assigned to, even when its value is the empty string.
25796         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25797         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25798         Reported by John W. Eaton <jwe@gnu.org>.
25799
25800 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25801
25802         assume <ctype.h>, ..., <time.h> exist
25803         For years gnulib has been assuming the existence of the headers
25804         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25805         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25806         them, since they don't appear to be needed.
25807         * README (Portability guidelines): Document this.
25808         * lib/flock.c: Assume <fcntl.h> exists.
25809         * lib/regex_internal.h: Assume <locale.h> exists.
25810         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25812         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25813         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25814         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25815         * m4/regex.m4 (gl_REGEX): Likewise.
25816         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25817         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25818         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25819         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25820         * tests/test-argp.c: Likewise.
25821         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25822
25823         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25824         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25825         AA_APPLE_UNIVERSAL_BUILD.  See
25826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25827         * NEWS: Document this.
25828
25829 2011-01-19  Eric Blake  <eblake@redhat.com>
25830
25831         c-stack: assume stack overflow if SA_SIGINFO unsupported
25832         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25833         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25834         sigaction will work.
25835         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25836         behavior match Linux.
25837         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25838
25839         stdbool-tests: accommodate Haiku
25840         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25841
25842         binary-io: fix O_TEXT on Haiku
25843         * modules/binary-io (Depends-on): Add fcntl-h.
25844         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25845         than blindly undefining O_TEXT.
25846         Reported by Scott McCreary.
25847
25848 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25849
25850         include_next: do not check for standard headers like stddef.h
25851
25852         I found this problem when modifying Emacs to use gnulib.
25853         I noticed that it added HAVE_STDDEF_H to config.h, even though
25854         gnulib always assumes <stddef.h> exists as per README and this
25855         symbol is unnecessary.
25856         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25857         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25858         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25859         faster for headers like stddef.h that are known to exist.
25860         (gl_CHECK_NEXT_HEADERS): Use it.
25861         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25862         rather than gl_CHECK_NEXT_HEADERS.
25863         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25864         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25865
25866 2011-01-18  Eric Blake  <eblake@redhat.com>
25867
25868         ansi-c++-opt: skip C++ dependency style if C++ is unused
25869         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25870         tests when we know C++ compilation is not desired.
25871         Reported by Scott McCreary.
25872
25873 2011-01-18  Bruno Haible  <bruno@clisp.org>
25874
25875         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25876         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25877         (main): Perform test also when getrlimit and setrlimit don't exist or
25878         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25879         limiting the address space size using setrlimit, compare the address
25880         space size before and after the the test.
25881         * tests/test-dprintf-posix2.c: Likewise.
25882         * tests/test-fprintf-posix3.sh: Update skip messages.
25883         * tests/test-dprintf-posix2.sh: Likewise.
25884         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25885         * modules/dprintf-posix-tests (Depends-on): Likewise.
25886         Reported by Bruce Korb <bkorb@gnu.org> and
25887         Gary V. Vaughan <gary@gnu.org>.
25888
25889 2011-01-18  Bruno Haible  <bruno@clisp.org>
25890
25891         get-rusage-as: Improvement for Cygwin.
25892         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25893         areas that are merely reserved.
25894
25895 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25896
25897         strftime: remove dependencies on multibyte modules
25898
25899         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25900         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25901         only if __osf__ is defined, and I suspect OSF doesn't need these
25902         other modules.  If my guess is wrong, we'll need to come up with a
25903         variant of strftime that doesn't need the multibyte modules.
25904
25905         I discovered this problem when attempting modify Emacs to use the
25906         strftime module.  With the previous gnulib, this caused Emacs to
25907         need 31 new files, ranging from lib/config.charset to
25908         m4/wint_t.m4.  This was overkill and I expect would be offputting
25909         to the Emacs maintainers.  After this change, only 6 new files are
25910         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25911         stdbool.m4, and tm_gmtoff.m4.
25912
25913         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25914         Suggested by Bruno Haible in
25915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25916         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25917         and do not check for wchar.h.
25918         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25919         (Depends-on): Remove mbrlen, mbsinit, wchar.
25920
25921 2011-01-18  Bruno Haible  <bruno@clisp.org>
25922
25923         Tests for module 'get-rusage-as'.
25924         * modules/get-rusage-as-tests: New file.
25925         * tests/test-get-rusage-as.c: New file.
25926
25927         New module 'get-rusage-as'.
25928         * modules/get-rusage-as: New file.
25929         * lib/resource-ext.h: New file.
25930         * lib/get-rusage-as.c: New file.
25931
25932 2011-01-17  Eric Blake  <eblake@redhat.com>
25933
25934         sigaction: relax license from LGPLv3+ to LGPLv2+
25935         * modules/sigaction (License): Relax to LGPLv2+.
25936
25937 2011-01-14  Bruno Haible  <bruno@clisp.org>
25938
25939         filemode: Make function declarations usable in C++ mode.
25940         * lib/filemode.h: Enclose function declarations in extern "C" block.
25941         Reported by John W. Eaton <jwe@gnu.org>.
25942
25943 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25944
25945         save-cwd: no longer include "xgetcwd.h"
25946         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25947         This avoids a compilation failure in projects that use save-cwd
25948         without also using the xgetcwd module.
25949
25950 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25953         This is so that a program like Emacs, which needs only dtoastr,
25954         does not have to bother with distributing and compiling ftoastr
25955         and ldtoastr.
25956         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25957         * modules/dtoastr, modules/ldtoastr: New files.
25958         * modules/ftoastr: Now works just for 'float'.
25959         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25960         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25961         dtoastr.c, ldtoastr.c.
25962
25963 2011-01-11  Jim Meyering  <meyering@redhat.com>
25964
25965         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25966         There is no need to work around the lack of the fchdir function,
25967         since gnulib can now provide a replacement when required.
25968         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25969         * modules/save-cwd (Depends-on): Add fchdir.
25970
25971 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         openat, save-cwd: avoid xmalloc
25974
25975         This removes a direct (but undocumented) dependency of openat on
25976         xalloc, along with an indirect dependency via save-cwd.  It also
25977         removes a dependency of save-cwd on xgetcwd, and thereby
25978         indirectly on xalloc.  This change causes the openat substitute
25979         to fall back on save_cwd when memory is tight, and for save_cwd to
25980         fail instead of dying when memory is tight, but that's good enough.
25981         Problem and initial idea for fix reported by Bastien Roucaries in
25982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25983
25984         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25985         xalloc.h (for xmalloc).
25986         (openat_proc_name): Use malloc, not xmalloc.
25987         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25988         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25989
25990         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25991         This avoids heap allocation for file names whose lengths are in
25992         the range 512..1023, with the upper bound increasing to at most
25993         4031 depending on the platform's PATH_MAX.  (We do not want
25994         pathmax.h here as it might supply a non-constant PATH_MAX.)
25995         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25996         Perhaps they should be moved to malloca.h?
25997         (OPENAT_BUFFER_SIZE): Use them.
25998
25999 2011-01-10  Bruno Haible  <bruno@clisp.org>
26000
26001         doc: Update users.txt.
26002         * users.txt: Add recutils.
26003
26004 2011-01-09  Karl Berry  <karl@gnu.org>
26005
26006         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26007
26008         * doc/configmake.texi: New file.
26009         * doc/gnulib.texi: Include it.
26010         * modules/configmake: Move documentation from here.
26011
26012 2011-01-09  Bruno Haible  <bruno@clisp.org>
26013
26014         Update to Unicode 6.0.0.
26015         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26016         (get_lbp): Update for Unicode 6.0.0.
26017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26018         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26019         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26020         U+11001, U+11038..U+11046. Remove U+06DE.
26021         (uc_width): Fix bounds of planes.
26022         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26023         lib/uniwidth/width.c.
26024         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26025         trailing whitespace removed.
26026         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26027         without comments, but with the original copyright notice.
26028         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26029         * lib/unicase/ignorable.h: Likewise.
26030         * lib/unicase/tocasefold.h: Likewise.
26031         * lib/unicase/tolower.h: Likewise.
26032         * lib/unicase/totitle.h: Likewise.
26033         * lib/unicase/toupper.h: Likewise.
26034         * lib/unictype/bidi_of.h: Likewise.
26035         * lib/unictype/blocks.h: Likewise.
26036         * lib/unictype/categ_C.h: Likewise.
26037         * lib/unictype/categ_Cn.h: Likewise.
26038         * lib/unictype/categ_L.h: Likewise.
26039         * lib/unictype/categ_Ll.h: Likewise.
26040         * lib/unictype/categ_Lm.h: Likewise.
26041         * lib/unictype/categ_Lo.h: Likewise.
26042         * lib/unictype/categ_Lu.h: Likewise.
26043         * lib/unictype/categ_M.h: Likewise.
26044         * lib/unictype/categ_Mc.h: Likewise.
26045         * lib/unictype/categ_Me.h: Likewise.
26046         * lib/unictype/categ_Mn.h: Likewise.
26047         * lib/unictype/categ_N.h: Likewise.
26048         * lib/unictype/categ_Nd.h: Likewise.
26049         * lib/unictype/categ_No.h: Likewise.
26050         * lib/unictype/categ_P.h: Likewise.
26051         * lib/unictype/categ_Po.h: Likewise.
26052         * lib/unictype/categ_S.h: Likewise.
26053         * lib/unictype/categ_Sc.h: Likewise.
26054         * lib/unictype/categ_Sk.h: Likewise.
26055         * lib/unictype/categ_Sm.h: Likewise.
26056         * lib/unictype/categ_So.h: Likewise.
26057         * lib/unictype/categ_of.h: Likewise.
26058         * lib/unictype/combining.h: Likewise.
26059         * lib/unictype/ctype_alnum.h: Likewise.
26060         * lib/unictype/ctype_alpha.h: Likewise.
26061         * lib/unictype/ctype_graph.h: Likewise.
26062         * lib/unictype/ctype_lower.h: Likewise.
26063         * lib/unictype/ctype_print.h: Likewise.
26064         * lib/unictype/ctype_punct.h: Likewise.
26065         * lib/unictype/ctype_upper.h: Likewise.
26066         * lib/unictype/decdigit.h: Likewise.
26067         * lib/unictype/digit.h: Likewise.
26068         * lib/unictype/numeric.h: Likewise.
26069         * lib/unictype/pr_alphabetic.h: Likewise.
26070         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26071         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26072         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26073         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26074         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26075         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26076         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26077         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26078         * lib/unictype/pr_case_ignorable.h: Likewise.
26079         * lib/unictype/pr_cased.h: Likewise.
26080         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26081         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26082         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26083         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26084         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26085         * lib/unictype/pr_combining.h: Likewise.
26086         * lib/unictype/pr_composite.h: Likewise.
26087         * lib/unictype/pr_currency_symbol.h: Likewise.
26088         * lib/unictype/pr_decimal_digit.h: Likewise.
26089         * lib/unictype/pr_deprecated.h: Likewise.
26090         * lib/unictype/pr_format_control.h: Likewise.
26091         * lib/unictype/pr_grapheme_base.h: Likewise.
26092         * lib/unictype/pr_grapheme_extend.h: Likewise.
26093         * lib/unictype/pr_grapheme_link.h: Likewise.
26094         * lib/unictype/pr_id_continue.h: Likewise.
26095         * lib/unictype/pr_id_start.h: Likewise.
26096         * lib/unictype/pr_ideographic.h: Likewise.
26097         * lib/unictype/pr_lowercase.h: Likewise.
26098         * lib/unictype/pr_math.h: Likewise.
26099         * lib/unictype/pr_numeric.h: Likewise.
26100         * lib/unictype/pr_other_alphabetic.h: Likewise.
26101         * lib/unictype/pr_other_id_continue.h: Likewise.
26102         * lib/unictype/pr_other_math.h: Likewise.
26103         * lib/unictype/pr_punctuation.h: Likewise.
26104         * lib/unictype/pr_sentence_terminal.h: Likewise.
26105         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26106         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26107         * lib/unictype/pr_unified_ideograph.h: Likewise.
26108         * lib/unictype/pr_uppercase.h: Likewise.
26109         * lib/unictype/pr_xid_continue.h: Likewise.
26110         * lib/unictype/pr_xid_start.h: Likewise.
26111         * lib/unictype/scripts.h: Likewise.
26112         * lib/unictype/scripts_byname.gperf: Likewise.
26113         * lib/unictype/sy_java_ident.h: Likewise.
26114         * lib/unigbrk/gbrkprop.h: Likewise.
26115         * lib/unilbrk/lbrkprop1.h: Likewise.
26116         * lib/unilbrk/lbrkprop2.h: Likewise.
26117         * lib/uninorm/decomposition-table2.h: Likewise.
26118         * lib/uniwbrk/wbrkprop.h: Likewise.
26119         * tests/unicase/test-cased.c: Likewise.
26120         * tests/unicase/test-ignorable.c: Likewise.
26121         * tests/unicase/test-uc_tolower.c: Likewise.
26122         * tests/unicase/test-uc_totitle.c: Likewise.
26123         * tests/unicase/test-uc_toupper.c: Likewise.
26124         * tests/unictype/test-categ_C.c: Likewise.
26125         * tests/unictype/test-categ_Cn.c: Likewise.
26126         * tests/unictype/test-categ_L.c: Likewise.
26127         * tests/unictype/test-categ_Ll.c: Likewise.
26128         * tests/unictype/test-categ_Lm.c: Likewise.
26129         * tests/unictype/test-categ_Lo.c: Likewise.
26130         * tests/unictype/test-categ_Lu.c: Likewise.
26131         * tests/unictype/test-categ_M.c: Likewise.
26132         * tests/unictype/test-categ_Mc.c: Likewise.
26133         * tests/unictype/test-categ_Me.c: Likewise.
26134         * tests/unictype/test-categ_Mn.c: Likewise.
26135         * tests/unictype/test-categ_N.c: Likewise.
26136         * tests/unictype/test-categ_Nd.c: Likewise.
26137         * tests/unictype/test-categ_No.c: Likewise.
26138         * tests/unictype/test-categ_P.c: Likewise.
26139         * tests/unictype/test-categ_Po.c: Likewise.
26140         * tests/unictype/test-categ_S.c: Likewise.
26141         * tests/unictype/test-categ_Sc.c: Likewise.
26142         * tests/unictype/test-categ_Sk.c: Likewise.
26143         * tests/unictype/test-categ_Sm.c: Likewise.
26144         * tests/unictype/test-categ_So.c: Likewise.
26145         * tests/unictype/test-ctype_alnum.c: Likewise.
26146         * tests/unictype/test-ctype_alpha.c: Likewise.
26147         * tests/unictype/test-ctype_graph.c: Likewise.
26148         * tests/unictype/test-ctype_lower.c: Likewise.
26149         * tests/unictype/test-ctype_print.c: Likewise.
26150         * tests/unictype/test-ctype_punct.c: Likewise.
26151         * tests/unictype/test-ctype_upper.c: Likewise.
26152         * tests/unictype/test-decdigit.h: Likewise.
26153         * tests/unictype/test-digit.h: Likewise.
26154         * tests/unictype/test-numeric.h: Likewise.
26155         * tests/unictype/test-pr_alphabetic.c: Likewise.
26156         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26157         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26158         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26164         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26165         * tests/unictype/test-pr_cased.c: Likewise.
26166         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26167         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26168         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26169         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26170         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26171         * tests/unictype/test-pr_combining.c: Likewise.
26172         * tests/unictype/test-pr_composite.c: Likewise.
26173         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26174         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26175         * tests/unictype/test-pr_deprecated.c: Likewise.
26176         * tests/unictype/test-pr_format_control.c: Likewise.
26177         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26178         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26179         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26180         * tests/unictype/test-pr_id_continue.c: Likewise.
26181         * tests/unictype/test-pr_id_start.c: Likewise.
26182         * tests/unictype/test-pr_ideographic.c: Likewise.
26183         * tests/unictype/test-pr_lowercase.c: Likewise.
26184         * tests/unictype/test-pr_math.c: Likewise.
26185         * tests/unictype/test-pr_numeric.c: Likewise.
26186         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26187         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26188         * tests/unictype/test-pr_other_math.c: Likewise.
26189         * tests/unictype/test-pr_punctuation.c: Likewise.
26190         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26191         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26192         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26193         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26194         * tests/unictype/test-pr_uppercase.c: Likewise.
26195         * tests/unictype/test-pr_xid_continue.c: Likewise.
26196         * tests/unictype/test-pr_xid_start.c: Likewise.
26197         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26198         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26199         changes.
26200         * lib/unictype/categ_Cc.h: Likewise.
26201         * lib/unictype/categ_Cf.h: Likewise.
26202         * lib/unictype/categ_Co.h: Likewise.
26203         * lib/unictype/categ_Cs.h: Likewise.
26204         * lib/unictype/categ_Lt.h: Likewise.
26205         * lib/unictype/categ_Nl.h: Likewise.
26206         * lib/unictype/categ_Pc.h: Likewise.
26207         * lib/unictype/categ_Pd.h: Likewise.
26208         * lib/unictype/categ_Pe.h: Likewise.
26209         * lib/unictype/categ_Pf.h: Likewise.
26210         * lib/unictype/categ_Pi.h: Likewise.
26211         * lib/unictype/categ_Ps.h: Likewise.
26212         * lib/unictype/categ_Z.h: Likewise.
26213         * lib/unictype/categ_Zl.h: Likewise.
26214         * lib/unictype/categ_Zp.h: Likewise.
26215         * lib/unictype/categ_Zs.h: Likewise.
26216         * lib/unictype/ctype_blank.h: Likewise.
26217         * lib/unictype/ctype_cntrl.h: Likewise.
26218         * lib/unictype/ctype_digit.h: Likewise.
26219         * lib/unictype/ctype_space.h: Likewise.
26220         * lib/unictype/ctype_xdigit.h: Likewise.
26221         * lib/unictype/mirror.h: Likewise.
26222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26223         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26224         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26225         * lib/unictype/pr_bidi_control.h: Likewise.
26226         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26227         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26228         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26229         * lib/unictype/pr_bidi_pdf.h: Likewise.
26230         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26231         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26232         * lib/unictype/pr_dash.h: Likewise.
26233         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26234         * lib/unictype/pr_diacritic.h: Likewise.
26235         * lib/unictype/pr_extender.h: Likewise.
26236         * lib/unictype/pr_hex_digit.h: Likewise.
26237         * lib/unictype/pr_hyphen.h: Likewise.
26238         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26239         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26240         * lib/unictype/pr_ignorable_control.h: Likewise.
26241         * lib/unictype/pr_iso_control.h: Likewise.
26242         * lib/unictype/pr_join_control.h: Likewise.
26243         * lib/unictype/pr_left_of_pair.h: Likewise.
26244         * lib/unictype/pr_line_separator.h: Likewise.
26245         * lib/unictype/pr_logical_order_exception.h: Likewise.
26246         * lib/unictype/pr_non_break.h: Likewise.
26247         * lib/unictype/pr_not_a_character.h: Likewise.
26248         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26249         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26250         * lib/unictype/pr_other_id_start.h: Likewise.
26251         * lib/unictype/pr_other_lowercase.h: Likewise.
26252         * lib/unictype/pr_other_uppercase.h: Likewise.
26253         * lib/unictype/pr_paired_punctuation.h: Likewise.
26254         * lib/unictype/pr_paragraph_separator.h: Likewise.
26255         * lib/unictype/pr_pattern_syntax.h: Likewise.
26256         * lib/unictype/pr_pattern_white_space.h: Likewise.
26257         * lib/unictype/pr_private_use.h: Likewise.
26258         * lib/unictype/pr_quotation_mark.h: Likewise.
26259         * lib/unictype/pr_radical.h: Likewise.
26260         * lib/unictype/pr_soft_dotted.h: Likewise.
26261         * lib/unictype/pr_space.h: Likewise.
26262         * lib/unictype/pr_titlecase.h: Likewise.
26263         * lib/unictype/pr_variation_selector.h: Likewise.
26264         * lib/unictype/pr_white_space.h: Likewise.
26265         * lib/unictype/pr_zero_width.h: Likewise.
26266         * lib/unictype/sy_c_ident.h: Likewise.
26267         * lib/unictype/sy_c_whitespace.h: Likewise.
26268         * lib/unictype/sy_java_whitespace.h: Likewise.
26269         * lib/uninorm/composition-table.gperf: Likewise.
26270         * lib/uninorm/decomposition-table1.h: Likewise.
26271         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26272         LB8.
26273         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26274         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26275         * modules/unictype/*: Bump version number of expected libunistring
26276         version.
26277
26278 2011-01-09  Bruno Haible  <bruno@clisp.org>
26279
26280         Update to Unicode 5.2.0.
26281         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26282         trailing whitespace removed.
26283
26284 2011-01-09  Bruno Haible  <bruno@clisp.org>
26285
26286         New Unicode character properties, from Unicode 5.2.0.
26287         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26288         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26289         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26290         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26291         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26292         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26293         uc_is_property_cased, uc_is_property_case_ignorable,
26294         uc_is_property_changes_when_lowercased,
26295         uc_is_property_changes_when_uppercased,
26296         uc_is_property_changes_when_titlecased,
26297         uc_is_property_changes_when_casefolded,
26298         uc_is_property_changes_when_casemapped): New declarations.
26299         * lib/unictype/pr_byname.gperf: Add the new properties.
26300         * modules/unictype/property-byname (Depends-on): Depend on the new
26301         properties modules.
26302         * modules/unictype/property-all (Depends-on): Likewise.
26303         * MODULES.html.sh (Unicode string functions): Add
26304         unictype/property-case-ignorable, unictype/property-cased,
26305         unictype/property-changes-when-casefolded,
26306         unictype/property-changes-when-casemapped,
26307         unictype/property-changes-when-lowercased,
26308         unictype/property-changes-when-titlecased,
26309         unictype/property-changes-when-uppercased.
26310
26311         New module 'unictype/property-changes-when-casemapped'.
26312         * modules/unictype/property-changes-when-casemapped: New file.
26313         * lib/unictype/pr_changes_when_casemapped.c: New file.
26314         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26315         generated by gen-uni-tables.
26316         * modules/unictype/property-changes-when-casemapped-tests: New file.
26317         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26318         automatically generated by gen-uni-tables.
26319
26320         New module 'unictype/property-changes-when-casefolded'.
26321         * modules/unictype/property-changes-when-casefolded: New file.
26322         * lib/unictype/pr_changes_when_casefolded.c: New file.
26323         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26324         generated by gen-uni-tables.
26325         * modules/unictype/property-changes-when-casefolded-tests: New file.
26326         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26327         automatically generated by gen-uni-tables.
26328
26329         New module 'unictype/property-changes-when-titlecased'.
26330         * modules/unictype/property-changes-when-titlecased: New file.
26331         * lib/unictype/pr_changes_when_titlecased.c: New file.
26332         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26333         generated by gen-uni-tables.
26334         * modules/unictype/property-changes-when-titlecased-tests: New file.
26335         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26336         automatically generated by gen-uni-tables.
26337
26338         New module 'unictype/property-changes-when-uppercased'.
26339         * modules/unictype/property-changes-when-uppercased: New file.
26340         * lib/unictype/pr_changes_when_uppercased.c: New file.
26341         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26342         generated by gen-uni-tables.
26343         * modules/unictype/property-changes-when-uppercased-tests: New file.
26344         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26345         automatically generated by gen-uni-tables.
26346
26347         New module 'unictype/property-changes-when-lowercased'.
26348         * modules/unictype/property-changes-when-lowercased: New file.
26349         * lib/unictype/pr_changes_when_lowercased.c: New file.
26350         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26351         generated by gen-uni-tables.
26352         * modules/unictype/property-changes-when-lowercased-tests: New file.
26353         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26354         automatically generated by gen-uni-tables.
26355
26356         New module 'unictype/property-case-ignorable'.
26357         * modules/unictype/property-case-ignorable: New file.
26358         * lib/unictype/pr_case_ignorable.c: New file.
26359         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26360         by gen-uni-tables.
26361         * modules/unictype/property-case-ignorable-tests: New file.
26362         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26363         generated by gen-uni-tables.
26364
26365         New module 'unictype/property-cased'.
26366         * modules/unictype/property-cased: New file.
26367         * lib/unictype/pr_cased.c: New file.
26368         * lib/unictype/pr_cased.h: New file, automatically generated by
26369         gen-uni-tables.
26370         * modules/unictype/property-cased-tests: New file.
26371         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26372         gen-uni-tables.
26373
26374 2011-01-09  Bruno Haible  <bruno@clisp.org>
26375
26376         Update to Unicode 5.2.0.
26377         * lib/gen-uni-tables.c (output_predicate, output_category,
26378         output_combclass, output_bidi_category, output_decimal_digit_test,
26379         output_decimal_digit, output_digit_test, output_digit,
26380         output_numeric_test, output_numeric, output_mirror, output_scripts,
26381         output_scripts_byname, output_blocks, output_ident_category): Fix
26382         comment header.
26383         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26384         get_wbp.
26385         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26386         items.
26387         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26388         Changes_When_Lowercased, Changes_When_Uppercased,
26389         Changes_When_Titlecased, Changes_When_Casefolded,
26390         Changes_When_Casemapped.
26391         (is_property_alphabetic, is_property_default_ignorable_code_point):
26392         Update for Unicode 5.2.0.
26393         (is_property_cased, is_property_case_ignorable,
26394         is_property_changes_when_lowercased,
26395         is_property_changes_when_uppercased,
26396         is_property_changes_when_titlecased,
26397         is_property_changes_when_casefolded,
26398         is_property_changes_when_casemapped): New functions.
26399         (output_properties): Output also the properties cased, case_ignorable,
26400         changes_when_lowercased, changes_when_uppercased,
26401         changes_when_titlecased, changes_when_casefolded,
26402         changes_when_casemapped.
26403         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26404         Unicode TR#11 revision 17 -> 19.
26405         (LBP_CP): New enumeration value.
26406         (LBP_*): Adjust values accordingly.
26407         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26408         TR#14 revision 22 -> 24.
26409         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26410         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26411         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26412         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26413         is_WBP_MIDLETTER.
26414         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26415         the code1 and code2 of each composition rule.
26416         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26417         * lib/unicase/ignorable.h: Likewise.
26418         * lib/unicase/tocasefold.h: Likewise.
26419         * lib/unicase/tolower.h: Likewise.
26420         * lib/unicase/totitle.h: Likewise.
26421         * lib/unicase/toupper.h: Likewise.
26422         * lib/unictype/bidi_of.h: Likewise.
26423         * lib/unictype/blocks.h: Likewise.
26424         * lib/unictype/categ_C.h: Likewise.
26425         * lib/unictype/categ_Cf.h: Likewise.
26426         * lib/unictype/categ_Cn.h: Likewise.
26427         * lib/unictype/categ_L.h: Likewise.
26428         * lib/unictype/categ_Ll.h: Likewise.
26429         * lib/unictype/categ_Lm.h: Likewise.
26430         * lib/unictype/categ_Lo.h: Likewise.
26431         * lib/unictype/categ_Lu.h: Likewise.
26432         * lib/unictype/categ_M.h: Likewise.
26433         * lib/unictype/categ_Mc.h: Likewise.
26434         * lib/unictype/categ_Mn.h: Likewise.
26435         * lib/unictype/categ_N.h: Likewise.
26436         * lib/unictype/categ_Nd.h: Likewise.
26437         * lib/unictype/categ_Nl.h: Likewise.
26438         * lib/unictype/categ_No.h: Likewise.
26439         * lib/unictype/categ_P.h: Likewise.
26440         * lib/unictype/categ_Pd.h: Likewise.
26441         * lib/unictype/categ_Po.h: Likewise.
26442         * lib/unictype/categ_S.h: Likewise.
26443         * lib/unictype/categ_Sc.h: Likewise.
26444         * lib/unictype/categ_So.h: Likewise.
26445         * lib/unictype/categ_of.h: Likewise.
26446         * lib/unictype/combining.h: Likewise.
26447         * lib/unictype/ctype_alnum.h: Likewise.
26448         * lib/unictype/ctype_alpha.h: Likewise.
26449         * lib/unictype/ctype_graph.h: Likewise.
26450         * lib/unictype/ctype_lower.h: Likewise.
26451         * lib/unictype/ctype_print.h: Likewise.
26452         * lib/unictype/ctype_punct.h: Likewise.
26453         * lib/unictype/ctype_upper.h: Likewise.
26454         * lib/unictype/decdigit.h: Likewise.
26455         * lib/unictype/digit.h: Likewise.
26456         * lib/unictype/numeric.h: Likewise.
26457         * lib/unictype/pr_alphabetic.h: Likewise.
26458         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26459         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26460         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26461         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26462         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26463         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26464         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26465         * lib/unictype/pr_combining.h: Likewise.
26466         * lib/unictype/pr_composite.h: Likewise.
26467         * lib/unictype/pr_currency_symbol.h: Likewise.
26468         * lib/unictype/pr_dash.h: Likewise.
26469         * lib/unictype/pr_decimal_digit.h: Likewise.
26470         * lib/unictype/pr_deprecated.h: Likewise.
26471         * lib/unictype/pr_diacritic.h: Likewise.
26472         * lib/unictype/pr_extender.h: Likewise.
26473         * lib/unictype/pr_grapheme_base.h: Likewise.
26474         * lib/unictype/pr_grapheme_extend.h: Likewise.
26475         * lib/unictype/pr_grapheme_link.h: Likewise.
26476         * lib/unictype/pr_id_continue.h: Likewise.
26477         * lib/unictype/pr_id_start.h: Likewise.
26478         * lib/unictype/pr_ideographic.h: Likewise.
26479         * lib/unictype/pr_ignorable_control.h: Likewise.
26480         * lib/unictype/pr_logical_order_exception.h: Likewise.
26481         * lib/unictype/pr_lowercase.h: Likewise.
26482         * lib/unictype/pr_numeric.h: Likewise.
26483         * lib/unictype/pr_other_alphabetic.h: Likewise.
26484         * lib/unictype/pr_punctuation.h: Likewise.
26485         * lib/unictype/pr_sentence_terminal.h: Likewise.
26486         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26487         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26488         * lib/unictype/pr_unified_ideograph.h: Likewise.
26489         * lib/unictype/pr_uppercase.h: Likewise.
26490         * lib/unictype/pr_xid_continue.h: Likewise.
26491         * lib/unictype/pr_xid_start.h: Likewise.
26492         * lib/unictype/pr_zero_width.h: Likewise.
26493         * lib/unictype/scripts.h: Likewise.
26494         * lib/unictype/scripts_byname.gperf: Likewise.
26495         * lib/unictype/sy_java_ident.h: Likewise.
26496         * lib/unigbrk/gbrkprop.h: Likewise.
26497         * lib/unilbrk/lbrkprop1.h: Likewise.
26498         * lib/unilbrk/lbrkprop2.h: Likewise.
26499         * lib/unilbrk/lbrktables.h: Likewise.
26500         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26501         LBP_CP. Implement rule LB30.
26502         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26503         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26504         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26505         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26506         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26507         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26508         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26509         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26510         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26511         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26512         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26513         bits instead of 16 bits in the code1 and code2 of each composition
26514         rule.
26515         (uc_composition): Update for Unicode 5.2.0.
26516         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26517         * lib/uninorm/decomposition-table2.h: Likewise.
26518         * lib/uniwbrk/wbrkprop.h: Likewise.
26519         * tests/unicase/test-cased.c: Likewise.
26520         * tests/unicase/test-ignorable.c: Likewise.
26521         * tests/unicase/test-uc_tolower.c: Likewise.
26522         * tests/unicase/test-uc_totitle.c: Likewise.
26523         * tests/unicase/test-uc_toupper.c: Likewise.
26524         * tests/unictype/test-categ_C.c: Likewise.
26525         * tests/unictype/test-categ_Cf.c: Likewise.
26526         * tests/unictype/test-categ_Cn.c: Likewise.
26527         * tests/unictype/test-categ_L.c: Likewise.
26528         * tests/unictype/test-categ_Ll.c: Likewise.
26529         * tests/unictype/test-categ_Lm.c: Likewise.
26530         * tests/unictype/test-categ_Lo.c: Likewise.
26531         * tests/unictype/test-categ_Lu.c: Likewise.
26532         * tests/unictype/test-categ_M.c: Likewise.
26533         * tests/unictype/test-categ_Mc.c: Likewise.
26534         * tests/unictype/test-categ_Mn.c: Likewise.
26535         * tests/unictype/test-categ_N.c: Likewise.
26536         * tests/unictype/test-categ_Nd.c: Likewise.
26537         * tests/unictype/test-categ_Nl.c: Likewise.
26538         * tests/unictype/test-categ_No.c: Likewise.
26539         * tests/unictype/test-categ_P.c: Likewise.
26540         * tests/unictype/test-categ_Pd.c: Likewise.
26541         * tests/unictype/test-categ_Po.c: Likewise.
26542         * tests/unictype/test-categ_S.c: Likewise.
26543         * tests/unictype/test-categ_Sc.c: Likewise.
26544         * tests/unictype/test-categ_So.c: Likewise.
26545         * tests/unictype/test-ctype_alnum.c: Likewise.
26546         * tests/unictype/test-ctype_alpha.c: Likewise.
26547         * tests/unictype/test-ctype_graph.c: Likewise.
26548         * tests/unictype/test-ctype_lower.c: Likewise.
26549         * tests/unictype/test-ctype_print.c: Likewise.
26550         * tests/unictype/test-ctype_punct.c: Likewise.
26551         * tests/unictype/test-ctype_upper.c: Likewise.
26552         * tests/unictype/test-decdigit.h: Likewise.
26553         * tests/unictype/test-digit.h: Likewise.
26554         * tests/unictype/test-numeric.h: Likewise.
26555         * tests/unictype/test-pr_alphabetic.c: Likewise.
26556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26557         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26558         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26559         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26560         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26561         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26562         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26563         * tests/unictype/test-pr_combining.c: Likewise.
26564         * tests/unictype/test-pr_composite.c: Likewise.
26565         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26566         * tests/unictype/test-pr_dash.c: Likewise.
26567         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26568         * tests/unictype/test-pr_deprecated.c: Likewise.
26569         * tests/unictype/test-pr_diacritic.c: Likewise.
26570         * tests/unictype/test-pr_extender.c: Likewise.
26571         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26572         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26573         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26574         * tests/unictype/test-pr_id_continue.c: Likewise.
26575         * tests/unictype/test-pr_id_start.c: Likewise.
26576         * tests/unictype/test-pr_ideographic.c: Likewise.
26577         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26578         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26579         * tests/unictype/test-pr_lowercase.c: Likewise.
26580         * tests/unictype/test-pr_numeric.c: Likewise.
26581         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26582         * tests/unictype/test-pr_punctuation.c: Likewise.
26583         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26584         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26585         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26586         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26587         * tests/unictype/test-pr_uppercase.c: Likewise.
26588         * tests/unictype/test-pr_xid_continue.c: Likewise.
26589         * tests/unictype/test-pr_xid_start.c: Likewise.
26590         * tests/unictype/test-pr_zero_width.c: Likewise.
26591         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26593         changed behaviour: line breaking is now disallowed between a letter
26594         or '=' and '('.
26595         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26596         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26597         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26598         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26599         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26600         lib/uniwidth/width.c.
26601         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26602         without comments, but with the original copyright notice.
26603         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26604         changes.
26605         * lib/unictype/categ_Cc.h: Likewise.
26606         * lib/unictype/categ_Co.h: Likewise.
26607         * lib/unictype/categ_Cs.h: Likewise.
26608         * lib/unictype/categ_Lt.h: Likewise.
26609         * lib/unictype/categ_Me.h: Likewise.
26610         * lib/unictype/categ_Pc.h: Likewise.
26611         * lib/unictype/categ_Pe.h: Likewise.
26612         * lib/unictype/categ_Pf.h: Likewise.
26613         * lib/unictype/categ_Pi.h: Likewise.
26614         * lib/unictype/categ_Ps.h: Likewise.
26615         * lib/unictype/categ_Sk.h: Likewise.
26616         * lib/unictype/categ_Sm.h: Likewise.
26617         * lib/unictype/categ_Z.h: Likewise.
26618         * lib/unictype/categ_Zl.h: Likewise.
26619         * lib/unictype/categ_Zp.h: Likewise.
26620         * lib/unictype/categ_Zs.h: Likewise.
26621         * lib/unictype/ctype_blank.h: Likewise.
26622         * lib/unictype/ctype_cntrl.h: Likewise.
26623         * lib/unictype/ctype_digit.h: Likewise.
26624         * lib/unictype/ctype_space.h: Likewise.
26625         * lib/unictype/ctype_xdigit.h: Likewise.
26626         * lib/unictype/mirror.h: Likewise.
26627         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26628         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26629         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26630         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26631         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26632         * lib/unictype/pr_bidi_control.h: Likewise.
26633         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26634         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26635         * lib/unictype/pr_bidi_pdf.h: Likewise.
26636         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26637         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26638         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26639         * lib/unictype/pr_format_control.h: Likewise.
26640         * lib/unictype/pr_hex_digit.h: Likewise.
26641         * lib/unictype/pr_hyphen.h: Likewise.
26642         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26643         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26644         * lib/unictype/pr_iso_control.h: Likewise.
26645         * lib/unictype/pr_join_control.h: Likewise.
26646         * lib/unictype/pr_left_of_pair.h: Likewise.
26647         * lib/unictype/pr_line_separator.h: Likewise.
26648         * lib/unictype/pr_math.h: Likewise.
26649         * lib/unictype/pr_non_break.h: Likewise.
26650         * lib/unictype/pr_not_a_character.h: Likewise.
26651         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26652         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26653         * lib/unictype/pr_other_id_continue.h: Likewise.
26654         * lib/unictype/pr_other_id_start.h: Likewise.
26655         * lib/unictype/pr_other_lowercase.h: Likewise.
26656         * lib/unictype/pr_other_math.h: Likewise.
26657         * lib/unictype/pr_other_uppercase.h: Likewise.
26658         * lib/unictype/pr_paired_punctuation.h: Likewise.
26659         * lib/unictype/pr_paragraph_separator.h: Likewise.
26660         * lib/unictype/pr_pattern_syntax.h: Likewise.
26661         * lib/unictype/pr_pattern_white_space.h: Likewise.
26662         * lib/unictype/pr_private_use.h: Likewise.
26663         * lib/unictype/pr_quotation_mark.h: Likewise.
26664         * lib/unictype/pr_radical.h: Likewise.
26665         * lib/unictype/pr_soft_dotted.h: Likewise.
26666         * lib/unictype/pr_space.h: Likewise.
26667         * lib/unictype/pr_titlecase.h: Likewise.
26668         * lib/unictype/pr_variation_selector.h: Likewise.
26669         * lib/unictype/pr_white_space.h: Likewise.
26670         * lib/unictype/sy_c_ident.h: Likewise.
26671         * lib/unictype/sy_c_whitespace.h: Likewise.
26672         * lib/unictype/sy_java_whitespace.h: Likewise.
26673         * modules/uni*/*: Bump version number of expected libunistring version.
26674         Reported by Simon Josefsson.
26675
26676 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26677
26678         useless-if-before-free: fix typo in --help and make the internal,
26679         automatic version date update process work once again.
26680         --help output contained a NUL character instead of the
26681         backslash-zero that was intended.  Also, the "must lie within
26682         the first 8 lines" line is on line 9, and hence not getting
26683         automatically updated.
26684         * build-aux/useless-if-before-free: Fix the former by adding a
26685         backslash, and the latter by condensing the three lines of what-it-does
26686         to a single line, leaving one line of slack for the future.
26687
26688 2011-01-09  Bruno Haible  <bruno@clisp.org>
26689
26690         uniwidth/width: Fix width of U+1D173..U+1D17A.
26691         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26692         symbolic_width, output_width_property_test): New functions.
26693         (main): Invoke output_nonspacing_property, output_width_property_test.
26694         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26695         U+1D173..U+1D17A.
26696         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26697         1.
26698         * modules/uniwidth/*: Bump version number of expected libunistring
26699         version.
26700         * modules/unilbrk/*: Likewise.
26701
26702 2011-01-08  Bruno Haible  <bruno@clisp.org>
26703
26704         uninorm tests: Preserve copyright of Unicode data file.
26705         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26706         Mention modifications.
26707
26708 2011-01-08  Bruno Haible  <bruno@clisp.org>
26709
26710         gen-uni-tables: Prepare for Unicode 5.2.0.
26711         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26712         (debug_output_lbp, output_lbp): Update.
26713
26714 2011-01-08  Bruno Haible  <bruno@clisp.org>
26715
26716         unilbrk: Clarify gen-uni-tables.c code.
26717         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26718         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26719         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26720
26721 2011-01-07  Bruno Haible  <bruno@clisp.org>
26722
26723         strtod: Restore errno when successfully parsing Infinity or NaN.
26724         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26725         restore the original errno.
26726
26727 2011-01-07  Bruno Haible  <bruno@clisp.org>
26728
26729         remove test: Avoid failure on HP-UX 11.
26730         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26731
26732 2011-01-07  Bruno Haible  <bruno@clisp.org>
26733
26734         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26735         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26736         error code.
26737
26738 2011-01-07  Pádraig Brady <P@draigBrady.com>
26739
26740         ignore-value: fixup comments, and add Eric Blake
26741         as an author since he rewrote the macros.
26742         * lib/ignore-value.h (ignore_value):  State that
26743         we now support aggregates.  Also specify exactly
26744         when the GCC warn_unused_result feature was added.
26745
26746 2011-01-06  Eric Blake  <eblake@redhat.com>
26747
26748         ignore-value: support aggregate types
26749         * lib/ignore-value.h (ignore_value): Provide separate gcc
26750         definition.
26751         * modules/ignore-value-tests: New test module.
26752         * tests/test-ignore-value.c: New test.
26753
26754         maint.mk: improve sc_prohibit_strcmp regex
26755         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26756         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26757         definition of STRNEQ.
26758
26759         signal: work around Haiku issue with SIGBUS
26760         * lib/siglist.h: Add comment.
26761         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26762         strsignal's favoring of SIGSEGV.
26763         * tests/test-signal.c (main): Avoid test failure.
26764         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26765         Reported by Scott McCreary.
26766
26767         maint.mk: add pre-release check to ensure submodule commits are public
26768         * top/maint.mk (public-submodule-commit): New rule.
26769         (submodule-checks): New variable.
26770         (alpha beta stable): Depend on the variable.
26771
26772 2011-01-05  Pádraig Brady <P@draigBrady.com>
26773         and Jim Meyering  <meyering@redhat.com>
26774
26775         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26776         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26777         (ATTRIBUTE_DEPRECATED): Define.
26778         (_ignore_case): New function.
26779         (ignore_value): New macro, to replace the old function.
26780         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26781         * modules/ignore-value (Depends-on): Add stdint.
26782
26783 2011-01-04  Eric Blake  <eblake@redhat.com>
26784
26785         doc: regenerate INSTALL
26786         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26787         @firstparagraphindent support, now that autoconf dropped it.
26788         (INSTALL_PRELUDE): Reinstate old macro.
26789         * doc/install.texi: Resync from autoconf.
26790         * doc/INSTALL: Reflect recent autoconf update.
26791         * doc/INSTALL.ISO: Likewise.
26792         * doc/INSTALL.UTF-8: Likewise.
26793         Reported by Karl Berry.
26794
26795 2011-01-04  Bruce Korb  <address@hidden>
26796
26797         git-version-gen: avoid a sub-shell
26798         * build-aux/git-version-gen: Redirect stderr in `...` via
26799         "exec 2>...", rather than via an added sub-shell.
26800
26801 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26802
26803         git-version-gen: use (...) rather than sh -c '...'
26804         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26805         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26806
26807 2011-01-03  Jim Meyering  <meyering@redhat.com>
26808
26809         git-version-gen: convert leading TABs to spaces
26810         * build-aux/git-version-gen: Expand leading TABs.
26811
26812         git-version-gen: handle failed "git rev-list"
26813         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26814         from git and proceeding as if it had succeeded but printed no SHA1
26815         checksums, suppress the diagnostic and handle the failure.
26816         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26817
26818         git-version-gen: include command name in one more diagnostic
26819         * build-aux/git-version-gen: When the required .tarball-version file
26820         was missing or unreadable, you might see the diagnostic from "cat",
26821         but no trace of the name of the invoking script.  Now, you still see
26822         the diagnostic from cat, but also get one from "git-version-gen: ".
26823         Inspired by a patch from Bruce Korb.
26824
26825         update-copyright: adjust test to match changed code
26826         * tests/test-update-copyright.sh: Change test's expected output
26827         to match new actual output.
26828
26829 2011-01-02  Bruno Haible  <bruno@clisp.org>
26830
26831         getlogin_r: Avoid test failure on HP-UX 11.
26832         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26833         ERANGE when the second argument is zero.
26834         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26835         portability problem.
26836
26837 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26838
26839         * build-aux/update-copyright: doc Simon's changes
26840
26841 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26842
26843         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26844         environment variable.
26845
26846 2011-01-02  Bruno Haible  <bruno@clisp.org>
26847
26848         unigbrk: Avoid gcc warnings.
26849         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26850         unused variable.
26851         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26852         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26853         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26854         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26855         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26856         Change type of first argument to 'const char *'.
26857         (main): Remove unused variable.
26858         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26859         type of first argument to 'const char *'.
26860         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26861         Likewise.
26862         (main): Change type of variable 's'.
26863         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26864         to 'int'.
26865
26866 2011-01-02  Bruno Haible  <bruno@clisp.org>
26867
26868         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26869         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26870         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26871         bug.
26872         * lib/pwrite.c: Undo 2010-12-31 patch.
26873         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26874
26875 2011-01-02  Bruno Haible  <bruno@clisp.org>
26876
26877         pread: Fix test whether it works.
26878         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26879
26880 2011-01-02  Bruno Haible  <bruno@clisp.org>
26881
26882         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26883         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26884         ends in "6". Don't require a specific month name. Try also the locale
26885         names found on HP-UX 11 and Solaris 7.
26886
26887 2011-01-02  Bruno Haible  <bruno@clisp.org>
26888
26889         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26890         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26891         C linkage.
26892         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26893
26894 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26895
26896         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26897         for consistency, since the "cluster" term is not used elsewhere.
26898         * lib/unigbrk.in.h: Update name.
26899         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26900         * lib/unigbrk/u16-grapheme-next.c: Update name.
26901         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26902         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26903         * lib/unigbrk/u32-grapheme-next.c: Update name.
26904         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26905         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26906         * lib/unigbrk/u8-grapheme-next.c: Update name.
26907         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26908         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26909         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26910         Suggested by Bruno Haible.
26911
26912 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26913
26914         Remove module 'u8-grapheme-len' as too redundant with
26915         'u8-grapheme-next'.
26916         * modules/unigbrk/u8-grapheme-len: Delete file.
26917         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26918         * lib/unigbrk.in.h: Remove prototype for deleted function.
26919         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26920         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26921
26922         Remove module 'u16-grapheme-len' as too redundant with
26923         'u16-grapheme-next'.
26924         * modules/unigbrk/u16-grapheme-len: Delete file.
26925         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26926         * lib/unigbrk.in.h: Remove prototype for deleted function.
26927         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26928         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26929
26930         Remove module 'u32-grapheme-len' as too redundant with
26931         'u32-grapheme-next'.
26932         * modules/unigbrk/u32-grapheme-len: Delete file.
26933         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26934         * lib/unigbrk.in.h: Remove prototype for deleted function.
26935         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26936         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26937
26938         Suggested by Bruno Haible.
26939
26940 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26941
26942         * unigbrk.in.h: Fix typo: "ben" => "been".
26943         Reported by Bruno Haible.
26944
26945 2011-01-01  Jim Meyering  <meyering@redhat.com>
26946
26947         maint: update almost all copyright ranges to include 2011
26948         Run the new "make update-copyright" rule.
26949
26950 2011-01-01  Jim Meyering  <meyering@redhat.com>
26951
26952         maint: update-copyright: exempt doc/INSTALL*
26953         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26954         since they are generated.  Suggested by Bruno Haible.
26955
26956 2011-01-01  Jim Meyering  <meyering@redhat.com>
26957
26958         maint: refine the update-copyright rule
26959         * Makefile (update-copyright): Also exclude any file that includes
26960         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26961         code that merely generates the comment.
26962
26963 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26964
26965         New module 'u8-grapheme-len'.
26966         * modules/unigbrk/u8-grapheme-len: New file.
26967         * modules/unigbrk/u8-grapheme-len-tests: New file.
26968         * lib/unigbrk.in.h: Add prototype for new function.
26969         * lib/unigbrk/u8-grapheme-len.c: New file.
26970         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26971
26972         New module 'u16-grapheme-len'.
26973         * modules/unigbrk/u16-grapheme-len: New file.
26974         * modules/unigbrk/u16-grapheme-len-tests: New file.
26975         * lib/unigbrk.in.h: Add prototype for new function.
26976         * lib/unigbrk/u16-grapheme-len.c: New file.
26977         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26978
26979         New module 'u32-grapheme-len'.
26980         * modules/unigbrk/u32-grapheme-len: New file.
26981         * modules/unigbrk/u32-grapheme-len-tests: New file.
26982         * lib/unigbrk.in.h: Add prototype for new function.
26983         * lib/unigbrk/u32-grapheme-len.c: New file.
26984         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26985
26986         New module 'u8-grapheme-next'.
26987         * modules/unigbrk/u8-grapheme-next: New file.
26988         * modules/unigbrk/u8-grapheme-next-tests: New file.
26989         * lib/unigbrk.in.h: Add prototype for new function.
26990         * lib/unigbrk/u8-grapheme-next.c: New file.
26991         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26992
26993         New module 'u16-grapheme-next'.
26994         * modules/unigbrk/u16-grapheme-next: New file.
26995         * modules/unigbrk/u16-grapheme-next-tests: New file.
26996         * lib/unigbrk.in.h: Add prototype for new function.
26997         * lib/unigbrk/u16-grapheme-next.c: New file.
26998         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26999
27000         New module 'u32-grapheme-next'.
27001         * modules/unigbrk/u32-grapheme-next: New file.
27002         * modules/unigbrk/u32-grapheme-next-tests: New file.
27003         * lib/unigbrk.in.h: Add prototype for new function.
27004         * lib/unigbrk/u32-grapheme-next.c: New file.
27005         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27006
27007         New module 'u8-grapheme-prev'.
27008         * modules/unigbrk/u8-grapheme-prev: New file.
27009         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27010         * lib/unigbrk.in.h: Add prototype for new function.
27011         * lib/unigbrk/u8-grapheme-prev.c: New file.
27012         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27013
27014         New module 'u16-grapheme-prev'.
27015         * modules/unigbrk/u16-grapheme-prev: New file.
27016         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27017         * lib/unigbrk.in.h: Add prototype for new function.
27018         * lib/unigbrk/u16-grapheme-prev.c: New file.
27019         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27020
27021         New module 'u32-grapheme-prev'.
27022         * modules/unigbrk/u32-grapheme-prev: New file.
27023         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27024         * lib/unigbrk.in.h: Add prototype for new function.
27025         * lib/unigbrk/u32-grapheme-prev.c: New file.
27026         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27027
27028         New module 'u8-grapheme-breaks'.
27029         * modules/unigbrk/u8-grapheme-breaks: New file.
27030         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27031         * lib/unigbrk.in.h: Add prototype for new function.
27032         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27033         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27034
27035         New module 'u16-grapheme-breaks'.
27036         * modules/unigbrk/u16-grapheme-breaks: New file.
27037         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27038         * lib/unigbrk.in.h: Add prototype for new function.
27039         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27040         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27041
27042         New module 'u32-grapheme-breaks'.
27043         * modules/unigbrk/u32-grapheme-breaks: New file.
27044         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27045         * lib/unigbrk.in.h: Add prototype for new function.
27046         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27047         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27048
27049         New module 'ulc-grapheme-breaks'.
27050         * modules/unigbrk/ulc-grapheme-breaks: New file.
27051         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27052         * m4/locale-ar.m4: New file.
27053         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27054         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27055         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27056
27057 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27058
27059         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27060         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27061         modified how this file was generated before I initially submitted
27062         the module, but failed to regenerate it.  This meant that several
27063         of the level2 entries were wrong.
27064         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27065         Remove the division-by-2 that is folded into the table now that
27066         gbrkprop.h has been regenerated properly.  Now -1 entries are
27067         handled correctly.
27068
27069         New module 'unigbrk/uc-gbrk-prop-tests'.
27070         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27071         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27072         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27073         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27074
27075 2011-01-01  Bruno Haible  <bruno@clisp.org>
27076
27077         Avoid use of hexadecimal escapes.
27078         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27079         instead of hexadecimal escapes.
27080
27081 2011-01-01  Jim Meyering  <meyering@redhat.com>
27082
27083         maint: new rule to update copyright year ranges
27084         * Makefile (update-copyright): New rule.
27085
27086         maint: indent with TABs in Makefile
27087         * Makefile: Expand leading sequences of spaces to TABs
27088
27089         version-etc: update the copyright year it reports
27090         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27091
27092 2010-12-31  Bruno Haible  <bruno@clisp.org>
27093
27094         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27095         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27096         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27097         zero.
27098
27099 2010-12-31  Bruno Haible  <bruno@clisp.org>
27100
27101         pwrite: Work around HP-UX 11.11 bug.
27102         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27103         works and set REPLACE_PWRITE if not.
27104         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27105         function.
27106         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27107
27108 2010-12-31  Bruno Haible  <bruno@clisp.org>
27109
27110         pread: Work around HP-UX 11 bugs.
27111         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27112         and set REPLACE_PREAD if not.
27113         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27114
27115 2010-12-31  Eric Blake  <eblake@redhat.com>
27116
27117         nl_langinfo: fix YESEXPR on Irix 6.5
27118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27119         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27120         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27121         it.
27122
27123 2010-12-31  Bruno Haible  <bruno@clisp.org>
27124
27125         iconv: Document HP-UX 11 bug.
27126         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27127
27128 2010-12-31  Bruno Haible  <bruno@clisp.org>
27129
27130         ldexpl: Fix link error on HP-UX 11.
27131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27132         LDEXPL_LIBM, using $ISNANL_LIBM.
27133
27134 2010-12-31  Eric Blake  <eblake@redhat.com>
27135
27136         ftello: avoid compilation failure with SunStudio c89
27137         * lib/ftello.c (ftello): Use lseek, not llseek.
27138
27139         tests: avoid failing coreutils tests on cygwin
27140         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27141         (create_exe_shims_): Return 0 when skipping.
27142
27143 2010-12-31  Bruno Haible  <bruno@clisp.org>
27144
27145         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27146         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27147
27148 2010-12-31  Bruno Haible  <bruno@clisp.org>
27149
27150         waitpid: Fix link error in C++ mode.
27151         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27152
27153 2010-12-31  Bruno Haible  <bruno@clisp.org>
27154
27155         isnan: Use GCC built-ins when possible.
27156         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27157         __builtin_isnan.
27158         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27159         (isnan): Define using GCC built-ins for GCC >= 4.0.
27160
27161 2010-12-31  Bruno Haible  <bruno@clisp.org>
27162
27163         isnand: Fix mistake.
27164         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27165         __builtin_isnand.
27166
27167 2010-12-31  Bruno Haible  <bruno@clisp.org>
27168
27169         open: Avoid C++ error on HP-UX 11.
27170         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27171
27172 2010-12-31  Bruno Haible  <bruno@clisp.org>
27173
27174         time_r: Add missing declarations on HP-UX 11.
27175         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27176         instead of HAVE_LOCALTIME_R.
27177         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27178         HAVE_LOCALTIME_R always.
27179         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27180         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27181         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27182         HAVE_LOCALTIME_R.
27183         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27184         * doc/posix-functions/localtime_r.texi: Likewise.
27185
27186 2010-12-29  Eric Blake  <eblake@redhat.com>
27187
27188         mountlist: tweak previous commit
27189         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27190         Reported by Paul Eggert.
27191
27192         mountlist: fix local drive detection on cygwin
27193         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27194         that works for cygwin.
27195
27196 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27197
27198         ftoastr, snprintf: ftoastr + snprintf module
27199         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27200         since the snprintf module now should be good enough here.
27201         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27202         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27203         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27204         GNULIB_SNPRINTF only for the test directory, and the latter
27205         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27206         seems to suffice by itself.
27207
27208 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27209
27210         alloca: one step towards thread-safety
27211         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27212         need for a static variable.  All callers changed.  This does not
27213         make the alloca replacement thread-safe, but it's one step.
27214
27215         tests: minor indenting change
27216         * tests/init.sh: Sync from coreutils housekeeping patch
27217         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27218         to keep lines within 80 columns.
27219
27220 2010-12-28  Jim Meyering  <meyering@redhat.com>
27221
27222         regex: don't infloop on persistent failing calloc
27223         * lib/regexec.c (build_trtable): Return failure indication upon
27224         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27225         In glibc, this was fixed for version 2.13:
27226         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27227
27228 2010-12-28  Bruno Haible  <bruno@clisp.org>
27229             Paul Eggert <eggert@cs.ucla.edu>
27230
27231         linkat: Make implementation robust against system behaviour variations.
27232         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27233         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27234         way, and to -2 if it needs a generic runtime test.
27235         * lib/linkat.c (solaris_optimized_link_immediate,
27236         solaris_optimized_link_follow): New functions.
27237         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27238         (check_same_link): Use it.
27239
27240 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27241
27242         New module 'unigbrk/base'.
27243         * modules/unigbrk/base: New file.
27244         * lib/unigbrk.in.h: New file.
27245
27246         New module 'unigbrk/uc-gbrk-prop'.
27247         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27248         * modules/unigbrk/uc-gbrk-prop: New file.
27249         * lib/unigbrk/gbrkprop.h: New file.
27250         * lib/unigbrk/uc-gbrk-prop.c: New file.
27251
27252         New module 'unigbrk/uc-is-grapheme-break'.
27253         * modules/unigbrk/uc-is-grapheme-break: New file.
27254         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27255         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27256         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27257         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27258         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27259
27260         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27261
27262 2010-12-27  Bruno Haible  <bruno@clisp.org>
27263
27264         linkat test: Avoid failure on Solaris 11 2010-11.
27265         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27266
27267 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27268
27269         utimens: work around glibc rounding bug on more platforms
27270         * lib/utimens.c (fdutimens): Work around rounding bug even if
27271         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27273
27274 2010-12-27  Bruno Haible  <bruno@clisp.org>
27275
27276         select tests: Improve comments.
27277         * tests/test-select.c (do_select): Add comments.
27278
27279 2010-12-27  Bruno Haible  <bruno@clisp.org>
27280
27281         select tests: Safer way of handling timeout.
27282         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27283         at every invocation.
27284
27285 2010-12-27  Bruno Haible  <bruno@clisp.org>
27286
27287         select tests: Use 'bool' where appropriate.
27288         * tests/test-select.c (connect_to_socket): Change argument type to
27289         'bool'.
27290
27291 2010-12-27  Bruno Haible  <bruno@clisp.org>
27292
27293         select tests: Use existing modules.
27294         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27295         (configure.ac): Don't test for unistd.h.
27296         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27297         declared in <unistd.h>.
27298
27299 2010-12-27  Bruno Haible  <bruno@clisp.org>
27300
27301         mbrtowc: Work around a Solaris 7 bug.
27302         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27303         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27304         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27305         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27306         MBRTOWC_NULL_ARG1_BUG.
27307         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27308         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27309         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27310         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27311
27312 2010-12-27  Jim Meyering  <meyering@redhat.com>
27313
27314         read-file.c: tweak syntax
27315         * lib/read-file.c (fread_file): Remove space after "*" in function
27316         definitions.
27317
27318 2010-12-27  Bruno Haible  <bruno@clisp.org>
27319
27320         times test: Avoid gcc warnings on OSF/1.
27321         * tests/test-times.c (main): Cast printf arguments from clock_t to
27322         'long int'.
27323
27324 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27325
27326         utimens: work around glibc rounding bug on older Linux kernels
27327         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27328         on Linux with a glibc whose utimes might not work, then work
27329         around a longstanding glibc bug involving rounding rather than
27330         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27332
27333 2010-12-26  Bruno Haible  <bruno@clisp.org>
27334
27335         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27336         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27337         _GL_CXXALIAS_SYS.
27338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27339
27340 2010-12-26  Bruno Haible  <bruno@clisp.org>
27341
27342         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27343         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27345         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27346         looking for the declaration.
27347         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27348         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27349         problem.
27350         * doc/posix-functions/inet_pton.texi: Likewise.
27351
27352 2010-12-26  Bruno Haible  <bruno@clisp.org>
27353
27354         arpa_inet: Use the common idioms with C++ support.
27355         * lib/arpa_inet.in.h: Include c++defs.h.
27356         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27357         support.
27358         * modules/arpa_inet (Depends-on): Add c++defs.
27359         (Makefile.am): Substitute the contents of c++defs.h.
27360         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27361         * modules/arpa_inet-c++-tests: New file.
27362         * tests/test-arpa_inet-c++.cc: New file.
27363
27364 2010-12-25  Bruno Haible  <bruno@clisp.org>
27365
27366         Fix more C++ link errors on Solaris 8.
27367         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27368         $(LIB_EACCESS).
27369         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27370         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27371         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27372         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27373         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27374
27375 2010-12-25  Bruno Haible  <bruno@clisp.org>
27376
27377         printf-posix: Fix link error when a non-GCC compiler is used.
27378         * lib/stdio.in.h (printf): When not using GCC, override printf
27379         correctly.
27380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27381
27382 2010-12-25  Bruno Haible  <bruno@clisp.org>
27383
27384         strerror_r-posix: Update doc.
27385         * doc/posix-functions/strerror_r.texi: Update doc about the return
27386         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27387
27388 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27389
27390         utimens: simplify the logic of the previous change
27391         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27392         This should not affect whether the test succeeds or fails.
27393
27394         utimens: configure better on hosts with NFS clock skew
27395         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27396         uses the clock of the local host.  It might use the clock of the
27397         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27399
27400 2010-12-25  Bruno Haible  <bruno@clisp.org>
27401
27402         ptsname test: Avoid failure on Solaris.
27403         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27404         open a pseudo-terminal; don't use BSD-style ptys.
27405         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27406
27407 2010-12-25  Bruno Haible  <bruno@clisp.org>
27408
27409         ptsname: Avoid ERANGE failure on some systems.
27410         * lib/ptsname.c (buffer): Increase size.
27411
27412 2010-12-25  Bruno Haible  <bruno@clisp.org>
27413
27414         rename, renameat: Avoid test failures at NFS mounted locations.
27415         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27416         so that subsequent mkdir calls succeed.
27417
27418 2010-12-25  Bruno Haible  <bruno@clisp.org>
27419
27420         iswblank: Fix C++ link error on Solaris 8.
27421         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27422         _GL_FUNCDECL_SYS.
27423
27424 2010-12-25  Bruno Haible  <bruno@clisp.org>
27425
27426         unistd: Fix C++ link error on Solaris 8.
27427         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27428
27429 2010-12-25  Bruno Haible  <bruno@clisp.org>
27430
27431         readlink doc: Mention an old glibc bug.
27432         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27433
27434 2010-12-25  Bruno Haible  <bruno@clisp.org>
27435
27436         fcntl-h: Fix for use of C++ on glibc systems.
27437         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27438         also on glibc systems in C++ mode.
27439         Reported by Gary V. Vaughan <gary@gnu.org>.
27440
27441 2010-12-25  Bruno Haible  <bruno@clisp.org>
27442
27443         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27444         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27445
27446 2010-12-25  Bruno Haible  <bruno@clisp.org>
27447
27448         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27449         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27450         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27451         test whether truncl works according to ISO C 99 with IEC 60559.
27452         * m4/truncl-ieee.m4: New file.
27453         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27454         m4/signbit.m4.
27455         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27456
27457 2010-12-25  Bruno Haible  <bruno@clisp.org>
27458
27459         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27460         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27461         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27462         test whether ceill works according to ISO C 99 with IEC 60559.
27463         * m4/ceill-ieee.m4: New file.
27464         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27465         m4/signbit.m4.
27466         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27467
27468 2010-12-25  Bruno Haible  <bruno@clisp.org>
27469
27470         Ensure all prerequisites of <wchar.h> are included.
27471         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27472         before <wchar.h>.
27473         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27474         gl_MBRLEN_NUL_RETVAL): Likewise.
27475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27476         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27477         AC_FUNC_MBRTOWC): Likewise.
27478         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27479         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27481         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27482         Likewise.
27483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27484         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27485         (gl_WCHAR_H): Improve comments.
27486         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27487
27488 2010-12-25  Bruno Haible  <bruno@clisp.org>
27489
27490         strtok_r: Fix C syntax error in autoconf macro.
27491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27492         characters in test program.
27493
27494 2010-12-24  Bruno Haible  <bruno@clisp.org>
27495
27496         ceil, trunc, round: Fix gcc warnings.
27497         * lib/ceil.c (MIN): Undefine before redefining.
27498         * lib/trunc.c (MIN): Likewise.
27499         * lib/round.c (MIN): Likewise.
27500         Include <math.h> first.
27501
27502 2010-12-24  Bruno Haible  <bruno@clisp.org>
27503
27504         select tests: Avoid failures on OSF/1 5.1.
27505         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27506         failure of closing the last socket; it may fail with ECONNRESET.
27507
27508 2010-12-24  Eric Blake  <eblake@redhat.com>
27509
27510         stdint: avoid HP-UX 10.20 preprocessor bug
27511         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27512         than #if.
27513         * tests/test-floor2.c (main): Likewise.
27514         Reported by Peter O'Gorman.
27515
27516         pipe: make obsoletion transition easier
27517         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27518         * modules/pipe (Files): Include revived file.
27519         (Include): Drop reference, to mirror getdate's behavior.
27520
27521 2010-12-24  Bruno Haible  <bruno@clisp.org>
27522
27523         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27524         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27525         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27526         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27527
27528 2010-12-24  Bruno Haible  <bruno@clisp.org>
27529
27530         gethostname: Ensure declaration on NonStop Kernel.
27531         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27532         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27533
27534 2010-12-24  Bruno Haible  <bruno@clisp.org>
27535
27536         sys_select: Ensure all necessary types on NonStop Kernel.
27537         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27538         include <sys/time.h>.
27539         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27540         NonStop Kernel.
27541         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27542
27543 2010-12-24  Bruno Haible  <bruno@clisp.org>
27544
27545         sys_select: Remove unneeded include.
27546         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27547         have <sys/select.h>.
27548
27549 2010-12-24  Bruno Haible  <bruno@clisp.org>
27550
27551         gethostname: Provide a fallback for HOST_NAME_MAX.
27552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27553         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27554         instead.
27555         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27556
27557 2010-12-24  Bruno Haible  <bruno@clisp.org>
27558
27559         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27560         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27561         (SA_RESTART): Likewise.
27562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27563
27564 2010-12-24  Bruno Haible  <bruno@clisp.org>
27565
27566         signal: Define NSIG.
27567         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27568         * tests/test-signal.c (nsig): New variable.
27569         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27570
27571 2010-12-24  Bruno Haible  <bruno@clisp.org>
27572
27573         rename, renameat: Avoid test failures on OSF/1 5.1.
27574         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27575         alternative error codes.
27576         * tests/test-renameat.c (main): Likewise.
27577
27578 2010-12-24  Bruno Haible  <bruno@clisp.org>
27579
27580         *printf: Detect large precisions bug on Solaris 10/SPARC.
27581         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27582         by Paul Eggert.
27583         * tests/test-snprintf-posix.h (test_function): Add this test code here
27584         too.
27585         * tests/test-sprintf-posix.h (test_function): Likewise.
27586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27587         * tests/test-vasprintf-posix.c (test_function): Likewise.
27588         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27589         around by gnulib.
27590         * doc/posix-functions/printf.texi: Likewise.
27591         * doc/posix-functions/snprintf.texi: Likewise.
27592         * doc/posix-functions/sprintf.texi: Likewise.
27593         * doc/posix-functions/vfprintf.texi: Likewise.
27594         * doc/posix-functions/vprintf.texi: Likewise.
27595         * doc/posix-functions/vsnprintf.texi: Likewise.
27596         * doc/posix-functions/vsprintf.texi: Likewise.
27597         * doc/posix-functions/dprintf.texi: Undo last commit.
27598         * doc/posix-functions/vdprintf.texi: Likewise.
27599
27600 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27601
27602         tests: port test-fdutimensat.c to Solaris 8
27603         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27604         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27605         On Solaris 8, it fails with errno == ENOSYS, because there is no
27606         futimens (so it can't use the fd), and there is no lutimens (so it
27607         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27608
27609         vsnprintf: make more consistent with snprintf; doc fixes
27610
27611         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27612         the byte count return problem was promoted from the snprintf-posix
27613         to the snprintf module.
27614         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27616         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27617         * tests/test-snprintf.c (main): Check the byte count returned.
27618         * tests/test-vsnprintf.c (main): Likewise.
27619
27620 2010-12-23  Eric Blake  <eblake@redhat.com>
27621
27622         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27623         * modules/sigpipe (License): Relax license.
27624
27625 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27626
27627         doc: document Solaris printf bug with large float precisions
27628         * doc/posix-functions/dprintf.texi (dprintf):
27629         * doc/posix-functions/fprintf.texi (fprintf):
27630         * doc/posix-functions/printf.texi (printf):
27631         * doc/posix-functions/snprintf.texi (snprintf):
27632         * doc/posix-functions/sprintf.texi (sprintf):
27633         * doc/posix-functions/vdprintf.texi (vdprintf):
27634         * doc/posix-functions/vfprintf.texi (vfprintf):
27635         * doc/posix-functions/vprintf.texi (vprintf):
27636         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27637         * doc/posix-functions/vsprintf.texi (vsprintf):
27638         Mention that these functions mishandle large floating point
27639         precisions on Solaris 10.  The same bug is also present in Solaris
27640         8, and I assume earlier.  This causes "cd gnulib-tests; make
27641         check" to fail on Solaris 8 (and I assume, later) when building
27642         the latest coreutils, in test-vasprintf-posix's call to
27643         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27644         the wide flavors (e.g., wprintf) so this patch just updates the
27645         documentation for the narrow ones.
27646
27647         test-posixtm.c: add two tests
27648         * tests/test-posixtm.c: Add two tests, to highlight the
27649         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27650         around this bug; this is merely to document it.
27651
27652 2010-12-22  Bruno Haible  <bruno@clisp.org>
27653
27654         getlogin_r: Work around portability problem on OSF/1.
27655         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27656         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27657         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27658         test for a truncated result.
27659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27660         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27661         * modules/getlogin_r (Depends-on): Add memchr.
27662         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27663
27664 2010-12-22  Bruno Haible  <bruno@clisp.org>
27665
27666         ptsname: Avoid test failure on OSF/1 5.1.
27667         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27668         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27669         (same_slave): New function.
27670         (main): Use it to compare ptsname's result with the expected file name.
27671
27672 2010-12-22  Bruno Haible  <bruno@clisp.org>
27673
27674         Port extended stdio modules to HP NonStop Kernel.
27675         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27676         macros.
27677         * lib/fbufmode.c: Update comments.
27678         * lib/fflush.c: Likewise.
27679         * lib/fpurge.c: Likewise.
27680         * lib/freadable.c: Likewise.
27681         * lib/freadahead.c: Likewise.
27682         * lib/freading.c: Likewise.
27683         * lib/freadptr.c: Likewise.
27684         * lib/freadseek.c: Likewise.
27685         * lib/fseeko.c: Likewise.
27686         * lib/fseterr.c: Likewise.
27687         * lib/fwritable.c: Likewise.
27688         * lib/fwriting.c: Likewise.
27689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27690
27691 2010-12-22  Bruno Haible  <bruno@clisp.org>
27692
27693         ttyname_r: Work around bug on OSF/1 5.1.
27694         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27695         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27696         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27697         present.
27698         * lib/ttyname_r.c (ttyname_r): Update comments.
27699
27700 2010-12-22  Bruno Haible  <bruno@clisp.org>
27701
27702         round: Implement result sign according to IEEE 754.
27703         * lib/round.c (MIN, MINUS_ZERO): New macros.
27704         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27705         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27706         * tests/test-round-ieee.c (main): Likewise.
27707         * tests/test-roundl-ieee.c (main): Likewise.
27708
27709         trunc: Implement result sign according to IEEE 754.
27710         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27711         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27712         * tests/test-trunc2.c: Include minus-zero.h.
27713         (MINUS_ZERO): New macro.
27714         (trunc_reference): Keep in sync with lib/trunc.c.
27715         * tests/test-truncf2.c: Include minus-zero.h.
27716         (MINUS_ZERO): New macro.
27717         (truncf_reference): Keep in sync with lib/trunc.c.
27718         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27719         * tests/test-trunc-ieee.c (main): Likewise.
27720         * tests/test-truncl-ieee.c (main): Likewise.
27721
27722         ceil: Implement result sign according to IEEE 754.
27723         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27724         (FUNC): Return -0.0 for -1 < x < 0.
27725         * tests/test-ceil2.c: Include minus-zero.h.
27726         (MINUS_ZERO): New macro.
27727         (ceil_reference): Keep in sync with lib/ceil.c.
27728         * tests/test-ceilf2.c: Include minus-zero.h.
27729         (MINUS_ZERO): New macro.
27730         (ceilf_reference): Keep in sync with lib/ceil.c.
27731         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27732         * tests/test-ceil-ieee.c (main): Likewise.
27733         * tests/test-ceill-ieee.c (main): Likewise.
27734
27735         floor: Implement result sign according to IEEE 754.
27736         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27737         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27738         * tests/test-floorf2.c (floorf_reference): Likewise.
27739         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27740         * tests/test-floor-ieee.c (main): Likewise.
27741         * tests/test-floorl-ieee.c (main): Likewise.
27742
27743 2010-12-22  Bruno Haible  <bruno@clisp.org>
27744
27745         getaddrinfo: Update doc.
27746         * doc/posix-functions/gai_strerror.texi: Return type is also different
27747         on AIX and HP-UX.
27748
27749 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27750
27751         getaddrinfo, inet_ntop: Update doc for Solaris.
27752         * doc/posix-functions/gai_strerror.texi: Return type is also an
27753         issue on Solaris 9 and earlier.
27754         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27755         on Solaris 10 and earlier.
27756
27757 2010-12-21  Bruno Haible  <bruno@clisp.org>
27758
27759         New module 'roundl-ieee'.
27760         * modules/roundl-ieee: New file.
27761         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27762         test whether roundl works according to ISO C 99 with IEC 60559.
27763         * m4/roundl-ieee.m4: New file.
27764         * modules/roundl-ieee-tests: New file.
27765         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27766         * tests/test-roundl.c (main): Remove signbit tests.
27767         * modules/roundl-tests (Depends-on): Remove signbit.
27768         * doc/posix-functions/roundl.texi: Mention the new module.
27769
27770 2010-12-21  Bruno Haible  <bruno@clisp.org>
27771
27772         New module 'truncl-ieee'.
27773         * modules/truncl-ieee: New file.
27774         * modules/truncl-ieee-tests: New file.
27775         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27776         * tests/test-truncl.c (main): Remove signbit tests.
27777         * modules/truncl-tests (Depends-on): Remove signbit.
27778         * doc/posix-functions/truncl.texi: Mention the new module.
27779
27780 2010-12-21  Bruno Haible  <bruno@clisp.org>
27781
27782         New module 'ceill-ieee'.
27783         * modules/ceill-ieee: New file.
27784         * modules/ceill-ieee-tests: New file.
27785         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27786         * tests/test-ceill.c (main): Remove signbit tests.
27787         * modules/ceill-tests (Depends-on): Remove signbit.
27788         * doc/posix-functions/ceill.texi: Mention the new module.
27789
27790 2010-12-21  Bruno Haible  <bruno@clisp.org>
27791
27792         New module 'floorl-ieee'.
27793         * modules/floorl-ieee: New file.
27794         * modules/floorl-ieee-tests: New file.
27795         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27796         * tests/test-floorl.c (main): Remove signbit tests.
27797         * modules/floorl-tests (Depends-on): Remove signbit.
27798         * doc/posix-functions/floorl.texi: Mention the new module.
27799
27800 2010-12-21  Bruno Haible  <bruno@clisp.org>
27801
27802         New module 'round-ieee'.
27803         * modules/round-ieee: New file.
27804         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27805         whether round works according to ISO C 99 with IEC 60559.
27806         * m4/round-ieee.m4: New file.
27807         * modules/round-ieee-tests: New file.
27808         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27809         * tests/test-round1.c (main): Remove signbit tests.
27810         * modules/round-tests (Depends-on): Remove 'signbit'.
27811         * doc/posix-functions/round.texi: Mention the new module.
27812
27813 2010-12-21  Bruno Haible  <bruno@clisp.org>
27814
27815         New module 'trunc-ieee'.
27816         * modules/trunc-ieee: New file.
27817         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27818         whether trunc works according to ISO C 99 with IEC 60559.
27819         * m4/trunc-ieee.m4: New file.
27820         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27822         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27823         * modules/trunc-ieee-tests: New file.
27824         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27825         * tests/test-trunc1.c (main): Remove signbit tests.
27826         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27827         * doc/posix-functions/trunc.texi: Mention the new module.
27828
27829 2010-12-21  Bruno Haible  <bruno@clisp.org>
27830
27831         New module 'ceil-ieee'.
27832         * modules/ceil-ieee: New file.
27833         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27834         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27835         ISO C 99 with IEC 60559.
27836         * m4/ceil-ieee.m4: New file.
27837         * modules/ceil (Files): Add lib/ceil.c.
27838         (Depends-on): Add 'float'.
27839         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27840         * lib/math.in.h (ceil): New declaration.
27841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27842         REPLACE_CEIL.
27843         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27844         * modules/ceil-ieee-tests: New file.
27845         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27846         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27847         * doc/posix-functions/ceil.texi: Mention the new module.
27848
27849 2010-12-21  Bruno Haible  <bruno@clisp.org>
27850
27851         New module 'floor-ieee'.
27852         * modules/floor-ieee: New file.
27853         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27854         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27855         ISO C 99 with IEC 60559.
27856         * m4/floor-ieee.m4: New file.
27857         * modules/floor (Files): Add lib/floor.c.
27858         (Depends-on): Add 'float'.
27859         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27860         * lib/math.in.h (floor): New declaration.
27861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27862         REPLACE_FLOOR.
27863         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27864         * modules/floor-ieee-tests: New file.
27865         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27866         * tests/test-math-c++.cc: Check the signature of 'floor'.
27867         * doc/posix-functions/floor.texi: Mention the new module.
27868
27869 2010-12-21  Bruno Haible  <bruno@clisp.org>
27870
27871         New module 'roundf-ieee'.
27872         * modules/roundf-ieee: New file.
27873         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27874         test whether roundf works according to ISO C 99 with IEC 60559.
27875         * m4/roundf-ieee.m4: New file.
27876         * modules/roundf-ieee-tests: New file.
27877         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27878         * tests/test-roundf1.c (main): Remove signbit tests.
27879         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27880         * doc/posix-functions/roundf.texi: Mention the new module.
27881
27882 2010-12-21  Bruno Haible  <bruno@clisp.org>
27883
27884         New module 'truncf-ieee'.
27885         * modules/truncf-ieee: New file.
27886         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27887         test whether truncf works according to ISO C 99 with IEC 60559.
27888         * m4/truncf-ieee.m4: New file.
27889         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27891         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27892         * modules/truncf-ieee-tests: New file.
27893         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27894         * tests/test-truncf1.c (main): Remove signbit tests.
27895         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27896         * doc/posix-functions/truncf.texi: Mention the new module.
27897
27898 2010-12-21  Bruno Haible  <bruno@clisp.org>
27899
27900         New module 'ceilf-ieee'.
27901         * modules/ceilf-ieee: New file.
27902         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27903         test whether ceilf works according to ISO C 99 with IEC 60559.
27904         * m4/ceilf-ieee.m4: New file.
27905         * modules/ceilf-ieee-tests: New file.
27906         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27907         * tests/test-ceilf1.c (main): Remove signbit tests.
27908         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27909         * doc/posix-functions/ceilf.texi: Mention the new module.
27910
27911 2010-12-21  Bruno Haible  <bruno@clisp.org>
27912
27913         New module 'floorf-ieee'.
27914         * modules/floorf-ieee: New file.
27915         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27916         test whether floorf works according to ISO C 99 with IEC 60559.
27917         * m4/floorf-ieee.m4: New file.
27918         * modules/floorf-ieee-tests: New file.
27919         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27920         * tests/test-floorf1.c (main): Remove signbit tests.
27921         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27922         * doc/posix-functions/floorf.texi: Mention the new module.
27923
27924 2010-12-21  Bruno Haible  <bruno@clisp.org>
27925
27926         Support for minus zero in autoconf macros.
27927         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27928         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27929         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27930         * tests/minus-zero.h: Update comments.
27931
27932 2010-12-21  Bruno Haible  <bruno@clisp.org>
27933
27934         Tests for module 'ceil'.
27935         * modules/ceil-tests: New file.
27936         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27937         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27938
27939 2010-12-21  Bruno Haible  <bruno@clisp.org>
27940
27941         Tests for module 'floor'.
27942         * modules/floor-tests: New file.
27943         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27944         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27945
27946 2010-12-21  Bruno Haible  <bruno@clisp.org>
27947
27948         math: Fix indentation.
27949         * lib/math.in.h (floorf): Fix indentation.
27950
27951 2010-12-21  Bruno Haible  <bruno@clisp.org>
27952
27953         Fix cross-compilation guesses on Solaris.
27954         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27955         not match "solaris2.10".
27956         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27957         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27958         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27959
27960 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27961
27962         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27963         This fixes a problem observed with the latest coreutils snapshot
27964         that caused a test to fail on Solaris 8.  src/csplit.c's call
27965         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27966         earlier, instead of returning the number of bytes that would have
27967         been generated; this causes csplit to incorrectly report memory
27968         exhaustion.
27969         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27970         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27971         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27972         comments to match.
27973         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27974         Fix typo in matching older versions of Solaris: "solaris2.10"
27975         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27976         only for guessing while cross-compiling.
27977         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27978
27979 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27980
27981         ftoastr: fix comment again
27982         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27984         Also, simplify example a bit by using flags = 0.
27985
27986 2010-12-20  Bruno Haible  <bruno@clisp.org>
27987
27988         round*, trunc*: Update documentation regarding glibc.
27989         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27990         * doc/posix-functions/round.texi: Likewise.
27991         * doc/posix-functions/roundl.texi: Likewise.
27992         * doc/posix-functions/truncf.texi: Likewise.
27993         * doc/posix-functions/trunc.texi: Likewise.
27994         * doc/posix-functions/truncl.texi: Likewise.
27995
27996 2010-12-20  Bruno Haible  <bruno@clisp.org>
27997
27998         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27999         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28000         * doc/posix-functions/round.texi: Likewise.
28001         * doc/posix-functions/roundl.texi: Likewise.
28002
28003 2010-12-20  Bruno Haible  <bruno@clisp.org>
28004
28005         ttyname_r: Add missing declaration on HP-UX 11.
28006         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28007         HAVE_TTYNAME_R.
28008         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28009         declared. Set HAVE_TTYNAME_R always.
28010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28011         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28013         HAVE_TTYNAME_R.
28014         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28015
28016 2010-12-20  Bruno Haible  <bruno@clisp.org>
28017
28018         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28019         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28020         * doc/posix-functions/getlogin_r.texi: Likewise.
28021         * tests/test-getlogin.c: Include <errno.h>.
28022         (main): Avoid test failure on HP-UX 11.11.
28023         * tests/test-getlogin_r.c (main): Likewise.
28024
28025 2010-12-20  Bruno Haible  <bruno@clisp.org>
28026
28027         getlogin_r: Add missing declaration on HP-UX 11.
28028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28029         declared also when it exists as a function.
28030         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28031
28032 2010-12-20  Bruno Haible  <bruno@clisp.org>
28033
28034         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28035         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28036         through wcrtomb.
28037
28038 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28039
28040         ftoastr: fix comment
28041         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28043
28044 2010-12-19  Bruno Haible  <bruno@clisp.org>
28045
28046         isnan: Ensure it is a macro.
28047         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28048         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28049         Solaris.
28050
28051 2010-12-19  Bruno Haible  <bruno@clisp.org>
28052
28053         ldexpl test: Fix link error on OSF/1 5.1.
28054         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28055
28056 2010-12-19  Bruno Haible  <bruno@clisp.org>
28057
28058         wctype: Make it work in C++ mode on OSF/1 5.1.
28059         * lib/wctype.in.h (iswblank): Declare but not define here.
28060         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28061         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28062         * modules/wctype (Files): Add lib/iswblank.c.
28063
28064 2010-12-19  Bruno Haible  <bruno@clisp.org>
28065
28066         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28067         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28068         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28069
28070 2010-12-19  Bruno Haible  <bruno@clisp.org>
28071
28072         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28074         _POSIX_PII_SOCKET.
28075         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28076         * doc/posix-functions/recvfrom.texi: Likewise.
28077         * doc/posix-functions/send.texi: Likewise.
28078         * doc/posix-functions/sendto.texi: Likewise.
28079
28080 2010-12-19  Bruno Haible  <bruno@clisp.org>
28081
28082         tcgetsid: Add missing declaration on OSF/1 5.1.
28083         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28084         HAVE_TCGETSID.
28085         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28086         Don't set HAVE_TCGETSID.
28087         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28088         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28089         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28090         HAVE_TCGETSID.
28091         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28092
28093 2010-12-19  Bruno Haible  <bruno@clisp.org>
28094
28095         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28096         * lib/stdio.in.h: During the include_next statement, let recursive
28097         includes of this file include only the system header file.
28098
28099 2010-12-19  Bruno Haible  <bruno@clisp.org>
28100
28101         iconv_open: Fix regression from 2010-12-04.
28102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28103         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28104
28105 2010-12-19  Bruno Haible  <bruno@clisp.org>
28106
28107         stdbool test: Avoid a gcc warning.
28108         * tests/test-stdbool.c (main): Fail if e1 is false.
28109         Reported by Jim Meyering.
28110
28111 2010-12-19  Jim Meyering  <meyering@redhat.com>
28112
28113         setenv: restore to working order
28114         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28115         mistakenly removed.
28116         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28117         HAVE_SETENV.
28118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28119         HAVE_SETENV.
28120
28121 2010-12-19  Bruno Haible  <bruno@clisp.org>
28122
28123         Document some different function declarations on OSF/1 5.1.
28124         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28125         * doc/posix-functions/inet_ntop.texi: Likewise.
28126         * doc/posix-functions/gethostname.texi: Likewise.
28127         * lib/unistd.in.h (gethostname): Update comment.
28128
28129 2010-12-19  Bruno Haible  <bruno@clisp.org>
28130
28131         doc: Mention vasprintf-posix module.
28132         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28133         the 'vasprintf-posix' module.
28134         * doc/glibc-functions/vasprintf.texi: Likewise.
28135
28136 2010-12-19  Bruno Haible  <bruno@clisp.org>
28137
28138         unsetenv: Add missing declaration on OSF/1 5.1.
28139         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28140         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28141         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28143         not HAVE_UNSETENV.
28144         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28145         HAVE_UNSETENV.
28146         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28147
28148 2010-12-19  Bruno Haible  <bruno@clisp.org>
28149
28150         setenv: Add missing declaration on OSF/1 5.1.
28151         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28152         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28153         declared. Don't set HAVE_SETENV.
28154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28155         not HAVE_SETENV.
28156         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28157         HAVE_SETENV.
28158         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28159
28160 2010-12-19  Bruno Haible  <bruno@clisp.org>
28161
28162         nl_langinfo tests: Avoid gcc warning.
28163         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28164
28165 2010-12-19  Bruno Haible  <bruno@clisp.org>
28166
28167         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28168         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28169         _GL_CXXALIAS_SYS.
28170
28171 2010-12-19  Bruno Haible  <bruno@clisp.org>
28172
28173         stdbool: Relax test.
28174         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28175         address to 'bool' work in static initializer, for compilers other than
28176         GCC.
28177
28178 2010-12-19  Bruno Haible  <bruno@clisp.org>
28179
28180         ftello: Add missing declaration on OSF/1 5.1.
28181         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28182         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28184         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28185         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28186
28187 2010-12-19  Bruno Haible  <bruno@clisp.org>
28188
28189         fseeko: Add missing declaration on OSF/1 5.1.
28190         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28193         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28194         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28195
28196 2010-12-19  Bruno Haible  <bruno@clisp.org>
28197
28198         fchdir: Add missing declaration on OSF/1 5.1.
28199         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28202         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28203         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28204
28205 2010-12-19  Bruno Haible  <bruno@clisp.org>
28206
28207         relocatable-prog-wrapper: Separate from relocatable-prog.
28208         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28209         uninstall-relocwrapper rule here.
28210         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28211         Reported by Ian Beckwith <ianb@erislabs.net>.
28212
28213 2010-12-19  Bruno Haible  <bruno@clisp.org>
28214
28215         unistr/u8-mbsnlen: Add missing dependency.
28216         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28217         Reported by Ian Beckwith <ianb@erislabs.net>.
28218
28219 2010-12-19  Bruno Haible  <bruno@clisp.org>
28220
28221         iconv: Make it possible again to use this module without 'iconv-h'.
28222         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28223         if it is not defined.
28224         Reported by Ian Beckwith <ianb@erislabs.net>.
28225
28226 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28227
28228         acl: port to Solaris 8 when copying from tmpfs to ufs
28229         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28230         error number.  Problem observed on Solaris 8 with latest
28231         coreutils, with "mv A B", where A is on a tmpfs file system and B
28232         is on a ufs file system.  This caused coreutils' mv/part-symlink
28233         test to fail.
28234
28235         tests: set fail=0 at start
28236         * tests/init.sh (setup_): Move fail=0 initialization here ...
28237         (mktempd_): ... from here, so that tests can rely on fail being
28238         set to 0 initially.  This fixes a problem in coreutils; see:
28239         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28240
28241 2010-12-18  Bruno Haible  <bruno@clisp.org>
28242
28243         memmem-simple: Stylistic changes.
28244         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28245         Fix preprocessor directive indentation.
28246
28247 2010-12-15  Pádraig Brady <P@draigBrady.com>
28248
28249         memmem, memmem-simple: reorganize and expand empty needle check
28250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28251         functional checks to memmem-simple so that one has a fully functional
28252         memmem by using just this module.
28253         Restrict the performance only check to the memmem module.
28254         Also expand the empty needle check to ensure the correct
28255         pointer is returned, not just a non NULL pointer.
28256         * doc/glibc-functions/memmem.texi: Rearrange the portability
28257         documentation to correlate with the rearranged checks.
28258         Clarify exactly how the memmem and memmem-simple modules
28259         relate to each other.
28260
28261 2010-12-15  Pádraig Brady <P@draigBrady.com>
28262             Bruno Haible  <bruno@clisp.org>
28263
28264         Improve cross-compilation guesses for uClibc.
28265         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28266         that uClibc does not have the glibc bug.
28267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28269
28270 2010-12-14  Eric Blake  <eblake@redhat.com>
28271
28272         configmake: provide fallbacks for oldest supported autotools
28273         * m4/configmake.m4: New file.
28274         * modules/configmake (Files): Ship it.
28275         (configure.ac): Use it to guarantee fallbacks.
28276
28277 2010-12-13  Pádraig Brady <P@draigBrady.com>
28278
28279         read-file: Improve handling of large files
28280         * lib/read-file.c (fread_file): Minimize realloc()s
28281         for regular files, and better manage sizes around SIZE_MAX.
28282
28283 2010-12-13  Eric Blake  <eblake@redhat.com>
28284
28285         cloexec, fcntl: relax license
28286         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28287         consent from all contributors.
28288         * modules/fcntl (License): Likewise.
28289
28290 2010-12-10  Bruno Haible  <bruno@clisp.org>
28291
28292         Tests for module 'pipe-posix'.
28293         * modules/pipe-posix-tests: New file.
28294         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28295
28296 2010-12-10  Bruno Haible  <bruno@clisp.org>
28297
28298         pipe-posix: Make it work in C++ mode.
28299         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28300         (pipe): Use common idiom, not a macro definition.
28301         * lib/pipe.c: New file.
28302         * m4/pipe.m4: New file.
28303         * modules/pipe-posix (Description): Enhance.
28304         (Files): Add lib/pipe.c, m4/pipe.m4.
28305         (configure.ac): Invoke gl_FUNC_PIPE.
28306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28307         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28308         * tests/test-unistd-c++.cc: Check the signature of pipe.
28309
28310 2010-12-10  Bruno Haible  <bruno@clisp.org>
28311
28312         Rename module 'pipe' to 'spawn-pipe'.
28313         * modules/spawn-pipe: New file, renamed from modules/pipe.
28314         (Files, configure.ac, Makefile.am): Update.
28315         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28316         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28317         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28318         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28319         "spawn-pipe.h" instead of "pipe.h".
28320         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28321         to gl_SPAWN_PIPE.
28322         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28323         (Files, Makefile.am): Update.
28324         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28325         Update.
28326         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28327         Include "spawn-pipe.h" instead of "pipe.h".
28328         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28329         * lib/javacomp.c: Likewise.
28330         * lib/javaversion.c: Likewise.
28331         * lib/pipe-filter-gi.c: Likewise.
28332         * lib/pipe-filter-ii.c: Likewise.
28333         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28334         * modules/javacomp (Depends-on): Likewise.
28335         * modules/javaversion (Depends-on): Likewise.
28336         * modules/pipe-filter-gi (Depends-on): Likewise.
28337         * modules/pipe-filter-ii (Depends-on): Likewise.
28338         * MODULES.html.sh (Executing programs): Update.
28339         * NEWS: Mention the change.
28340
28341 2010-12-10  Eric Blake  <eblake@redhat.com>
28342
28343         pipe-posix: new module
28344         * modules/pipe-posix: New file.
28345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28346         (gl_UNISTD_H): Check for declaration.
28347         * modules/unistd (Makefile.am): Substitute it.
28348         * lib/unistd.in.h (pipe): Provide it for mingw.
28349         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28350         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28351
28352 2010-12-07  Bruno Haible  <bruno@clisp.org>
28353
28354         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28355         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28356         u8_strcmp_gnu.
28357         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28358
28359 2010-12-06  Bruno Haible  <bruno@clisp.org>
28360
28361         Update internal documentation.
28362         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28363
28364 2010-12-04  Bruno Haible  <bruno@clisp.org>
28365
28366         Put more information about failed tests into the test return codes.
28367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28368         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28371         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28372         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28374         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28375         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28378         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28379         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28380         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28381         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28382         returns a bit mask.
28383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28384         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28385         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28386         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28387         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28391         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28394         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28396         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28397         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28398         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28399         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28400         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28403         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28404         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28406         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28407         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28408         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28409         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28410         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28411         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28412         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28413         gl_PRINTF_PRECISION): Likewise.
28414         * m4/regex.m4 (gl_REGEX): Likewise.
28415         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28418         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28424         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28428         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28429         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28430         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28431         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28435         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28436         enumerated value.
28437         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28438
28439 2010-12-04  Bruno Haible  <bruno@clisp.org>
28440
28441         Update for Solaris 11 2010-11.
28442         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28443         Express, released in November 2010.
28444
28445 2010-12-04  Bruno Haible  <bruno@clisp.org>
28446
28447         nproc: Relax license.
28448         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28449         and Paul Eggert.
28450         Requested by Ludovic Courtès <ludo@gnu.org>.
28451
28452 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28453
28454         utimecmp: fine-grained src to nearby coarse-grained dest
28455
28456         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28457         and the source is on a file system with higher-resolution time
28458         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28459         not work, and the time stamps are close together, the algorithm to
28460         determine the exact resolution from the read-back mtime was buggy:
28461         it had a "!=" where it should have had an "==".  This bug has been
28462         in the code ever since it was introduced to gnulib.
28463         Problem reported by Dan Jacobson in
28464         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28465
28466 2010-11-30  Bruno Haible  <bruno@clisp.org>
28467
28468         strerror_r-posix: Fix autoconf test.
28469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28470
28471 2010-11-28  Bruno Haible  <bruno@clisp.org>
28472             Paul Eggert  <eggert@cs.ucla.edu>
28473
28474         Tests for module 'getdomainname'.
28475         * modules/getdomainname-tests: New file.
28476         * tests/test-getdomainname.c: New file, based on
28477         tests/test-gethostname.c.
28478
28479 2010-11-28  Bruno Haible  <bruno@clisp.org>
28480             Paul Eggert  <eggert@cs.ucla.edu>
28481
28482         getdomainname: Use the system function when possible.
28483         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28484         (getdomainname): Replace if needed. Provide the declaration if it is
28485         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28486         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28487         (getdomainname): When the system has getdomainname, call the system
28488         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28489         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28490         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28491         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28492         the function if its second argument is of type 'int' or if it is found
28493         in libnsl.
28494         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28495         <sys/systeminfo.h> and sysinfo().
28496         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28498         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28499         HAVE_GETDOMAINNAME.
28500         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28501         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28502         * doc/glibc-functions/getdomainname.texi: Document the problems with
28503         the getdomainname declaration.
28504
28505 2010-11-28  Bruno Haible  <bruno@clisp.org>
28506
28507         sys_socket: Ensure ss_family field on AIX.
28508         * lib/sys_socket.in.h (ss_family): New macro definition.
28509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28510         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28511         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28512         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28513         * modules/sys_socket (Makefile.am): Substitute
28514         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28515         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28516
28517 2010-11-27  Bruno Haible  <bruno@clisp.org>
28518
28519         readline: Improve configure output.
28520         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28521         "checking for readline..." result understandable.
28522
28523 2010-11-27  Bruno Haible  <bruno@clisp.org>
28524
28525         *printf-posix: Detect a bug on Solaris 10/x86.
28526         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28527         for floating-point output.
28528         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28529         directive.
28530         * tests/test-snprintf-posix.h (test_function): Likewise.
28531         * tests/test-sprintf-posix.h (test_function): Likewise.
28532         * tests/test-vasprintf-posix.c (test_function): Likewise.
28533         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28534         * doc/posix-functions/printf.texi: Likewise.
28535         * doc/posix-functions/snprintf.texi: Likewise.
28536         * doc/posix-functions/sprintf.texi: Likewise.
28537         * doc/posix-functions/vfprintf.texi: Likewise.
28538         * doc/posix-functions/vprintf.texi: Likewise.
28539         * doc/posix-functions/vsnprintf.texi: Likewise.
28540         * doc/posix-functions/vsprintf.texi: Likewise.
28541         * doc/glibc-functions/obstack_printf.texi: Likewise.
28542         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28543
28544 2010-11-27  Bruno Haible  <bruno@clisp.org>
28545
28546         Fix link error when module libunistring-optional is in use.
28547         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28548         * modules/striconveha-tests (Makefile.am): Likewise.
28549
28550 2010-11-27  Bruno Haible  <bruno@clisp.org>
28551
28552         regex: Mention link dependencies.
28553         * modules/regex (Link): New section.
28554         * modules/rpmatch (Link): Likewise.
28555         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28556
28557 2010-11-27  Bruno Haible  <bruno@clisp.org>
28558
28559         ftoastr: Fix compilation error on Solaris.
28560         * lib/ftoastr.c: Include <config.h>.
28561
28562 2010-11-27  Bruno Haible  <bruno@clisp.org>
28563
28564         getloadavg: Update documentation.
28565         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28566
28567 2010-11-27  Bruno Haible  <bruno@clisp.org>
28568
28569         sys_socket: Fix test whether the functions are declared.
28570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28571         not <sys/select.h>.
28572
28573 2010-11-27  Bruno Haible  <bruno@clisp.org>
28574
28575         getpass: Make sure to get system declaration on some platforms.
28576         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28577         gl_USE_SYSTEM_EXTENSIONS.
28578         * modules/getpass (Depends-on): Add extensions.
28579
28580 2010-11-26  Bruno Haible  <bruno@clisp.org>
28581
28582         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28583         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28584         'iconv' module is present.
28585         (ICONV_CONST): New macro.
28586         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28587         ICONV_CONST.
28588         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28589         set ICONV_CONST.
28590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28591         here.
28592         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28593         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28594         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28595         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28596         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28597         present.
28598
28599 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28600
28601         ftoastr: comment fix
28602         * lib/ftoastr.c: "little" -> "little or no" in comment
28603
28604 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28605
28606         stdint: port to GCC 4.3 + OSX + Octave
28607         On this platform, stdint.h is buggy and defines int64_t to long
28608         long int.  The replacement defined it to long int, causing
28609         problems with C++ style name mangling.  Instead, trust the system
28610         definition if INT64_MAX is defined, and likewise for the unsigned
28611         variant.   Problem reported by Jarno Rajahalme in
28612         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28613         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28614         and don't mess with int64_t and INT64_MAX in this case.
28615         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28616
28617 2010-11-24  Bruno Haible  <bruno@clisp.org>
28618
28619         doc: Corrections regarding MacOS X 10.4 and 10.5.
28620         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28621         MacOS X.
28622         Reported by Simon Josefsson.
28623
28624 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28625
28626         Uninstall ".bin" files installed by relocwrapper.
28627         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28628         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28629         unless it is already there.
28630
28631 2010-11-21  Bruno Haible  <bruno@clisp.org>
28632
28633         Update for NetBSD 5.0.
28634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28635         NetBSD; the test fails on NetBSD 5.0.
28636         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28637         about NetBSD.
28638
28639 2010-11-21  Bruno Haible  <bruno@clisp.org>
28640
28641         Update for HP-UX 11.23 and HP-UX 11.31.
28642         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28643         HP-UX.
28644
28645 2010-11-21  Bruno Haible  <bruno@clisp.org>
28646
28647         Update for MacOS X 10.5.
28648         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28649         MacOS X; the test fails on MacOS X 10.5.8.
28650         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28651         about MacOS X.
28652
28653 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28654
28655         bootstrap: add bootstrap_sync option.
28656         See discussion at
28657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28659         * build-aux/bootstrap: Accept --bootstrap-sync to update
28660         bootstrap if it is not identical to the local gnulib's
28661         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28662         enable this by default.  Accept --no-bootstrap-sync to disable
28663         it.
28664
28665 2010-11-20  Bruno Haible  <bruno@clisp.org>
28666
28667         Ensure that <features.h> is included before __GLIBC__ is tested.
28668         * lib/printf-parse.h: Include <features.h>.
28669         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28670         Reported by Mike Frysinger <vapier@gentoo.org>.
28671
28672         Ensure that <features.h> is included before __GLIBC__ is tested.
28673         * lib/wchar.in.h: Include <features.h>.
28674         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28675         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28676         Reported by Mike Frysinger <vapier@gentoo.org>.
28677
28678         Ensure that <features.h> is included before __GLIBC__ is tested.
28679         * lib/arpa_inet.in.h: Include <features.h>.
28680         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28681         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28682         Reported by Mike Frysinger <vapier@gentoo.org>.
28683
28684         Ensure that <features.h> is included before __GLIBC__ is tested.
28685         * build-aux/link-warning.h: Include <features.h>.
28686         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28687         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28688         Reported by Mike Frysinger <vapier@gentoo.org>.
28689
28690         Ensure that <features.h> is included before __GLIBC__ is tested.
28691         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28692         Reported by Mike Frysinger <vapier@gentoo.org>.
28693
28694 2010-11-20  Bruno Haible  <bruno@clisp.org>
28695
28696         memmem: Fix autoconf test.
28697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28698
28699 2010-11-20  Bruno Haible  <bruno@clisp.org>
28700
28701         Port to uClibc.
28702         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28703         * lib/fcntl.in.h: Likewise.
28704         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28705         * lib/mbrtowc.c (mbrtowc): Likewise.
28706         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28707         * lib/strerror_r.c: Likewise.
28708         * lib/unistr/u8-strnlen.c: Likewise.
28709         * lib/vasnprintf.c (decimal_point_char): Likewise.
28710         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28711         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28713         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28714         * tests/test-sigaction.c (handler, main): Likewise.
28715         * lib/freading.h: Treat uClibc like a non-glibc platform.
28716         * lib/freading.c: Likewise.
28717         * lib/gettext.h: Likewise.
28718         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28719         Likewise.
28720         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28721         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28722         * lib/propername.c (proper_name_utf8): Likewise.
28723         * lib/spawn.in.h: Likewise.
28724         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28725         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28726         mem_cd_iconveh_internal): Likewise.
28727         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28728         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28729         strstr, strcasestr): Likewise.
28730         * lib/unicodeio.c (unicode_to_mb): Likewise.
28731         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28732         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28733         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28734         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28735         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28736         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28737         * lib/unistr/u8-stpncpy.c: Likewise.
28738         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28739         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28742         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28747         Likewise.
28748         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28749         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28753         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28754         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28755         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28756         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28757         * tests/test-striconveha.c (main): Likewise.
28758         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28759         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28760         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28761         * doc/posix-functions/getline.texi: Likewise.
28762         Reported by Mike Frysinger <vapier@gentoo.org>.
28763
28764 2010-11-20  Bruno Haible  <bruno@clisp.org>
28765
28766         nproc: Fix condition.
28767         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28768         HAVE_PTHREAD_AFFINITY_NP.
28769
28770 2010-11-20  Bruno Haible  <bruno@clisp.org>
28771
28772         Fix a comment.
28773         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28774
28775 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28776
28777         ftoastr: don't assume snprintf
28778         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28779         Implement a subset of snprintf here, by using sprintf safely.
28780         * modules/ftoastr (Depends-on): Remove snprintf.
28781
28782 2010-11-19  Jim Meyering  <meyering@redhat.com>
28783
28784         test-rename.h: fix compilation failure
28785         * tests/test-rename.h (test_rename): Add omitted "}".
28786
28787 2010-11-17  Jim Meyering  <meyering@redhat.com>
28788
28789         maint.mk: add a URL discussing the no-@acronym policy
28790         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28791
28792 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28793
28794         ftoastr: depend on snprintf, improve comments
28795         * lib/ftoastr.c: Also mention Loitsch's draft.
28796         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28797         needed in the current implementation, but it might simplify
28798         speeding up the code later.
28799         * modules/ftoastr: Depend on snprintf; this improves portability.
28800         Suggested by Bruno Haible in the same email.
28801
28802         ftoastr: port to hosts lacking strtof and strtold
28803         Problem reported by Bruno Haible in
28804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28805         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28806         environment and strtold (and presumably strtof) are not available.
28807         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28808         (configure.ac): Require gl_C99_STRTOLD.
28809
28810 2010-11-18  Bruno Haible  <bruno@clisp.org>
28811
28812         c-strtold: Avoid link error on AIX 7.
28813         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28814         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28815         (gl_C_STRTOLD): Test whether strtold_l exists.
28816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28817
28818 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         intprops: new macro INT_BITS_STRLEN_BOUND
28821         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28822         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28823         not exposed.  Also, it uses a slightly tighter bound than before;
28824         though this makes no practical difference, we might as well be as
28825         tight as we easily can.
28826
28827         ftoastr: new module, for lossless conversion of floats to short strings
28828         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28829         * modules/ftoastr: New files.
28830
28831 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28832
28833         bootstrap: port to Solaris sed
28834         * build-aux/bootstrap (get_version): Port to Solaris sed.
28835         See Ralf Wildenhues's note in
28836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28837
28838 2010-11-14  Jim Meyering  <meyering@redhat.com>
28839
28840         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28841         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28842         and move definition closer to sole use.
28843
28844 2010-11-13  Jim Meyering  <meyering@redhat.com>
28845
28846         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28847         Now we require at least autoconf-2.59, which means the work-around
28848         is no longer needed.
28849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28853         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28854
28855 2010-11-13  Bruno Haible  <bruno@clisp.org>
28856
28857         rename, renameat: Avoid test failures at NFS mounted locations.
28858         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28859         functions.
28860         (test_rename): Use assert_nonexistent.
28861         * tests/test-rename.c: Include <dirent.h>.
28862         * tests/test-renameat.c: Likewise.
28863         Reported by Gary V. Vaughan <gary@gnu.org>.
28864
28865         rename, renameat: Document Linux bug with NFS
28866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28867         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28868         * doc/posix-functions/renameat.texi: Likewise.
28869         Suggested by Eric Blake.
28870
28871 2010-11-13  Bruno Haible  <bruno@clisp.org>
28872
28873         rename test: Add comments.
28874         * tests/test-rename.h (test_rename): Add structure and comments.
28875
28876 2010-11-13  Eric Blake  <eblake@redhat.com>
28877
28878         maintainer-makefile: cover a few more files
28879         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28880         scripts generated within C files, for libvirt.
28881
28882 2010-11-13  Bruno Haible  <bruno@clisp.org>
28883
28884         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28885         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28886         character, return the number of bytes that belong together, not always
28887         1.
28888         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28889         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28890         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28891         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28892         number of bytes of an invalid character.
28893         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28894         (main): Invoke it.
28895         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28896         results.
28897         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28898         malformed byte sequences.
28899         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28900         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28901         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28902         Reported by Ben Pfaff and Paolo Bonzini.
28903
28904 2010-11-13  Bruno Haible  <bruno@clisp.org>
28905
28906         openat: Work around glibc bug with fchownat() and empty file names.
28907         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28908         (gl_FUNC_FCHOWNAT): Invoke it.
28909         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28910         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28911         Reported by Gary V. Vaughan <gary@gnu.org>.
28912
28913 2010-11-13  Bruno Haible  <bruno@clisp.org>
28914
28915         openat: Ensure autoconf macro ordering.
28916         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28917         gl_USE_SYSTEM_EXTENSIONS.
28918         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28919
28920 2010-11-13  Bruno Haible  <bruno@clisp.org>
28921
28922         Update comments.
28923         * lib/unistr/u8-check.c: Update file name in comments.
28924         * lib/unistr/u8-mblen.c: Likewise.
28925         * lib/unistr/u8-prev.c: Likewise.
28926         * lib/unistr/u8-strmblen.c: Likewise.
28927         * lib/unistr/u8-strmbtouc.c: Likewise.
28928
28929 2010-11-13  Jim Meyering  <meyering@redhat.com>
28930
28931         tests: avoid test failure on Solaris 10 due to lack of PATH export
28932         * tests/test-update-copyright.sh: Don't forget to export PATH.
28933
28934         init.sh: ensure that IFS is defined, just in case...
28935         * tests/init.sh (setup_): Ensure that IFS is defined,
28936         so that saving and restoring it works as expected.  This
28937         appears to be useful at least for an old version of dash
28938         from a long time ago (RH 6).  See here for details:
28939         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28940
28941         maint.mk: tighten "test a == b" check
28942         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28943         test to files that contain something like #!/bin/sh.
28944         Without this, coreutils would get two false positives in
28945         the comments of C source files.
28946
28947 2010-11-12  Eric Blake  <eblake@redhat.com>
28948
28949         bootstrap: fix typo in previous attempt
28950         * build-aux/bootstrap (buildreq): Correct the grouping.
28951         Reported by Paul Eggert.
28952
28953         maintainer-makefile: prohibit test x == x
28954         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28955         Based on a report by Matthias Bolte.
28956
28957         bootstrap: allow FreeBSD gzip
28958         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28959         which has no '.' and goes to stderr.
28960         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28961         Reported by Matthias Bolte.
28962
28963         maintainer-makefile: check for i18n setup
28964         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28965         will likely work.
28966
28967 2010-11-12  Bruno Haible  <bruno@clisp.org>
28968
28969         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28970         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28971         * lib/nanosleep.c (nanosleep): Likewise.
28972
28973 2010-11-11  Bruno Haible  <bruno@clisp.org>
28974
28975         fcntl-h: Fix for use of C++ on glibc systems.
28976         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28977         also on glibc systems in C++ mode.
28978         Reported by Gary V. Vaughan <gary@gnu.org>.
28979
28980 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28981
28982         mknod: avoid false failure with dash
28983         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28984
28985 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         unlink: Fix "is it should" typo in diagnostic.
28988         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28990
28991 2010-11-11  Bruno Haible  <bruno@clisp.org>
28992
28993         Tests for module 'strerror_r-posix'.
28994         * modules/strerror_r-posix-tests: New file.
28995         * tests/test-strerror_r.c: New file.
28996         * tests/test-string-c++.cc: Check the signature of strerror_r.
28997
28998         New module 'strerror_r-posix'.
28999         * lib/string.in.h (strerror_r): New declaration.
29000         * lib/strerror_r.c: New file.
29001         * m4/strerror_r.m4: New file.
29002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29003         of strerror_r.
29004         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29005         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29006         * modules/strerror_r-posix: New file.
29007         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29008         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29009         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29010         portability problems.
29011
29012 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29013
29014         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29015         line is also considered for output. Quoted function name in shell
29016         command, so temporary files for functions like MyClass::operator()
29017         are removed correctly without errors.
29018
29019 2010-11-09  Bruno Haible  <bruno@clisp.org>
29020
29021         * doc/posix-functions/strerror.texi: List more failing platforms.
29022
29023         * doc/posix-functions/strerror.texi: Add a comment.
29024
29025 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29026
29027         fdopendir: fix bug on MacOS X when low on file descriptors
29028
29029         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29030         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29031         All callers changed.
29032         (fdopendir): Invoke save_cwd at the top level, not after using
29033         multiple dup() calls to use up file descriptors.  Then retry
29034         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29035         less than the maximum number of open file descriptors, because
29036         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29037         on Mac OS X 10.6.4 for tar 1.24
29038         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29039         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29040         and for tar 1.25
29041         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29042
29043 2010-11-07  Bruno Haible  <bruno@clisp.org>
29044
29045         vasnprintf: Support I flag on glibc systems.
29046         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29047         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29048         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29049         snprintf function.
29050         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29051         glibc systems.
29052         * tests/test-vasnprintf-posix3.c: New file.
29053         * modules/vasnprintf-posix-tests (Files): Add it.
29054         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29055
29056 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29057
29058         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29059         * MODULES.html.sh: For compiler warnings, use name
29060         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29061
29062 2010-11-05  Eric Blake  <eblake@redhat.com>
29063
29064         ceil, floor: avoid spurious failure with icc
29065         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29066         [denormals-as-zero] when optimizing without -mieee-fp option.
29067         * tests/test-floorf2.c (floorf_reference): Likewise.
29068         * tests/test-ceilf1.c (dummy): New function.
29069         (main): Use it to outsmart icc's optimization.
29070         * tests/test-floorf1.c (dummy, main): Likewise.
29071
29072         tests: require working signbit
29073         * modules/ceilf-tests (Depends-on): Add signbit.
29074         * modules/ceill-tests (Depends-on): Likewise.
29075         * modules/floorf-tests (Depends-on): Likewise.
29076         * modules/floorl-tests (Depends-on): Likewise.
29077         * modules/round-tests (Depends-on): Likewise.
29078         * modules/roundf-tests (Depends-on): Likewise.
29079         * modules/roundl-tests (Depends-on): Likewise.
29080         * modules/trunc-tests (Depends-on): Likewise.
29081         * modules/truncf-tests (Depends-on): Likewise.
29082         * modules/truncl-tests (Depends-on): Likewise.
29083
29084         strtod: work around icc bug
29085         * lib/strtod.c (minus_zero): Define to working value.
29086         (strtod): Use it to avoid icc bug.
29087
29088         copysign: enhance tests
29089         * modules/copysign-tests (Files): Add minus-zero.h.
29090         * tests/test-copysign.c (main): Also test zeros.
29091
29092 2010-11-04  Eric Blake  <eblake@redhat.com>
29093
29094         ceil, floor, round, trunc: enhance tests of -0
29095         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29096         * tests/test-ceill.c (main): Likewise.
29097         * tests/test-floorf1.c (main): Likewise.
29098         * tests/test-floorl.c (main): Likewise.
29099         * tests/test-round1.c (main): Likewise.
29100         * tests/test-roundf1.c (main): Likewise.
29101         * tests/test-roundl.c (main): Likewise.
29102         * tests/test-trunc1.c (main): Likewise.
29103         * tests/test-truncf1.c (main): Likewise.
29104         * tests/test-truncl.c (main): Likewise.
29105
29106 2010-11-04  Eric Blake  <eblake@redhat.com>
29107
29108         frexp, tests: work around ICC bug with -zero
29109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29110         works with more compilers.
29111         * tests/minus-zero.h: New file.
29112         * modules/ceilf-tests (Files): Include it.
29113         * modules/ceill-tests (Files): Likewise.
29114         * modules/floorf-tests (Files): Likewise.
29115         * modules/floorl-tests (Files): Likewise.
29116         * modules/frexp-nolibm-tests (Files): Likewise.
29117         * modules/frexp-tests (Files): Likewise.
29118         * modules/frexpl-nolibm-tests (Files): Likewise.
29119         * modules/frexpl-tests (Files): Likewise.
29120         * modules/isnan-tests (Files): Likewise.
29121         * modules/isnand-nolibm-tests (Files): Likewise.
29122         * modules/isnand-tests (Files): Likewise.
29123         * modules/isnanf-nolibm-tests (Files): Likewise.
29124         * modules/isnanf-tests (Files): Likewise.
29125         * modules/isnanl-nolibm-tests (Files): Likewise.
29126         * modules/isnanl-tests (Files): Likewise.
29127         * modules/round-tests (Files): Likewise.
29128         * modules/roundf-tests (Files): Likewise.
29129         * modules/roundl-tests (Files): Likewise.
29130         * modules/ldexpl-tests (Files): Likewise.
29131         * modules/signbit-tests (Files): Likewise.
29132         * modules/snprintf-posix-tests (Files): Likewise.
29133         * modules/sprintf-posix-tests (Files): Likewise.
29134         * modules/strtod-tests (Files): Likewise.
29135         * modules/trunc-tests (Files): Likewise.
29136         * modules/truncf-tests (Files): Likewise.
29137         * modules/truncl-tests (Files): Likewise.
29138         * modules/vsnprintf-posix-tests (Files): Likewise.
29139         * modules/vsprintf-posix-tests (Files): Likewise.
29140         * modules/vasnprintf-posix-tests (Files): Likewise.
29141         * modules/vasprintf-posix-tests (Files): Likewise.
29142         * tests/test-ceilf1.c (main): Use it.
29143         * tests/test-ceill.c (main): Likewise.
29144         * tests/test-floorf1.c (main): Likewise.
29145         * tests/test-floorl.c (main): Likewise.
29146         * tests/test-frexp.c (main): Likewise.
29147         * tests/test-frexpl.c (main): Likewise.
29148         * tests/test-isnan.c (main): Likewise.
29149         * tests/test-isnand.h (main): Likewise.
29150         * tests/test-isnanf.h (main): Likewise.
29151         * tests/test-isnanl.h (main): Likewise.
29152         * tests/test-ldexpl.c (main): Likewise.
29153         * tests/test-round.c (main): Likewise.
29154         * tests/test-roundf.c (main): Likewise.
29155         * tests/test-roundl.c (main): Likewise.
29156         * tests/test-signbit.c (test_signbitf, test_signbitd)
29157         (test_signbitl): Likewise.
29158         * tests/test-snprintf-posix.h (test_function): Likewise.
29159         * tests/test-sprintf-posix.h (test_function): Likewise.
29160         * tests/test-strtod.c (main): Likewise.
29161         * tests/test-trunc1.c (main): Likewise.
29162         * tests/test-truncf1.c (main): Likewise.
29163         * tests/test-truncl.c (main): Likewise.
29164
29165         isnanl: work around icc bug
29166         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29167
29168 2010-11-03  Eric Blake  <eblake@redhat.com>
29169
29170         tests: fix compiler warnings
29171         * tests/test-getopt.h (test_getopt): Fix condition.
29172         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29173         * tests/test-pipe2.c (main): Likewise.
29174         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29175
29176         utimens: fix broken m4 test
29177         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29178
29179 2010-10-28  Bruno Haible  <bruno@clisp.org>
29180
29181         posix_spawn*, getdtablesize: Relax license.
29182         * modules/posix_spawn (License): Change to LGPLv2+.
29183         * modules/posix_spawnp (License): Likewise.
29184         * modules/posix_spawn-internal (License): Likewise.
29185         * modules/posix_spawnattr_init (License): Likewise.
29186         * modules/posix_spawnattr_getflags (License): Likewise.
29187         * modules/posix_spawnattr_setflags (License): Likewise.
29188         * modules/posix_spawnattr_getpgroup (License): Likewise.
29189         * modules/posix_spawnattr_setpgroup (License): Likewise.
29190         * modules/posix_spawnattr_getschedparam (License): Likewise.
29191         * modules/posix_spawnattr_setschedparam (License): Likewise.
29192         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29193         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29194         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29195         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29196         * modules/posix_spawnattr_getsigmask (License): Likewise.
29197         * modules/posix_spawnattr_setsigmask (License): Likewise.
29198         * modules/posix_spawnattr_destroy (License): Likewise.
29199         * modules/posix_spawn_file_actions_init (License): Likewise.
29200         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29201         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29202         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29203         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29204         * modules/getdtablesize (License): Likewise.
29205         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29206
29207 2010-10-26  Bruno Haible  <bruno@clisp.org>
29208
29209         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29210         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29211         Cygwin and mingw.
29212         Suggested by Eric Blake.
29213
29214 2010-10-26  Bruno Haible  <bruno@clisp.org>
29215
29216         stdio: Work around compilation error due to renameat() on Solaris 10.
29217         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29218         * lib/renameat.c: Don't include <unistd.h> here.
29219         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29220         Reported by Paul Eggert and Eric Blake.
29221
29222 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29223
29224         renameat: port to Solaris 10, which declares renameat in unistd.h
29225
29226         * lib/renameat.c: Include unistd.h before stdio.h, because
29227         Solaris 10 declares renameat in unistd.h.  Problem encountered
29228         when building GNU tar 1.24 on Solaris 10.
29229
29230 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29231
29232         fdopendir: fix C89 compilation
29233         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29234         compilers.
29235
29236 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29237
29238         inttostr: simplify by removing unnecessary redundancy
29239         * lib/anytostr.c: Don't include verify.h.
29240         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29241         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29242         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29243         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29244         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29245         Likewise.
29246         * modules/inttostr (Depends-on): Remove 'verify'.
29247
29248 2010-10-23  Bruno Haible  <bruno@clisp.org>
29249
29250         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29251         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29252         Reported by Eric Blake.
29253
29254 2010-10-23  Bruno Haible  <bruno@clisp.org>
29255
29256         Tests: Fix LOCALE_JA on MirBSD 10.
29257         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29258         to an UTF-8 locale.
29259         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29261         Reported by Eric Blake.
29262
29263 2010-10-21  Bruno Haible  <bruno@clisp.org>
29264
29265         nl_langinfo test: Avoid test failure on NetBSD 5.
29266         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29267         Reported by Eric Blake.
29268
29269 2010-10-21  Eric Blake  <eblake@redhat.com>
29270
29271         c-stack: work around libsigsegv 2.8 bug
29272         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29273         overflow on at least PowerPC64.
29274
29275 2010-10-17  Bruno Haible  <bruno@clisp.org>
29276
29277         userspec: Drop redundant file.
29278         * modules/userspec (Files): Remove lib/inttostr.h.
29279
29280 2010-10-17  Bruno Haible  <bruno@clisp.org>
29281
29282         nl_langinfo tests: Silence some warnings.
29283         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29284         Reported by Jim Meyering.
29285
29286 2010-10-17  Bruno Haible  <bruno@clisp.org>
29287
29288         Make use of GCC's attribute __alloc_size__.
29289         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29290         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29291         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29292         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29293         __alloc_size__.
29294         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29295         Suggested by Jim Meyering.
29296
29297 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29298
29299         bootstrap: anchor .gitignore entries.
29300         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29301         with...
29302         (insert_vc_ignore): ... this new function, which prepends `/' to
29303         all .gitignore entries before passing them to
29304         insert_sorted_if_absent.
29305
29306 2010-10-16  Bruno Haible  <bruno@clisp.org>
29307
29308         nextafter: Fix configure check.
29309         * modules/nextafter (configure.ac): Correct expected prototype.
29310
29311 2010-10-16  Bruno Haible  <bruno@clisp.org>
29312
29313         termios: Update documentation.
29314         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29315
29316 2010-10-16  Bruno Haible  <bruno@clisp.org>
29317
29318         tests: Make them compile with TinyCC.
29319         * tests/test-strstr.c (main): Remove parentheses around array
29320         initializer.
29321
29322 2010-10-15  Eric Blake  <eblake@redhat.com>
29323
29324         ignore-value: make header idempotent
29325         * lib/ignore-value.h: Add double-inclusion guards.
29326         Reported by Stefan Berger.
29327
29328 2010-10-15  Jim Meyering  <meyering@redhat.com>
29329
29330         GNUmakefile: handle "stable" target, not "major"
29331         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29332         lists in maint.mk and announce-gen.  Without this, "make stable"
29333         would fail to ensure that $(VERSION) is up to date.
29334
29335 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29336
29337         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29338         & co.
29339
29340 2010-10-14  Bruno Haible  <bruno@clisp.org>
29341
29342         vasnprintf: Don't set errno to 0.
29343         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29344         block that sets it to 0.
29345         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29346
29347 2010-10-14  Bruno Haible  <bruno@clisp.org>
29348
29349         socketlib: Fix.
29350         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29351         gl_PREREQ_SYS_H_WINSOCK2.
29352         Reported by Ian Beckwith <ianb@erislabs.net>.
29353
29354 2010-10-13  Jim Meyering  <meyering@redhat.com>
29355
29356         test-select-stdin.c: avoid warn_unused_result warnings
29357         * tests/test-select-stdin.c: Include "macros.h".
29358         ASSERT that read and fflush succeed.
29359
29360 2010-10-13  Jim Meyering  <meyering@redhat.com>
29361
29362         git-version-gen: do require git-VC'd files in cwd
29363         * build-aux/git-version-gen: Reject a git version string
29364         if there are no commits associated with the current directory.
29365         This avoids an unlikely false-positive (unrelated dir whose parent
29366         repository also contains a tag matching v*), as pointed out
29367         by Giuseppe Scrivano in
29368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29369
29370 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29371
29372         argv-iter: omit nonconforming declaration
29373         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29374         enum arg_iter_err declaration, which doesn't conform to C99.
29375         Solaris 10 cc warns about this.
29376
29377 2010-10-13  Eric Blake  <eblake@redhat.com>
29378
29379         termios: fix compilation on mingw
29380         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29381         (gl_TERMIOS_H): Adjust it on mingw.
29382         * modules/termios (Makefile.am): Substitute new key.
29383         * lib/termios.in.h (includes): Make include_next conditional.
29384         * doc/posix-headers/termios.texi (termios.h): Update
29385         documentation.
29386         Reported by Daniel P. Berrange.
29387
29388 2010-10-13  Jim Meyering  <meyering@redhat.com>
29389
29390         git-version-gen: don't require that .git/ be in the current dir
29391         * build-aux/git-version-gen: Adjust this script so that it works
29392         when run from any working directory beneath the top-level .git/-
29393         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29395
29396         test-select: avoid warn_unused_result warnings
29397         * tests/test-select.c: Include "macros.h".
29398         ASSERT that each call to read, write, and pipe succeeds.
29399         While not technically required, also check each "close".
29400         * modules/select-tests (Files): Add tests/macros.h.
29401
29402         test-symlinkat: remove declaration of unused local
29403         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29404
29405         test-inttostr: avoid shadowing warnings
29406         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29407         and use malloc rather than the stack for the same reason as
29408         mentioned in the comment justifying the other allocation.
29409
29410 2010-10-11  Bruno Haible  <bruno@clisp.org>
29411
29412         stdlib: Allow multiple gnulib generated replacements to coexist.
29413         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29414         Reported by Sam Steingold <sds@gnu.org>.
29415
29416 2010-10-11  Jim Meyering  <meyering@redhat.com>
29417
29418         fix a documentation typo
29419         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29420
29421 2010-10-11  Eric Blake  <eblake@redhat.com>
29422
29423         futimens: work around Solaris 11 bug
29424         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29425         * tests/test-futimens.h (test_futimens): Enhance, rather than
29426         weaken test.
29427         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29428
29429 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29430
29431         Indentation.
29432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29433         higher-level operators more to the left.
29434
29435 2010-10-11  Jim Meyering  <meyering@redhat.com>
29436
29437         test-futimens: avoid unwarranted test failure on Solaris 5.11
29438         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29439         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29440         because it tries to dereference the NULL name argument.
29441
29442 2010-10-11  Bruno Haible  <bruno@clisp.org>
29443
29444         Indentation.
29445         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29446         indentation.
29447
29448 2010-10-11  Jim Meyering  <meyering@redhat.com>
29449
29450         spawn.in.h: make indentation consistent with parentheses
29451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29452         Make indentation consistent with parentheses.
29453
29454 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29455
29456         Fix mismatched parens in previous commit
29457         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29458         parens.
29459
29460 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29461
29462         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29463
29464         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29465         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29466         * lib/malloca.c: Include "verify.h".
29467         (verify1): Remove, replacing with a verify call.
29468         * lib/relocwrapper.c (verify1): Likewise.
29469         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29470         Likewise.
29471         * modules/malloca (Depends-on): Add 'verify'.
29472         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29473         * modules/vasnprintf (Depends-on): Add 'verify'.
29474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29475         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29476         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29477         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29478         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29479         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29480         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29481
29482         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29483
29484         Formerly the style was sometimes 2*X - 1, because the C standard
29485         was wrongly thought to disallow ?: in integral constant expressions.
29486         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29487         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29489         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29490         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29491         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29492         verify that time_t cannot be floating.
29493
29494 2010-10-08  Eric Blake  <eblake@redhat.com>
29495
29496         time: enforce recent POSIX ruling that time_t is integral
29497         * lib/time.in.h (__time_t_must_be_integral): Detect any
29498         problematic systems, allowing the rest of gnulib to assume POSIX.
29499
29500 2010-10-08  Jim Meyering  <meyering@redhat.com>
29501
29502         fdopendir: fix a bug on systems lacking openat and /proc support
29503         OpenBSD 4.7 is one such system.  The most noticeable effect was
29504         failure of any application making nontrivial use of fts: rm, du,
29505         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29506           ./rm: traversal failed: `a': Bad file descriptor
29507         Debugging that, you see that even though FD 6 was closed just
29508         prior to the opendir call in fd_clone_opendir, its resulting
29509         dir->dd_fd was 8, rather than the expected value of 6:
29510
29511         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29512         93                close (fd);
29513         (gdb) n
29514         94                dir = fd_clone_opendir (dupfd);
29515         (gdb) n
29516         95                saved_errno = errno;
29517         (gdb) p dir->dd_fd
29518         $11 = 8
29519
29520         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29521         The problem is that on OpenBSD, fd_clone_opendir has to resort
29522         to using the old-style save/restore CWD mechanism, due to its
29523         lack of openat/proc support, and *that* would steal the FD (6)
29524         that opendir was supposed to use.
29525
29526         The fix is to squirrel away the desired FD so that save_cwd uses a
29527         different one, and then free the dest FD right before calling opendir.
29528         That guarantees opendir will use the required file descriptor.
29529
29530         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29531
29532 2010-10-08  Bruno Haible  <bruno@clisp.org>
29533
29534         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29535         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29536
29537 2010-10-08  Bruno Haible  <bruno@clisp.org>
29538
29539         nanosleep: Make replacement POSIX compliant.
29540         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29541         is out of range.
29542         Reported by Jim Meyering.
29543
29544 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29545
29546         bootstrap: add hook for altering gnulib.mk, for Bison
29547         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29548         the Bison bootstrapping process can rewrite file names and variables
29549         in this file before later parts of 'bootstrap' use the file.
29550         Bison wants to include lib/gnulib.mk from the top-level makefile,
29551         so it needs the file names in this file to be relative to the top
29552         level, not relative to lib; plus it needs variable names to be
29553         rewritten.
29554         (slurp): Use the new function.
29555
29556         bootstrap: reformat for readability
29557         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29558
29559 2010-10-08  Eric Blake  <eblake@redhat.com>
29560
29561         docs: update cygwin progress
29562         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29563         1.7.7.
29564         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29565         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29566         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29567         * doc/posix-functions/carg.texi (carg): Likewise.
29568         * doc/posix-functions/cargf.texi (cargf): Likewise.
29569         * doc/posix-functions/casin.texi (casin): Likewise.
29570         * doc/posix-functions/casinf.texi (casinf): Likewise.
29571         * doc/posix-functions/casinh.texi (casinh): Likewise.
29572         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29573         * doc/posix-functions/catan.texi (catan): Likewise.
29574         * doc/posix-functions/catanf.texi (catanf): Likewise.
29575         * doc/posix-functions/catanh.texi (catanh): Likewise.
29576         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29577         * doc/posix-functions/ccos.texi (ccos): Likewise.
29578         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29579         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29580         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29581         * doc/posix-functions/cexp.texi (cexp): Likewise.
29582         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29583         * doc/posix-functions/cimag.texi (cimag): Likewise.
29584         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29585         * doc/posix-functions/clog.texi (clog): Likewise.
29586         * doc/posix-functions/clogf.texi (clogf): Likewise.
29587         * doc/posix-functions/conj.texi (conj): Likewise.
29588         * doc/posix-functions/conjf.texi (conjf): Likewise.
29589         * doc/posix-functions/cpow.texi (cpow): Likewise.
29590         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29591         * doc/posix-functions/cproj.texi (cproj): Likewise.
29592         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29593         * doc/posix-functions/creal.texi (creal): Likewise.
29594         * doc/posix-functions/crealf.texi (crealf): Likewise.
29595         * doc/posix-functions/csin.texi (csin): Likewise.
29596         * doc/posix-functions/csinf.texi (csinf): Likewise.
29597         * doc/posix-functions/csinh.texi (csinh): Likewise.
29598         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29599         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29600         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29601         * doc/posix-functions/ctan.texi (ctan): Likewise.
29602         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29603         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29604         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29605         * doc/posix-headers/complex.texi (complex.h): Likewise.
29606
29607 2010-10-07  Jim Meyering  <meyering@redhat.com>
29608
29609         parse-datetime: avoid compilation failure on OpenBSD 4.7
29610         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29611         This works around a compilation failure on OpenBSD 4.7:
29612         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29613
29614 2010-10-07  Eric Blake  <eblake@redhat.com>
29615
29616         docs: update cygwin progress
29617         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29618         1.7.6.
29619         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29620         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29621         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29622         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29623         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29624         Likewise.
29625         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29626         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29627         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29628         Likewise.
29629         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29630         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29631         Likewise.
29632         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29633         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29634         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29635         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29636         Likewise.
29637         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29638         Likewise.
29639         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29640
29641         docs: update parse-datetime history
29642         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29643         documentation of this function's history and alternatives.
29644
29645         cygwin: use more robust version check
29646         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29647         exclude an eventual cygwin 1.9.1.
29648         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29650         (gl_FUNC_STRCASESTR): Likewise.
29651         Reported by Bruno Haible.
29652
29653 2010-10-06  Bruno Haible  <bruno@clisp.org>
29654
29655         string, sys_select: Avoid #including large headers unless necessary.
29656         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29657         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29658         OSF/1, BeOS, Haiku.
29659         Reported by Jim Meyering.
29660
29661 2010-10-05  Eric Blake  <eblake@redhat.com>
29662
29663         memmem, strstr, strcasestr: fix bug with long periodic needle
29664         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29665         periodic needle having false positive.
29666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29667         and cygwin 1.7.7.
29668         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29670         (gl_FUNC_STRCASESTR): Likewise.
29671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29672         * tests/test-memmem.c (main): Expose the bug.
29673         * tests/test-strcasestr.c (main): Likewise.
29674         * tests/test-strstr.c (main): Likewise.
29675         * tests/test-c-strcasestr.c (main): Likewise.
29676         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29677         * doc/posix-functions/strstr.texi (strstr): Likewise.
29678         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29679         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29680
29681 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29682
29683         parse-datetime: do some more renaming
29684         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29685         parse_datetime, not get_date.  Mention the renaming.
29686         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29687         in comments.
29688         * m4/bison.m4: Likewise.
29689
29690 2010-10-05  Eric Blake  <eblake@redhat.com>
29691
29692         parse-datetime: better name than get_date
29693         * NEWS: Reword the deprecation notice.
29694         * modules/get_date: Rename to modules/parse-datetime.
29695         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29696         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29697         * lib/get_date.y: Rename to lib/parse-datetime.y.
29698         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29699         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29700         * doc/getdate.texi: Provide fallback wrapper.
29701         * lib/getdate.h: Move guts, and wrap...
29702         * lib/parse-datetime.h: ...new file.
29703         * lib/parse-datetime.y (get_date): Rename...
29704         (parse_datetime): ...to this.
29705         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29706         (gl_PARSE_DATETIME): ...to this.
29707         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29708         documentation.
29709         * modules/getdate (Files): Provide fallback docs and header.
29710         (Notice, Depends-on): Update references.
29711         * tests/test-parse-datetime.c: Likewise.
29712         * DEPENDENCIES: Likewise.
29713         * MODULES.html.sh (Date and time <time.h>): Likewise.
29714         * doc/parse-datetime.texi (Date input formats)
29715         (Authors of parse_datetime): Likewise.
29716         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29717         (Include): Likewise.
29718         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29719         * gnulib-tool: Likewise.
29720         * m4/bison.m4 (gl_BISON): Likewise.
29721         Suggested by Bruno Haible.
29722
29723 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29724
29725         more ports to Solaris tr, which needs [] around ranges
29726         * gnulib-tool: Solaris tr needs [] around ranges.
29727         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29728         * tests/test-pipe-filter-gi1.c (main): Likewise.
29729         * tests/test-pipe-filter-ii1.c (main): Likewise.
29730
29731 2010-10-05  Eric Blake  <eblake@redhat.com>
29732
29733         bootstrap: fix Solaris regression
29734         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29735         around ranges.
29736         Reported by Pádraig Brady.
29737
29738         bootstrap: work with pkg-config
29739         * build-aux/bootstrap (check_versions): Also transliterate - in
29740         prerequisite name.
29741         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29742         prerequisites that were already found, to avoid confusion.
29743         Reported by Justin Clift.
29744
29745         faccessat: remove unused wrappers
29746         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29747         presence of these wrappers dragged in -lgen on Solaris.
29748         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29749
29750 2010-10-05  Jim Meyering  <meyering@redhat.com>
29751
29752         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29753         * Makefile (sc_pragma_columns): New syntax-check rule.
29754
29755 2010-10-04  Bruno Haible  <bruno@clisp.org>
29756
29757         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29758         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29759         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29760         Reported by Bruce Korb and Eric Blake.
29761
29762 2010-10-04  Bruno Haible  <bruno@clisp.org>
29763
29764         threadlib: Make option --with-libpth-prefix work.
29765         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29766         use $LIBPTH, not just -lpth.
29767
29768 2010-10-04  Bruno Haible  <bruno@clisp.org>
29769
29770         Avoid line length limitation from HP NonStop system header files.
29771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29772         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29773         * lib/ctype.in.h: Likewise.
29774         * lib/dirent.in.h: Likewise.
29775         * lib/errno.in.h: Likewise.
29776         * lib/fcntl.in.h: Likewise.
29777         * lib/float.in.h: Likewise.
29778         * lib/getopt.in.h: Likewise.
29779         * lib/iconv.in.h: Likewise.
29780         * lib/inttypes.in.h: Likewise.
29781         * lib/langinfo.in.h: Likewise.
29782         * lib/locale.in.h: Likewise.
29783         * lib/math.in.h: Likewise.
29784         * lib/netdb.in.h: Likewise.
29785         * lib/netinet_in.in.h: Likewise.
29786         * lib/poll.in.h: Likewise.
29787         * lib/pthread.in.h: Likewise.
29788         * lib/pty.in.h: Likewise.
29789         * lib/sched.in.h: Likewise.
29790         * lib/se-selinux.in.h: Likewise.
29791         * lib/search.in.h: Likewise.
29792         * lib/signal.in.h: Likewise.
29793         * lib/spawn.in.h: Likewise.
29794         * lib/stdarg.in.h: Likewise.
29795         * lib/stddef.in.h: Likewise.
29796         * lib/stdint.in.h: Likewise.
29797         * lib/stdio.in.h: Likewise.
29798         * lib/stdlib.in.h: Likewise.
29799         * lib/string.in.h: Likewise.
29800         * lib/strings.in.h: Likewise.
29801         * lib/sys_file.in.h: Likewise.
29802         * lib/sys_ioctl.in.h: Likewise.
29803         * lib/sys_select.in.h: Likewise.
29804         * lib/sys_socket.in.h: Likewise.
29805         * lib/sys_stat.in.h: Likewise.
29806         * lib/sys_time.in.h: Likewise.
29807         * lib/sys_times.in.h: Likewise.
29808         * lib/sys_utsname.in.h: Likewise.
29809         * lib/sys_wait.in.h: Likewise.
29810         * lib/sysexits.in.h: Likewise.
29811         * lib/termios.in.h: Likewise.
29812         * lib/time.in.h: Likewise.
29813         * lib/unistd.in.h: Likewise.
29814         * lib/wchar.in.h: Likewise.
29815         * lib/wctype.in.h: Likewise.
29816         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29817         * modules/ctype (Makefile.am): Likewise.
29818         * modules/dirent (Makefile.am): Likewise.
29819         * modules/errno (Makefile.am): Likewise.
29820         * modules/fcntl-h (Makefile.am): Likewise.
29821         * modules/float (Makefile.am): Likewise.
29822         * modules/getopt-posix (Makefile.am): Likewise.
29823         * modules/iconv-h (Makefile.am): Likewise.
29824         * modules/inttypes (Makefile.am): Likewise.
29825         * modules/langinfo (Makefile.am): Likewise.
29826         * modules/locale (Makefile.am): Likewise.
29827         * modules/math (Makefile.am): Likewise.
29828         * modules/netdb (Makefile.am): Likewise.
29829         * modules/netinet_in (Makefile.am): Likewise.
29830         * modules/poll-h (Makefile.am): Likewise.
29831         * modules/pthread (Makefile.am): Likewise.
29832         * modules/pty (Makefile.am): Likewise.
29833         * modules/sched (Makefile.am): Likewise.
29834         * modules/search (Makefile.am): Likewise.
29835         * modules/selinux-h (Makefile.am): Likewise.
29836         * modules/signal (Makefile.am): Likewise.
29837         * modules/spawn (Makefile.am): Likewise.
29838         * modules/stdarg (Makefile.am): Likewise.
29839         * modules/stddef (Makefile.am): Likewise.
29840         * modules/stdint (Makefile.am): Likewise.
29841         * modules/stdio (Makefile.am): Likewise.
29842         * modules/stdlib (Makefile.am): Likewise.
29843         * modules/string (Makefile.am): Likewise.
29844         * modules/strings (Makefile.am): Likewise.
29845         * modules/sys_file (Makefile.am): Likewise.
29846         * modules/sys_ioctl (Makefile.am): Likewise.
29847         * modules/sys_select (Makefile.am): Likewise.
29848         * modules/sys_socket (Makefile.am): Likewise.
29849         * modules/sys_stat (Makefile.am): Likewise.
29850         * modules/sys_time (Makefile.am): Likewise.
29851         * modules/sys_times (Makefile.am): Likewise.
29852         * modules/sys_utsname (Makefile.am): Likewise.
29853         * modules/sys_wait (Makefile.am): Likewise.
29854         * modules/sysexits (Makefile.am): Likewise.
29855         * modules/termios (Makefile.am): Likewise.
29856         * modules/time (Makefile.am): Likewise.
29857         * modules/unistd (Makefile.am): Likewise.
29858         * modules/wchar (Makefile.am): Likewise.
29859         * modules/wctype (Makefile.am): Likewise.
29860
29861 2010-10-04  Bruno Haible  <bruno@clisp.org>
29862
29863         read-file tests: Avoid a test failure on NonStop Kernel.
29864         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29865         a regular file.
29866         Reported by Joachim Schmitz <schmitz@hp.com>.
29867
29868 2010-10-03  Bruno Haible  <bruno@clisp.org>
29869
29870         gnulib-tool: Fixes for --create-testdir with --libtool.
29871         * gnulib-tool (func_get_automake_snippet): Don't augment
29872         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29873         an executable.
29874         (func_create_testdir): Handle module 'alloca' like func_import.
29875         Reported by Bruce Korb <bruce.korb@gmail.com>.
29876
29877 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29878
29879         Avoid some lines longer than 80 characters.
29880         * lib/stdint.in.h: Break long comment lines.
29881         * lib/math.in.h: Likewise.
29882         (_GL_NUM_UINT_WORDS): New macro, for readability.
29883         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29884         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29885         * lib/stdlib.in.h: Likewise.
29886         * lib/spawn.in.h: Likewise.
29887         * lib/sys_socket.in.h: Update an URL.
29888         * lib/sys_stat.in.h: Break long line.
29889
29890 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29891
29892         Improve pmccabe2html.
29893         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29894         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29895         when the sources change. Remove the line in the HTML about "Used
29896         ranges" (which implied that there might be other unused ranges),
29897         rename "Resume" to "Summary" (easier to understand for more users).
29898         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29899         styles, and some unnecessary blank lines.
29900
29901 2010-10-03  Bruno Haible  <bruno@clisp.org>
29902             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29903
29904         acl: Add support for ACLs on NonStop Kernel.
29905         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29906         Check whether the function aclsort() exists.
29907         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29908         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29909         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29910         (acl_nontrivial [HAVE_ACLSORT]: New function.
29911         (file_has_acl): Implement for NonStop Kernel.
29912         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29913         (qset_acl): Implement for NonStop Kernel.
29914         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29915         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29916         (main): Implement for NonStop Kernel.
29917         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29918         Kernel. Handle this flavor.
29919         * tests/test-set-mode-acl.sh: Likewise.
29920         * tests/test-copy-acl.sh: Likewise.
29921         * tests/test-copy-file.sh: Likewise.
29922
29923 2010-10-03  Bruno Haible  <bruno@clisp.org>
29924
29925         Info about ACLs on NonStop Kernel.
29926         * doc/acl-resources.txt: Add info about NonStop Kernel.
29927         References by Joachim Schmitz <schmitz@hp.com>.
29928
29929 2010-10-02  Bruno Haible  <bruno@clisp.org>
29930
29931         Define missing EDQUOT on NonStop Kernel.
29932         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29933         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29935         missing.
29936         * doc/posix-headers/errno.texi: Mention the NSK bug.
29937         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29938         Reported by Joachim Schmitz <schmitz@hp.com>.
29939
29940 2010-10-02  Bruno Haible  <bruno@clisp.org>
29941
29942         Update doc for POSIX:2008.
29943         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29944         Update URL of POSIX specification.
29945
29946 2010-10-02  Bruno Haible  <bruno@clisp.org>
29947
29948         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29949         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29950         from gnulib, not from Automake.
29951
29952 2010-10-02  Bruno Haible  <bruno@clisp.org>
29953
29954         New module 'system-posix'.
29955         * modules/system-posix: New file.
29956         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29957         module is present.
29958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29959         GNULIB_SYSTEM_POSIX.
29960         * modules/stdlib (Depends-on): Remove sys_wait.
29961         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29962         * doc/posix-functions/system.texi: Mention the new module.
29963         * doc/posix-headers/stdlib.texi: Likewise.
29964         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29965         define test_sys_wait_macros to a no-op.
29966         Reported by Sam Steingold <sds@gnu.org>.
29967
29968 2010-09-30  Bruno Haible  <bruno@clisp.org>
29969
29970         More renaming from 'getdate' to 'get_date'.
29971         * doc/get_date.texi: Renamed from doc/getdate.texi.
29972         * modules/get_date (Files): Update.
29973         * MODULES.html.sh (Date and time <time.h>): Update.
29974         * DEPENDENCIES: Update.
29975         * gnulib-tool: Update comment.
29976         * m4/bison.m4 (gl_BISON): Likewise.
29977         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29978
29979 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29980
29981         bootstrap: support ACLOCAL_FLAGS during aclocal
29982         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29983         can add additional -I dir for third-party .m4 files.
29984
29985 2010-09-30  Eric Blake  <eblake@redhat.com>
29986
29987         bootstrap: use glibtoolize on MacOS
29988         * build-aux/bootstrap (check_versions): Convert libtool into
29989         libtoolize.
29990         (tool search): Move libtool check earlier, and look for
29991         glibtoolize for MacOS.
29992         (gnulib_tool_options): Auto-add --libtool when appropriate.
29993         Reported by Justin Clift.
29994
29995         poll: fix typo that broke test on MacOS
29996         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29997         Reported by Justin Clift.
29998
29999         getdate: rename to get_date
30000         Note: getdate.h is not renamed, to minimize client impact.
30001         * modules/getdate: Mark obsolete.  Move old contents...
30002         * modules/get_date: ...to new module name.
30003         * modules/getdate-tests: Move...
30004         * modules/get_date-tests: ...here.
30005         * m4/getdate.m4: Move...
30006         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30007         * lib/getdate.y: Move...
30008         * lib/get_date.y: ...here.
30009         * tests/test-getdate.c: Move...
30010         * tests/test-get_date.c: ...here.
30011         * doc/posix-functions/getdate.texi (getdate): Update name.
30012         * NEWS: Mention the change.
30013
30014 2010-09-29  Bruno Haible  <bruno@clisp.org>
30015
30016         Separate the module 'waitpid' from the module 'sys_wait'.
30017         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30018         present.
30019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30020         gl_MODULE_INDICATOR_FOR_TESTS.
30021         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30022         * modules/sys_wait (Depends-on): Remove waitpid.
30023         (Makefile.am): Substitute GNULIB_WAITPID.
30024         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30025         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30026         signature only if the 'waitpid' module is present.
30027         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30028         * NEWS: Mention the change.
30029         * modules/grantpt (Depends-on): Add waitpid.
30030         * modules/wait-process (Depends-on): Likewise.
30031
30032 2010-09-29  Bruno Haible  <bruno@clisp.org>
30033
30034         More tests for module 'sys_wait'.
30035         * modules/sys_wait-c++-tests: New file.
30036         * tests/test-sys_wait-c++.cc: New file.
30037         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30038         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30039
30040 2010-09-29  Bruno Haible  <bruno@clisp.org>
30041
30042         New module 'waitpid'.
30043         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30044         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30045         Don't include <process.h>.
30046         (waitpid): Declare only, using modern idiom.
30047         * m4/waitpid.m4: New file.
30048         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30049         * modules/waitpid: New file.
30050         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30051         (Makefile.am): Update.
30052         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30053
30054 2010-09-28  Bruno Haible  <bruno@clisp.org>
30055
30056         poll: Assume ANSI C.
30057         * lib/poll.c (poll): Use an ANSI C declaration.
30058
30059 2010-09-28  Bruno Haible  <bruno@clisp.org>
30060
30061         poll-h: Create poll.h on all platforms.
30062         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30063         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30064         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30065         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30066         (gl_REPLACE_POLL_H): Don't set POLL_H.
30067         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30068         * modules/poll-h (Depends-on): Add include_next.
30069         (Makefile.am): Create poll.h unconditionally. Substitute also
30070         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30071
30072 2010-09-28  Bruno Haible  <bruno@clisp.org>
30073
30074         Tests for module 'poll-h'.
30075         * modules/poll-h-c++-tests: New file.
30076         * tests/test-poll-h-c++.cc: New file.
30077
30078         Tests for module 'poll-h'.
30079         * modules/poll-h-tests: New file.
30080         * tests/test-poll-h.c: New file.
30081
30082 2010-09-28  Bruno Haible  <bruno@clisp.org>
30083
30084         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30085         * modules/poll-h (Depends-on): Add 'extensions'.
30086
30087 2010-09-28  Bruno Haible  <bruno@clisp.org>
30088
30089         New module 'poll-h'.
30090         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30091         (poll): Use modern idiom.
30092         * modules/poll-h: New file.
30093         * modules/poll (Files): Remove lib/poll.in.h.
30094         (Depends-on): Add poll-h.
30095         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30096         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30097         * m4/poll_h.m4: New file.
30098         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30099         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30100         and invoke gl_REPLACE_POLL_H.
30101         * lib/poll.c: Use common idiom.
30102         * tests/test-poll.c: Likewise.
30103         * doc/posix-headers/poll.texi: Mention the poll-h module.
30104         Suggested by Eric Blake.
30105
30106 2010-09-26  Bruno Haible  <bruno@clisp.org>
30107
30108         sys_wait: Implement WSTOPSIG.
30109         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30110         Reported by Simon Josefsson.
30111
30112 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30113
30114         stdlib, sys_wait: Avoid compilation error on mingw.
30115         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30116
30117 2010-09-26  Bruno Haible  <bruno@clisp.org>
30118
30119         stdlib tests: Avoid code duplication.
30120         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30121         * modules/sys_wait-tests (Files): Likewise.
30122         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30123         * tests/test-stdlib.c: Include test-sys_wait.h.
30124         (main): Invoke test_sys_wait_macros.
30125         * tests/test-sys_wait.c: Include test-sys_wait.h.
30126         (main): Invoke test_sys_wait_macros.
30127
30128 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30129
30130         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30131         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30132         sure Windows sockets are working before calling getaddrinfo.
30133         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30134         * doc/gnulib.texi (Windows sockets): Fix typo.
30135
30136 2010-09-25  Bruno Haible  <bruno@clisp.org>
30137
30138         Tests for module 'regex-quote'.
30139         * modules/regex-quote-tests: New file.
30140         * tests/test-regex-quote.c: New file.
30141
30142         New module 'regex-quote'.
30143         * lib/regex-quote.h: New file.
30144         * lib/regex-quote.c: New file.
30145         * modules/regex-quote: New file.
30146         Suggested by Reuben Thomas <rrt@sc3d.org>.
30147
30148 2010-09-24  Bruno Haible  <bruno@clisp.org>
30149
30150         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30151         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30152
30153 2010-09-23  Bruno Haible  <bruno@clisp.org>
30154
30155         setenv: Relax license.
30156         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30157         Blake.
30158         Requested by Eric Blake.
30159
30160 2010-09-22  Bruno Haible  <bruno@clisp.org>
30161
30162         termios: Relax license.
30163         * modules/termios (License): Change to LGPLv2+.
30164         Requested by Eric Blake.
30165
30166 2010-09-22  Bruno Haible  <bruno@clisp.org>
30167
30168         threadlib: Allow the package to change the default to 'no'.
30169         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30170         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30171         Reported by Paul Eggert.
30172
30173 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30174             Bruno Haible  <bruno@clisp.org>
30175
30176         Fix endless loop in mbmemcasecoll.
30177         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30178         byte.
30179         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30180
30181 2010-09-22  Bruno Haible  <bruno@clisp.org>
30182
30183         Tests for module 'memcoll'.
30184         * modules/memcoll-tests: New file.
30185         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30186
30187         memcoll, xmemcoll: Clarify size vs. length.
30188         * modules/memcoll.c (memcoll0): Clarify specification.
30189         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30190         passed to collate_error.
30191
30192 2010-09-22  Bruno Haible  <bruno@clisp.org>
30193
30194         Tests for module 'memcasecmp'.
30195         * modules/memcasecmp-tests: New file.
30196         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30197
30198 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30199
30200         * lib/pthread.in.h: Add split double-inclusion guard, and include
30201         system <pthread.h> if there is one.  Use @@-style as in other
30202         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30203         pthread.h doesn't.
30204         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30205         (pthread_mutexattr_settype, pthread_mutex_trylock):
30206         New static inline functions, if there's no system <pthread.h>.
30207         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30208         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30209         Approximate with mutexes if the system lacks spinlocks, as in
30210         MacOS.
30211         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30212         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30213         @@-style.  Check for spinlocks separately.
30214         (gl_PTHREAD_DEFAULTS): New macro.
30215         * modules/pthread: Redo to use a more typical style for in.h files.
30216
30217 2010-09-21  Eric Blake  <eblake@redhat.com>
30218
30219         net_if: enhance tests
30220         * tests/test-net_if.c (main): Move signature checks earlier.
30221         Print failures to stderr.
30222         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30223         Document the bug that we do not yet fix.
30224
30225 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30226
30227         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30228         about gnulib, not GSS.
30229
30230 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30231
30232         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30233         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30234         for Emacs.
30235         * build-aux/pmccabe2html: Make Makefile.am example code more
30236         cut-and-paste friendly.
30237
30238 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30239
30240         * tests/test-net_if.c: New file.
30241         * modules/net_if-tests: New file.
30242
30243 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30244
30245         pthread: add pthread_spin_destroy
30246         * lib/pthread.in.h (pthread_spin_destroy): New function.
30247
30248 2010-09-19  Bruno Haible  <bruno@clisp.org>
30249
30250         gnulib-tool: Fix --help output.
30251         * gnulib-tool (func_usage): Fix help message.
30252         Reported by Reuben Thomas <rrt@sc3d.org>.
30253
30254 2010-09-18  Jim Meyering  <meyering@redhat.com>
30255
30256         maint.mk: avoid unexpanded \n in two diagnostics
30257         * top/maint.mk (sc_prohibit_always_true_header_tests):
30258         Don't use a literal \n in a halt=... assignment.  It would not be
30259         expanded, and the two \n bytes would appear in the diagnostic output
30260         rather than the desired newline.  Use halt=$$(printf ... instead.
30261         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30262
30263 2010-09-18  Bruno Haible  <bruno@clisp.org>
30264
30265         netinet_in: Doc tweak.
30266         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30268
30269 2010-09-18  Jim Meyering  <meyering@redhat.com>
30270
30271         init.sh: correct an outdated comment
30272         * tests/init.sh (create_exe_shims_):  s/function/alias/
30273
30274         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30275         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30276         a file named "*.exe" is removed between the glob expansion and the
30277         processing of that oddly named file.
30278
30279 2010-09-17  Eric Blake  <eblake@redhat.com>
30280
30281         mirbsd: add some more support
30282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30283         in BSD family.
30284         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30285         devices as OpenBSD.
30286         * m4/host-os.m4 (mirbsd): Add MirBSD.
30287
30288         tests: fix unportable assumption on sys/wait.h
30289         * tests/test-sys_wait.c (main): Relax test.
30290         * tests/test-stdlib.c (main): Likewise.
30291
30292         init.sh: accommodate directory with no .exes
30293         * tests/init.sh: Accomodate directory containing only scripts.
30294
30295         tests: avoid compiler warning
30296         * tests/test-stdlib.c (main): Use the variable.
30297
30298         fdutimens, fdutimensat: update signature, again
30299         * lib/utimens.h (gl_futimens): Delete, and move signature...
30300         (fdutimens): ...here.
30301         (fdutimensat): Rearrange signature.
30302         (lutimensat): Rename variable for clarity.
30303         * lib/fdutimensat.c (fdutimensat): Update signature.
30304         * lib/utimens.c (fdutimens): Likewise.
30305         (gl_futimens): Delete.
30306         (utimens, lutimens): Update callers.
30307         * lib/futimens.c (futimens): Likewise.
30308         * tests/test-fdutimensat.c: Likewise.
30309         * tests/test-utimens.c: Likewise.
30310         * tests/test-futimens.h: Update comment.
30311         * NEWS: Mention this.
30312         Suggested by Paul Eggert.
30313
30314 2010-09-17  Bruno Haible  <bruno@clisp.org>
30315
30316         Take over the maintenance of some older macros from Autoconf.
30317         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30318         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30319         GNU Autoconf.
30320         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30321         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30322
30323 2010-09-17  Eric Blake  <eblake@redhat.com>
30324
30325         fdutimensat: drop atflag validation
30326         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30327         with valid fd, to close a race scenario where futimens is
30328         unsupported and FILE was replaced by a symlink.
30329         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30330         accordingly.
30331         Suggested by Paul Eggert.
30332
30333 2010-09-16  Bruno Haible  <bruno@clisp.org>
30334
30335         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30336         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30337
30338 2010-09-16  Bruno Haible  <bruno@clisp.org>
30339
30340         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30341         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30342         login_tty exists.
30343         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30344
30345 2010-09-16  Bruno Haible  <bruno@clisp.org>
30346
30347         login_tty: Make the replacement code work on BSD systems.
30348         * lib/login_tty.c: Include <sys/ioctl.h>.
30349         (login_tty): Use ioctl TIOCSCTTY when available.
30350         * modules/login_tty (Depends-on): Add sys_ioctl.
30351         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30352
30353 2010-09-16  Bruno Haible  <bruno@clisp.org>
30354
30355         login_tty: Stricter unit test.
30356         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30357         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30358         and tcgetsid() after login_tty.
30359         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30360
30361 2010-09-16  Bruno Haible  <bruno@clisp.org>
30362
30363         New module 'tcgetsid'.
30364         * lib/tcgetsid.c: New file.
30365         * m4/tcgetsid.m4: New file.
30366         * modules/tcgetsid: New file.
30367         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30368         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30369         GNULIB_TCGETSID, HAVE_TCGETSID.
30370         * lib/termios.in.h: Include <sys/types.h>.
30371         (tcgetsid): New declaration.
30372         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30373         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30374         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30375         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30376
30377 2010-09-16  Bruno Haible  <bruno@clisp.org>
30378
30379         Tests for module 'termios'.
30380         * modules/termios-c++-tests: New file.
30381         * modules/termios-tests: New file.
30382         * tests/test-termios-c++.cc: New file.
30383         * tests/test-termios.c: New file.
30384
30385         New module 'termios'.
30386         * modules/termios: New file.
30387         * lib/termios.in.h: New file.
30388         * m4/termios_h.m4: New file.
30389         * doc/posix-headers/termios.texi: Mention the new module.
30390
30391 2010-09-16  Eric Blake  <eblake@redhat.com>
30392
30393         fdutimensat: add an atflag parameter
30394         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30395         * lib/utimens.h (fdutimensat): Update prototype.
30396         * tests/test-fdutimensat.c: Adjust test to match.
30397         * NEWS: Document the change.
30398         Suggested by Paul Eggert.
30399
30400 2010-09-16  Bruno Haible  <bruno@clisp.org>
30401
30402         Fix typos in comments.
30403         * lib/striconveh.h: Fix typo in comment.
30404         * lib/login_tty.c (login_tty): Likewise.
30405
30406 2010-09-15  Bruno Haible  <bruno@clisp.org>
30407
30408         stdlib: clarify MirBSD WEXITSTATUS bug
30409         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30410         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30411
30412 2010-09-15  Eric Blake  <eblake@redhat.com>
30413
30414         stdlib: work around MirBSD WEXITSTATUS bug
30415         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30416         * modules/stdlib (Depends-on): Add sys_wait.
30417         * tests/test-sys_wait.c (main): Enhance test.
30418         * tests/test-stdlib.c (main): Likewise.
30419         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30420
30421         docs: mention MacOS issue with WEXITSTATUS(constant)
30422         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30423         issue.
30424         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30425
30426         strnlen: add tests
30427         * modules/strnlen-tests: New file.
30428         * tests/test-strnlen.c: Likewise.
30429
30430 2010-09-14  Bruno Haible  <bruno@clisp.org>
30431
30432         unistr/base: Avoid link errors when module 'libunistring' is also used.
30433         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30434         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30435         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30436         Declare also when HAVE_LIBUNISTRING is set.
30437         Reported by Pádraig Brady <P@draigbrady.com>.
30438
30439 2010-09-14  Eric Blake  <eblake@redhat.com>
30440
30441         test-rawmemchr: make more robust
30442         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30443         (Depends-on, configure.ac): Add needed prerequisites to use it.
30444         * modules/memchr-tests (Files, Depends-on, configure.ac):
30445         Likewise, to avoid implicit reliance on memchr module prereqs.
30446         * tests/test-memchr.c (main): Ensure proper masking.
30447         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30448         reads.
30449
30450         memchr: detect glibc Alpha bug
30451         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30452         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30453         Alpha.
30454         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30455         * tests/test-memchr.c (main): Enhance test.
30456         Reported by Nelson H. F. Beebe.
30457
30458 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30459
30460         fts, getcwd, glob: audit for dirfd returning -1
30461         * lib/fts.c (opendir): Remove #define; no longer used.
30462         (opendirat): New arg PDIR_FD.  All callers changed.
30463         (fts_build, _opendir2): Use new opendirat to avoid the need for
30464         dirfd, or for checking whether dirfd returns a negative value.
30465         Don't use opendir; always use openat followed by fdopendir.
30466         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30467         it.
30468         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30469         returns -1 here.
30470         * modules/fts (Depends-on): Remove dirfd.
30471         * modules/getcwd (Depends-on): Likewise.
30472
30473 2010-09-13  Eric Blake  <eblake@redhat.com>
30474
30475         float: fix broken MirBSD header
30476         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30477         * doc/posix-headers/float.texi (float.h): Document it.
30478
30479 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30480
30481         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30482         * lib/fts.c (opendirat): New arg extra_flags.
30483         (__opendir2): Use it to avoid following symlinks when opening
30484         a directory, if symlinks are not supposed to be followed.  See
30485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30486
30487         fdopendir: preserve argument fd before returning
30488         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30489         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30490         (fdopendir): Use them, arranging for FD to be open to the same
30491         directory that it was when it started.  (It might be temporarily
30492         closed while fdopendir is running, so this not thread- or
30493         signal-safe.)  Be careful to do the right thing even when file
30494         descriptors are scarce and dup fails with errno == EMFILE.  See
30495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30496
30497 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30498
30499         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30500         * NEWS: Document change.
30501         * m4/regex.m4: Disable test for regoff_t size.
30502
30503 2010-09-13  Jim Meyering  <meyering@redhat.com>
30504
30505         fts: don't operate on an invalid file descriptor after failed dup
30506         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30507         negative file descriptor.
30508
30509 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30510
30511         savedir: add streamsavedir, deprecate fdsavedir
30512         * NEWS: Mention deprecation of fdsavedir.
30513         * lib/savedir.c (streamsavedir): New extern function, whose name
30514         ends in "savedir" to be consistent with the others.  This differs
30515         from savedirstream in that it doesn't close its argument.  The
30516         next version of GNU tar will use this instead of fdsavedir, to
30517         avoid some race conditions and conserve file descriptors.
30518         (savedirstream): Reimplement as a wrapper around streamsavedir.
30519         (fdsavedir): Add a comment deprecating this function.  As far as
30520         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30521         * lib/savedir.h (streamsavedir): New decl.
30522         (fdsavedir): Add a comment deprecating this.
30523
30524 2010-09-10  Bruno Haible  <bruno@clisp.org>
30525
30526         langinfo: Fix last commit.
30527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30528         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30530
30531 2010-09-10  Bruno Haible  <bruno@clisp.org>
30532
30533         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30534         * lib/progreloc.c (O_EXEC): Define fallback.
30535
30536 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30537
30538         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30539         * NEWS: Document recent changes to fcntl-h.
30540         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30541         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30542         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30543         Similarly for O_SEARCH; this last was already true, but not documented.
30544         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30545         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30546         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30547         Likewise.
30548         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30549         is zero, not whether it is defined.
30550         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30551         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30552         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30553
30554 2010-09-10  Bruno Haible  <bruno@clisp.org>
30555
30556         langinfo, nl_langinfo: Fix for IRIX 5.3.
30557         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30558         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30559         HAVE_LANGINFO_YESEXPR.
30560         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30561         HAVE_LANGINFO_YESEXPR.
30562         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30563         HAVE_LANGINFO_T_FMT_AMPM is 0.
30564         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30565         HAVE_LANGINFO_YESEXPR is 0.
30566         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30567         NOEXPR.
30568         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30569         * doc/posix-functions/nl_langinfo.texi: Likewise.
30570         Reported by Eric Blake.
30571
30572 2010-09-10  Bruno Haible  <bruno@clisp.org>
30573
30574         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30575         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30576         on FreeBSD 8.0 and OpenBSD 4.6.
30577         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30578         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30579         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30580         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30581         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30582         ac_includes_default.
30583         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30584
30585 2010-09-09  Eric Blake  <eblake@redhat.com>
30586
30587         strsignal: work around NetBSD bug
30588         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30589         * lib/string.in.h (includes): Likewise.
30590         * doc/posix-functions/strsignal.texi (strsignal): Document the
30591         bug.
30592         Reported by Nelson H. F. Beebe.
30593
30594         gnulib-tool: work with NetBSD /bin/sh
30595         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30596         (func_get_description, func_get_comment, func_get_status)
30597         (func_get_notice, func_get_applicability, func_get_filelist)
30598         (func_get_dependencies, func_get_autoconf_early_snippet)
30599         (func_get_autoconf_snippet, func_get_automake_snippet)
30600         (func_get_include_directive, func_get_link_directive)
30601         (func_get_license, func_get_maintainer, func_import): Avoid
30602         shell syntax errors from parsing syntax extensions.
30603
30604 2010-09-09  Bruno Haible  <bruno@clisp.org>
30605
30606         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30607         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30608         a reliable way to determine whether the 'alias' command works.
30609
30610 2010-09-08  Jim Meyering  <meyering@redhat.com>
30611
30612         init.sh: penalize a set-x-impaired shell; don't disqualify it
30613         * tests/init.sh: Too many shells corrupt application stderr when
30614         you set -x, so we can't afford to disqualify them, since at least
30615         on Irix-6.5, that would disqualify all bourne shells.
30616         Instead, use a two-pass approach.
30617         On the first pass, try to find a shell that meets the stricter
30618         condition that set -x does not corrupt stderr.
30619         If no shell meets the stricter condition, retest each candidate
30620         shell, but without that extra condition.  Finally, when
30621         VERBOSE=yes is requested and set -x might cause trouble, simply
30622         issue a warning and refrain from enabling debug output.
30623
30624 2010-09-08  Eric Blake  <eblake@redhat.com>
30625
30626         unsetenv: fix OpenBSD bug
30627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30628         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30629         documentation.
30630         Reported by Jim Meyering.
30631
30632         strtod: work around IRIX 6.5 bug
30633         * lib/strtod.c (strtod): Reparse number on shorter string if
30634         exponent parse was invalid.
30635         * tests/test-strtod.c (main): Add check for "0x1p 2".
30636         Reported by Tom G. Christensen.
30637
30638         getopt: optimize previous patch
30639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30640         empty variable.  Speed up awk script.
30641         Reported by Paolo Bonzini.
30642
30643 2010-09-08  Jim Meyering  <meyering@redhat.com>
30644
30645         test.sh: disqualify shells for which set -x corrupts stderr
30646         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30647         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30648         appear in stderr output.  For example, this command:
30649             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30650         prints "P=1" on those two systems:
30651
30652 2010-09-08  Bruno Haible  <bruno@clisp.org>
30653
30654         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30655         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30656         commands, because some shells ignore redirections when there is an
30657         error in the command lookup.
30658         Reported by Eric Blake.
30659
30660 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30661
30662         * lib/regex.h: Fix a mention of `regex_compile' (should be
30663         `re_compile_pattern').
30664         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30665         (re_set_registers): Correct name of parameter in comment.
30666
30667         * doc/regex.texi: Add documentation for missing syntax flags.
30668         Remove commented-out documentation of defunct syntax option
30669         RE_NO_EMPTY_ALTS.
30670         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30671         Add documentation of re_set_registers.
30672         Document trick to re-use a pattern buffer by setting fastmap manually.
30673         Update documentation of struct re_pattern_buffer per public members.
30674         Uncomment documentation of equivalence class operators and
30675         collating symbol operators, since they are now implemented,
30676         Explain leftmost-longest matching in relation to alternatives.
30677         Tidy documentation of substring matching.
30678         Remove POSIX documentation, which is done better in
30679         glibc, and refer the reader there. Keep BSD API documentation, as
30680         that is not readily available elsewhere.
30681
30682 2010-09-07  Eric Blake  <eblake@redhat.com>
30683
30684         getopt: handle POSIXLY_CORRECT set but not exported
30685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30686         export state of POSIXLY_CORRECT, due to bash set -o posix.
30687         Reported by Dustin J. Mitchell.
30688
30689 2010-09-05  Bruno Haible  <bruno@clisp.org>
30690
30691         gnulib-tool: Highlight the changed options.
30692         * gnulib-tool (func_usage): Display the --import, --add-import,
30693         --remove-import explanations in bold font.
30694
30695 2010-09-06  Karl Berry  <karl@gnu.org>
30696
30697         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30698
30699 2010-09-05  Bruno Haible  <bruno@clisp.org>
30700
30701         uniwidth/width: Update comment.
30702         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30703         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30704
30705 2010-09-05  Bruno Haible  <bruno@clisp.org>
30706
30707         isinf, isnan: Relax license.
30708         * modules/isinf (License): Change from GPL to LGPL, with consent from
30709         Ben Pfaff.
30710         * modules/isnan (License): Likewise.
30711         Requested by Ludovic Courtès.
30712
30713 2010-09-04  Bruno Haible  <bruno@clisp.org>
30714
30715         gnulib-tool: Help migration from --import to --add-import or --update.
30716         * gnulib-tool: Emit a verbose error message when --import is used
30717         without any module name.
30718
30719 2010-09-04  Bruno Haible  <bruno@clisp.org>
30720
30721         Update doc about gnulib-tool.
30722         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30723         'gnulib-tool --update' in more detail.
30724         Reported by Eric Blake.
30725
30726 2010-09-04  Bruno Haible  <bruno@clisp.org>
30727
30728         gnulib-tool: Change --import. New options --add/remove-import.
30729         * gnulib-tool: New options --add-import, --remove-import.
30730         (func_usage): Document them.
30731         (have_associative): Define always.
30732         (func_import): In import mode, don't merge the specified settings with
30733         the cached settings. Implement remove-import mode.
30734         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30735         Explain when to use them versus --import.
30736         (Simple update): Use --add-import instead of --import.
30737         * NEWS: Mention the change.
30738
30739 2010-09-04  Bruno Haible  <bruno@clisp.org>
30740
30741         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30742         separate gnulib.mk.
30743
30744 2010-09-04  Bruno Haible  <bruno@clisp.org>
30745
30746         gnulib-tool: Don't talk about CVS any more.
30747         * gnulib-tool (func_usage, func_import): Write "version control"
30748         instead of CVS.
30749
30750 2010-09-04  Jim Meyering  <meyering@redhat.com>
30751
30752         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30753         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30754         false positives (whose names may be ill-chosen) when searching
30755         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30756         would cause a false-positive.
30757
30758         avoid coreutils "make distcheck" failure
30759         Coreutils tests with an absolute build directory name that contains
30760         a space.  Not quoting this directory name caused a failure.
30761         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30762         * tests/test-vc-list-files-cvs.sh: Likewise.
30763
30764 2010-09-04  Bruno Haible  <bruno@clisp.org>
30765
30766         gnulib-tool: Avoid error when run in a package without Makefile.am.
30767         * gnulib-tool: When collecting the m4dirs in a package that does not
30768         have a Makefile.am, eliminate those directories that contain no
30769         gnulib-cache.m4. Fix expression that counts these directories.
30770
30771 2010-09-04  Bruno Haible  <bruno@clisp.org>
30772
30773         update-copyright test: Improve output when perl is missing or too old.
30774         * tests/test-update-copyright.sh: Move test of Perl version down after
30775         the test whether Perl exists. Provide an explanation relating Perl's
30776         error message to Automake's SKIP: message.
30777
30778 2010-09-04  Bruno Haible  <bruno@clisp.org>
30779
30780         Don't augment PATH in TESTS_ENVIRONMENT.
30781         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30782         set abs_aux_dir instead of augmenting PATH.
30783         * modules/vc-list-files-tests (Makefile.am): Likewise.
30784         * tests/test-update-copyright.sh: Augment PATH here.
30785         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30786         path_prepend_.
30787         * tests/test-vc-list-files-git.sh: Likewise.
30788
30789 2010-09-04  Jim Meyering  <meyering@redhat.com>
30790
30791         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30792         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30793
30794 2010-09-04  Bruno Haible  <bruno@clisp.org>
30795
30796         strdup: Fix compilation error in C++ mode.
30797         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30798         the macro.
30799
30800 2010-09-04  Bruno Haible  <bruno@clisp.org>
30801
30802         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30803         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30804         macro into a function.
30805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30806
30807 2010-09-04  Bruno Haible  <bruno@clisp.org>
30808
30809         Set PATH_SEPARATOR the same way autoconf does.
30810         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30811         the value of PATH_SEPARATOR the same way autoconf-generated configure
30812         scripts do.
30813         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30814         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30815
30816 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30817
30818         Set PATH_SEPARATOR the same way autoconf does.
30819         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30820         the same way autoconf-generated configure scripts do.
30821         * posix-modules: Likewise.
30822
30823 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30824
30825         hash: fix safe_hasher const typo
30826         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30827         const; otherwise, there is a type error later.
30828
30829 2010-09-02  Jim Meyering  <meyering@redhat.com>
30830
30831         test-update-copyright.sh: require perl 5.8.0
30832         * tests/test-update-copyright.sh: Require 5.8.0,
30833         which Tom G. Christensen has confirmed is adequate,
30834         while 5.6.1 is not.
30835
30836 2010-09-02  Eric Blake  <eblake@redhat.com>
30837
30838         tests: init.sh improvements for re-exec'ing with zsh
30839         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30840         -vx through shell re-exec.
30841         Reported by Tom G. Christensen.
30842
30843         wctype: fix typo in previous commit
30844         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30845         Reported by Ludovic Courtès.
30846
30847 2010-09-02  Jim Meyering  <meyering@redhat.com>
30848
30849         test-update-copyright.sh: skip test if Perl is too old
30850         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30851         Reported by Tom G. Christensen.
30852
30853 2010-09-02  Bruno Haible  <bruno@clisp.org>
30854
30855         wctype: Avoid compilation error on IRIX 6.5.30.
30856         * lib/wctype.in.h (iswblank): Declare with a replacement if
30857         REPLACE_ISWBLANK is set.
30858         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30859         declared. Set REPLACE_ISWBLANK.
30860         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30861         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30862         * doc/posix-headers/wctype.texi: Likewise.
30863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30864
30865 2010-09-01  Bruno Haible  <bruno@clisp.org>
30866
30867         New module 'socketlib'.
30868         * modules/socketlib: New file.
30869         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30870         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30871         * modules/sockets (Depends-on): Add socketlib.
30872         Suggested by Sam Steingold <sds@gnu.org>.
30873
30874 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30875
30876         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30877
30878         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30879         when one needs search access to a directory but not read access.
30880         On systems where it is available, it works in some cases where
30881         O_RDONLY does not, namely on directories that are searchable but
30882         not readable, and which need only to be searchable.  If O_SEARCH
30883         is not available, fall back to the traditional method of using
30884         O_RDONLY.
30885
30886         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30887         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30888         when opening a directory that needs only to be searchable.
30889         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30890         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30891         * lib/openat-proc.c (openat_proc_name): Likewise.
30892         * lib/openat.c (openat_needs_fchdir): Likewise.
30893         * lib/save-cwd.c (save_cwd): Likewise.
30894         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30895
30896 2010-08-28  Bruno Haible  <bruno@clisp.org>
30897
30898         New module 'host-cpu-c-abi'.
30899         * modules/host-cpu-c-abi: New file.
30900         * m4/host-cpu-c-abi.m4: New file, based on part of
30901         clisp/src/m4/general.m4.
30902         Requested by Sam Steingold <sds@gnu.org>.
30903
30904 2010-08-31  Eric Blake  <eblake@redhat.com>
30905         and Jim Meyering  <meyering@redhat.com>
30906
30907         hash: factor, and guard against misbehaving hasher function
30908         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30909         of table->hasher's return value.  Also protect against a hash value
30910         so large that adding it to table->bucket results in a NULL pointer.
30911         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30912         Use it in place of open-coded check-and-abort.
30913
30914 2010-08-30  Bruno Haible  <bruno@clisp.org>
30915
30916         hash: silence spurious clang warning
30917         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30918         Reported by Eric Blake.
30919
30920 2010-08-30  Eric Blake  <eblake@redhat.com>
30921
30922         strstr, memmem, strcasestr: avoid leaked shell message
30923         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30924         FreeBSD.
30925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30927
30928         tests: silence clang warning
30929         * tests/test-malloca.c (do_allocation): Avoid dead store.
30930
30931 2010-08-29  Bruno Haible  <bruno@clisp.org>
30932
30933         gettext: Fix recent mistake.
30934         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30935
30936 2010-08-29  Bruno Haible  <bruno@clisp.org>
30937
30938         selinux-h: Offer a --without-selinux option.
30939         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30940         --without-selinux was specified, skip all tests and define
30941         HAVE_SELINUX_SELINUX_H to 0.
30942         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30943         set LIB_SELINUX to empty.
30944         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30945         gl_LIBSELINUX. If --without-selinux was specified, replace
30946         selinux/context.h.
30947         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30948
30949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30950             Bruno Haible  <bruno@clisp.org>
30951
30952         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30953         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30954         of HAVE_REALLOC.
30955         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30956         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30957         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30958         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30959
30960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30961             Bruno Haible  <bruno@clisp.org>
30962
30963         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30964         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30965         HAVE_CALLOC.
30966         * lib/xmalloc.c: Update accordingly.
30967         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30968         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30969         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30970
30971 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30972             Bruno Haible  <bruno@clisp.org>
30973
30974         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30975         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30976         HAVE_MALLOC.
30977         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30978         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30979         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30980
30981 2010-08-29  Bruno Haible  <bruno@clisp.org>
30982
30983         Update modules list.
30984         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30985         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30986         (String handling <string.h>): Add astrxfrm.
30987         (File system functions): Add readlinkat.
30988
30989 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30990
30991         Tests for module 'realloc-gnu'.
30992         * modules/realloc-gnu-tests: New file.
30993         * tests/test-realloc-gnu.c: New file.
30994
30995         Tests for module 'calloc-gnu'.
30996         * modules/calloc-gnu-tests: New file.
30997         * tests/test-calloc-gnu.c: New file.
30998
30999         Tests for module 'malloc-gnu'.
31000         * modules/malloc-gnu-tests: New file.
31001         * tests/test-malloc-gnu.c: New file.
31002
31003 2010-08-28  Bruno Haible  <bruno@clisp.org>
31004
31005         Rename module 'realloc' -> 'realloc-gnu'.
31006         * modules/realloc-gnu: New file, copied from modules/realloc.
31007         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31008         obsolete.
31009         * modules/mgetgroups (Depends-on): Update.
31010         * doc/posix-functions/realloc.texi: Update.
31011         * NEWS: Mention the change.
31012
31013         Rename module 'calloc' -> 'calloc-gnu'.
31014         * modules/calloc-gnu: New file, copied from modules/calloc.
31015         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31016         obsolete.
31017         * doc/posix-functions/calloc.texi: Update.
31018         * NEWS: Mention the change.
31019
31020         Rename module 'malloc' -> 'malloc-gnu'.
31021         * modules/malloc-gnu: New file, copied from modules/malloc.
31022         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31023         obsolete.
31024         * modules/argp (Depends-on): Update.
31025         * modules/regex (Depends-on): Update.
31026         * doc/posix-functions/malloc.texi: Update.
31027         * NEWS: Mention the change.
31028
31029 2010-08-28  Eric Blake  <eblake@redhat.com>
31030
31031         pread, pwrite: add missing dependency
31032         * modules/pread (Depends-on): Add extensions.
31033         * modules/pwrite (Depends-on): Likewise.
31034
31035 2010-08-28  Bruno Haible  <bruno@clisp.org>
31036
31037         unistr/u*-strchr: Fix tests dependencies.
31038         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31039         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31040         Reported by Ian Beckwith <ianb@erislabs.net>.
31041
31042 2010-08-28  Bruno Haible  <bruno@clisp.org>
31043
31044         read-file: Don't occupy too much unused memory.
31045         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31046
31047 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31048             Eric Blake  <eblake@redhat.com>
31049             Bruno Haible  <bruno@clisp.org>
31050
31051         read-file: Avoid memory reallocations with regular files.
31052         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31053         (fread_file): With regular files, use the remaining length as the
31054         initial buffer size.  Check against overflow.
31055         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31056         sys_stat.
31057
31058 2010-08-28  Bruno Haible  <bruno@clisp.org>
31059
31060         ftello: Relax license.
31061         * modules/ftello (License): Relax to LGPLv2+.
31062         Reported by Eric Blake.
31063
31064 2010-08-28  Bruno Haible  <bruno@clisp.org>
31065
31066         Avoid relocwrapper link errors due to gnulib replacement functions.
31067         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31068         function.
31069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31070
31071 2010-08-28  Bruno Haible  <bruno@clisp.org>
31072
31073         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31074         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31075         defined.
31076         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31077         Suggested by Eric Blake.
31078
31079 2010-08-28  Bruno Haible  <bruno@clisp.org>
31080
31081         sys_socket, netdb: Ensure socklen_t gets defined.
31082         * modules/sys_socket (Depends-on): Add socklen.
31083         * modules/netdb (Depends-on): Likewise.
31084         * modules/getaddrinfo (Depends-on): Remove socklen.
31085         * modules/getsockopt (Depends-on): Likewise.
31086         * modules/setsockopt (Depends-on): Likewise.
31087         * tests/test-sys_socket.c: Check that socklen_t is defined.
31088         * tests/test-netdb.c: Likewise.
31089         * m4/socklen.m4: Update comments.
31090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31091
31092 2010-08-27  Eric Blake  <eblake@redhat.com>
31093
31094         login_tty: add missing dependency
31095         * modules/login_tty (Depends-on): Add pty.
31096
31097 2010-08-26  Eric Blake  <eblake@redhat.com>
31098
31099         lib-symbol-versions: fix m4 quoting
31100         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31101         format for AC_LINK_IFELSE.
31102
31103         glob: fix compile test
31104         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31105
31106         btowc: fix missing file
31107         * modules/btowc (Files): Also ship locale-fr.m4.
31108
31109         lseek: fix link test
31110         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31111         AC_LINK_IFELSE.
31112
31113         include_next: silence autoconf 2.68 warning
31114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31115         AC_COMPILE_IFELSE as special.
31116         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31117         autoconf < 2.68.
31118
31119         acl: fix compilation test
31120         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31121         AC_COMPILE_IFELSE.
31122
31123 2010-08-26  Bruno Haible  <bruno@clisp.org>
31124
31125         Modernize AC_TRY_RUN invocations.
31126         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31127         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31128         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31129         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31131         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31134         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31137         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31141         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31142         gl_MBRLEN_NUL_RETVAL): Likewise.
31143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31145         Likewise.
31146         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31147         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31148         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31149         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31150         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31151         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31152         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31153         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31154         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31155         Likewise.
31156         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31157         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31159         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31161         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31162         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31163         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31164         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31166
31167 2010-08-26  Bruno Haible  <bruno@clisp.org>
31168
31169         Modernize AC_TRY_LINK invocations.
31170         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31171         AC_TRY_LINK.
31172         * m4/argp.m4 (gl_ARGP): Likewise.
31173         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31174         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31175         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31177         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31178         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31179         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31180         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31181         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31183         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31184         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31185         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31186         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31187         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31188         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31189         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31190         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31191         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31192         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31193         Likewise.
31194         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31195         Likewise.
31196         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31197         Likewise.
31198         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31200         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31201         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31202         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31203         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31204         * m4/servent.m4 (gl_SERVENT): Likewise.
31205         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31206         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31207         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31208         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31209         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31210         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31211         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31213         * modules/tsearch-tests (configure.ac): Likewise.
31214
31215 2010-08-26  Bruno Haible  <bruno@clisp.org>
31216
31217         Modernize AC_TRY_COMPILE invocations.
31218         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31219         AC_TRY_COMPILE.
31220         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31221         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31222         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31223         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31224         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31225         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31226         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31227         * m4/lock.m4 (gl_LOCK): Likewise.
31228         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31229         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31230         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31232         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31233         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31234         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31235         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31236         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31237         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31238         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31239         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31240         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31241         extraneous semicolon.
31242
31243 2010-08-26  Jim Meyering  <meyering@redhat.com>
31244
31245         stat-time: relax license LGPL
31246         * modules/stat-time (License): Change from GPL to LGPL,
31247         with consent from all contributors, for use in libguile.
31248         Requested by Ludovic Courtès.
31249
31250 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31251
31252         poll: return immediately on POLLHUP.
31253         * lib/poll.c (poll): Always set timeout before wait_timeout is
31254         computed.
31255
31256 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31257
31258         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31259         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31260         rmdir ("dir/.//"), unlinkat.
31261
31262 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31263
31264         stdbool: avoid spurious failure with modern xlc
31265         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31266
31267 2010-08-24  Bruno Haible  <bruno@clisp.org>
31268
31269         getloadavg: simplify code
31270         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31271         gl_have_func. Update comments.
31272
31273 2010-08-24  Eric Blake  <eblake@redhat.com>
31274
31275         getloadavg: don't define SVR4 on cygwin
31276         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31277         only define SVR4 when -lkvm is required.
31278         Reported by Yaakov Selkowitz.
31279
31280 2010-08-24  Bruno Haible  <bruno@clisp.org>
31281
31282         priv-set: fix comment
31283         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31284
31285 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31286
31287         priv-set: fix comments
31288         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31289         to match code, as suggested by David Bartley in:
31290         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31291
31292 2010-08-23  Eric Blake  <eblake@redhat.com>
31293
31294         stdbool: avoid rejecting clang
31295         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31296         * tests/test-stdbool.c: Enable more tests if using the system
31297         <stdbool.h> instead of the gnulib replacement.
31298         (main): Move xlc bug test to a runtime test for all compilers.
31299         Reported by Anders Kaseorg.
31300
31301         argz: fix shell quoting issue
31302         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31303         Reported by Charles Wilson.
31304
31305 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31306             Erik Faye-Lund <kusmabite@gmail.com>
31307
31308         poll, select: handle ERROR_BROKEN_PIPE.
31309         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31310         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31311         * lib/select.c (win32_compute_revents): Do not mark a pipe
31312         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31313
31314 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31315
31316         fts: allow compilation with C++
31317         * lib/fts_.h: Specify extern "C" linkage with C++.
31318
31319 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31320
31321         Fix gnulib-tool sed script de-commentation for AIX sed.
31322         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31323         sed.
31324
31325 2010-08-17  Eric Blake  <eblake@redhat.com>
31326
31327         test-stddef: test for (some) offsetof bugs
31328         * tests/test-stddef.c: Enhance test to ensure correct type of
31329         offsetof.
31330         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31331         that we are not fixing at this time.
31332
31333 2010-08-15  Bruno Haible  <bruno@clisp.org>
31334
31335         stpncpy: Allow stpncpy to be defined as a macro.
31336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31337         if it's already correctly declared.
31338         * lib/string.in.h (stpncpy): Undefine before redefining.
31339         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31340
31341 2010-08-14  Bruno Haible  <bruno@clisp.org>
31342
31343         Rename module 'memxfrm' to 'amemxfrm'.
31344         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31345         (amemxfrm): Renamed from memxfrm.
31346         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31347         (amemxfrm): Renamed from memxfrm.
31348         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31349         * NEWS: Mention the change.
31350         * MODULES.html.sh (String handling <string.h>): Update.
31351         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31352         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31353         * lib/unicase/u16-casexfrm.c: Likewise.
31354         * lib/unicase/u32-casexfrm.c: Likewise.
31355         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31356         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31357         * lib/uninorm/u16-normxfrm.c: Likewise.
31358         * lib/uninorm/u32-normxfrm.c: Likewise.
31359         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31360         memxfrm.
31361         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31362         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31363         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31364         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31365         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31366         Suggested by Paul Eggert.
31367
31368 2010-08-14  Bruno Haible  <bruno@clisp.org>
31369
31370         Tests for module 'astrxfrm'.
31371         * modules/astrxfrm-tests: New file.
31372         * tests/test-astrxfrm.c: New file.
31373
31374         New module 'astrxfrm'.
31375         * lib/astrxfrm.h: New file.
31376         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31377         * modules/astrxfrm: New file.
31378
31379 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31380
31381         regex: Tweak doc.
31382         * doc/regex.texi (Overview): Don't mention regex.c.
31383         (GNU Regular Expression Compiling): Likewise.
31384         (Match-end-of-line Operator): Mention 'not_eol'.
31385
31386 2010-08-14  Brian Gough  <bjg@gnu.org>
31387             Bruno Haible  <bruno@clisp.org>
31388
31389         git-merge-changelog: add doc relating to use with bzr and hg.
31390         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31391
31392 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31393
31394         pthread: fix pthread.h creation for srcdir != builddir
31395         * modules/pthread (Makefile.am): Fix the rule to work also in a
31396         non-srcdir build.
31397
31398 2010-08-13  Karl Berry  <karl@gnu.org>
31399
31400         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31401         * doc/posix-*/*: force line break before @url of POSIX
31402         specifications.
31403         Suggested by Werner Lemberg.
31404
31405 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31406
31407         strtod: fix const diagnostic
31408         * lib/strtod.c (strtod): Don't assign const char * to char *,
31409         as this elicits a warning from GCC when warnings are enabled.
31410
31411 2010-08-10  Pádraig Brady <P@draigbrady.com>
31412         and Eric Blake  <eblake@redhat.com>
31413
31414         copy-acl: ignore ENOTSUP on HP-UX
31415         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31416         so that it is available for HP-UX.
31417         * lib/copy-acl.c (qcopy_acl): Use it.
31418         Reported by Patrick M. Callahan.
31419
31420 2010-08-10  Eric Blake  <eblake@redhat.com>
31421
31422         open, chown: relax license
31423         * modules/open (License): Change to LGPLv2+, with consent by all
31424         authors, for use in augeas.
31425         * modules/chown (License): Likewise.
31426         * modules/lchown (Likewise): Likewise.
31427         Requested by Adam Stokes.
31428
31429 2010-08-09  Karl Berry  <karl@gnu.org>
31430
31431         * build-aux/ar-lib: new file, import from Automake.
31432         * config/srclist.txt: autocheck for updates.
31433
31434 2010-08-09  Eric Blake  <eblake@redhat.com>
31435
31436         readlinkat: adjust client modules
31437         * modules/areadlinkat (Depends-on): Use readlinkat, not
31438         symlinkat.
31439         * modules/areadlinkat-with-size (Depends-on): Likewise.
31440
31441         mknod: be more vocal about danger of running tests as root
31442         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31443         root, since that is just asking for problems.
31444         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31445
31446         readlinkat: split into its own module
31447         * modules/symlinkat: Split readlinkat...
31448         * modules/readlinkat: ...into separate module.
31449         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31450         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31451         * lib/symlinkat.c (readlinkat): Move...
31452         * lib/readlinkat.c: ...into new file.
31453         * modules/symlinkat-tests: Split readlinkat test...
31454         * modules/readlinkat-tests: ...into separate module.
31455         * tests/test-symlinkat.c: Split...
31456         * tests/test-readlinkat.c: ...into new file.
31457         * NEWS: Document the split.
31458         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31459         * lib/unistd.in.h (readlinkat): Likewise.
31460         Suggested by Bruno Haible.
31461
31462 2010-08-08  Bruno Haible  <bruno@clisp.org>
31463
31464         memxfrm: Speed up.
31465         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31466         that usually only one call to strxfrm is necessary for each string
31467         part.
31468         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31469
31470 2010-08-07  Karl Berry  <karl@gnu.org>
31471
31472         * doc/posix-headers/limits.texi,
31473         * doc/posix-functions/malloc.texi,
31474         * doc/posix-functions/strsignal.texi: missing @item.
31475         * doc/ld-version-script.texi: spurious leading i.
31476         * doc/regex.texi (Interval Operators): no commas inside @var.
31477
31478 2010-08-01  Bruno Haible  <bruno@clisp.org>
31479
31480         Integrate the regex documentation.
31481         * doc/gnulib.texi: Define 'cn' index.
31482         (Regular expressions): New a chapter that includes regex.texi and
31483         regexprops-generic.texi.
31484         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31485         syntax.
31486
31487         Whitespace cleanup.
31488         * doc/regex.texi: Remove trailing spaces.
31489
31490         Add regex documentation.
31491         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31492         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31493         Written by Kathy A. Hargreaves and Karl Berry.
31494
31495 2010-08-01  Bruno Haible  <bruno@clisp.org>
31496
31497         link: Update documentation.
31498         * doc/posix-functions/link.texi: Update regarding Solaris.
31499
31500 2010-07-31  Bruno Haible  <bruno@clisp.org>
31501
31502         Update modules list.
31503         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31504         (String handling <string.h>): Add memcmp2, memxfrm.
31505         (Container data structures): Add xlist, xsublist, xoset.
31506         (Core language properties): Add alignof, unused-parameter.
31507         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31508         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31509         (Unibyte characters <ctype.h>): New section.
31510         (String handling <string.h>): New section.
31511         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31512         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31513         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31514         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31515         tan, tanh, tanl, y0, y1, yn.
31516         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31517         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31518         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31519         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31520         unlockpt, vdprintf, vdprintf-posix.
31521         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31522         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31523         xconcat-filename.
31524         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31525         getdtablesize, pipe2, pipe2-safer.
31526         (Security): New section.
31527         (Networking functions): Add accept4.
31528         (Signal handling): Add sigpipe.
31529         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31530         mbmemcasecoll.
31531         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31532         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31533         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31534         pipe-filter-ii.
31535         (Misc): Add argp-version-etc, login_tty, parse-duration.
31536
31537 2010-07-31  Bruno Haible  <bruno@clisp.org>
31538
31539         Improve doc in MODULES.html.
31540         * modules/linkat (Description): Add the word "function".
31541         * modules/mkfifo (Description): Likewise.
31542         * modules/mknod (Description): Likewise.
31543         * modules/remove (Description): Likewise.
31544         * modules/renameat (Description): Likewise.
31545         * modules/stat (Description): Likewise.
31546         * modules/symlink (Description): Likewise.
31547         * modules/unlink (Description): Likewise.
31548
31549 2010-07-31  Bruno Haible  <bruno@clisp.org>
31550
31551         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31552         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31553         option --enable/disable-c++ instead of --enable/disable-cxx.
31554         * NEWS: Mention the change.
31555
31556 2010-07-31  Bruno Haible  <bruno@clisp.org>
31557
31558         readlink, areadlink: Relax test a bit.
31559         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31560         alternative to ENOTDIR.
31561         * tests/test-areadlink.h (test_areadlink): Likewise.
31562         Reported by Rainer Tammer.
31563
31564 2010-07-31  Bruno Haible  <bruno@clisp.org>
31565
31566         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31567         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31568         character, perform the search using U_STRCHR.
31569         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31570         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31571         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31572         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31573         Suggested by Paolo Bonzini.
31574
31575 2010-07-31  Bruno Haible  <bruno@clisp.org>
31576
31577         unistr/u*-strstr: Fix dependencies.
31578         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31579         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31580         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31581
31582 2010-07-31  Bruno Haible  <bruno@clisp.org>
31583
31584         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31585         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31586         the beginning of the loop.
31587         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31588         cases in 'switch' statement.
31589
31590         unistr/u8-strchr: Fix several bugs.
31591         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31592         the string. When not found, return NULL, not a pointer near the end.
31593
31594         More tests for unistr/u8-strchr.
31595         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31596         that the function does not read past the first occurrence of the byte
31597         being searched.
31598         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31599         * tests/unistr/test-u16-strchr.c (main): New function.
31600         * tests/unistr/test-u32-strchr.c (main): New function.
31601
31602 2010-07-31  Bruno Haible  <bruno@clisp.org>
31603
31604         posix-modules: Ignore backup files of documentation files.
31605         * posix-modules: grep only through files named *.texi.
31606
31607 2010-07-31  Bruno Haible  <bruno@clisp.org>
31608
31609         symlinkat: Fix documentation.
31610         * doc/posix-functions/readlinkat.texi: Fix module name.
31611
31612 2010-07-31  Bruno Haible  <bruno@clisp.org>
31613
31614         fchownat: Replace also when chown has the trailing slash bug.
31615         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31616         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31617         introduced on 2010-04-10.
31618         Reported by Rainer Tammer.
31619
31620 2010-07-31  Bruno Haible  <bruno@clisp.org>
31621
31622         linkat: Work around AIX 7.1 bug.
31623         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31624         whether linkat handles trailing slash correctly. If not, replace linkat
31625         and define LINKAT_TRAILING_SLASH_BUG.
31626         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31627         check whether (fd1,file1) points to a directory if file1 or file2 ends
31628         in a slash. Code taken from lib/link.c.
31629         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31630         Reported by Rainer Tammer.
31631
31632 2010-07-31  Bruno Haible  <bruno@clisp.org>
31633
31634         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31635         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31636         This disables an xlc optimization that was causing wrong test results.
31637         Reported by Rainer Tammer.
31638
31639 2010-07-31  Bruno Haible  <bruno@clisp.org>
31640
31641         iconv: Work around AIX 6.1..7.1 bug.
31642         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31643         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31644         cross-compiling, guess no on all versions of AIX.
31645         Reported by Rainer Tammer.
31646
31647 2010-07-31  Bruno Haible  <bruno@clisp.org>
31648
31649         readlink: Relax test a bit.
31650         * tests/test-readlink.h (test_readlink): Allow different errno value
31651         when readlink is called with a file name that ends in / and refers to
31652         a file.
31653         Suggested by Eric Blake.
31654         Reported by Rainer Tammer.
31655
31656 2010-07-31  Bruno Haible  <bruno@clisp.org>
31657
31658         copysign: Does not require -lm on glibc systems.
31659         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31660         gl_COMMON_DOUBLE_MATHFUNC.
31661         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31662
31663 2010-07-31  Bruno Haible  <bruno@clisp.org>
31664
31665         duplocale: Work around AIX 7.1 bug.
31666         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31667         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31668         * lib/duplocale.c (rpl_duplocale): Update comment.
31669         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31670         Reported by Rainer Tammer.
31671
31672 2010-07-30  Bruno Haible  <bruno@clisp.org>
31673
31674         dirfd: Avoid link error on AIX 7.1.
31675         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31676         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31677         exist, set REPLACE_DIRFD.
31678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31679         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31680         * doc/posix-functions/dirfd.texi: Update.
31681         Reported by Rainer Tammer.
31682
31683 2010-07-30  Eric Blake  <eblake@redhat.com>
31684
31685         strtod: next round of AIX fixes
31686         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31687         exponent.
31688         * tests/test-strtod.c (main): Enhance tests.
31689         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31690         Reported by Rainer Tammer.
31691
31692         futimens: fix configure check
31693         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31694         Reported by Bruno Haible.
31695
31696 2010-07-30  Bruno Haible  <bruno@clisp.org>
31697
31698         getline: Update regarding AIX.
31699         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31700         Reported by Rainer Tammer.
31701
31702 2010-07-30  Bruno Haible  <bruno@clisp.org>
31703
31704         wcwidth: Drop replacement on AIX 7.
31705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31706         AIX 7.
31707         Reported by Rainer Tammer.
31708
31709 2010-07-30  Bruno Haible  <bruno@clisp.org>
31710
31711         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31713         a 'char *'.
31714         Reported by Rainer Tammer.
31715
31716 2010-07-30  Bruno Haible  <bruno@clisp.org>
31717
31718         unlink: Update regarding AIX.
31719         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31720         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31721         Reported by Rainer Tammer.
31722
31723 2010-07-30  Bruno Haible  <bruno@clisp.org>
31724
31725         symlink: Update regarding AIX.
31726         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31727         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31728         Reported by Rainer Tammer.
31729
31730 2010-07-30  Bruno Haible  <bruno@clisp.org>
31731
31732         strndup: Update regarding AIX.
31733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31734         AIX 7.
31735         Reported by Rainer Tammer.
31736
31737 2010-07-30  Bruno Haible  <bruno@clisp.org>
31738
31739         stat: Update regarding AIX.
31740         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31741         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31742         Reported by Rainer Tammer.
31743
31744 2010-07-30  Bruno Haible  <bruno@clisp.org>
31745
31746         truncl: Fix autoconf test.
31747         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31748         whether truncl works.
31749         Reported by Rainer Tammer.
31750
31751 2010-07-30  Bruno Haible  <bruno@clisp.org>
31752
31753         round: Update regarding AIX.
31754         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31755         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31756         Reported by Rainer Tammer.
31757
31758 2010-07-30  Bruno Haible  <bruno@clisp.org>
31759
31760         rename: Update regarding AIX.
31761         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31762         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31763         Reported by Rainer Tammer.
31764
31765 2010-07-30  Bruno Haible  <bruno@clisp.org>
31766
31767         printf.m4: Update regarding AIX.
31768         * m4/printf.m4: Update comments regarding AIX.
31769         Reported by Rainer Tammer.
31770
31771 2010-07-30  Bruno Haible  <bruno@clisp.org>
31772
31773         iconv: Update regarding AIX.
31774         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31775         AIX 7.
31776         Reported by Rainer Tammer.
31777
31778 2010-07-30  Bruno Haible  <bruno@clisp.org>
31779
31780         getopt: Update regarding AIX.
31781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31782         no on AIX.
31783         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31784         Reported by Rainer Tammer.
31785
31786 2010-07-30  Bruno Haible  <bruno@clisp.org>
31787
31788         ldexpl; Update regarding AIX.
31789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31790         on AIX 7.
31791         Reported by Rainer Tammer.
31792
31793 2010-07-30  Bruno Haible  <bruno@clisp.org>
31794
31795         frexpl: Update regarding AIX.
31796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31797         on AIX 7.
31798         Reported by Rainer Tammer.
31799
31800 2010-07-30  Bruno Haible  <bruno@clisp.org>
31801
31802         open, fopen: Update regarding AIX.
31803         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31805         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31806         * doc/posix-functions/fopen.texi: Likewise.
31807         Reported by Rainer Tammer.
31808
31809 2010-07-30  Bruno Haible  <bruno@clisp.org>
31810
31811         chown: Update doc regarding AIX.
31812         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31813         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31814         Reported by Rainer Tammer.
31815
31816 2010-07-30  Eric Blake  <eblake@redhat.com>
31817
31818         strtod: fix bug in replacement function on AIX
31819         * lib/strtod.c (strtod): Special case broken "0x" parse in
31820         underlying strtod.
31821         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31822         * doc/posix-functions/strtod.texi (strtod): Likewise.
31823         Reported by Rainer Tammer.
31824
31825 2010-07-30  Bruno Haible  <bruno@clisp.org>
31826
31827         mbrlen: Fix cross-compilation guess for AIX.
31828         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31829         guess. Leftover from 2008-12-22.
31830
31831 2010-07-30  Bruno Haible  <bruno@clisp.org>
31832
31833         mbrtowc: Fix cross-compilation guess for AIX.
31834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31835         guess. Leftover from 2008-12-21.
31836
31837 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31838
31839         init.sh: work around trap limitation of some shells
31840         * tests/init.sh (setup_): Move exit trap outside of shell function.
31841
31842 2010-07-29  Eric Blake  <eblake@redhat.com>
31843
31844         strtod: aid debugging
31845         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31846         understanding why strtod is rejected.
31847
31848 2010-07-28  Bruno Haible  <bruno@clisp.org>
31849
31850         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31851         * lib/unistr/u8-chr.c: Include <string.h>.
31852         * tests/unistr/test-u8-chr.c: Likewise.
31853         * tests/unistr/test-u16-chr.c: Likewise.
31854         * tests/unistr/test-u32-chr.c: Likewise.
31855         * tests/unistr/test-u8-strchr.c: Likewise.
31856         * tests/unistr/test-u16-strchr.c: Likewise.
31857         * tests/unistr/test-u32-strchr.c: Likewise.
31858         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31859         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31860         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31861         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31862
31863 2010-07-28  Bruno Haible  <bruno@clisp.org>
31864
31865         Use spaces for indentation, not tabs.
31866         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31867
31868 2010-07-27  Bruno Haible  <bruno@clisp.org>
31869
31870         mbspcasecmp: Fix function specification.
31871         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31872         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31873         Reported by Eric Blake <eblake@redhat.com>.
31874
31875 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31876
31877         timespec: use cast and not conditional, as truncation isn't possible
31878         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31879         instead of a conditional.  Comment about the situation in more detail.
31880         This undoes most of the 2009-10-29 patch.
31881
31882 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31883
31884         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31885         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31886         * lib/unistr/u8-strchr.c: Likewise.
31887         * modules/unistr/u8-chr: Depend on memchr.
31888
31889         unistr/u*-strchr: add tests
31890         * modules/unistr/u8-strchr-tests: New file.
31891         * modules/unistr/u16-strchr-tests: New file.
31892         * modules/unistr/u32-strchr-tests: New file.
31893         * tests/unistr/test-strchr.h: New file.
31894         * tests/unistr/test-u8-strchr.c: New file.
31895         * tests/unistr/test-u16-strchr.c: New file.
31896         * tests/unistr/test-u32-strchr.c: New file.
31897
31898         unistr/u*-chr: test multibyte sequences more
31899         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31900         test vector.
31901         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31902         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31903         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31904
31905         unistr/u*-chr: test multibyte sequences
31906         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31907
31908         unistr/u*-chr: prepare for multibyte tests
31909         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31910         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31911         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31912         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31913         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31914         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31915
31916 2010-07-18  Bruno Haible  <bruno@clisp.org>
31917
31918         unistr/u8-strchr: Optimize non-ASCII argument case.
31919         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31920         because the first byte often matches anyway.
31921         Reported by Pádraig Brady <P@draigbrady.com>.
31922
31923 2010-07-15  Karl Berry  <karl@gnu.org>
31924
31925         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31926
31927 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31928
31929         getcwd: on Solaris, work better if ancestors are inaccessible
31930         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31931         buffer and size, try again with a large buffer.  This works better
31932         on Solaris, since its getcwd succeeds even if the path to the root
31933         is inaccessible, and this is helpful in common cases such as .zfs
31934         hidden directories.  Problem reported by J Chapman Flack in
31935         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31936         Use system getcwd if it's declared, not merely if it's partly
31937         working; use the partly-working test only to avoid needless effort
31938         if the system getcwd fails.
31939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31940         comment that was already obsolete and is now even more obsolete.
31941         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31942         now might call strdup.
31943
31944 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31945
31946         pthread: Add enough so that coreutils/src/sort.c compiles.
31947         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31948         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31949         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31950         Include <sys/types.h>, in case it defines pthread_t.
31951         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31952         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31953         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31954         (pthread_rwlockattr_t, pthread_spinlock_t):
31955         New typedefs, if HAVE_PTHREAD_T is not defined.
31956         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31957         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31958         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31959         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31960         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31961         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31962         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31963         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31964         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31965         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31966         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31967         New macros.
31968         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31969         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31970         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31971         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31972         (pthread_spin_unlock): New dummy functions.
31973         (pthread_create): Return EAGAIN; don't set errno.
31974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31975         require AC_C_INLINE.
31976         * modules/pthread (Depends-on): Add sched, time.
31977         (pthread.h): Use AM_V_GEN.
31978
31979 2010-07-13  Bruno Haible  <bruno@clisp.org>
31980
31981         striconveh: Don't malloc memory if the result buffer is sufficient.
31982         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31983         buffer if its size is sufficient.
31984         Reported by Ludovic Courtès <ludo@gnu.org>.
31985
31986 2010-07-13  Bruno Haible  <bruno@clisp.org>
31987
31988         strtod: Add safety check.
31989         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31990
31991 2010-07-12  Bruno Haible  <bruno@clisp.org>
31992
31993         Unify tests that set gl_cv_func_ldexpl_no_libm.
31994         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31995         gl_FUNC_LDEXPL.
31996         (gl_FUNC_LDEXPL): Invoke it.
31997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31998
31999 2010-07-12  Bruno Haible  <bruno@clisp.org>
32000
32001         Unify tests that set gl_cv_func_ldexp_no_libm.
32002         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32003         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32004         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32005         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32006         * modules/strtod (Files): Add m4/ldexp.m4.
32007
32008 2010-07-12  Bruno Haible  <bruno@clisp.org>
32009
32010         Unify tests that set gl_cv_func_frexpl_no_libm.
32011         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32012         gl_FUNC_FREXPL_NO_LIBM.
32013         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32015
32016 2010-07-12  Bruno Haible  <bruno@clisp.org>
32017
32018         Unify tests that set gl_cv_func_frexp_no_libm.
32019         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32020         gl_FUNC_FREXP_NO_LIBM.
32021         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32022         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32023
32024 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32025
32026         memcoll: clarify sizes versus lengths, document better, and tweak perf
32027         * lib/memcoll.c (strcoll_loop, memcoll0):
32028         Improve quality of descriptive comments.  Name variables
32029         consistently as to whether they are lengths (which do not include
32030         terminating null) versus sizes (which do).
32031         * lib/xmemcoll.c (xmemcoll0): Likewise.
32032         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32033         returned when s1size == 0; this is easier to compile and saves
32034         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32035
32036 2010-07-12  Bruno Haible  <bruno@clisp.org>
32037
32038         Tests for module '_Exit'.
32039         * modules/_Exit-tests: New file.
32040         * tests/test-_Exit.sh: New file.
32041         * tests/test-_Exit.c: New file.
32042
32043         New module '_Exit'.
32044         * lib/stdlib.in.h (__attribute__): New macro.
32045         (_Exit): New declaration.
32046         * lib/_Exit.c: New file.
32047         * m4/_Exit.m4: New file.
32048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32049         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32050         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32051         * modules/_Exit: New file.
32052         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32053         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32054
32055 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32056
32057         strtod: make it more-accurate typically, and don't require libm
32058         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32059         Include limits.h.  Don't include string.h.
32060         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32061         (locale_isspace): New function, so that no casts are needed to
32062         check whether *s is a space.
32063         (ldexp): Provide an unused dummy if not available.
32064         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32065         (strtod): Use them.  This implementation prefers to use the
32066         underlying strtod if available, falling back on our own code
32067         only to fix known bugs.  This is more likely to produce an
32068         accurate result.  Also, it avoids the use of libm functions.
32069         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32070         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32071         was absent, but it caused a test failure with coreutils.
32072         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32073         with libm.
32074         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32075         * modules/strtod-tests (Makefile.am): Likewise.
32076
32077 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32078             Bruno Haible  <bruno@clisp.org>
32079
32080         unistr/u8-strchr: Optimize ASCII argument case.
32081         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32082
32083 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32084
32085         (x)memcoll: minor tweaks
32086         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32087         is after the type that it qualifies.
32088         (memcoll0): Likewise.
32089         * lib/memcoll.h (memcoll0): Likewise.
32090         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32091         * lib/xmemcoll.h (xmemcoll0): Likewise.
32092         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32093         differs from memcoll in that the NUL byte is part of the argument.
32094         Omit the abort-checks, as performance is a real issue here.  Plus,
32095         the checks were wrong anyway (an off-by-one error).  Omit local
32096         variable 'diff', as it's a bit clearer that way.
32097         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32098         no longer needed.
32099
32100 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32101
32102         (x)memcoll: speedup when input is known to be NUL delimited
32103         * lib/memcoll.c: Include stdlib.
32104         (memcoll0): New function.
32105         (strcoll_loop): New function, refactored for use in both memcoll
32106         and memcoll0.
32107         * lib/memcoll.h (memcoll0): Add prototype.
32108         * lib/xmemcoll.c (xmemcoll0): New function.
32109         (collate_error): New function, refactored for use in both xmemcoll
32110         and xmemcoll0.
32111         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32112         * m4/memcoll.m4: add inline invocation.
32113
32114 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32115
32116         * build-aux/bootstrap: Remove any local translations
32117         from the translation project synchronization directory,
32118         so that local only translations are not distributed.
32119
32120 2010-07-04  Bruno Haible  <bruno@clisp.org>
32121
32122         fsusage: Clarify which code applies to which platforms.
32123         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32124         platform.
32125         * lib/fsusage.c (get_fs_usage): Likewise.
32126
32127 2010-07-04  Bruno Haible  <bruno@clisp.org>
32128
32129         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32130         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32131         Reported by Martin Lambers <marlam@marlam.de>.
32132
32133 2010-07-04  Jim Meyering  <meyering@redhat.com>
32134
32135         hash: once again explicitly disallow insertion of NULL
32136         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32137         inserting a NULL pointer cannot work with these functions.
32138         Add a comment with details.
32139         This reverts part of the 2010-07-01 commit, 5bef1a35
32140         "hash: extend module to deal with non-pointer keys".
32141
32142 2010-07-01  Bruno Haible  <bruno@clisp.org>
32143
32144         stdbool: Update doc.
32145         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32146         Info from Christian Weisgerber <naddy@mips.inka.de>.
32147
32148 2010-07-01  Jim Meyering  <meyering@redhat.com>
32149
32150         hash: extend module to deal with non-pointer keys
32151         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32152         but that allows insertion of non-pointer entries.
32153         Do not disallow an ENTRY value of NULL.
32154         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32155         * lib/hash.h (hash_insert0): Declare.
32156
32157 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32158
32159         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32160         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32161         not present (i.e. with autoconf 2.59 and when using gettextize, not
32162         gnulib), require AC_GNU_SOURCE instead.
32163
32164 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32165
32166         idpriv-drop: Fix tests.
32167         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32168         not to the test-idpriv-droptemp program.
32169
32170 2010-06-29  Bruno Haible  <bruno@clisp.org>
32171
32172         string: Fix syntax error with g++ 2.96.
32173         * lib/string.in.h (__pure__): Remove definition.
32174         (_GL_ATTRIBUTE_PURE): New macro.
32175         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32176         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32177         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32178
32179 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32180
32181         unitypes: Fix bug introduced on 2010-05-18.
32182         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32183
32184 2010-06-22  Eric Blake  <eblake@redhat.com>
32185
32186         memmem: slight optimization
32187         * lib/str-two-way.h (critical_factorization): Update comments.
32188         Reduce work during factorization phase.
32189         Reported by Carlos Bueno <carlos@bueno.org>.
32190
32191 2010-06-21  Bruno Haible  <bruno@clisp.org>
32192
32193         Fix HAVE_CALLOC_POSIX misnomer.
32194         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32195         !HAVE_CALLOC_POSIX.
32196         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32197         HAVE_CALLOC_POSIX.
32198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32199         instead of HAVE_CALLOC_POSIX.
32200         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32201         HAVE_CALLOC_POSIX.
32202
32203         Use modern idiom for calloc() replacement.
32204         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32205         AC_FUNC_CALLOC.
32206         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32207         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32208         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32209         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32210         (gl_REPLACE_CALLOC): New macro.
32211
32212 2010-06-21  Bruno Haible  <bruno@clisp.org>
32213
32214         Fix HAVE_REALLOC_POSIX misnomer.
32215         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32216         !HAVE_REALLOC_POSIX.
32217         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32218         HAVE_REALLOC_POSIX.
32219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32220         instead of HAVE_REALLOC_POSIX.
32221         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32222         HAVE_REALLOC_POSIX.
32223
32224         Use modern idiom for realloc() replacement.
32225         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32226         AC_FUNC_REALLOC.
32227         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32228         Autoconf's AC_FUNC_REALLOC.
32229         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32230         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32231         (gl_REPLACE_REALLOC): New macro.
32232         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32233
32234 2010-06-21  Bruno Haible  <bruno@clisp.org>
32235
32236         Fix HAVE_MALLOC_POSIX misnomer.
32237         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32238         !HAVE_MALLOC_POSIX.
32239         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32240         HAVE_MALLOC_POSIX.
32241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32242         instead of HAVE_MALLOC_POSIX.
32243         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32244         HAVE_MALLOC_POSIX.
32245
32246         Use modern idiom for malloc() replacement.
32247         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32248         AC_FUNC_MALLOC.
32249         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32250         Autoconf's AC_FUNC_MALLOC.
32251         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32252         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32253         (gl_REPLACE_MALLOC): New macro.
32254         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32255
32256 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32257
32258         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32259         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32260         This macro takes 3 arguments, not 4.
32261
32262 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32263
32264         ipv6: fix detection under mingw
32265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32266         in6_addr.
32267
32268 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32269
32270         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32271         that strtod() works when cross-compiling to a glibc version known
32272         to work.
32273
32274 2010-06-15  Bruno Haible  <bruno@clisp.org>
32275
32276         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32277
32278 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32279
32280         select: Correct timeout.
32281         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32282
32283 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32284
32285         git-version-gen: init shell var to avoid env var influence
32286         * build-aux/git-version-gen (v): Init shell var to empty.
32287
32288 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32289
32290         priv-set: Don't assume that priv.h exists merely because getppriv does.
32291         See Jan Andersen's bug report about AIX 5L in
32292         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32293         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32294         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32295         * lib/priv-set.h: Likewise.
32296         * tests/test-priv-set.c: Likewise.
32297
32298 2010-06-13  Bruno Haible  <bruno@clisp.org>
32299
32300         relocatable: Make it easier to test whether to install wrappers.
32301         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32302         RELOCATABLE_VIA_WRAPPER.
32303
32304 2010-06-13  Bruno Haible  <bruno@clisp.org>
32305
32306         gnulib-tool: Display specified modules and dependencies differently.
32307         * gnulib-tool (func_show_module_list): New function.
32308         (func_import, func_create_testdir): Invoke it.
32309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32310
32311 2010-06-13  Bruno Haible  <bruno@clisp.org>
32312
32313         gnulib-tool: Align code of func_import and func_create_testdir.
32314         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32315         specified_modules.
32316
32317 2010-06-12  Jim Meyering  <meyering@redhat.com>
32318
32319         test-inttostr: avoid spurious failure on Solaris 9
32320         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32321         to accept "%ju".  Reported by Bruno Haible.
32322
32323 2010-06-11  Jim Meyering  <meyering@redhat.com>
32324
32325         test-sys_socket: mark variables as used more readably
32326         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32327         as "used" explicitly via (void) statement casts.  This is more
32328         readable than using them in an artificial return expression.
32329         Suggestion from Bruno Haible.
32330
32331 2010-06-11  Bruno Haible  <bruno@clisp.org>
32332
32333         Avoid some more warnings from "gcc -Wwrite-strings".
32334         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32335         to 'const char *'.
32336         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32337         * tests/test-c-strcasestr.c (main): Likewise.
32338         * tests/test-mbscasestr1.c (main): Likewise.
32339         * tests/test-mbscasestr2.c (main): Likewise.
32340         * tests/test-memmem.c (main): Likewise.
32341         * tests/test-strstr.c (main): Likewise.
32342         * tests/test-strcasestr.c (main): Likewise.
32343
32344 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32345
32346         init.sh: change framework_failure_ to fail with status 99, not 1
32347         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32348         automake's parallel-tests rule that this is an unexpected failure,
32349         even if the test is listed in XFAIL_TESTS.
32350
32351 2010-06-11  Jim Meyering  <meyering@redhat.com>
32352
32353         test-inttostr: avoid warnings about 4-6KB literal strings
32354         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32355         Include "macros.h", for its definition of ASSERT.
32356         (CK): s/assert/ASSERT/
32357         * modules/inttostr-tests (Files): Add macros.h.
32358
32359         init.sh: don't use $ME_ or skip_ before they are defined
32360         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32361         their first uses.  Also hoist their companions: warn_, fail_,
32362         framework_failure_, $stderr_fileno.  Prompted by a patch from
32363         Stefano Lattarini.
32364
32365         test-sys_socket: avoid set-but-not-used warnings from gcc
32366         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32367         avoid warning about set-but-not-used variables.
32368
32369         test-xvasprintf: avoid 'const' discard warnings
32370         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32371         "const" when assigning from literal strings.
32372         (test_xasprintf): Add "void" in function argument list to placate
32373         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32374
32375         tests: avoid compilation warnings in argmatch and exclude tests...
32376         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32377         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32378         Since it always exits, declare with the "noreturn" attribute.
32379         * tests/test-argmatch.c: Likewise.
32380
32381         tests: avoid 'const' discard warnings in mbsstr tests
32382         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32383         * tests/test-mbsstr2.c (main): Likewise.
32384
32385         test-verify: avoid warning from gcc's -Wmissing-declarations
32386         * tests/test-verify.c (function): Declare to be static.
32387
32388         test-inttostr.c: include <string.h> for use of strcmp
32389         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32390
32391         test-linkat: avoid failed assertion on "other" architectures
32392         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32393         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32394         sparc: https://bugs.launchpad.net/bugs/591968
32395
32396 2010-06-11  Jim Meyering  <meyering@redhat.com>
32397
32398         printf.m4: avoid autoconf's "Expanded Before Required" warning
32399         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32400         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32401         autoconf warning.
32402
32403 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32404
32405         Replacement header templates are now named with ".in", not "_".
32406         * doc/gnulib-intro.texi: Correct.
32407
32408 2010-06-10  Jim Meyering  <meyering@redhat.com>
32409
32410         inttostr-tests: depend on snprintf, not snprintf-posix
32411         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32412         snprintf-posix, to avoid this aclocal failure:
32413           missing file gnulib-tests/vasnprintf.c
32414           configure.ac:45: error: expected source file, required through \
32415           AC_LIBSOURCES, not found
32416
32417 2010-06-10  Jim Meyering  <meyering@redhat.com>
32418
32419         inttostr: add a new function, inttostr, and tests
32420         The namesake function was not available.  The existence of the
32421         template file, inttostr.c makes its addition nontrivial.
32422         * lib/anytostr.c: Rename from inttostr.c.
32423         (anytostr): Rename from inttostr.
32424         * lib/inttostr.c: New file.
32425         * modules/inttostr (Files): Add anytostr.c.
32426         (Makefile.am): Set lib_SOURCES instead of ...
32427         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32428         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32429         * lib/offtostr.c: Likewise.
32430         * lib/uinttostr.c: Likewise.
32431         * lib/umaxtostr.c: Likewise.
32432         * modules/inttostr-tests: New file.
32433         * tests/test-inttostr.c: New file.  Test these functions.
32434
32435 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32436             Bruno Haible  <bruno@clisp.org>
32437
32438         Add "Extending Gnulib" chapter to manual.
32439         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32440         chapter.
32441         (Extending Gnulib): New chapter.
32442         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32443         chapter.
32444
32445 2010-06-09  Bruno Haible  <bruno@clisp.org>
32446
32447         Avoid relocwrapper link errors due to gnulib replacement functions.
32448         * lib/areadlink.c: Use the system's malloc, realloc functions.
32449         (areadlink): Set errno to ENOMEM explicitly.
32450         * modules/areadlink (Depends-on): Remove malloc-posix.
32451         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32452
32453 2010-06-09  Bruno Haible  <bruno@clisp.org>
32454
32455         Avoid relocwrapper link errors due to gnulib replacement functions.
32456         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32457         * lib/malloca.c: Likewise.
32458         * lib/relocatable.c: Likewise.
32459         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32460         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32461         * lib/setenv.c: Use the system's malloc, realloc functions.
32462         * lib/strerror.c: Use the system's sprintf function.
32463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32464
32465 2010-06-04  Bruno Haible  <bruno@clisp.org>
32466
32467         Prefer documented low-level autoconf macro names.
32468         * m4/lib-link.m4: Use m4_translit instead of translit.
32469         * m4/environ.m4: Likewise.
32470         * m4/mathfunc.m4: Likewise.
32471         * m4/onceonly.m4: Likewise.
32472         * m4/stdint.m4: Likewise.
32473         Suggested by Eric Blake.
32474
32475 2010-06-04  Martin Lambers  <marlam@marlam.de>
32476             Bruno Haible  <bruno@clisp.org>
32477
32478         havelib: Allow library names with '+' characters.
32479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32480         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32481
32482 2010-06-09  Bruno Haible  <bruno@clisp.org>
32483
32484         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32485         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32486         realloc failed.
32487
32488 2010-06-08  Peter Simons  <simons@cryp.to>
32489
32490         maint.mk: make the news-check rule more configurable
32491         * top/maint.mk (news-check-lines-spec): New variable.
32492         (news-check): Use "sed -n 1,10p" in place of "head".
32493
32494 2010-06-07  Jim Meyering  <meyering@redhat.com>
32495
32496         do-release-commit-and-tag: fix typo in --help
32497         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32498
32499         regex: avoid new dead-code warning with gcc-4.6.0
32500         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32501         if-block containing a while-loop.  It's been unused for at least
32502         5 years.
32503
32504 2010-06-05  Bruno Haible  <bruno@clisp.org>
32505
32506         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32507         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32508
32509 2010-06-04  Bruno Haible  <bruno@clisp.org>
32510
32511         Update to GNU gettext 0.18.1.
32512         * modules/gettext (configure.ac): Require gettext infrastructure from
32513         version 0.18.1.
32514
32515 2010-06-03  Bruno Haible  <bruno@clisp.org>
32516
32517         Don't use AC_LIBOBJ with file names in subdirectories.
32518         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32519         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32520         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32521         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32522         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32523         gl_LIBUNISTRING_LIBSOURCE.
32524         (Makefile.am): Augment lib_SOURCES here, conditionally.
32525         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32526
32527 2010-06-03  Bruno Haible  <bruno@clisp.org>
32528
32529         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32531         expansion does not end with a newline.
32532         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32533         unnecessary newline.
32534
32535 2010-06-03  Bruno Haible  <bruno@clisp.org>
32536
32537         Reduce dependencies.
32538         * tests/test-quotearg.h: New file, extracted from
32539         tests/test-quotearg.c.
32540         * tests/test-quotearg-simple.c: New file, extracted from
32541         tests/test-quotearg.c.
32542         * tests/test-quotearg.c: Don't include <ctype.h>.
32543         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32544         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32545         use_quote_double_quotes, use_quotearg_colon): Moved to
32546         tests/test-quotearg.h.
32547         (results_g, flag_results, custom_quotes, custom_results): Moved
32548         to tests/test-quotearg-simple.c.
32549         (main): Moved the part that does not depend on gettext to
32550         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32551         performed.
32552         * modules/quotearg-simple: New file.
32553         * modules/quotearg-simple-tests: New file.
32554         * modules/quotearg (Depends-on): Add quotearg-simple.
32555         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32556         (Files): Add tests/test-quotearg.h.
32557         Reported by Paolo Bonzini.
32558
32559 2010-06-03  Bruno Haible  <bruno@clisp.org>
32560
32561         Reduce dependencies.
32562         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32563
32564 2010-06-03  Bruno Haible  <bruno@clisp.org>
32565
32566         time: Undefine more broken macros.
32567         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32568         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32569         Reported by Eric Blake.
32570
32571 2010-06-03  Bruno Haible  <bruno@clisp.org>
32572
32573         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32574         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32575         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32576         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32577         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32578         Reported by Ludovic Courtès <ludo@gnu.org>.
32579
32580 2010-06-02  Eric Blake  <eblake@redhat.com>
32581
32582         time: work with mingw + pthreads-win32 library
32583         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32584         if timespec is defined only in pthread.h.
32585         * modules/time (Makefile.am): Substitute it.
32586         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32587         <pthread.h>, when needed.
32588         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32589         from the library.
32590
32591 2010-05-31  Bruno Haible  <bruno@clisp.org>
32592
32593         Avoid expanding two macros in the wrong order.
32594         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32595         gl_LIBUNISTRING if it is defined.
32596         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32597         autoconf >= 2.64.
32598         Reported by Ludovic Courtès <ludo@gnu.org>.
32599
32600 2010-05-27  Jim Meyering  <meyering@redhat.com>
32601
32602         maint.mk: also prohibit "#undef" of always-defined symbols
32603         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32604         Allow more than one space before the symbol name.
32605         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32606         the regexp uses alternation.
32607
32608 2010-05-26  Eric Blake  <eblake@redhat.com>
32609
32610         maint.mk: avoid echo -e
32611         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32612         Convert all uses of echo -* to printf.
32613         Reported by Matthias Bolte.
32614
32615 2010-05-25  Bruno Haible  <bruno@clisp.org>
32616
32617         Update to GNU gettext 0.18, part 2.
32618         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32619         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32620
32621 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32622
32623         Add missing include in test-pwrite.c.
32624         * tests/test-pwrite.c: Include string.h, for strcmp.
32625
32626 2010-05-24  Bruno Haible  <bruno@clisp.org>
32627
32628         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32629
32630 2010-05-24  Bruno Haible  <bruno@clisp.org>
32631
32632         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32633         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32634         iconveh_error argument.
32635         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32636         U_STRCONV_TO_LOCALE.
32637         * lib/unistr/u16-strcoll.c: Likewise.
32638         * lib/unistr/u32-strcoll.c: Likewise.
32639         * modules/unistr/u8-strcoll (Depends-on): Add
32640         uniconv/u8-strconv-to-enc, localcharset. Remove
32641         uniconv/u8-strconv-to-locale.
32642         (configure.ac): Bump version number.
32643         * modules/unistr/u16-strcoll (Depends-on): Add
32644         uniconv/u16-strconv-to-enc, localcharset. Remove
32645         uniconv/u16-strconv-to-locale.
32646         (configure.ac): Bump version number.
32647         * modules/unistr/u32-strcoll (Depends-on): Add
32648         uniconv/u32-strconv-to-enc, localcharset. Remove
32649         uniconv/u32-strconv-to-locale.
32650         (configure.ac): Bump version number.
32651
32652 2010-05-24  Bruno Haible  <bruno@clisp.org>
32653
32654         Avoid a test failure on NetBSD 5.0.
32655         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32656         an iconv() bug.
32657
32658 2010-05-24  Bruno Haible  <bruno@clisp.org>
32659
32660         Adjust #include directive style.
32661         * modules/regex (Includes): Recommend to write <regex.h>.
32662
32663 2010-05-24  Bruno Haible  <bruno@clisp.org>
32664
32665         regex: Don't require alloca.
32666         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32667         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32668         only inside if (0).
32669
32670 2010-05-23  Jim Meyering  <meyering@redhat.com>
32671
32672         test-renameat.c: include <sys/stat.h>
32673         * tests/test-renameat.c: Include <sys/stat.h>; required for
32674         definition of S_IS* macros.
32675
32676 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32677
32678         Update maintainer documentation for 'relocatable-prog' module.
32679         * doc/relocatable-maint.texi: Update.
32680         Comments by Bruno Haible.
32681
32682 2010-05-23  Bruno Haible  <bruno@clisp.org>
32683
32684         git-merge-changelog: Enable --split-merged-entry by default.
32685         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32686         (usage): Don't mention this option any more.
32687         Reported by Ralf Wildenhues.
32688
32689 2010-05-23  Jim Meyering  <meyering@redhat.com>
32690
32691         test-pwrite: do not leave behind a test file named "out"
32692         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32693         The trivial-looking use of init.sh is really necessary.
32694         It ensures that the temporary file, "out", is created in
32695         a temporary directory, and removed upon termination.
32696         * tests/test-pwrite.sh: Re-add file.
32697         * modules/pwrite-tests: Reference it.
32698
32699 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32700
32701         Fix output redirection buglet in init.sh.
32702         * tests/init.sh: Fix redirection of stderr.
32703
32704 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32705
32706         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32707
32708 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32709
32710         * modules/valgrind-tests: New file.
32711         * m4/valgrind-tests.m4: New file.
32712         * doc/valgrind-tests.texi: New file.
32713         * doc/gnulib.texi (Running self-tests under valgrind): New
32714         section.
32715
32716 2010-05-19  Bruno Haible  <bruno@clisp.org>
32717
32718         Clean up dead code in recent commit.
32719         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32720         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32721         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32722         Suggested by Paolo Bonzini.
32723
32724 2010-05-19  Bruno Haible  <bruno@clisp.org>
32725
32726         Avoid valgrind error reports from libunistring.
32727         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32728         * modules/libunistring (Files): Add it.
32729         * modules/libunistring-optional (Files): Likewise.
32730
32731 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32732             Bruno Haible  <bruno@clisp.org>
32733
32734         New module 'libunistring-optional'.
32735         * modules/libunistring-optional: New file.
32736         * m4/libunistring-base.m4: New file.
32737         * m4/libunistring-optional.m4: New file.
32738         * lib/unicase.in.h: Renamed from lib/unicase.h.
32739         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32740         * lib/unictype.in.h: Renamed from lib/unictype.h.
32741         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32742         * lib/uniname.in.h: Renamed from lib/uniname.h.
32743         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32744         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32745         * lib/unistr.in.h: Renamed from lib/unistr.h.
32746         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32747         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32748         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32749         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32750         gl_LIBUNISTRING. If the library was found, determine the installed
32751         version and set LIBUNISTRING_VERSION.
32752         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32753         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32754         handle a configuration option --with-included-libunistring.
32755         * modules/libunistring (Files): Add m4/absolute-header.m4.
32756         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32757         Add m4/libunistring-base.m4.
32758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32759         (Makefile.am): Build unicase.h from unicase.in.h.
32760         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32761         Add m4/libunistring-base.m4.
32762         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32763         (Makefile.am): Build uniconv.h from uniconv.in.h.
32764         * modules/unictype/base (Files): Use unictype.in.h instead of
32765         unictype.h. Add m4/libunistring-base.m4.
32766         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32767         (Makefile.am): Build unictype.h from unictype.in.h.
32768         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32769         Add m4/libunistring-base.m4.
32770         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32771         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32772         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32773         Add m4/libunistring-base.m4.
32774         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32775         (Makefile.am): Build uniname.h from uniname.in.h.
32776         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32777         Add m4/libunistring-base.m4.
32778         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32779         (Makefile.am): Build uninorm.h from uninorm.in.h.
32780         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32781         unistdio.h. Add m4/libunistring-base.m4.
32782         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32783         (Makefile.am): Build unistdio.h from unistdio.in.h.
32784         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32785         Add m4/libunistring-base.m4.
32786         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32787         (Makefile.am): Build unistr.h from unistr.in.h.
32788         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32789         Add m4/libunistring-base.m4.
32790         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32791         (Makefile.am): Build unitypes.h from unitypes.in.h.
32792         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32793         Add m4/libunistring-base.m4.
32794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32795         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32796         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32797         uniwidth.h. Add m4/libunistring-base.m4.
32798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32799         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32800         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32801         instead of augmenting lib_SOURCES.
32802         * modules/unicase/empty-suffix-context: Likewise.
32803         * modules/unicase/locale-language: Likewise.
32804         * modules/unicase/tolower: Likewise.
32805         * modules/unicase/totitle: Likewise.
32806         * modules/unicase/toupper: Likewise.
32807         * modules/unicase/u8-casecmp: Likewise.
32808         * modules/unicase/u8-casecoll: Likewise.
32809         * modules/unicase/u8-casefold: Likewise.
32810         * modules/unicase/u8-casexfrm: Likewise.
32811         * modules/unicase/u8-ct-casefold: Likewise.
32812         * modules/unicase/u8-ct-tolower: Likewise.
32813         * modules/unicase/u8-ct-totitle: Likewise.
32814         * modules/unicase/u8-ct-toupper: Likewise.
32815         * modules/unicase/u8-is-cased: Likewise.
32816         * modules/unicase/u8-is-casefolded: Likewise.
32817         * modules/unicase/u8-is-lowercase: Likewise.
32818         * modules/unicase/u8-is-titlecase: Likewise.
32819         * modules/unicase/u8-is-uppercase: Likewise.
32820         * modules/unicase/u8-prefix-context: Likewise.
32821         * modules/unicase/u8-suffix-context: Likewise.
32822         * modules/unicase/u8-tolower: Likewise.
32823         * modules/unicase/u8-totitle: Likewise.
32824         * modules/unicase/u8-toupper: Likewise.
32825         * modules/unicase/u16-casecmp: Likewise.
32826         * modules/unicase/u16-casecoll: Likewise.
32827         * modules/unicase/u16-casefold: Likewise.
32828         * modules/unicase/u16-casexfrm: Likewise.
32829         * modules/unicase/u16-ct-casefold: Likewise.
32830         * modules/unicase/u16-ct-tolower: Likewise.
32831         * modules/unicase/u16-ct-totitle: Likewise.
32832         * modules/unicase/u16-ct-toupper: Likewise.
32833         * modules/unicase/u16-is-cased: Likewise.
32834         * modules/unicase/u16-is-casefolded: Likewise.
32835         * modules/unicase/u16-is-lowercase: Likewise.
32836         * modules/unicase/u16-is-titlecase: Likewise.
32837         * modules/unicase/u16-is-uppercase: Likewise.
32838         * modules/unicase/u16-prefix-context: Likewise.
32839         * modules/unicase/u16-suffix-context: Likewise.
32840         * modules/unicase/u16-tolower: Likewise.
32841         * modules/unicase/u16-totitle: Likewise.
32842         * modules/unicase/u16-toupper: Likewise.
32843         * modules/unicase/u32-casecmp: Likewise.
32844         * modules/unicase/u32-casecoll: Likewise.
32845         * modules/unicase/u32-casefold: Likewise.
32846         * modules/unicase/u32-casexfrm: Likewise.
32847         * modules/unicase/u32-ct-casefold: Likewise.
32848         * modules/unicase/u32-ct-tolower: Likewise.
32849         * modules/unicase/u32-ct-totitle: Likewise.
32850         * modules/unicase/u32-ct-toupper: Likewise.
32851         * modules/unicase/u32-is-cased: Likewise.
32852         * modules/unicase/u32-is-casefolded: Likewise.
32853         * modules/unicase/u32-is-lowercase: Likewise.
32854         * modules/unicase/u32-is-titlecase: Likewise.
32855         * modules/unicase/u32-is-uppercase: Likewise.
32856         * modules/unicase/u32-prefix-context: Likewise.
32857         * modules/unicase/u32-suffix-context: Likewise.
32858         * modules/unicase/u32-tolower: Likewise.
32859         * modules/unicase/u32-totitle: Likewise.
32860         * modules/unicase/u32-toupper: Likewise.
32861         * modules/unicase/ulc-casecmp: Likewise.
32862         * modules/unicase/ulc-casecoll: Likewise.
32863         * modules/unicase/ulc-casexfrm: Likewise.
32864         * modules/uniconv/u8-conv-from-enc: Likewise.
32865         * modules/uniconv/u8-conv-to-enc: Likewise.
32866         * modules/uniconv/u8-strconv-from-enc: Likewise.
32867         * modules/uniconv/u8-strconv-from-locale: Likewise.
32868         * modules/uniconv/u8-strconv-to-enc: Likewise.
32869         * modules/uniconv/u8-strconv-to-locale: Likewise.
32870         * modules/uniconv/u16-conv-from-enc: Likewise.
32871         * modules/uniconv/u16-conv-to-enc: Likewise.
32872         * modules/uniconv/u16-strconv-from-enc: Likewise.
32873         * modules/uniconv/u16-strconv-from-locale: Likewise.
32874         * modules/uniconv/u16-strconv-to-enc: Likewise.
32875         * modules/uniconv/u16-strconv-to-locale: Likewise.
32876         * modules/uniconv/u32-conv-from-enc: Likewise.
32877         * modules/uniconv/u32-conv-to-enc: Likewise.
32878         * modules/uniconv/u32-strconv-from-enc: Likewise.
32879         * modules/uniconv/u32-strconv-from-locale: Likewise.
32880         * modules/uniconv/u32-strconv-to-enc: Likewise.
32881         * modules/uniconv/u32-strconv-to-locale: Likewise.
32882         * modules/unictype/bidicategory-byname: Likewise.
32883         * modules/unictype/bidicategory-name: Likewise.
32884         * modules/unictype/bidicategory-of: Likewise.
32885         * modules/unictype/bidicategory-test: Likewise.
32886         * modules/unictype/block-list: Likewise.
32887         * modules/unictype/block-test: Likewise.
32888         * modules/unictype/category-C: Likewise.
32889         * modules/unictype/category-Cc: Likewise.
32890         * modules/unictype/category-Cf: Likewise.
32891         * modules/unictype/category-Cn: Likewise.
32892         * modules/unictype/category-Co: Likewise.
32893         * modules/unictype/category-Cs: Likewise.
32894         * modules/unictype/category-L: Likewise.
32895         * modules/unictype/category-Ll: Likewise.
32896         * modules/unictype/category-Lm: Likewise.
32897         * modules/unictype/category-Lo: Likewise.
32898         * modules/unictype/category-Lt: Likewise.
32899         * modules/unictype/category-Lu: Likewise.
32900         * modules/unictype/category-M: Likewise.
32901         * modules/unictype/category-Mc: Likewise.
32902         * modules/unictype/category-Me: Likewise.
32903         * modules/unictype/category-Mn: Likewise.
32904         * modules/unictype/category-N: Likewise.
32905         * modules/unictype/category-Nd: Likewise.
32906         * modules/unictype/category-Nl: Likewise.
32907         * modules/unictype/category-No: Likewise.
32908         * modules/unictype/category-P: Likewise.
32909         * modules/unictype/category-Pc: Likewise.
32910         * modules/unictype/category-Pd: Likewise.
32911         * modules/unictype/category-Pe: Likewise.
32912         * modules/unictype/category-Pf: Likewise.
32913         * modules/unictype/category-Pi: Likewise.
32914         * modules/unictype/category-Po: Likewise.
32915         * modules/unictype/category-Ps: Likewise.
32916         * modules/unictype/category-S: Likewise.
32917         * modules/unictype/category-Sc: Likewise.
32918         * modules/unictype/category-Sk: Likewise.
32919         * modules/unictype/category-Sm: Likewise.
32920         * modules/unictype/category-So: Likewise.
32921         * modules/unictype/category-Z: Likewise.
32922         * modules/unictype/category-Zl: Likewise.
32923         * modules/unictype/category-Zp: Likewise.
32924         * modules/unictype/category-Zs: Likewise.
32925         * modules/unictype/category-and: Likewise.
32926         * modules/unictype/category-and-not: Likewise.
32927         * modules/unictype/category-byname: Likewise.
32928         * modules/unictype/category-name: Likewise.
32929         * modules/unictype/category-none: Likewise.
32930         * modules/unictype/category-of: Likewise.
32931         * modules/unictype/category-or: Likewise.
32932         * modules/unictype/category-test: Likewise.
32933         * modules/unictype/combining-class: Likewise.
32934         * modules/unictype/ctype-alnum: Likewise.
32935         * modules/unictype/ctype-alpha: Likewise.
32936         * modules/unictype/ctype-blank: Likewise.
32937         * modules/unictype/ctype-cntrl: Likewise.
32938         * modules/unictype/ctype-digit: Likewise.
32939         * modules/unictype/ctype-graph: Likewise.
32940         * modules/unictype/ctype-lower: Likewise.
32941         * modules/unictype/ctype-print: Likewise.
32942         * modules/unictype/ctype-punct: Likewise.
32943         * modules/unictype/ctype-space: Likewise.
32944         * modules/unictype/ctype-upper: Likewise.
32945         * modules/unictype/ctype-xdigit: Likewise.
32946         * modules/unictype/decimal-digit: Likewise.
32947         * modules/unictype/digit: Likewise.
32948         * modules/unictype/mirror: Likewise.
32949         * modules/unictype/numeric: Likewise.
32950         * modules/unictype/property-alphabetic: Likewise.
32951         * modules/unictype/property-ascii-hex-digit: Likewise.
32952         * modules/unictype/property-bidi-arabic-digit: Likewise.
32953         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32954         * modules/unictype/property-bidi-block-separator: Likewise.
32955         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32956         * modules/unictype/property-bidi-common-separator: Likewise.
32957         * modules/unictype/property-bidi-control: Likewise.
32958         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32959         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32960         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32961         * modules/unictype/property-bidi-european-digit: Likewise.
32962         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32963         * modules/unictype/property-bidi-left-to-right: Likewise.
32964         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32965         * modules/unictype/property-bidi-other-neutral: Likewise.
32966         * modules/unictype/property-bidi-pdf: Likewise.
32967         * modules/unictype/property-bidi-segment-separator: Likewise.
32968         * modules/unictype/property-bidi-whitespace: Likewise.
32969         * modules/unictype/property-byname: Likewise.
32970         * modules/unictype/property-combining: Likewise.
32971         * modules/unictype/property-composite: Likewise.
32972         * modules/unictype/property-currency-symbol: Likewise.
32973         * modules/unictype/property-dash: Likewise.
32974         * modules/unictype/property-decimal-digit: Likewise.
32975         * modules/unictype/property-default-ignorable-code-point: Likewise.
32976         * modules/unictype/property-deprecated: Likewise.
32977         * modules/unictype/property-diacritic: Likewise.
32978         * modules/unictype/property-extender: Likewise.
32979         * modules/unictype/property-format-control: Likewise.
32980         * modules/unictype/property-grapheme-base: Likewise.
32981         * modules/unictype/property-grapheme-extend: Likewise.
32982         * modules/unictype/property-grapheme-link: Likewise.
32983         * modules/unictype/property-hex-digit: Likewise.
32984         * modules/unictype/property-hyphen: Likewise.
32985         * modules/unictype/property-id-continue: Likewise.
32986         * modules/unictype/property-id-start: Likewise.
32987         * modules/unictype/property-ideographic: Likewise.
32988         * modules/unictype/property-ids-binary-operator: Likewise.
32989         * modules/unictype/property-ids-trinary-operator: Likewise.
32990         * modules/unictype/property-ignorable-control: Likewise.
32991         * modules/unictype/property-iso-control: Likewise.
32992         * modules/unictype/property-join-control: Likewise.
32993         * modules/unictype/property-left-of-pair: Likewise.
32994         * modules/unictype/property-line-separator: Likewise.
32995         * modules/unictype/property-logical-order-exception: Likewise.
32996         * modules/unictype/property-lowercase: Likewise.
32997         * modules/unictype/property-math: Likewise.
32998         * modules/unictype/property-non-break: Likewise.
32999         * modules/unictype/property-not-a-character: Likewise.
33000         * modules/unictype/property-numeric: Likewise.
33001         * modules/unictype/property-other-alphabetic: Likewise.
33002         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33003         * modules/unictype/property-other-grapheme-extend: Likewise.
33004         * modules/unictype/property-other-id-continue: Likewise.
33005         * modules/unictype/property-other-id-start: Likewise.
33006         * modules/unictype/property-other-lowercase: Likewise.
33007         * modules/unictype/property-other-math: Likewise.
33008         * modules/unictype/property-other-uppercase: Likewise.
33009         * modules/unictype/property-paired-punctuation: Likewise.
33010         * modules/unictype/property-paragraph-separator: Likewise.
33011         * modules/unictype/property-pattern-syntax: Likewise.
33012         * modules/unictype/property-pattern-white-space: Likewise.
33013         * modules/unictype/property-private-use: Likewise.
33014         * modules/unictype/property-punctuation: Likewise.
33015         * modules/unictype/property-quotation-mark: Likewise.
33016         * modules/unictype/property-radical: Likewise.
33017         * modules/unictype/property-sentence-terminal: Likewise.
33018         * modules/unictype/property-soft-dotted: Likewise.
33019         * modules/unictype/property-space: Likewise.
33020         * modules/unictype/property-terminal-punctuation: Likewise.
33021         * modules/unictype/property-test: Likewise.
33022         * modules/unictype/property-titlecase: Likewise.
33023         * modules/unictype/property-unassigned-code-value: Likewise.
33024         * modules/unictype/property-unified-ideograph: Likewise.
33025         * modules/unictype/property-uppercase: Likewise.
33026         * modules/unictype/property-variation-selector: Likewise.
33027         * modules/unictype/property-white-space: Likewise.
33028         * modules/unictype/property-xid-continue: Likewise.
33029         * modules/unictype/property-xid-start: Likewise.
33030         * modules/unictype/property-zero-width: Likewise.
33031         * modules/unictype/scripts: Likewise.
33032         * modules/unictype/syntax-c-ident: Likewise.
33033         * modules/unictype/syntax-c-whitespace: Likewise.
33034         * modules/unictype/syntax-java-ident: Likewise.
33035         * modules/unictype/syntax-java-whitespace: Likewise.
33036         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33037         * modules/unilbrk/u8-width-linebreaks: Likewise.
33038         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33039         * modules/unilbrk/u16-width-linebreaks: Likewise.
33040         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33041         * modules/unilbrk/u32-width-linebreaks: Likewise.
33042         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33043         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33044         * modules/uniname/uniname: Likewise.
33045         * modules/uninorm/canonical-decomposition: Likewise.
33046         * modules/uninorm/composition: Likewise.
33047         * modules/uninorm/decomposing-form: Likewise.
33048         * modules/uninorm/decomposition: Likewise.
33049         * modules/uninorm/filter: Likewise.
33050         * modules/uninorm/nfc: Likewise.
33051         * modules/uninorm/nfd: Likewise.
33052         * modules/uninorm/nfkc: Likewise.
33053         * modules/uninorm/nfkd: Likewise.
33054         * modules/uninorm/u8-normalize: Likewise.
33055         * modules/uninorm/u8-normcmp: Likewise.
33056         * modules/uninorm/u8-normcoll: Likewise.
33057         * modules/uninorm/u8-normxfrm: Likewise.
33058         * modules/uninorm/u16-normalize: Likewise.
33059         * modules/uninorm/u16-normcmp: Likewise.
33060         * modules/uninorm/u16-normcoll: Likewise.
33061         * modules/uninorm/u16-normxfrm: Likewise.
33062         * modules/uninorm/u32-normalize: Likewise.
33063         * modules/uninorm/u32-normcmp: Likewise.
33064         * modules/uninorm/u32-normcoll: Likewise.
33065         * modules/uninorm/u32-normxfrm: Likewise.
33066         * modules/unistdio/u8-asnprintf: Likewise.
33067         * modules/unistdio/u8-asprintf: Likewise.
33068         * modules/unistdio/u8-snprintf: Likewise.
33069         * modules/unistdio/u8-sprintf: Likewise.
33070         * modules/unistdio/u8-u8-asnprintf: Likewise.
33071         * modules/unistdio/u8-u8-asprintf: Likewise.
33072         * modules/unistdio/u8-u8-snprintf: Likewise.
33073         * modules/unistdio/u8-u8-sprintf: Likewise.
33074         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33075         * modules/unistdio/u8-u8-vasprintf: Likewise.
33076         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33077         * modules/unistdio/u8-u8-vsprintf: Likewise.
33078         * modules/unistdio/u8-vasnprintf: Likewise.
33079         * modules/unistdio/u8-vasprintf: Likewise.
33080         * modules/unistdio/u8-vsnprintf: Likewise.
33081         * modules/unistdio/u8-vsprintf: Likewise.
33082         * modules/unistdio/u16-asnprintf: Likewise.
33083         * modules/unistdio/u16-asprintf: Likewise.
33084         * modules/unistdio/u16-snprintf: Likewise.
33085         * modules/unistdio/u16-sprintf: Likewise.
33086         * modules/unistdio/u16-u16-asnprintf: Likewise.
33087         * modules/unistdio/u16-u16-asprintf: Likewise.
33088         * modules/unistdio/u16-u16-snprintf: Likewise.
33089         * modules/unistdio/u16-u16-sprintf: Likewise.
33090         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33091         * modules/unistdio/u16-u16-vasprintf: Likewise.
33092         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33093         * modules/unistdio/u16-u16-vsprintf: Likewise.
33094         * modules/unistdio/u16-vasnprintf: Likewise.
33095         * modules/unistdio/u16-vasprintf: Likewise.
33096         * modules/unistdio/u16-vsnprintf: Likewise.
33097         * modules/unistdio/u16-vsprintf: Likewise.
33098         * modules/unistdio/u32-asnprintf: Likewise.
33099         * modules/unistdio/u32-asprintf: Likewise.
33100         * modules/unistdio/u32-snprintf: Likewise.
33101         * modules/unistdio/u32-sprintf: Likewise.
33102         * modules/unistdio/u32-u32-asnprintf: Likewise.
33103         * modules/unistdio/u32-u32-asprintf: Likewise.
33104         * modules/unistdio/u32-u32-snprintf: Likewise.
33105         * modules/unistdio/u32-u32-sprintf: Likewise.
33106         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33107         * modules/unistdio/u32-u32-vasprintf: Likewise.
33108         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33109         * modules/unistdio/u32-u32-vsprintf: Likewise.
33110         * modules/unistdio/u32-vasnprintf: Likewise.
33111         * modules/unistdio/u32-vasprintf: Likewise.
33112         * modules/unistdio/u32-vsnprintf: Likewise.
33113         * modules/unistdio/u32-vsprintf: Likewise.
33114         * modules/unistdio/ulc-asnprintf: Likewise.
33115         * modules/unistdio/ulc-asprintf: Likewise.
33116         * modules/unistdio/ulc-fprintf: Likewise.
33117         * modules/unistdio/ulc-snprintf: Likewise.
33118         * modules/unistdio/ulc-sprintf: Likewise.
33119         * modules/unistdio/ulc-vasnprintf: Likewise.
33120         * modules/unistdio/ulc-vasprintf: Likewise.
33121         * modules/unistdio/ulc-vfprintf: Likewise.
33122         * modules/unistdio/ulc-vsnprintf: Likewise.
33123         * modules/unistdio/ulc-vsprintf: Likewise.
33124         * modules/unistr/u8-check: Likewise.
33125         * modules/unistr/u8-chr: Likewise.
33126         * modules/unistr/u8-cmp: Likewise.
33127         * modules/unistr/u8-cmp2: Likewise.
33128         * modules/unistr/u8-cpy: Likewise.
33129         * modules/unistr/u8-cpy-alloc: Likewise.
33130         * modules/unistr/u8-endswith: Likewise.
33131         * modules/unistr/u8-mblen: Likewise.
33132         * modules/unistr/u8-mbsnlen: Likewise.
33133         * modules/unistr/u8-mbtouc: Likewise.
33134         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33135         * modules/unistr/u8-mbtoucr: Likewise.
33136         * modules/unistr/u8-move: Likewise.
33137         * modules/unistr/u8-next: Likewise.
33138         * modules/unistr/u8-prev: Likewise.
33139         * modules/unistr/u8-set: Likewise.
33140         * modules/unistr/u8-startswith: Likewise.
33141         * modules/unistr/u8-stpcpy: Likewise.
33142         * modules/unistr/u8-stpncpy: Likewise.
33143         * modules/unistr/u8-strcat: Likewise.
33144         * modules/unistr/u8-strchr: Likewise.
33145         * modules/unistr/u8-strcmp: Likewise.
33146         * modules/unistr/u8-strcoll: Likewise.
33147         * modules/unistr/u8-strcpy: Likewise.
33148         * modules/unistr/u8-strcspn: Likewise.
33149         * modules/unistr/u8-strdup: Likewise.
33150         * modules/unistr/u8-strlen: Likewise.
33151         * modules/unistr/u8-strmblen: Likewise.
33152         * modules/unistr/u8-strmbtouc: Likewise.
33153         * modules/unistr/u8-strncat: Likewise.
33154         * modules/unistr/u8-strncmp: Likewise.
33155         * modules/unistr/u8-strncpy: Likewise.
33156         * modules/unistr/u8-strnlen: Likewise.
33157         * modules/unistr/u8-strpbrk: Likewise.
33158         * modules/unistr/u8-strrchr: Likewise.
33159         * modules/unistr/u8-strspn: Likewise.
33160         * modules/unistr/u8-strstr: Likewise.
33161         * modules/unistr/u8-strtok: Likewise.
33162         * modules/unistr/u8-to-u16: Likewise.
33163         * modules/unistr/u8-to-u32: Likewise.
33164         * modules/unistr/u8-uctomb: Likewise.
33165         * modules/unistr/u16-check: Likewise.
33166         * modules/unistr/u16-chr: Likewise.
33167         * modules/unistr/u16-cmp: Likewise.
33168         * modules/unistr/u16-cmp2: Likewise.
33169         * modules/unistr/u16-cpy: Likewise.
33170         * modules/unistr/u16-cpy-alloc: Likewise.
33171         * modules/unistr/u16-endswith: Likewise.
33172         * modules/unistr/u16-mblen: Likewise.
33173         * modules/unistr/u16-mbsnlen: Likewise.
33174         * modules/unistr/u16-mbtouc: Likewise.
33175         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33176         * modules/unistr/u16-mbtoucr: Likewise.
33177         * modules/unistr/u16-move: Likewise.
33178         * modules/unistr/u16-next: Likewise.
33179         * modules/unistr/u16-prev: Likewise.
33180         * modules/unistr/u16-set: Likewise.
33181         * modules/unistr/u16-startswith: Likewise.
33182         * modules/unistr/u16-stpcpy: Likewise.
33183         * modules/unistr/u16-stpncpy: Likewise.
33184         * modules/unistr/u16-strcat: Likewise.
33185         * modules/unistr/u16-strchr: Likewise.
33186         * modules/unistr/u16-strcmp: Likewise.
33187         * modules/unistr/u16-strcoll: Likewise.
33188         * modules/unistr/u16-strcpy: Likewise.
33189         * modules/unistr/u16-strcspn: Likewise.
33190         * modules/unistr/u16-strdup: Likewise.
33191         * modules/unistr/u16-strlen: Likewise.
33192         * modules/unistr/u16-strmblen: Likewise.
33193         * modules/unistr/u16-strmbtouc: Likewise.
33194         * modules/unistr/u16-strncat: Likewise.
33195         * modules/unistr/u16-strncmp: Likewise.
33196         * modules/unistr/u16-strncpy: Likewise.
33197         * modules/unistr/u16-strnlen: Likewise.
33198         * modules/unistr/u16-strpbrk: Likewise.
33199         * modules/unistr/u16-strrchr: Likewise.
33200         * modules/unistr/u16-strspn: Likewise.
33201         * modules/unistr/u16-strstr: Likewise.
33202         * modules/unistr/u16-strtok: Likewise.
33203         * modules/unistr/u16-to-u32: Likewise.
33204         * modules/unistr/u16-to-u8: Likewise.
33205         * modules/unistr/u16-uctomb: Likewise.
33206         * modules/unistr/u32-check: Likewise.
33207         * modules/unistr/u32-chr: Likewise.
33208         * modules/unistr/u32-cmp: Likewise.
33209         * modules/unistr/u32-cmp2: Likewise.
33210         * modules/unistr/u32-cpy: Likewise.
33211         * modules/unistr/u32-cpy-alloc: Likewise.
33212         * modules/unistr/u32-endswith: Likewise.
33213         * modules/unistr/u32-mblen: Likewise.
33214         * modules/unistr/u32-mbsnlen: Likewise.
33215         * modules/unistr/u32-mbtouc: Likewise.
33216         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33217         * modules/unistr/u32-mbtoucr: Likewise.
33218         * modules/unistr/u32-move: Likewise.
33219         * modules/unistr/u32-next: Likewise.
33220         * modules/unistr/u32-prev: Likewise.
33221         * modules/unistr/u32-set: Likewise.
33222         * modules/unistr/u32-startswith: Likewise.
33223         * modules/unistr/u32-stpcpy: Likewise.
33224         * modules/unistr/u32-stpncpy: Likewise.
33225         * modules/unistr/u32-strcat: Likewise.
33226         * modules/unistr/u32-strchr: Likewise.
33227         * modules/unistr/u32-strcmp: Likewise.
33228         * modules/unistr/u32-strcoll: Likewise.
33229         * modules/unistr/u32-strcpy: Likewise.
33230         * modules/unistr/u32-strcspn: Likewise.
33231         * modules/unistr/u32-strdup: Likewise.
33232         * modules/unistr/u32-strlen: Likewise.
33233         * modules/unistr/u32-strmblen: Likewise.
33234         * modules/unistr/u32-strmbtouc: Likewise.
33235         * modules/unistr/u32-strncat: Likewise.
33236         * modules/unistr/u32-strncmp: Likewise.
33237         * modules/unistr/u32-strncpy: Likewise.
33238         * modules/unistr/u32-strnlen: Likewise.
33239         * modules/unistr/u32-strpbrk: Likewise.
33240         * modules/unistr/u32-strrchr: Likewise.
33241         * modules/unistr/u32-strspn: Likewise.
33242         * modules/unistr/u32-strstr: Likewise.
33243         * modules/unistr/u32-strtok: Likewise.
33244         * modules/unistr/u32-to-u16: Likewise.
33245         * modules/unistr/u32-to-u8: Likewise.
33246         * modules/unistr/u32-uctomb: Likewise.
33247         * modules/uniwbrk/u8-wordbreaks: Likewise.
33248         * modules/uniwbrk/u16-wordbreaks: Likewise.
33249         * modules/uniwbrk/u32-wordbreaks: Likewise.
33250         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33251         * modules/uniwbrk/wordbreak-property: Likewise.
33252         * modules/uniwidth/u8-strwidth: Likewise.
33253         * modules/uniwidth/u8-width: Likewise.
33254         * modules/uniwidth/u16-strwidth: Likewise.
33255         * modules/uniwidth/u16-width: Likewise.
33256         * modules/uniwidth/u32-strwidth: Likewise.
33257         * modules/uniwidth/u32-width: Likewise.
33258         * modules/uniwidth/width: Likewise.
33259         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33260         with $(LIBUNISTRING).
33261         * modules/unicase/ignorable-tests: Likewise.
33262         * modules/unicase/locale-language-tests: Likewise.
33263         * modules/unicase/tolower-tests: Likewise.
33264         * modules/unicase/totitle-tests: Likewise.
33265         * modules/unicase/toupper-tests: Likewise.
33266         * modules/unicase/u8-casecmp-tests: Likewise.
33267         * modules/unicase/u8-casecoll-tests: Likewise.
33268         * modules/unicase/u8-casefold-tests: Likewise.
33269         * modules/unicase/u8-is-cased-tests: Likewise.
33270         * modules/unicase/u8-is-casefolded-tests: Likewise.
33271         * modules/unicase/u8-is-lowercase-tests: Likewise.
33272         * modules/unicase/u8-is-titlecase-tests: Likewise.
33273         * modules/unicase/u8-is-uppercase-tests: Likewise.
33274         * modules/unicase/u8-tolower-tests: Likewise.
33275         * modules/unicase/u8-totitle-tests: Likewise.
33276         * modules/unicase/u8-toupper-tests: Likewise.
33277         * modules/unicase/u16-casecmp-tests: Likewise.
33278         * modules/unicase/u16-casecoll-tests: Likewise.
33279         * modules/unicase/u16-casefold-tests: Likewise.
33280         * modules/unicase/u16-is-cased-tests: Likewise.
33281         * modules/unicase/u16-is-casefolded-tests: Likewise.
33282         * modules/unicase/u16-is-lowercase-tests: Likewise.
33283         * modules/unicase/u16-is-titlecase-tests: Likewise.
33284         * modules/unicase/u16-is-uppercase-tests: Likewise.
33285         * modules/unicase/u16-tolower-tests: Likewise.
33286         * modules/unicase/u16-totitle-tests: Likewise.
33287         * modules/unicase/u16-toupper-tests: Likewise.
33288         * modules/unicase/u32-casecmp-tests: Likewise.
33289         * modules/unicase/u32-casecoll-tests: Likewise.
33290         * modules/unicase/u32-casefold-tests: Likewise.
33291         * modules/unicase/u32-is-cased-tests: Likewise.
33292         * modules/unicase/u32-is-casefolded-tests: Likewise.
33293         * modules/unicase/u32-is-lowercase-tests: Likewise.
33294         * modules/unicase/u32-is-titlecase-tests: Likewise.
33295         * modules/unicase/u32-is-uppercase-tests: Likewise.
33296         * modules/unicase/u32-tolower-tests: Likewise.
33297         * modules/unicase/u32-totitle-tests: Likewise.
33298         * modules/unicase/u32-toupper-tests: Likewise.
33299         * modules/unicase/ulc-casecmp-tests: Likewise.
33300         * modules/unicase/ulc-casecoll-tests: Likewise.
33301         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33302         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33303         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33304         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33305         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33306         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33307         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33308         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33309         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33310         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33311         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33312         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33313         * modules/unictype/bidicategory-byname-tests: Likewise.
33314         * modules/unictype/bidicategory-name-tests: Likewise.
33315         * modules/unictype/bidicategory-of-tests: Likewise.
33316         * modules/unictype/bidicategory-test-tests: Likewise.
33317         * modules/unictype/block-list-tests: Likewise.
33318         * modules/unictype/block-of-tests: Likewise.
33319         * modules/unictype/block-test-tests: Likewise.
33320         * modules/unictype/category-C-tests: Likewise.
33321         * modules/unictype/category-Cc-tests: Likewise.
33322         * modules/unictype/category-Cf-tests: Likewise.
33323         * modules/unictype/category-Cn-tests: Likewise.
33324         * modules/unictype/category-Co-tests: Likewise.
33325         * modules/unictype/category-Cs-tests: Likewise.
33326         * modules/unictype/category-L-tests: Likewise.
33327         * modules/unictype/category-Ll-tests: Likewise.
33328         * modules/unictype/category-Lm-tests: Likewise.
33329         * modules/unictype/category-Lo-tests: Likewise.
33330         * modules/unictype/category-Lt-tests: Likewise.
33331         * modules/unictype/category-Lu-tests: Likewise.
33332         * modules/unictype/category-M-tests: Likewise.
33333         * modules/unictype/category-Mc-tests: Likewise.
33334         * modules/unictype/category-Me-tests: Likewise.
33335         * modules/unictype/category-Mn-tests: Likewise.
33336         * modules/unictype/category-N-tests: Likewise.
33337         * modules/unictype/category-Nd-tests: Likewise.
33338         * modules/unictype/category-Nl-tests: Likewise.
33339         * modules/unictype/category-No-tests: Likewise.
33340         * modules/unictype/category-P-tests: Likewise.
33341         * modules/unictype/category-Pc-tests: Likewise.
33342         * modules/unictype/category-Pd-tests: Likewise.
33343         * modules/unictype/category-Pe-tests: Likewise.
33344         * modules/unictype/category-Pf-tests: Likewise.
33345         * modules/unictype/category-Pi-tests: Likewise.
33346         * modules/unictype/category-Po-tests: Likewise.
33347         * modules/unictype/category-Ps-tests: Likewise.
33348         * modules/unictype/category-S-tests: Likewise.
33349         * modules/unictype/category-Sc-tests: Likewise.
33350         * modules/unictype/category-Sk-tests: Likewise.
33351         * modules/unictype/category-Sm-tests: Likewise.
33352         * modules/unictype/category-So-tests: Likewise.
33353         * modules/unictype/category-Z-tests: Likewise.
33354         * modules/unictype/category-Zl-tests: Likewise.
33355         * modules/unictype/category-Zp-tests: Likewise.
33356         * modules/unictype/category-Zs-tests: Likewise.
33357         * modules/unictype/category-and-not-tests: Likewise.
33358         * modules/unictype/category-and-tests: Likewise.
33359         * modules/unictype/category-byname-tests: Likewise.
33360         * modules/unictype/category-name-tests: Likewise.
33361         * modules/unictype/category-none-tests: Likewise.
33362         * modules/unictype/category-of-tests: Likewise.
33363         * modules/unictype/category-or-tests: Likewise.
33364         * modules/unictype/category-test-withtable-tests: Likewise.
33365         * modules/unictype/combining-class-tests: Likewise.
33366         * modules/unictype/ctype-alnum-tests: Likewise.
33367         * modules/unictype/ctype-alpha-tests: Likewise.
33368         * modules/unictype/ctype-blank-tests: Likewise.
33369         * modules/unictype/ctype-cntrl-tests: Likewise.
33370         * modules/unictype/ctype-digit-tests: Likewise.
33371         * modules/unictype/ctype-graph-tests: Likewise.
33372         * modules/unictype/ctype-lower-tests: Likewise.
33373         * modules/unictype/ctype-print-tests: Likewise.
33374         * modules/unictype/ctype-punct-tests: Likewise.
33375         * modules/unictype/ctype-space-tests: Likewise.
33376         * modules/unictype/ctype-upper-tests: Likewise.
33377         * modules/unictype/ctype-xdigit-tests: Likewise.
33378         * modules/unictype/decimal-digit-tests: Likewise.
33379         * modules/unictype/digit-tests: Likewise.
33380         * modules/unictype/mirror-tests: Likewise.
33381         * modules/unictype/numeric-tests: Likewise.
33382         * modules/unictype/property-alphabetic-tests: Likewise.
33383         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33384         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33385         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33386         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33387         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33388         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33389         * modules/unictype/property-bidi-control-tests: Likewise.
33390         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33391         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33392         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33393         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33394         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33395         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33396         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33397         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33398         * modules/unictype/property-bidi-pdf-tests: Likewise.
33399         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33400         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33401         * modules/unictype/property-byname-tests: Likewise.
33402         * modules/unictype/property-combining-tests: Likewise.
33403         * modules/unictype/property-composite-tests: Likewise.
33404         * modules/unictype/property-currency-symbol-tests: Likewise.
33405         * modules/unictype/property-dash-tests: Likewise.
33406         * modules/unictype/property-decimal-digit-tests: Likewise.
33407         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33408         * modules/unictype/property-deprecated-tests: Likewise.
33409         * modules/unictype/property-diacritic-tests: Likewise.
33410         * modules/unictype/property-extender-tests: Likewise.
33411         * modules/unictype/property-format-control-tests: Likewise.
33412         * modules/unictype/property-grapheme-base-tests: Likewise.
33413         * modules/unictype/property-grapheme-extend-tests: Likewise.
33414         * modules/unictype/property-grapheme-link-tests: Likewise.
33415         * modules/unictype/property-hex-digit-tests: Likewise.
33416         * modules/unictype/property-hyphen-tests: Likewise.
33417         * modules/unictype/property-id-continue-tests: Likewise.
33418         * modules/unictype/property-id-start-tests: Likewise.
33419         * modules/unictype/property-ideographic-tests: Likewise.
33420         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33421         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33422         * modules/unictype/property-ignorable-control-tests: Likewise.
33423         * modules/unictype/property-iso-control-tests: Likewise.
33424         * modules/unictype/property-join-control-tests: Likewise.
33425         * modules/unictype/property-left-of-pair-tests: Likewise.
33426         * modules/unictype/property-line-separator-tests: Likewise.
33427         * modules/unictype/property-logical-order-exception-tests: Likewise.
33428         * modules/unictype/property-lowercase-tests: Likewise.
33429         * modules/unictype/property-math-tests: Likewise.
33430         * modules/unictype/property-non-break-tests: Likewise.
33431         * modules/unictype/property-not-a-character-tests: Likewise.
33432         * modules/unictype/property-numeric-tests: Likewise.
33433         * modules/unictype/property-other-alphabetic-tests: Likewise.
33434         * modules/unictype/property-other-default-ignorable-code-point-tests:
33435         Likewise.
33436         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33437         * modules/unictype/property-other-id-continue-tests: Likewise.
33438         * modules/unictype/property-other-id-start-tests: Likewise.
33439         * modules/unictype/property-other-lowercase-tests: Likewise.
33440         * modules/unictype/property-other-math-tests: Likewise.
33441         * modules/unictype/property-other-uppercase-tests: Likewise.
33442         * modules/unictype/property-paired-punctuation-tests: Likewise.
33443         * modules/unictype/property-paragraph-separator-tests: Likewise.
33444         * modules/unictype/property-pattern-syntax-tests: Likewise.
33445         * modules/unictype/property-pattern-white-space-tests: Likewise.
33446         * modules/unictype/property-private-use-tests: Likewise.
33447         * modules/unictype/property-punctuation-tests: Likewise.
33448         * modules/unictype/property-quotation-mark-tests: Likewise.
33449         * modules/unictype/property-radical-tests: Likewise.
33450         * modules/unictype/property-sentence-terminal-tests: Likewise.
33451         * modules/unictype/property-soft-dotted-tests: Likewise.
33452         * modules/unictype/property-space-tests: Likewise.
33453         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33454         * modules/unictype/property-test-tests: Likewise.
33455         * modules/unictype/property-titlecase-tests: Likewise.
33456         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33457         * modules/unictype/property-unified-ideograph-tests: Likewise.
33458         * modules/unictype/property-uppercase-tests: Likewise.
33459         * modules/unictype/property-variation-selector-tests: Likewise.
33460         * modules/unictype/property-white-space-tests: Likewise.
33461         * modules/unictype/property-xid-continue-tests: Likewise.
33462         * modules/unictype/property-xid-start-tests: Likewise.
33463         * modules/unictype/property-zero-width-tests: Likewise.
33464         * modules/unictype/scripts-tests: Likewise.
33465         * modules/unictype/syntax-c-ident-tests: Likewise.
33466         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33467         * modules/unictype/syntax-java-ident-tests: Likewise.
33468         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33469         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33470         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33471         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33472         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33473         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33474         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33475         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33476         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33477         * modules/uniname/uniname-tests: Likewise.
33478         * modules/uninorm/canonical-decomposition-tests: Likewise.
33479         * modules/uninorm/compat-decomposition-tests: Likewise.
33480         * modules/uninorm/composition-tests: Likewise.
33481         * modules/uninorm/decomposing-form-tests: Likewise.
33482         * modules/uninorm/decomposition-tests: Likewise.
33483         * modules/uninorm/filter-tests: Likewise.
33484         * modules/uninorm/nfc-tests: Likewise.
33485         * modules/uninorm/nfd-tests: Likewise.
33486         * modules/uninorm/nfkc-tests: Likewise.
33487         * modules/uninorm/nfkd-tests: Likewise.
33488         * modules/uninorm/u8-normcmp-tests: Likewise.
33489         * modules/uninorm/u8-normcoll-tests: Likewise.
33490         * modules/uninorm/u16-normcmp-tests: Likewise.
33491         * modules/uninorm/u16-normcoll-tests: Likewise.
33492         * modules/uninorm/u32-normcmp-tests: Likewise.
33493         * modules/uninorm/u32-normcoll-tests: Likewise.
33494         * modules/unistdio/u8-asnprintf-tests: Likewise.
33495         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33496         * modules/unistdio/u8-vasprintf-tests: Likewise.
33497         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33498         * modules/unistdio/u8-vsprintf-tests: Likewise.
33499         * modules/unistdio/u16-asnprintf-tests: Likewise.
33500         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33501         * modules/unistdio/u16-vasprintf-tests: Likewise.
33502         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33503         * modules/unistdio/u16-vsprintf-tests: Likewise.
33504         * modules/unistdio/u32-asnprintf-tests: Likewise.
33505         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33506         * modules/unistdio/u32-vasprintf-tests: Likewise.
33507         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33508         * modules/unistdio/u32-vsprintf-tests: Likewise.
33509         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33510         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33511         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33512         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33513         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33514         * modules/unistr/u8-check-tests: Likewise.
33515         * modules/unistr/u8-chr-tests: Likewise.
33516         * modules/unistr/u8-cmp-tests: Likewise.
33517         * modules/unistr/u8-cmp2-tests: Likewise.
33518         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33519         * modules/unistr/u8-cpy-tests: Likewise.
33520         * modules/unistr/u8-mblen-tests: Likewise.
33521         * modules/unistr/u8-mbsnlen-tests: Likewise.
33522         * modules/unistr/u8-mbtouc-tests: Likewise.
33523         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33524         * modules/unistr/u8-mbtoucr-tests: Likewise.
33525         * modules/unistr/u8-move-tests: Likewise.
33526         * modules/unistr/u8-next-tests: Likewise.
33527         * modules/unistr/u8-prev-tests: Likewise.
33528         * modules/unistr/u8-set-tests: Likewise.
33529         * modules/unistr/u8-stpcpy-tests: Likewise.
33530         * modules/unistr/u8-stpncpy-tests: Likewise.
33531         * modules/unistr/u8-strcat-tests: Likewise.
33532         * modules/unistr/u8-strcmp-tests: Likewise.
33533         * modules/unistr/u8-strcoll-tests: Likewise.
33534         * modules/unistr/u8-strcpy-tests: Likewise.
33535         * modules/unistr/u8-strdup-tests: Likewise.
33536         * modules/unistr/u8-strlen-tests: Likewise.
33537         * modules/unistr/u8-strmblen-tests: Likewise.
33538         * modules/unistr/u8-strmbtouc-tests: Likewise.
33539         * modules/unistr/u8-strncat-tests: Likewise.
33540         * modules/unistr/u8-strncmp-tests: Likewise.
33541         * modules/unistr/u8-strncpy-tests: Likewise.
33542         * modules/unistr/u8-strnlen-tests: Likewise.
33543         * modules/unistr/u8-to-u16-tests: Likewise.
33544         * modules/unistr/u8-to-u32-tests: Likewise.
33545         * modules/unistr/u8-uctomb-tests: Likewise.
33546         * modules/unistr/u16-check-tests: Likewise.
33547         * modules/unistr/u16-chr-tests: Likewise.
33548         * modules/unistr/u16-cmp-tests: Likewise.
33549         * modules/unistr/u16-cmp2-tests: Likewise.
33550         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33551         * modules/unistr/u16-cpy-tests: Likewise.
33552         * modules/unistr/u16-mblen-tests: Likewise.
33553         * modules/unistr/u16-mbsnlen-tests: Likewise.
33554         * modules/unistr/u16-mbtouc-tests: Likewise.
33555         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33556         * modules/unistr/u16-mbtoucr-tests: Likewise.
33557         * modules/unistr/u16-move-tests: Likewise.
33558         * modules/unistr/u16-next-tests: Likewise.
33559         * modules/unistr/u16-prev-tests: Likewise.
33560         * modules/unistr/u16-set-tests: Likewise.
33561         * modules/unistr/u16-stpcpy-tests: Likewise.
33562         * modules/unistr/u16-stpncpy-tests: Likewise.
33563         * modules/unistr/u16-strcat-tests: Likewise.
33564         * modules/unistr/u16-strcmp-tests: Likewise.
33565         * modules/unistr/u16-strcoll-tests: Likewise.
33566         * modules/unistr/u16-strcpy-tests: Likewise.
33567         * modules/unistr/u16-strdup-tests: Likewise.
33568         * modules/unistr/u16-strlen-tests: Likewise.
33569         * modules/unistr/u16-strmblen-tests: Likewise.
33570         * modules/unistr/u16-strmbtouc-tests: Likewise.
33571         * modules/unistr/u16-strncat-tests: Likewise.
33572         * modules/unistr/u16-strncmp-tests: Likewise.
33573         * modules/unistr/u16-strncpy-tests: Likewise.
33574         * modules/unistr/u16-strnlen-tests: Likewise.
33575         * modules/unistr/u16-to-u32-tests: Likewise.
33576         * modules/unistr/u16-to-u8-tests: Likewise.
33577         * modules/unistr/u16-uctomb-tests: Likewise.
33578         * modules/unistr/u32-check-tests: Likewise.
33579         * modules/unistr/u32-chr-tests: Likewise.
33580         * modules/unistr/u32-cmp-tests: Likewise.
33581         * modules/unistr/u32-cmp2-tests: Likewise.
33582         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33583         * modules/unistr/u32-cpy-tests: Likewise.
33584         * modules/unistr/u32-mblen-tests: Likewise.
33585         * modules/unistr/u32-mbsnlen-tests: Likewise.
33586         * modules/unistr/u32-mbtouc-tests: Likewise.
33587         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33588         * modules/unistr/u32-mbtoucr-tests: Likewise.
33589         * modules/unistr/u32-move-tests: Likewise.
33590         * modules/unistr/u32-next-tests: Likewise.
33591         * modules/unistr/u32-prev-tests: Likewise.
33592         * modules/unistr/u32-set-tests: Likewise.
33593         * modules/unistr/u32-stpcpy-tests: Likewise.
33594         * modules/unistr/u32-stpncpy-tests: Likewise.
33595         * modules/unistr/u32-strcat-tests: Likewise.
33596         * modules/unistr/u32-strcmp-tests: Likewise.
33597         * modules/unistr/u32-strcoll-tests: Likewise.
33598         * modules/unistr/u32-strcpy-tests: Likewise.
33599         * modules/unistr/u32-strdup-tests: Likewise.
33600         * modules/unistr/u32-strlen-tests: Likewise.
33601         * modules/unistr/u32-strmblen-tests: Likewise.
33602         * modules/unistr/u32-strmbtouc-tests: Likewise.
33603         * modules/unistr/u32-strncat-tests: Likewise.
33604         * modules/unistr/u32-strncmp-tests: Likewise.
33605         * modules/unistr/u32-strncpy-tests: Likewise.
33606         * modules/unistr/u32-strnlen-tests: Likewise.
33607         * modules/unistr/u32-to-u16-tests: Likewise.
33608         * modules/unistr/u32-to-u8-tests: Likewise.
33609         * modules/unistr/u32-uctomb-tests: Likewise.
33610         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33611         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33612         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33613         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33614         * modules/uniwidth/u8-strwidth-tests: Likewise.
33615         * modules/uniwidth/u8-width-tests: Likewise.
33616         * modules/uniwidth/u16-strwidth-tests: Likewise.
33617         * modules/uniwidth/u16-width-tests: Likewise.
33618         * modules/uniwidth/u32-strwidth-tests: Likewise.
33619         * modules/uniwidth/u32-width-tests: Likewise.
33620         * modules/uniwidth/width-tests: Likewise.
33621
33622 2010-05-18  Richard Jones  <rjones@redhat.com>
33623
33624         doc: users.txt: list hivex
33625         * users.txt: Add hivex.
33626
33627 2010-05-18  Richard Jones  <rjones@redhat.com>
33628
33629         doc: users.txt: list febootstrap
33630         * users.txt: Add febootstrap.
33631
33632 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33633
33634         bootstrap: fix an error when gnulib is not used as a git submodule
33635         * build-aux/bootstrap (gnulib_path): If its length is zero then
33636         assign "gnulib" to it.
33637         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33638
33639 2010-05-16  Bruno Haible  <bruno@clisp.org>
33640
33641         Avoid autoconf warnings about AM_ICONV.
33642         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33643         2.64.
33644
33645 2010-05-16  Bruno Haible  <bruno@clisp.org>
33646
33647         absolute-header: Make the macro usable in more situations.
33648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33649         from gl_ABSOLUTE_HEADER.
33650         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33651
33652 2010-05-16  James Youngman  <jay@gnu.org>
33653
33654         doc: update users.txt
33655         * users.txt: Add CSSC.
33656
33657 2010-05-16  Jim Meyering  <meyering@redhat.com>
33658
33659         init.sh: fix an error in the previous change; add more comments
33660         * tests/init.sh: Compare exit code in loop against 9, not 2.
33661         Patch by Bruno Haible.
33662         Make the two tests more similar by adding an empty "then" clause.
33663         Add comments.
33664
33665         init.sh: avoid unnecessary shell re-exec
33666         * tests/init.sh: Improve the re-exec-required check to first test the
33667         current shell.  If it passes the test, do not search for a shell that
33668         does pass, and do not re-exec.  This test is particularly contorted to
33669         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33670         of $(...) evokes a syntax error and causes immediate shell exit with
33671         status 2.  Bruno Haible reported that the re-exec made it impossible
33672         to single-step through any init.sh-using script.
33673
33674 2010-05-16  Bruno Haible  <bruno@clisp.org>
33675
33676         Fix collision between gnulib's and libintl's printf replacements.
33677         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33678         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33679         (printf): When using GNU C, map the __printf__ function to rpl_printf
33680         via __asm__. When not using GNU C, define rpl_printf instead of
33681         __printf__.
33682         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33683         commit.
33684         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33685         commit.
33686         * m4/asm-underscore.m4: New file.
33687         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33688         * modules/stdio (Files): Add m4/asm-underscore.m4.
33689         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33690         Reported by Ben Pfaff.
33691
33692 2010-05-16  Bruno Haible  <bruno@clisp.org>
33693
33694         verify: Avoid skipping the test on openSUSE 11.0.
33695         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33696
33697 2010-05-13  Bruno Haible  <bruno@clisp.org>
33698
33699         Avoid useless warnings from G++.
33700         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33701         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33702         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33703
33704 2010-05-11  Jim Meyering  <meyering@redhat.com>
33705
33706         maint.mk: tweak preceding change
33707         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33708         regexps tighter by anchoring at EOL, and make the new group "shy"
33709         for slightly decreased overhead.
33710
33711 2010-05-11  Eric Blake  <eblake@redhat.com>
33712
33713         maint.mk: gnulib doesn't guarantee NSIG
33714         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33715
33716 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33717
33718         test-pwrite.c: Remove unused variable declaration.
33719         * tests/test-pwrite.c (main): Remove read_buf declaration.
33720
33721         Remove useless test-pwrite.sh file.
33722         * tests/test-pwrite.sh: Delete file.
33723         * modules/pwrite-tests: Remove references.
33724         Reported by Bruno Haible.
33725
33726 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33727
33728         init.sh: fix a typo
33729         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33730
33731 2010-05-10  Jim Meyering  <meyering@redhat.com>
33732
33733         maint.mk: avoid using a temporary file in the always-defined-macros check
33734         * top/maint.mk (.re-defmac): Remove rule.
33735         (gl_trap_): Remove definition.
33736         (sc_prohibit_always-defined_macros): Rewrite not to create and
33737         depend on a temporary file.  Instead, depend on GNU grep's ability
33738         to read a list of regular expressions from stdin when given "-f -".
33739
33740 2010-05-09  Bruno Haible  <bruno@clisp.org>
33741
33742         Update to GNU gettext 0.18, part 1.
33743         * m4/gettext.m4: Update to GNU gettext 0.18.
33744         * m4/intl.m4: Likewise.
33745         * m4/po.m4: Likewise.
33746         * modules/gettext (Files): Add m4/fcntl-o.m4.
33747         (configure.ac): Require gettext infrastructure from version 0.18.
33748
33749 2010-05-09  Jim Meyering  <meyering@redhat.com>
33750
33751         init.sh: enable MALLOC_PERTURB_
33752         * tests/init.sh: Enable glibc's malloc-perturbing option.
33753
33754         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33755         With my recent change in init.sh from the two-line form:
33756             -#   : ${srcdir=.}
33757             -#   . "$srcdir/init.sh"; path_prepend_ .
33758             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33759         I noticed that using the one-line form would cause this test
33760         to fail with a false-positive, or to stop working altogether,
33761         depending on whether help-version changed or all the tests did.
33762         * top/maint.mk (_hv_regex): Remove this definition.
33763         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33764         (_hv_regex_strong): Use a stronger regex to check for conformance.
33765         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33766         Give a separate diagnostic for lack of conforming use.
33767
33768         maint.mk: prohibit definition of symbols defined by gnulib
33769         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33770         definition of symbols defined by gnulib.
33771
33772 2010-05-09  Bruno Haible  <bruno@clisp.org>
33773
33774         acl: Avoid test failure on Cygwin-hosted mingw.
33775         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33776
33777 2010-05-09  Bruno Haible  <bruno@clisp.org>
33778
33779         error: Use system's fcntl function.
33780         * lib/error.c (fcntl): Undefine.
33781
33782 2010-05-09  Jim Meyering  <meyering@redhat.com>
33783
33784         verify: adjust formatting to be more consistent
33785         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33786         argument-list '('s, and after one comma.
33787
33788 2010-05-09  Bruno Haible  <bruno@clisp.org>
33789
33790         error: More reliable output on mingw.
33791         * lib/error.c: Include <windows.h>.
33792         (is_open): New function.
33793         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33794         defined.
33795
33796 2010-05-09  Bruno Haible  <bruno@clisp.org>
33797
33798         vasnprintf: Fix syntax errors in libintl build on mingw.
33799         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33800         pad_ourselves and prec_ourselves after use.
33801
33802 2010-05-08  Bruno Haible  <bruno@clisp.org>
33803
33804         * lib/config.charset: Update comments for Cygwin 1.7.
33805         * lib/localcharset.c: Likewise.
33806
33807 2010-05-07  Jim Meyering  <meyering@redhat.com>
33808
33809         init.sh: improve comments
33810         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33811         . "${srcdir=.}/init.sh"; path_prepend_ .
33812         Add a note about path_prepend_ and the alternative of using
33813         TESTS_ENVIRONMENT.
33814
33815 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33816
33817         exclude: Unescape hashed patterns in wildcard mode.
33818         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33819         to the hash list.
33820         * tests/test-exclude8.sh: New test case.
33821         * modules/exclude-tests: Add new test.
33822
33823 2010-05-05  Eric Blake  <eblake@redhat.com>
33824
33825         verify: automate tests
33826         * modules/verify-tests: New module.
33827         * tests/test-verify.sh: New file.
33828         * tests/test-verify.c: Guard each negative test with a unique id.
33829         Also avoid warning about unused left hand of comma expressions.
33830
33831 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33832
33833         Further improvements to verify.h, suggested by Eric Blake.
33834         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33835         the GL_* versions, to avoid collision with OpenGL.
33836         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33837         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33838         than testing merely whether it's defined.
33839
33840         Modify verify.h to pacify gcc -Wredundant_decls.
33841         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33842         These use the prefix "GL_" since they're likely to be useful elsewhere.
33843         We may need to break them out into a different .h file.
33844         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33845         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33846         of verify_function__.
33847
33848 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33849
33850         Tests for module pwrite.
33851         * modules/pwrite-tests: New file.
33852         * tests/test-pwrite.sh: New file.
33853         * tests/test-pwrite.c: New file.
33854
33855         New module pwrite.
33856         * lib/unistd.in.h (pwrite): New declaration.
33857         * lib/pwrite.c: New file, from glibc with modifications.
33858         * m4/pwrite.m4: New file.
33859         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33861         REPLACE_PWRITE.
33862         * modules/pwrite: New file.
33863         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33864         REPLACE_PWRITE.
33865         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33866         * doc/posix-functions/pwrite.texi: Mention the new module.
33867
33868 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33869
33870         pread: Update documentation.
33871         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33872
33873 2010-05-04  Eric Blake  <eblake@redhat.com>
33874
33875         docs: update cygwin progress
33876         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33877         this bug.
33878         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33879         Added in cygwin 1.7.2.
33880         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33881         Likewise.
33882         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33883         Likewise.
33884         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33885         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33886         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33887         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33888         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33889         Mention nproc module.
33890         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33891         bug in cygwin 1.7.5 addition.
33892         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33893         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33894         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33895         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33896         1.7.5.
33897         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33898         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33899         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33900         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33901         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33902         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33903         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33904         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33905         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33906         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33907         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33908         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33909         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33910         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33911         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33912         Likewise.
33913         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33914         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33915         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33916         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33917         Likewise.
33918         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33919         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33920         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33921         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33922         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33923         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33924         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33925         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33926         Likewise.
33927         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33928         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33929         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33930         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33931         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33932         Likewise.
33933         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33934         Likewise.
33935         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33936         Likewise.
33937         * doc/glibc-functions/xdrrec_endofrecord.texi
33938         (xdrrec_endofrecord): Likewise.
33939         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33940         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33941         Likewise.
33942         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33943         Likewise.
33944
33945 2010-05-04  Jim Meyering  <meyering@redhat.com>
33946
33947         gendocs.sh: make its "-s FILE" option more useful
33948         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33949         $PACKAGE to reflect the probably-different basename of "FILE".
33950
33951 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33952
33953         bootstrap: don't ignore download_po_files failure
33954         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33955         failure.
33956
33957 2010-05-03  Jim Meyering  <meyering@redhat.com>
33958
33959         maint.mk: allow to pass options to gendocs.sh
33960         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33961         (gendocs_options_): New overridable variable.
33962
33963         gnu-web-doc-update: don't ignore configure or build failure
33964         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33965
33966         announce-gen: backslash-escape '@'s in --help output
33967         * build-aux/announce-gen: Fix syntax errors.
33968
33969         maint.mk, announce-gen: allow project-specific announcement mail headers
33970         * top/maint.mk (translation_project_): Define default.
33971         (announcement_Cc_, announcement_mail_headers_): Likewise.
33972         (announcement): Invoke announce-gen with new --mail-headers option.
33973         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33974
33975         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33976         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33977         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33978         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33979         line in the "err2" output file when running "make check" in verbose
33980         mode (i.e., with set -x enabled).
33981
33982 2010-05-03  Bruno Haible  <bruno@clisp.org>
33983
33984         wctob: Fix for weird platforms.
33985         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33986         argument value.
33987
33988 2010-05-03  Jim Meyering  <meyering@redhat.com>
33989
33990         maint.mk: prohibit unwarranted use of <strings.h>
33991         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33992         strings.h in a file that does not also use strcasecmp, strncasecmp,
33993         ffs or ffsll.
33994
33995         maint.mk: remove obsolete comments
33996         * top/maint.mk: Remove stale, commented-out rules.
33997
33998 2010-05-02  Bruno Haible  <bruno@clisp.org>
33999
34000         wcwidth: Declare also when it's aliased.
34001         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34002         macro.
34003
34004 2010-05-02  Bruno Haible  <bruno@clisp.org>
34005
34006         Fix regression from 2010-04-25.
34007         * gnulib-tool (func_modules_transitive_closure): Check the status of
34008         all modules, not only of the tests that are of the form foo-tests where
34009         foo is a module.
34010
34011 2010-05-02  Bruno Haible  <bruno@clisp.org>
34012
34013         wctob: Work around nasty Cygwin 1.7.2 bug.
34014         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34015         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34016
34017 2010-05-01  Bruno Haible  <bruno@clisp.org>
34018
34019         fpurge: Sharper test.
34020         * tests/test-fpurge.c (main): Add one more ftell check.
34021         * modules/fpurge-tests (Depends-on): Add ftell.
34022         Suggested by Eric Blake.
34023
34024 2010-05-01  Bruno Haible  <bruno@clisp.org>
34025
34026         ftello: Another test.
34027         * tests/test-ftello3.c: New file.
34028         * modules/ftello-tests (Files): Add it.
34029         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34030         MOSTLYCLEANFILES.
34031
34032         ftell: Another test.
34033         * tests/test-ftell3.c: New file.
34034         * modules/ftell-tests (Files): Add it.
34035         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34036         MOSTLYCLEANFILES.
34037
34038 2010-05-01  Bruno Haible  <bruno@clisp.org>
34039
34040         ftell, ftello: Work around Solaris bug.
34041         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34042         * lib/ftello.c: Include stdio-impl.h.
34043         (ftello): On Solaris, when _IOWRT is set, compute the result without
34044         looking at _IOREAD.
34045         * modules/ftello (Files): Add lib/stdio-impl.h.
34046         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34047         * doc/posix-functions/ftello.texi: Likewise.
34048         Reported by Eric Blake.
34049
34050 2010-05-01  Bruno Haible  <bruno@clisp.org>
34051
34052         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34053         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34054         the _IOWRT flag is also set.
34055
34056 2010-05-01  Bruno Haible  <bruno@clisp.org>
34057
34058         Fix doc about a HP-UX stdio bug.
34059         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34060         * doc/posix-functions/ftello.texi: Likewise.
34061
34062 2010-05-01  Bruno Haible  <bruno@clisp.org>
34063
34064         lseek test: Fix failure on Solaris.
34065         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34066         output.
34067
34068 2010-04-30  Jim Meyering  <meyering@redhat.com>
34069
34070         bootstrap: don't ignore failure to generate po*/Makevars
34071         * build-aux/bootstrap (with_gettext): Don't ignore failure
34072         to create po/Makevars or runtime-po/Makevars.
34073
34074 2010-04-29  Eric Blake  <eblake@redhat.com>
34075
34076         headers: relax license to LGPLv2+
34077         * modules/fcntl-h (License): Relax license.
34078         * modules/getopt-posix (License): Likewise.
34079         * modules/locale (License): Likewise.
34080         * modules/math (License): Likewise.
34081         * modules/pty (License): Likewise.
34082         * modules/sched (License): Likewise.
34083         * modules/search (License): Likewise.
34084         * modules/spawn (License): Likewise.
34085         * modules/stdarg (License): Likewise.
34086         * modules/sysexits (License): Likewise.
34087
34088 2010-04-29  Jim Meyering  <meyering@redhat.com>
34089
34090         inttypes: relax license to LGPLv2+
34091         * modules/inttypes (License): Relax license.
34092
34093 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34094
34095         * top/maint.mk (indent): Run twice to produce idempotent results.
34096
34097 2010-04-28  Bruno Haible  <bruno@clisp.org>
34098
34099         getdate: Generate getdate.c in the source directory.
34100         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34101         MOSTLYCLEANFILES.
34102         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34103
34104 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34105
34106         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34107         is not declared as a const *; avoid warnings in that case.
34108
34109 2010-04-28  Eric Blake  <eblake@redhat.com>
34110
34111         canonicalize-lgpl: avoid compiler warning
34112         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34113         declaration' / 'extraneous semicolon' warning with some compilers.
34114         Reported by Andreas Gruenbacher.
34115
34116 2010-04-28  Jim Meyering  <meyering@redhat.com>
34117
34118         init.sh: ensure a more reliable exit status when exiting via trap
34119         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34120         Inspired by patches from Dmitry V. Levin.
34121         Also trap on signal 3 (SIGQUIT).
34122
34123 2010-04-27  Bruno Haible  <bruno@clisp.org>
34124
34125         Update doc about utimes().
34126         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34127         'utimens' module.
34128         Reported by Andreas Gruenbacher <agruen@suse.de>.
34129
34130 2010-04-27  Eric Blake  <eblake@redhat.com>
34131
34132         full-read, full-write: relax license
34133         * modules/full-read (License): Drop to LGPLv2+.
34134         * modules/full-write (License): Likewise.
34135         * modules/safe-read (License): Likewise.
34136         * modules/safe-write (License): Likewise.
34137
34138         pthread: mention library for linking
34139         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34140
34141 2010-04-27  Jim Meyering  <meyering@redhat.com>
34142
34143         maint.mk: fix a bug introduced in last change
34144         * top/maint.mk (gl_assured_headers_): Now that all names are on
34145         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34146         is not anchored to end of word, it should be adequate.
34147
34148         maint.mk: avoid side-effect in latest syntax-check
34149         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34150         to run commands via $(shell...), and hence to incur cost only when
34151         the new rule is actually run.
34152
34153         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34154         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34155         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34156         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34157         (gl_assured_headers_, az_, AZ_): Define.
34158         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34159
34160 2010-04-26  Jim Meyering  <jim@meyering.net>
34161             Bruno Haible  <bruno@clisp.org>
34162
34163         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34165         Prompted by an exchange with Gilles Espinasse.
34166
34167 2010-04-26  Jim Meyering  <meyering@redhat.com>
34168
34169         git-version-gen: aesthetic tweak
34170         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34171         so that the command remains on a single line.
34172
34173 2010-04-26  Eric Blake  <eblake@redhat.com>
34174
34175         git-version-gen: allow use on EBCDIC hosts
34176         * build-aux/git-version-gen (dirty): Use literal rather than tying
34177         ourselves to ascii.
34178         Reported by Steve Goetze.
34179
34180 2010-04-25  Bruno Haible  <bruno@clisp.org>
34181
34182         netdb: Add support for GNULIB_POSIXCHECK.
34183         * lib/netdb.in.h: Include warn-on-use.h.
34184         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34185         functions are used when GNULIB_POSIXCHECK is defined and the
34186         getaddrinfo module is not in use.
34187         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34188         freeaddrinfo, gai_strerror, getnameinfo are declared.
34189         * modules/netdb (Depends-on): Add warn-on-use.
34190         (Makefile.am): Include warn-on-use.h in netdb.h.
34191
34192 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34193
34194         build: avoid "make check" failure without .git/ directory
34195         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34196         there is no .git/ directory.
34197
34198 2010-04-25  Bruno Haible  <bruno@clisp.org>
34199
34200         ptsname: Fix misuse of ttyname_r.
34201         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34202         of errno.
34203
34204 2010-04-25  Bruno Haible  <bruno@clisp.org>
34205
34206         ttyname_r: Make it work on Solaris 10.
34207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34208         if the system function has the POSIX declaration. Test whether the
34209         function fails if the buffer is less than 128 bytes large.
34210         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34211         system's ttyname_r function. Provide a reasonably large buffer.
34212         * modules/ttyname_r (Depends-on): Add extensions.
34213         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34214
34215 2010-04-25  Bruno Haible  <bruno@clisp.org>
34216
34217         Use the 'extensions' module for some more functions on Solaris.
34218         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34219         module.
34220         * doc/posix-functions/ctime_r.texi: Likewise.
34221         * doc/posix-functions/getgrgid_r.texi: Likewise.
34222         * doc/posix-functions/getgrnam_r.texi: Likewise.
34223         * doc/posix-functions/getpwnam_r.texi: Likewise.
34224         * doc/posix-functions/getpwuid_r.texi: Likewise.
34225         * doc/posix-functions/readdir_r.texi: Likewise.
34226         * doc/posix-functions/sigwait.texi: Likewise.
34227         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34228         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34229
34230 2010-04-25  Bruno Haible  <bruno@clisp.org>
34231
34232         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34234         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34235         * lib/ttyname_r.c: Include <limits.h>.
34236         (ttyname_r): Define using the system's ttyname_r function, if it exists
34237         and not on Solaris.
34238         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34239         set.
34240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34241         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34242         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34243         Reported by Simon Josefsson.
34244
34245 2010-04-25  Bruno Haible  <bruno@clisp.org>
34246
34247         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34248         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34249         * doc/posix-functions/ctime_r.texi: Likewise.
34250         * doc/posix-functions/getgrgid_r.texi: Likewise.
34251         * doc/posix-functions/getgrnam_r.texi: Likewise.
34252         * doc/posix-functions/getlogin_r.texi: Likewise.
34253         * doc/posix-functions/getpwnam_r.texi: Likewise.
34254         * doc/posix-functions/getpwuid_r.texi: Likewise.
34255         * doc/posix-functions/readdir_r.texi: Likewise.
34256         * doc/posix-functions/sigwait.texi: Likewise.
34257         * doc/posix-functions/ttyname_r.texi: Likewise.
34258         Reported by Simon Josefsson.
34259
34260 2010-04-25  Bruno Haible  <bruno@clisp.org>
34261
34262         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34263         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34264         also to --create-testdir.
34265         (func_acceptable): Don't consider the status of *-tests modules here.
34266         (func_modules_transitive_closure): Consider it here, before including a
34267         test module.
34268         (func_import, func_create_testdir): Set inc_all_direct_tests,
34269         inc_all_indirect_tests.
34270         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34271         --create-testdir and --create-megatestdir.
34272
34273 2010-04-25  Bruno Haible  <bruno@clisp.org>
34274
34275         gnulib-tool: Add --without-*-tests options.
34276         * gnulib-tool (func_usage): Document the --without-*-tests options.
34277         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34278         excl_unportable_tests): New variables.
34279         Fail if they are specified with --import or --update.
34280         (func_acceptable): Respect the excl_*_tests variables.
34281         (func_import): Set the excl_*_tests variables to empty.
34282
34283 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34284             Bruno Haible  <bruno@clisp.org>
34285
34286         Work around a MacOS X 10.4 bug with openpty.
34287         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34288         * tests/test-openpty.c (main): Close the master side explicitly.
34289
34290 2010-04-25  Bruno Haible  <bruno@clisp.org>
34291
34292         strnlen: Fix a C++ test error on MacOS X and Solaris.
34293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34294         the function is not declared.
34295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34296         Simon Josefsson.
34297
34298 2010-04-24  Bruno Haible  <bruno@clisp.org>
34299
34300         Avoid a gcc warning.
34301         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34302         of correct type for %08lx directive.
34303         Reported by Eric Blake.
34304
34305 2010-04-24  Bruno Haible  <bruno@clisp.org>
34306
34307         vasnprintf: Correct errno value in case of out-of-memory.
34308         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34309         or sprintf. Use the errno value from SNPRINTF or sprintf.
34310         Reported by Ian Beckwith <ianb@erislabs.net>.
34311
34312 2010-04-24  Bruno Haible  <bruno@clisp.org>
34313
34314         ansi-c++-opt: Find correct compiler when cross-compiling.
34315         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34316         AC_CHECK_PROGS.
34317         Reported by Simon Josefsson.
34318
34319 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34320
34321         vc-list-files: Add support for subversion
34322         * build-aux/vc-list-files: Use "svn list" to generate the list of
34323         files controlled by subversion.
34324
34325 2010-04-23  Jim Meyering  <meyering@redhat.com>
34326
34327         vc-list-files tests: convert to use init.sh
34328         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34329         path_prepend_.
34330         Use Exit, not exit.
34331         Use skip_ rather than open coding it.
34332         Remove trap set-up and compare definitions.
34333         * tests/test-vc-list-files-git.sh: Likewise.
34334         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34335
34336 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34337
34338         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34339         backup files.
34340
34341 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34342
34343         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34344
34345 2010-04-20  Eric Blake  <eblake@redhat.com>
34346
34347         tests: be robust to ignored SIGPIPE
34348         * tests/test-select-in.sh: Consume all output.
34349         * tests/test-lseek.sh: Check correct exit status, while avoiding
34350         EPIPE.
34351
34352 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34353             Bruno Haible  <bruno@clisp.org>
34354
34355         visibility: Don't use -fvisibility if it leads to a warning.
34356         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34357         yes, don't pretend that visibility works if it leads to a warning.
34358         Reported by Mike Gran <spk121@yahoo.com>.
34359
34360 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34361
34362         * build-aux/bootstrap: Use "git -h" for testing for supported options
34363         instead of "git --help".  The short-form option only shows a summary,
34364         and doesn't layout the full man page.  Grep for the full option name
34365         in the summary, too.
34366
34367 2010-04-19  Bruno Haible  <bruno@clisp.org>
34368
34369         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34370         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34371         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34372         mention of RELOCATABLE_STRIP.
34373         Reported by Sylvain Beucler <beuc@beuc.net>.
34374
34375 2010-04-19  Bruno Haible  <bruno@clisp.org>
34376
34377         * lib/diffseq.h: Fix typo in comment.
34378         Reported by Eric Blake.
34379
34380 2010-04-19  Bruno Haible  <bruno@clisp.org>
34381
34382         ioctl: Move autoconf macro to a .m4 file.
34383         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34384         * modules/ioctl (Files): Add it.
34385         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34386         Reported by Ian Beckwith <ianb@erislabs.net>.
34387
34388 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34389             Bruno Haible  <bruno@clisp.org>
34390
34391         diffseq: Accommodate use-case with abstract arrays.
34392         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34393         is not defined.
34394         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34395         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34396
34397 2010-04-18  Bruno Haible  <bruno@clisp.org>
34398
34399         * doc/posix-headers/stdbool.texi: More precise wording.
34400
34401 2010-04-17  Jim Meyering  <meyering@redhat.com>
34402
34403         maint.mk: use gnu-style indentation in an embedded perl script
34404         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34405         Rename variable: s/two/last_two_bytes/
34406
34407 2010-04-16  Eric Blake  <eblake@redhat.com>
34408
34409         test-stdbool: skip test that fails with Solaris CC
34410         * tests/test-stdbool.c (f): Skip test that causes compilation
34411         error under buggy C++ compiler.
34412         * lib/stdbool.in.h: Document the limitation.
34413         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34414
34415         setenv: allow compilation with C++
34416         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34417         register keyword.
34418
34419         stdint: allow test to pass with C++
34420         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34421
34422         getopt: allow compilation with C++
34423         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34424         struct.
34425         * lib/getopt.c (_getopt_internal_r): Use correct type.
34426         Reported by Dagobert Michelson, via Joel E. Denny.
34427
34428 2010-04-16  Bruno Haible  <bruno@clisp.org>
34429
34430         Override netdb.h always.
34431         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34433         Reported by Ludovic Courtès <ludo@gnu.org>.
34434
34435 2010-04-15  Bruno Haible  <bruno@clisp.org>
34436
34437         openpty: Fix mistake from 2010-03-21.
34438         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34439         Reported by Simon Josefsson.
34440
34441 2010-04-15  Eric Blake  <eblake@redhat.com>
34442
34443         test-forkpty: fix expected signature
34444         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34445         Reported by Simon Josefsson.
34446
34447 2010-04-15  Jim Meyering  <meyering@redhat.com>
34448
34449         maint.mk: texinfo_suffix_re_: correct the default regexp
34450         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34451
34452         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34453         make it configurable via texinfo_suffix_re_.
34454
34455 2010-04-14  Eric Blake  <eblake@redhat.com>
34456
34457         strtok_r: relax license to LGPLv2+
34458         * modules/strtok_r (License): Relax license.
34459         Reported by Matthias Bolte.
34460
34461 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34462
34463         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34464         version 1.4.4 by default instead of requiring the libgcrypt
34465         version used during build.  This makes it possible to use the
34466         application with older but still binary compatible libgcrypt
34467         versions.
34468
34469 2010-04-13  Eric Blake  <eblake@redhat.com>
34470
34471         getopt-gnu: match recent glibc fixes and posix ruling
34472         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34473         '+' handling, when requesting extensions.
34474         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34475         'W;' handling.
34476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34477         * doc/posix-functions/getopt.texi (getopt): Document this.
34478         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34479         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34480         Likewise.
34481
34482         getopt: merge bug fixes from glibc
34483         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34484         diagnostics.  Honor '+:' correctly.  Reject ';'.
34485
34486         getopt-posix: detect MacOS bug
34487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34488         optind when missing a required argument.
34489         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34490         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34491         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34492         Likewise.
34493
34494         getopt-posix: avoid spurious failure on Solaris
34495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34496         an indicator that setting optind=1 is sufficient for reset.
34497
34498         getopt-posix: avoid spurious failure on FreeBSD
34499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34500         in POSIX mode, since the m4 test uses it.
34501
34502         gnulib-tool: silence warning on BSD sh
34503         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34504
34505 2010-04-13  Jim Meyering  <meyering@redhat.com>
34506
34507         doc: users.txt: GNU patch now uses gnulib
34508         * users.txt: Add patch.
34509
34510 2010-04-12  Jim Meyering  <meyering@redhat.com>
34511
34512         maint.mk: generate more concise timing data for syntax-check rules
34513         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34514         " done" from each line that reports a syntax-check test duration.
34515
34516 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34517
34518         git-version-gen: use "git update-index..." rather than "git status"
34519         * build-aux/git-version-gen: Use git update-index --refresh, not
34520         "git status".  With some versions of git, "git status" would fail
34521         to update the index and result in an unwarranted "-dirty" suffix.
34522
34523 2010-04-11  Jim Meyering  <meyering@redhat.com>
34524
34525         openat: correct formatting (no semantic change)
34526         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34527         Suggested by Bruno Haible.
34528
34529 2010-04-11  Bruno Haible  <bruno@clisp.org>
34530
34531         Stricter declaration checking in testdirs.
34532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34533         If for_tests is true, augment AM_CPPFLAGS to define
34534         GNULIB_STRICT_CHECKING.
34535         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34536         GNULIB_STRICT_CHECKING is defined, verify that the function is
34537         declared.
34538
34539 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34540             Bruno Haible  <bruno@clisp.org>
34541
34542         libunistring: Improve configure output.
34543         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34544         Don't say "consider installing GNU libunistring" when checking again
34545         with libiconv.
34546
34547 2010-04-11  Bruno Haible  <bruno@clisp.org>
34548
34549         libunistring: Correct value of $LTLIBUNISTRING.
34550         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34551         correct the value of $LTLIBUNISTRING.
34552
34553 2010-04-11  Bruno Haible  <bruno@clisp.org>
34554
34555         havelib: Add static libraries to LIBS in the right order.
34556         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34557         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34558
34559 2010-04-11  Bruno Haible  <bruno@clisp.org>
34560
34561         libunistring: Detect libunistring also when it depends on libiconv.
34562         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34563         the second AC_LIB_HAVE_LINKFLAGS invocation.
34564
34565 2010-04-11  James Youngman  <jay@gnu.org>
34566
34567         close-stream: declare local scalars to be "const"
34568         * lib/close-stream.c (close_stream): Make boolean variables const
34569         to document the fact that we set but do not change them.
34570
34571 2010-04-11  Bruno Haible  <bruno@clisp.org>
34572
34573         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34574
34575 2010-04-11  Jim Meyering  <meyering@redhat.com>
34576
34577         maint.mk: don't include dist-check.mk
34578         * top/maint.mk: Remove bogus include directive.
34579
34580         maint.mk: improve empty-line-at-EOF check
34581         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34582         solution, rather than tail+Perl-based one.  The latter would read
34583         a few kilobytes from the end of each file, and did not handle empty
34584         files properly.
34585
34586         maint.mk: print the elapsed time for each syntax-check rule
34587         * top/maint.mk (sc_m_rules_): Save start time in a file.
34588         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34589         (local-check): Interpose the .z rules
34590
34591 2010-04-11  Jim Meyering  <meyering@redhat.com>
34592
34593         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34594         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34595         empty file with one that ends in an empty line.
34596
34597 2010-04-10  Bruno Haible  <bruno@clisp.org>
34598
34599         mkdir: Make it work on mingw64.
34600         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34601         * lib/mkdir.c: Update comment.
34602         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34603
34604 2010-04-10  Bruno Haible  <bruno@clisp.org>
34605
34606         Don't override improved macro from newer autoconf.
34607         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34608         autoconf >= 2.62.
34609         Reported by Joel E. Denny <jdenny@clemson.edu>.
34610
34611 2010-04-10  Jim Meyering  <meyering@redhat.com>
34612
34613         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34614         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34615
34616         maint.mk: correct a diagnostic
34617         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34618         in diagnostic; now use $prohibit.
34619
34620 2010-04-10  Bruno Haible  <address@hidden>
34621
34622         fchownat: Fix a C++ test error on Solaris 8.
34623         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34624         the function does not exist.
34625
34626 2010-04-10  Bruno Haible  <bruno@clisp.org>
34627
34628         vasnprintf: Add more tests.
34629         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34630         (test_function): Test converting an invalid wide string.
34631
34632         vasnprintf: Correct handling of unconvertible wide string arguments.
34633         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34634         VASNPRINTF.
34635         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34636         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34637         smaller than the expected maximum need for the directive. Set errno to
34638         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34639         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34641         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34642         * modules/vasnprintf (Files): Add m4/printf.m4.
34643         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34644
34645 2010-04-10  Bruno Haible  <bruno@clisp.org>
34646
34647         vasnprintf: Fix crash in %ls directive.
34648         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34649         string is passed as argument to %ls, with no precision and no width.
34650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34651
34652 2010-04-10  Bruno Haible  <bruno@clisp.org>
34653
34654         vasnprintf: Fix multiple test failures on mingw.
34655         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34656         _snprintf, or snwprintf, not _snwprintf.
34657
34658 2010-04-10  Bruno Haible  <bruno@clisp.org>
34659
34660         write: Fix a C++ test error on mingw.
34661         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34662
34663 2010-04-10  Bruno Haible  <bruno@clisp.org>
34664
34665         vasnprintf test: Reduce code duplication.
34666         * tests/test-vasnprintf.c (test_function): New function, extracted from
34667         test_vasnprintf.
34668         (test_vasnprintf, test_asnprintf): Invoke it.
34669
34670 2010-04-10  Bruno Haible  <bruno@clisp.org>
34671
34672         strnlen: Fix warning in C++ mode on MacOS X.
34673         * lib/string.in.h (strnlen): Use the modern idiom.
34674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34675         defining strnlen as a macro already in <config.h>.
34676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34677         REPLACE_STRNLEN.
34678         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34680
34681 2010-04-08  James Youngman  <jay@gnu.org>
34682
34683         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34684         the example.
34685
34686 2010-04-09  Jim Meyering  <meyering@redhat.com>
34687
34688         maint.mk: print better diagnostic when there is no $(_hv_file)
34689         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34690         announce that when $(_hv_file) (aka help-version) does not exist.
34691
34692         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34693         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34694         not try to interpret its random input bytes.  Jarno Rajahalme reported
34695         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34696         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34697         (mktempd_): Likewise, just in case.
34698
34699         ftruncate: add two years to projected module removal date: 2012
34700         * m4/ftruncate.m4: Adjust comments.
34701
34702         ftruncate: mark module as obsolete; even MinGW provides it, now
34703         * modules/ftruncate (Status): Obsolete.
34704         (Notice): Say that.
34705         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34707
34708 2010-04-08  Bruno Haible  <bruno@clisp.org>
34709
34710         Fix side effects from tests-related modules.
34711         * modules/dprintf-posix (Comment): New section.
34712         * modules/fprintf-posix (Comment): Likewise.
34713         * modules/obstack-printf-posix (Comment): Likewise.
34714         * modules/printf-posix (Comment): Likewise.
34715         * modules/snprintf-posix (Comment): Likewise.
34716         * modules/sprintf-posix (Comment): Likewise.
34717         * modules/vasnprintf-posix (Comment): Likewise.
34718         * modules/vasprintf-posix (Comment): Likewise.
34719         * modules/vdprintf-posix (Comment): Likewise.
34720         * modules/vfprintf-posix (Comment): Likewise.
34721         * modules/vprintf-posix (Comment): Likewise.
34722         * modules/vsnprintf-posix (Comment): Likewise.
34723         * modules/vsprintf-posix (Comment): Likewise.
34724         * modules/xprintf-posix (Comment): Likewise.
34725         * modules/xvasprintf-posix (Comment): Likewise.
34726         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34727         * modules/floorf-tests (Depends-on): Likewise.
34728         * modules/round-tests (Depends-on): Likewise.
34729         * modules/roundf-tests (Depends-on): Likewise.
34730         * modules/trunc-tests (Depends-on): Likewise.
34731         * modules/truncf-tests (Depends-on): Likewise.
34732         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34733         'fprintf-posix' module is not present.
34734         * tests/test-floorf2.c (check): Likewise.
34735         * tests/test-trunc2.c (check): Likewise.
34736         * tests/test-truncf2.c (check): Likewise.
34737         * tests/test-round2.c (equal): Likewise.
34738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34739
34740 2010-04-07  Karl Berry  <karl@gnu.org>
34741
34742         * config/srclist.txt,
34743         * config/srclistvars.sh,
34744         * config/srclist-update: doc fixes.
34745
34746 2010-04-07  Jim Meyering  <meyering@redhat.com>
34747
34748         maint.mk: add a PATH crosschecking syntax-check rule
34749         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34750         Useful if you use a test like the one in help-version (coreutils,
34751         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34752         printed by prog --version.
34753
34754 2010-04-06  Bruno Haible  <bruno@clisp.org>
34755
34756         Fix link error on mingw.
34757         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34758         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34759
34760 2010-04-06  Bruno Haible  <bruno@clisp.org>
34761
34762         Assume rmdir exists.
34763         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34764
34765 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34766
34767         doc: update users.txt
34768         * users.txt: Add gcal.
34769
34770 2010-04-06  Jim Meyering  <meyering@redhat.com>
34771
34772         init.sh: simply unset TMPDIR rather than risking env -i
34773         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34774         although it probably works fine on all Unix-based systems, some
34775         systems (Cygwin?) cannot tolerate a totally cleared environment.
34776         Suggestion from Eric Blake.
34777
34778 2010-04-06  Jim Meyering  <meyering@redhat.com>
34779
34780         init.sh: portability fix: use env's POSIX-specified -i option not -u
34781         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34782         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34783
34784 2010-04-05  Bruno Haible  <bruno@clisp.org>
34785
34786         btowc: Work around Cygwin 1.7.2 bug.
34787         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34788         does not map NUL to 0.
34789         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34790
34791 2010-04-05  Bruno Haible  <bruno@clisp.org>
34792
34793         Make the multithread modules work on Cygwin 1.7.2.
34794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34795         imported symbols can be declared weak, so that it returns "no" on
34796         Cygwin 1.7.2.
34797
34798 2010-04-05  Bruno Haible  <bruno@clisp.org>
34799
34800         Use the module 'strncat'.
34801         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34802
34803         Tests for module 'strncat'.
34804         * modules/strncat-tests: New file.
34805         * tests/test-strncat.c: New file.
34806
34807         New module 'strncat'.
34808         * lib/string.in.h (strncat): New declaration.
34809         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34810         * m4/strncat.m4: New file, based on m4/memchr.m4.
34811         * modules/strncat: New file.
34812         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34813         is declared.
34814         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34815         REPLACE_STRNCAT.
34816         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34817         REPLACE_STRNCAT.
34818         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34819         module.
34820         * tests/test-string-c++.cc: Check signature of strncat.
34821
34822 2010-04-05  Jim Meyering  <meyering@redhat.com>
34823
34824         xstrtoumax-tests: convert to use init.sh
34825         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34826         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34827         Use Exit, not exit.
34828         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34829
34830         xstrtoimax-tests: convert to use init.sh
34831         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34832         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34833         Use Exit, not exit.
34834         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34835
34836 2010-04-05  Bruno Haible  <bruno@clisp.org>
34837
34838         sys_socket: Avoid #define replacements in C++ mode.
34839         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34840         warning to the function if possible, rather than #defining the symbol
34841         to a dysfunctional alias.
34842
34843 2010-04-05  Bruno Haible  <bruno@clisp.org>
34844
34845         fseeko: Fix C++ test error on mingw.
34846         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34847         gl_FUNC_FSEEKO.
34848         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34849         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34851         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34852
34853 2010-04-05  Bruno Haible  <bruno@clisp.org>
34854
34855         duplocale: Improve test output.
34856         * tests/test-duplocale.c (main): Print reason for skipped test.
34857
34858 2010-04-05  Bruno Haible  <bruno@clisp.org>
34859
34860         Assume rmdir exists.
34861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34862         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34863
34864 2010-04-05  Bruno Haible  <bruno@clisp.org>
34865
34866         Fix link error on Solaris 8 with cc.
34867         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34868
34869 2010-04-05  Bruno Haible  <bruno@clisp.org>
34870
34871         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34872         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34873
34874 2010-04-05  Bruno Haible  <bruno@clisp.org>
34875
34876         vasprintf: Update documentation.
34877         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34878
34879 2010-04-05  Bruno Haible  <bruno@clisp.org>
34880
34881         ptsname: Improve test.
34882         * tests/test-ptsname.c (main): Also try the various master names of BSD
34883         systems.
34884
34885 2010-04-05  Bruno Haible  <bruno@clisp.org>
34886
34887         memchr: Avoid a possible C++ test error.
34888         * lib/string.in.h (memchr): Provide declaration if function is missing.
34889         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34890         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34892         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34893
34894 2010-04-05  Bruno Haible  <bruno@clisp.org>
34895
34896         strtok_r: Improve idiom.
34897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34898         AC_LIBOBJ is used.
34899
34900 2010-04-05  Bruno Haible  <bruno@clisp.org>
34901
34902         strdup: Improve idiom.
34903         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34904         AC_LIBOBJ is used.
34905         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34906         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34907         when AC_LIBOBJ is used.
34908
34909 2010-04-05  Bruno Haible  <bruno@clisp.org>
34910
34911         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34912         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34913         don't set REPLACE_MBSINIT to 1.
34914         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34915         don't set REPLACE_MBRTOWC to 1.
34916         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34917         exist, don't set REPLACE_MBSRTOWCS to 1.
34918         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34919         exist, don't set REPLACE_MBSNRTOWCS to 1.
34920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34921         don't set REPLACE_WCRTOMB to 1.
34922         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34923         exist, don't set REPLACE_WCSRTOMBS to 1.
34924         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34925         exist, don't set REPLACE_WCSNRTOMBS to 1.
34926
34927 2010-04-05  Bruno Haible  <bruno@clisp.org>
34928
34929         ldexpl: Improve idiom.
34930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34931         make sure to set HAVE_DECL_LDEXPL to 0.
34932
34933 2010-04-05  Jim Meyering  <meyering@redhat.com>
34934
34935         xstrtol-tests: convert to use init.sh
34936         * modules/xstrtol-tests (Files): Add tests/init.sh.
34937         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34938         Use Exit, not exit.
34939         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34940
34941         atexit-tests: convert to use init.sh
34942         * modules/atexit-tests (Files): Add tests/init.sh.
34943         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34944         Use Exit, not exit.
34945         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34946
34947         init.sh: fix typo
34948         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34949
34950         init.sh: make it easier for a test script to write to the tty, ...
34951         when using automake's parallel-tests mode.
34952         * tests/init.sh (stderr_fileno_): Define overridable variable.
34953         (warn_): New function, to use it.
34954         (fail_, skip_, framework_failure_): Use warn_.
34955
34956 2010-04-04  Bruno Haible  <bruno@clisp.org>
34957
34958         btowc: Avoid warning.
34959         * lib/btowc.c: Include <stdlib.h>.
34960         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34961
34962 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34963             Bruno Haible  <bruno@clisp.org>
34964
34965         wchar: Port to NetBSD 1.5.
34966         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34967         * lib/wctype.in.h (WEOF): Likewise.
34968
34969 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34970             Bruno Haible  <bruno@clisp.org>
34971
34972         Port extended stdio to NetBSD 1.5.
34973         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34974         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34975         older.
34976
34977 2010-04-04  Bruno Haible  <bruno@clisp.org>
34978
34979         string: Remove unused substitution.
34980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34981         HAVE_DECL_STRERROR.
34982         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34983
34984 2010-04-04  Bruno Haible  <bruno@clisp.org>
34985
34986         strtod: Avoid a possible C++ test error.
34987         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34988         set REPLACE_STRTOD.
34989
34990 2010-04-04  Bruno Haible  <bruno@clisp.org>
34991
34992         strerror: Update documentation.
34993         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34994
34995 2010-04-04  Bruno Haible  <bruno@clisp.org>
34996
34997         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34998         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34999         _GL_CXXALIAS_SYS_CAST.
35000
35001 2010-04-04  Bruno Haible  <bruno@clisp.org>
35002
35003         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35004         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35005         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35006         REPLACE_FREXPL to 1.
35007         * doc/posix-functions/frexpl.texi: Update documentation.
35008
35009 2010-04-04  Bruno Haible  <bruno@clisp.org>
35010
35011         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35012         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35013
35014 2010-04-04  Bruno Haible  <bruno@clisp.org>
35015
35016         Implement nanosleep for native Windows.
35017         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35018
35019 2010-04-04  Bruno Haible  <bruno@clisp.org>
35020
35021         math: Fix some C++ test errors on Solaris 8.
35022         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35023
35024 2010-04-04  Bruno Haible  <bruno@clisp.org>
35025
35026         math: Fix some C++ test errors on Cygwin.
35027         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35028         truncl): Provide declaration if the system does not have it.
35029         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35030         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35031         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35032         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35033         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35034         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35035         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35036         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35037         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35038         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35039         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35040         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35041         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35042         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35043         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35044         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35046         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35047         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35048         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35049         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35050         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35051
35052 2010-04-04  Bruno Haible  <bruno@clisp.org>
35053
35054         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35055         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35056         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35057         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35058         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35059         * m4/isinf.m4 (gl_ISINF): Likewise.
35060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35061
35062 2010-04-04  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35065         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35066
35067 2010-04-04  Bruno Haible  <bruno@clisp.org>
35068
35069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35070         * modules/tmpfile (configure.ac): Update.
35071
35072         tmpfile: Fix C++ test error on mingw.
35073         * lib/stdio.in.h (tmpfile): New declaration.
35074         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35075         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35076         * modules/tmpfile (Depends-on): Add stdio.
35077         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35078         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35079         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35080         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35081         REPLACE_TMPFILE.
35082         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35083
35084 2010-04-04  Bruno Haible  <bruno@clisp.org>
35085
35086         ioctl: Fix C++ test error on mingw.
35087         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35088         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35089         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35090
35091 2010-04-03  Bruno Haible  <bruno@clisp.org>
35092
35093         wcwidth: Fix C++ test error on mingw.
35094         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35096         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35097
35098 2010-04-03  Bruno Haible  <bruno@clisp.org>
35099
35100         nanosleep: Fix C++ test error on mingw.
35101         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35102         * lib/time.in.h (nanosleep): Use modern idiom.
35103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35104         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35105         REPLACE_NANOSLEEP to 1.
35106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35107         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35108
35109 2010-04-03  Bruno Haible  <bruno@clisp.org>
35110
35111         strptime: Fix C++ test error on mingw.
35112         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35113         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35114         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35115         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35117         not REPLACE_STRPTIME.
35118         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35119         REPLACE_STRPTIME.
35120
35121 2010-04-03  Bruno Haible  <bruno@clisp.org>
35122
35123         timegm: Fix C++ test error on mingw.
35124         * lib/time.in.h (timegm): Use modern idiom.
35125         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35126         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35127         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35128         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35129
35130 2010-04-03  Bruno Haible  <bruno@clisp.org>
35131
35132         timegm: Assume declaration if function exists.
35133         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35134         if it exists. Don't clobber ac_cv_func_timegm.
35135
35136 2010-04-03  Bruno Haible  <bruno@clisp.org>
35137
35138         time_r: Fix C++ test error on mingw.
35139         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35140         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35141         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35142         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35143         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35144
35145 2010-04-03  Bruno Haible  <bruno@clisp.org>
35146
35147         time_r: Minor updates.
35148         * modules/time_r (Description): Mention the provided functions.
35149         * lib/time_r.c: Don't include <string.h>.
35150         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35151         * doc/posix-functions/localtime_r.texi: Likewise.
35152
35153 2010-04-03  Bruno Haible  <bruno@clisp.org>
35154
35155         time: Fix regression introduced on 2010-03-08.
35156         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35157         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35158
35159 2010-04-03  Jim Meyering  <meyering@redhat.com>
35160
35161         maint.mk: don't silently disable project-specific syntax-check rules
35162         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35163         that they need to convert their project-specific syntax-check rules
35164         to use the new _sc_search_regexp.
35165
35166 2010-04-03  Bruno Haible  <bruno@clisp.org>
35167
35168         fchdir: Fix regression introduced on 2010-03-08.
35169         * lib/unistd.in.h (fchdir): Fix declaration.
35170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35172         REPLACE_FCHDIR.
35173         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35174         REPLACE_FCHDIR.
35175
35176 2010-04-03  Bruno Haible  <bruno@clisp.org>
35177
35178         getpagesize: Fix C++ test error on mingw.
35179         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35180         system does not declare the function.
35181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35182         declared.
35183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35184         HAVE_DECL_GETPAGESIZE.
35185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35186
35187 2010-04-03  Bruno Haible  <bruno@clisp.org>
35188
35189         stdio: Make C++ tests work on mingw.
35190         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35191         does not declare the function.
35192
35193 2010-04-03  Bruno Haible  <bruno@clisp.org>
35194
35195         ftello: Fix C++ test error on mingw.
35196         * lib/stdio.in.h (ftello): Use modern idiom.
35197         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35198         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35199         is missing and that it needs to be replaced.
35200         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35202         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35203
35204 2010-04-03  Bruno Haible  <bruno@clisp.org>
35205
35206         fseeko: Fix C++ test error on mingw.
35207         * lib/stdio.in.h (fseeko): Use modern idiom.
35208         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35210         is missing and that it needs to be replaced.
35211         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35213         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35214
35215 2010-04-03  Bruno Haible  <bruno@clisp.org>
35216
35217         mkstemp: Fix C++ test error on mingw.
35218         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35220         function is missing and that it needs to be replaced.
35221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35222         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35223
35224 2010-04-03  Bruno Haible  <bruno@clisp.org>
35225
35226         stpncpy: Fix C++ test error on mingw.
35227         * lib/string.in.h (stpncpy): Use modern idiom.
35228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35229         function is missing and that it needs to be replaced.
35230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35231         REPLACE_STPNCPY.
35232         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35233
35234 2010-04-03  Bruno Haible  <bruno@clisp.org>
35235
35236         sys_stat: Fix C++ test error on mingw.
35237         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35238         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35239
35240 2010-04-03  Bruno Haible  <bruno@clisp.org>
35241
35242         pty: Update doc.
35243         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35244
35245 2010-04-03  Bruno Haible  <bruno@clisp.org>
35246
35247         unistd: Fix C++ test error on mingw.
35248         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35249
35250 2010-04-03  Bruno Haible  <bruno@clisp.org>
35251
35252         Update doc regarding mingw.
35253         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35254         * doc/glibc-functions/login_tty.texi: Likewise.
35255         * doc/glibc-functions/forkpty.texi: Likewise.
35256
35257 2010-04-03  Bruno Haible  <bruno@clisp.org>
35258
35259         stdlib: Avoid compilation failure of c-strtold on mingw.
35260         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35261
35262 2010-04-03  Bruno Haible  <bruno@clisp.org>
35263
35264         locale: Make C++ tests work on Cygwin and mingw.
35265         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35266         cannot provide the function.
35267         Reported by Simon Josefsson.
35268
35269 2010-04-03  Bruno Haible  <bruno@clisp.org>
35270
35271         localename: Port to MacOS X 10.6.
35272         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35273         memory layout of the locales in MacOS X 10.6 as well.
35274         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35275
35276 2010-04-02  Bruno Haible  <bruno@clisp.org>
35277
35278         gnulib-tool: Ensure that long-running tests are executed last.
35279         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35280         running tests after the one for the other tests.
35281
35282 2010-04-02  Bruno Haible  <bruno@clisp.org>
35283
35284         gnulib-tool: Ensure the tests in the main directory are executed first.
35285         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35286         start with the current directory.
35287
35288 2010-04-02  Bruno Haible  <bruno@clisp.org>
35289
35290         Tests for module 'havelib', moved here from GNU gettext.
35291         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35292         modifications.
35293         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35294         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35295         with modifications.
35296         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35297         modifications.
35298         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35299         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35300         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35301         with modifications.
35302         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35303         with modifications.
35304         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35305         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35306         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35307         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35308         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35309         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35310         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35311         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35312         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35313         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35314         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35315         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35316         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35317         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35318         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35319         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35320         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35321         with modifications.
35322         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35323         with modifications.
35324         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35325         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35326         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35327         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35328         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35329         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35330         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35331         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35332         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35333         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35334         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35335         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35336         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35337         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35338         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35339         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35340         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35341         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35342         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35343         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35344         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35345         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35346         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35347         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35348         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35349         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35350         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35351         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35352         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35353         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35354         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35355         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35356         * tests/havelib/rpathx/rpathx.c: New file, from
35357         gettext/autoconf-lib-link.
35358         * tests/havelib/rpathx/Makefile.am: New file, from
35359         gettext/autoconf-lib-link.
35360         * tests/havelib/rpathx/configure.ac: New file, from
35361         gettext/autoconf-lib-link with modifications.
35362         * tests/havelib/rpathy/rpathy.c: New file, from
35363         gettext/autoconf-lib-link.
35364         * tests/havelib/rpathy/Makefile.am: New file, from
35365         gettext/autoconf-lib-link.
35366         * tests/havelib/rpathy/configure.ac: New file, from
35367         gettext/autoconf-lib-link with modifications.
35368         * tests/havelib/rpathz/rpathz.c: New file, from
35369         gettext/autoconf-lib-link.
35370         * tests/havelib/rpathz/Makefile.am: New file, from
35371         gettext/autoconf-lib-link.
35372         * tests/havelib/rpathz/configure.ac: New file, from
35373         gettext/autoconf-lib-link with modifications.
35374         * tests/havelib/rpathlx/usex.c: New file, from
35375         gettext/autoconf-lib-link.
35376         * tests/havelib/rpathlx/Makefile.am: New file, from
35377         gettext/autoconf-lib-link.
35378         * tests/havelib/rpathlx/configure.ac: New file, from
35379         gettext/autoconf-lib-link with modifications.
35380         * tests/havelib/rpathly/usey.c: New file, from
35381         gettext/autoconf-lib-link.
35382         * tests/havelib/rpathly/Makefile.am: New file, from
35383         gettext/autoconf-lib-link.
35384         * tests/havelib/rpathly/configure.ac: New file, from
35385         gettext/autoconf-lib-link with modifications.
35386         * tests/havelib/rpathlz/usez.c: New file, from
35387         gettext/autoconf-lib-link.
35388         * tests/havelib/rpathlz/Makefile.am: New file, from
35389         gettext/autoconf-lib-link.
35390         * tests/havelib/rpathlz/configure.ac: New file, from
35391         gettext/autoconf-lib-link with modifications.
35392         * tests/havelib/rpathlyx/usey.c: New file, from
35393         gettext/autoconf-lib-link.
35394         * tests/havelib/rpathlyx/Makefile.am: New file, from
35395         gettext/autoconf-lib-link.
35396         * tests/havelib/rpathlyx/configure.ac: New file, from
35397         gettext/autoconf-lib-link with modifications.
35398         * tests/havelib/rpathlzyx/usez.c: New file, from
35399         gettext/autoconf-lib-link.
35400         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35401         gettext/autoconf-lib-link.
35402         * tests/havelib/rpathlzyx/configure.ac: New file, from
35403         gettext/autoconf-lib-link with modifications.
35404         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35405         with modifications.
35406
35407 2010-04-02  Bruno Haible  <bruno@clisp.org>
35408
35409         gnulib-tool: Create distributed built sources also for the tests.
35410         * gnulib-tool (func_create_testdir): Also generate distributed built
35411         sources in the tests directory.
35412
35413 2010-04-02  Bruno Haible  <bruno@clisp.org>
35414
35415         gnulib-tool: Obey user's environment variables.
35416         * gnulib-tool (func_create_testdir): When creating built sources,
35417         respect the environment variables for autoconf, automake, etc. given by
35418         the user.
35419
35420 2010-04-02  Bruno Haible  <bruno@clisp.org>
35421
35422         gnulib-tool: Provide the value of --m4-base to modules.
35423         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35424         of gl_m4_base.
35425
35426 2010-04-02  Eric Blake  <eblake@redhat.com>
35427
35428         maint.mk: fix some fallout
35429         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35430         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35431
35432 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35433
35434         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35435         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35436         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35437         (sc_cast_of_x_alloc_return_value): Likewise.
35438         (sc_cast_of_alloca_return_value): Likewise.
35439         (sc_space_tab): Likewise.
35440         (sc_prohibit_atoi_atof): Likewise.
35441         (sc_prohibit_magic_number_exit): Likewise.
35442         (sc_error_exit_success): Likewise.
35443         (sc_file_system): Likewise.
35444         (sc_prohibit_have_config_h): Likewise.
35445         (sc_require_config_h): Likewise.
35446         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35447         (sc_obsolete_symbols): Likewise.
35448         (sc_changelog): Likewise.
35449         (sc_program_name): Likewise.
35450         (sc_the_the): Likewise.
35451         (sc_trailing_blank): Likewise.
35452         (sc_two_space_separator_in_usage): Likewise.
35453         (sc_useless_cpp_parens): Likewise.
35454         (sc_GPL_version): Likewise.
35455         (sc_GFDL_version): Likewise.
35456         (sc_texinfo_acronym): Likewise.
35457         (sc_prohibit_cvs_keyword): Likewise.
35458         (sc_prohibit_stat_st_blocks): Likewise.
35459         (sc_prohibit_S_IS_definition): Likewise.
35460         (sc_redundant_const): Likewise.
35461         (sc_makefile_TAB_only_indentation): Likewise.
35462         (sc_m4_quote_check): Likewise.
35463         (sc_makefile_path_separator_check): Likewise.
35464         (sc_copyright_check): Likewise.
35465         (sc_Wundef_boolean): Likewise.
35466         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35467
35468         maint.mk: match 0 or more whitespace-before-function-call '('
35469         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35470         that have zero or two-and-more spaces between the function name
35471         and the open parenthesis.
35472         (sc_error_message_warn_fatal): Likewise.
35473         (sc_error_message_uppercase): Likewise.
35474         (sc_error_message_period): Likewise.
35475
35476 2010-03-31  Eric Blake  <eblake@redhat.com>
35477
35478         maint.mk: check for [ as well as test
35479         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35480         Based on a libvirt report by Matthias Bolte.
35481
35482         gnumakefile: don't squelch _version output
35483         * top/GNUmakefile (_version): Create one-shot dependency rather
35484         than using $(shell) when version must be regenerated.
35485         (_autoreconf): Run verbosely, by default.
35486
35487         sys_time: avoid compiler warnings
35488         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35489         unconditional, fixing regression from 2010-03-29.
35490         Reported by Simon Josefsson.
35491
35492 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35493
35494         maint.mk: s/_header_without_use/_sc_header_without_use/
35495         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35496         (sc_prohibit_assert_without_use): Use the new name.
35497         (sc_prohibit_close_stream_without_use): Likewise.
35498         (sc_prohibit_getopt_without_use): Likewise.
35499         (sc_prohibit_quotearg_without_use): Likewise.
35500         (sc_prohibit_quote_without_use): Likewise.
35501         (sc_prohibit_long_options_without_use): Likewise.
35502         (sc_prohibit_inttostr_without_use): Likewise.
35503         (sc_prohibit_ignore_value_without_use): Likewise.
35504         (sc_prohibit_error_without_use): Likewise.
35505         (sc_prohibit_xalloc_without_use): Likewise.
35506         (sc_prohibit_hash_without_use): Likewise.
35507         (sc_prohibit_hash_pjw_without_use): Likewise.
35508         (sc_prohibit_safe_read_without_use): Likewise.
35509         (sc_prohibit_argmatch_without_use): Likewise.
35510         (sc_prohibit_canonicalize_without_use): Likewise.
35511         (sc_prohibit_root_dev_ino_without_use): Likewise.
35512         (sc_prohibit_openat_without_use): Likewise.
35513         (sc_prohibit_c_ctype_without_use): Likewise.
35514         (sc_prohibit_signal_without_use): Likewise.
35515         (sc_prohibit_intprops_without_use): Likewise.
35516
35517 2010-03-30  Eric Blake  <eblake@redhat.com>
35518
35519         maint: improve module indicators
35520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35521         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35522         columns, and avoid extra macro expansion.
35523
35524         fdopendir: work around FreeBSD bug
35525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35526         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35527         * modules/dirent (Makefile.am): Substitute it.
35528         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35529         declaration.
35530         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35531         fix.
35532         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35533
35534 2010-03-29  Bruno Haible  <bruno@clisp.org>
35535
35536         Emit #pragma system_header after the inclusion guard, not before.
35537         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35538         guard that spans the entire file, not before. This enables an
35539         optimization in GCC's preprocessor.
35540         * lib/ctype.in.h: Likewise.
35541         * lib/dirent.in.h: Likewise.
35542         * lib/errno.in.h: Likewise.
35543         * lib/float.in.h: Likewise.
35544         * lib/getopt.in.h: Likewise.
35545         * lib/iconv.in.h: Likewise.
35546         * lib/langinfo.in.h: Likewise.
35547         * lib/locale.in.h: Likewise.
35548         * lib/math.in.h: Likewise.
35549         * lib/netdb.in.h: Likewise.
35550         * lib/netinet_in.in.h: Likewise.
35551         * lib/pty.in.h: Likewise.
35552         * lib/sched.in.h: Likewise.
35553         * lib/se-selinux.in.h: Likewise.
35554         * lib/search.in.h: Likewise.
35555         * lib/spawn.in.h: Likewise.
35556         * lib/stdarg.in.h: Likewise.
35557         * lib/stdint.in.h: Likewise.
35558         * lib/string.in.h: Likewise.
35559         * lib/strings.in.h: Likewise.
35560         * lib/sys_file.in.h: Likewise.
35561         * lib/sys_ioctl.in.h: Likewise.
35562         * lib/sys_time.in.h: Likewise.
35563         * lib/sys_times.in.h: Likewise.
35564         * lib/sys_utsname.in.h: Likewise.
35565         * lib/sys_wait.in.h: Likewise.
35566         * lib/sysexits.in.h: Likewise.
35567         * lib/wctype.in.h: Likewise.
35568
35569 2010-03-28  James Youngman  <jay@gnu.org>
35570
35571         save-cwd: don't leak a file descriptor when the caller execs.
35572         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35573         saved file descriptor.
35574         * modules/save-cwd (Depends-on): Depend on cloexec.
35575
35576 2010-03-29  Bruno Haible  <bruno@clisp.org>
35577
35578         Remove vestiges of fts-lgpl module.
35579         * lib/fts_.h: Assume GNULIB_FTS is 1.
35580         * lib/fts.c: Likewise.
35581         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35582
35583 2010-03-28  Bruno Haible  <bruno@clisp.org>
35584
35585         Fix definition of tests witness macro.
35586         * gnulib-tool (func_import): Fix definition of witness macro.
35587
35588 2010-03-28  Bruno Haible  <bruno@clisp.org>
35589
35590         Fix ioctl's protoype on glibc systems.
35591         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35592         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35593         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35594         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35595         signature. If not, arrange to replace the ioctl function.
35596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35597         REPLACE_IOCTL.
35598         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35599         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35600         Reported by Ludovic Courtès <ludo@gnu.org>.
35601
35602 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35603
35604         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35605         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35606         made it so grep -r --include=GLOB* ... did not work.
35607
35608 2010-03-26  Jim Meyering  <meyering@redhat.com>
35609             Eric Blake  <eblake@redhat.com>
35610
35611         maint.mk: prohibit use of test's -o and -a operators
35612         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35613
35614 2010-03-28  Bruno Haible  <bruno@clisp.org>
35615
35616         Remove unused GNULIB_XYZ macro definitions.
35617         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35618         invocation.
35619
35620 2010-03-28  Bruno Haible  <bruno@clisp.org>
35621
35622         Mark privileged tests modules.
35623         * modules/idpriv-drop-tests (Status): New section.
35624         * modules/idpriv-droptemp-tests (Status): New section.
35625
35626 2010-03-28  Bruno Haible  <bruno@clisp.org>
35627
35628         Split C++ tests into separate tests modules.
35629         * modules/dirent-c++-tests: New file, extracted from
35630         modules/dirent-tests.
35631         * modules/dirent-tests: Depend on it.
35632         * modules/fcntl-h-c++-tests: New file, extracted from
35633         modules/fcntl-h-tests.
35634         * modules/fcntl-h-tests: Depend on it.
35635         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35636         * modules/glob-tests: Depend on it.
35637         * modules/iconv-h-c++-tests: New file, extracted from
35638         modules/iconv-h-tests.
35639         * modules/iconv-h-tests: Depend on it.
35640         * modules/langinfo-c++-tests: New file, extracted from
35641         modules/langinfo-tests.
35642         * modules/langinfo-tests: Depend on it.
35643         * modules/locale-c++-tests: New file, extracted from
35644         modules/locale-tests.
35645         * modules/locale-tests: Depend on it.
35646         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35647         * modules/math-tests: Depend on it.
35648         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35649         * modules/pty-tests: Depend on it.
35650         * modules/search-c++-tests: New file, extracted from
35651         modules/search-tests.
35652         * modules/search-tests: Depend on it.
35653         * modules/signal-c++-tests: New file, extracted from
35654         modules/signal-tests.
35655         * modules/signal-tests: Depend on it.
35656         * modules/spawn-c++-tests: New file, extracted from
35657         modules/spawn-tests.
35658         * modules/spawn-tests: Depend on it.
35659         * modules/stdio-c++-tests: New file, extracted from
35660         modules/stdio-tests.
35661         * modules/stdio-tests: Depend on it.
35662         * modules/stdlib-c++-tests: New file, extracted from
35663         modules/stdlib-tests.
35664         * modules/stdlib-tests: Depend on it.
35665         * modules/string-c++-tests: New file, extracted from
35666         modules/string-tests.
35667         * modules/string-tests: Depend on it.
35668         * modules/sys_ioctl-c++-tests: New file, extracted from
35669         modules/sys_ioctl-tests.
35670         * modules/sys_ioctl-tests: Depend on it.
35671         * modules/sys_select-c++-tests: New file, extracted from
35672         modules/sys_select-tests.
35673         * modules/sys_select-tests: Depend on it.
35674         * modules/sys_socket-c++-tests: New file, extracted from
35675         modules/sys_socket-tests.
35676         * modules/sys_socket-tests: Depend on it.
35677         * modules/sys_stat-c++-tests: New file, extracted from
35678         modules/sys_stat-tests.
35679         * modules/sys_stat-tests: Depend on it.
35680         * modules/sys_time-c++-tests: New file, extracted from
35681         modules/sys_time-tests.
35682         * modules/sys_time-tests: Depend on it.
35683         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35684         * modules/time-tests: Depend on it.
35685         * modules/unistd-c++-tests: New file, extracted from
35686         modules/unistd-tests.
35687         * modules/unistd-tests: Depend on it.
35688         * modules/wchar-c++-tests: New file, extracted from
35689         modules/wchar-tests.
35690         * modules/wchar-tests: Depend on it.
35691         * modules/wctype-c++-tests: New file, extracted from
35692         modules/wctype-tests.
35693         * modules/wctype-tests: Depend on it.
35694         Reported by Simon Josefsson.
35695
35696 2010-03-28  Bruno Haible  <bruno@clisp.org>
35697
35698         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35699         * gnulib-tool (func_exists_module): New function, extracted from
35700         func_verify_module.
35701         (func_verify_module): Use it.
35702         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35703         'foo' only if 'foo' exists.
35704         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35705         module.
35706
35707 2010-03-28  Bruno Haible  <bruno@clisp.org>
35708
35709         gnulib-tool: Add support for special categories of tests.
35710         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35711         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35712         (func_usage): Document them.
35713         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35714         inc_unportable_tests, inc_all_tests): New variables.
35715         (func_acceptable): Consider these variables.
35716         (func_modules_transitive_closure): Make it work when the 'Status' field
35717         consists of multiple words.
35718         (func_import): Store and restore the values of inc_cxx_tests,
35719         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35720         inc_all_tests in gnulib-comp.m4.
35721         (func_create_testdir): Set inc_all_tests to true.
35722         * doc/gnulib.texi (Extra tests modules): New section.
35723         Suggested by Jim Meyering.
35724
35725 2010-03-28  Bruno Haible  <bruno@clisp.org>
35726
35727         ansi-c++-opt: Allow turning off the C++ build by default.
35728         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35729         gl_CXX_CHOICE_DEFAULT_NO is defined.
35730         Requested by Eric Blake.
35731
35732 2010-03-28  Bruno Haible  <bruno@clisp.org>
35733
35734         unistd: Avoid #define replacements in C++ mode.
35735         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35736         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35737         setsockopt, shutdown, select): In C++, attach a warning to the function
35738         if possible, rather than #defining the symbol to a dysfunctional alias.
35739         Reported by John W. Eaton <jwe@gnu.org>.
35740
35741 2010-03-28  Bruno Haible  <bruno@clisp.org>
35742
35743         Fix link errors on mingw.
35744         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35745         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35746         $(LIBSOCKET).
35747         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35748         $(LIBSOCKET).
35749
35750 2010-03-28  Bruno Haible  <bruno@clisp.org>
35751             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35752
35753         lib-ignore: Determine different options for different compilers.
35754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35755         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35756         Add comments.
35757         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35758         * NEWS: Mention the change.
35759
35760 2010-03-27  Bruno Haible  <bruno@clisp.org>
35761
35762         Remove unused GNULIB_XYZ macro definitions.
35763         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35764         * modules/fseek (configure.ac): Likewise.
35765         * modules/ioctl (configure.ac): Likewise.
35766         * modules/open (configure.ac): Likewise.
35767         * modules/stdlib-safer (configure.ac): Likewise.
35768
35769 2010-03-27  Bruno Haible  <bruno@clisp.org>
35770
35771         Add a remark about certain modules.
35772         * modules/malloc (Comment): New section.
35773         * modules/realloc (Comment): Likewise.
35774         * modules/sigpipe (Comment): Likewise.
35775
35776 2010-03-27  Bruno Haible  <bruno@clisp.org>
35777
35778         Resolve conflict between the two kinds of module indicators.
35779         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35780         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35781         * modules/canonicalize (configure.ac): Invoke
35782         gl_MODULE_INDICATOR_FOR_TESTS.
35783         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35784         GNULIB_XYZ.
35785         * tests/test-dirent-c++.cc: Likewise.
35786         * tests/test-dirent-safer.c: Likewise.
35787         * tests/test-dup2.c: Likewise.
35788         * tests/test-fchdir.c: Likewise.
35789         * tests/test-fcntl-h-c++.cc: Likewise.
35790         * tests/test-getopt.c: Likewise.
35791         * tests/test-getopt.h: Likewise.
35792         * tests/test-langinfo-c++.cc: Likewise.
35793         * tests/test-locale-c++.cc: Likewise.
35794         * tests/test-math-c++.cc: Likewise.
35795         * tests/test-pty-c++.cc: Likewise.
35796         * tests/test-search-c++.cc: Likewise.
35797         * tests/test-signal-c++.cc: Likewise.
35798         * tests/test-spawn-c++.cc: Likewise.
35799         * tests/test-stdio-c++.cc: Likewise.
35800         * tests/test-stdlib-c++.cc: Likewise.
35801         * tests/test-string-c++.cc: Likewise.
35802         * tests/test-sys_ioctl-c++.cc: Likewise.
35803         * tests/test-sys_select-c++.cc: Likewise.
35804         * tests/test-sys_socket-c++.cc: Likewise.
35805         * tests/test-sys_stat-c++.cc: Likewise.
35806         * tests/test-sys_time-c++.cc: Likewise.
35807         * tests/test-time-c++.cc: Likewise.
35808         * tests/test-unistd-c++.cc: Likewise.
35809         * tests/test-wchar-c++.cc: Likewise.
35810         * tests/uninorm/test-u8-nfc.c: Likewise.
35811         * tests/uninorm/test-u8-nfd.c: Likewise.
35812         * tests/uninorm/test-u8-nfkc.c: Likewise.
35813         * tests/uninorm/test-u8-nfkd.c: Likewise.
35814         * tests/uninorm/test-u16-nfc.c: Likewise.
35815         * tests/uninorm/test-u16-nfd.c: Likewise.
35816         * tests/uninorm/test-u16-nfkc.c: Likewise.
35817         * tests/uninorm/test-u16-nfkd.c: Likewise.
35818         * tests/uninorm/test-u32-nfc.c: Likewise.
35819         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35820         * tests/uninorm/test-u32-nfd.c: Likewise.
35821         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35822         * tests/uninorm/test-u32-nfkc.c: Likewise.
35823         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35824         * tests/uninorm/test-u32-nfkd.c: Likewise.
35825         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35826         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35827
35828 2010-03-27  Bruno Haible  <bruno@clisp.org>
35829
35830         Distinguish two kinds of module indicators.
35831         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35832         gl_MODULE_INDICATOR.
35833         (gl_MODULE_INDICATOR): New macro.
35834         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35835         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35836         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35837         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35838         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35839         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35840         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35841         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35842         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35843         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35844         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35845         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35847         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35848         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35850         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35851         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35852         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35853         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35854         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35855         * modules/cloexec (configure.ac): Likewise.
35856         * modules/getopt-gnu (configure.ac): Likewise.
35857         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35858         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35859         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35860         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35861
35862 2010-03-27  Bruno Haible  <bruno@clisp.org>
35863
35864         New module description field 'Comment'.
35865         * gnulib-tool: New option --extract-comment.
35866         (func_usage): Document it.
35867         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35868         (func_get_comment): New function.
35869         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35870
35871 2010-03-27  Bruno Haible  <bruno@clisp.org>
35872
35873         Addendum to 2010-02-07 commit.
35874         * gnulib-tool (func_usage): Document --extract-applicability option.
35875
35876 2010-03-27  Bruno Haible  <bruno@clisp.org>
35877
35878         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35879         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35880         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35881         rather than link errors.
35882
35883 2010-03-27  Bruno Haible  <bruno@clisp.org>
35884
35885         Avoid side effects from tests-related modules on the compilation of lib.
35886         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35887         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35888         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35889         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35890         macro.
35891         (func_import): Define a witness macro. Assign it a value that depends
35892         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35893         tests-related modules.
35894         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35895         Reported by Jim Meyering.
35896
35897 2010-03-27  Bruno Haible  <bruno@clisp.org>
35898
35899         Factorize common .m4 code.
35900         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35901         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35902         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35903         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35904         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35905         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35906         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35907         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35908         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35909         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35910         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35911         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35912         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35913         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35914         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35915         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35916         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35917         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35919         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35920         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35921         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35922         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35924         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35925         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35926         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35928         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35930         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35931         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35932
35933 2010-03-27  Bruno Haible  <bruno@clisp.org>
35934
35935         Fix a compilation error on Cygwin with g++ >= 4.3.
35936         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35937         if it is undefined or if we alias it to chmod.
35938         (lstat): Don't warn about the use of this function if it is undefined
35939         or if we alias it to stat.
35940         Reported by Simon Josefsson.
35941
35942 2010-03-27  Bruno Haible  <bruno@clisp.org>
35943
35944         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35945         * modules/getlogin (configure.ac): Update.
35946
35947         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35948         * modules/getlogin_r (configure.ac): Update.
35949
35950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35952         * modules/inet_ntop (configure.ac): Update.
35953
35954         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35955         * modules/inet_pton (configure.ac): Update.
35956
35957         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35958         * modules/mbslen (configure.ac): Update.
35959
35960         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35961         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35962         * modules/forkpty (configure.ac): Update.
35963         * modules/openpty (configure.ac): Update.
35964
35965 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35966
35967         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35968         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35969
35970 2010-03-25  Eric Blake  <eblake@redhat.com>
35971
35972         maint: use pragma consistently across replacement headers
35973         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35974         * lib/dirent.in.h (system_header): Likewise.
35975         * lib/errno.in.h (system_header): Likewise.
35976         * lib/float.in.h (system_header): Likewise.
35977         * lib/getopt.in.h (system_header): Likewise.
35978         * lib/iconv.in.h (system_header): Likewise.
35979         * lib/inttypes.in.h (system_header): Likewise.
35980         * lib/langinfo.in.h (system_header): Likewise.
35981         * lib/locale.in.h (system_header): Likewise.
35982         * lib/math.in.h (system_header): Likewise.
35983         * lib/netdb.in.h (system_header): Likewise.
35984         * lib/netinet_in.in.h (system_header): Likewise.
35985         * lib/pty.in.h (system_header): Likewise.
35986         * lib/sched.in.h (system_header): Likewise.
35987         * lib/se-selinux.in.h (system_header): Likewise.
35988         * lib/search.in.h (system_header): Likewise.
35989         * lib/spawn.in.h (system_header): Likewise.
35990         * lib/stdarg.in.h (system_header): Likewise.
35991         * lib/stdint.in.h (system_header): Likewise.
35992         * lib/string.in.h (system_header): Likewise.
35993         * lib/strings.in.h (system_header): Likewise.
35994         * lib/sys_file.in.h (system_header): Likewise.
35995         * lib/sys_ioctl.in.h (system_header): Likewise.
35996         * lib/sys_socket.in.h (system_header): Likewise.
35997         * lib/sys_times.in.h (system_header): Likewise.
35998         * lib/sys_utsname.in.h (system_header): Likewise.
35999         * lib/sys_wait.in.h (system_header): Likewise.
36000         * lib/sysexits.in.h (system_header): Likewise.
36001         * lib/unistd.in.h (system_header): Likewise.
36002         * lib/wctype.in.h (system_header): Likewise.
36003
36004         arpa/inet: fix mingw compilation warning
36005         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36006         Reported by Matthew Bolte.
36007
36008 2010-03-25  Bruno Haible  <bruno@clisp.org>
36009
36010         Avoid collision between gnulib wrapper and libintl wrapper.
36011         * lib/printf.c (printf): Don't define if a printf wrapper is already
36012         defined in intl/printf.c.
36013         Reported by Michel Boaventura <michel@michelboaventura.com>.
36014
36015 2010-03-25  Bruno Haible  <bruno@clisp.org>
36016
36017         Use ANSI C.
36018         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36019
36020 2010-03-25  Bruno Haible  <bruno@clisp.org>
36021
36022         Minor formatting changes.
36023         * lib/acosl.c: Insert space before function argument list.
36024         * lib/argz.c: Likewise.
36025         * lib/asinl.c: Likewise.
36026         * lib/expl.c: Likewise.
36027         * lib/gen-uni-tables.c: Likewise.
36028         * lib/gettext.h: Likewise.
36029         * lib/glthread/lock.h: Likewise.
36030         * lib/tanl.c: Likewise.
36031         * lib/uniname/uniname.c: Likewise.
36032         * tests/test-idpriv-drop.c: Likewise.
36033         * tests/test-idpriv-droptemp.c: Likewise.
36034         * tests/test-lock.c: Likewise.
36035         * tests/test-tls.c: Likewise.
36036         * lib/argp-help.c: Insert space before function-like macro argument
36037         list.
36038         * lib/memcmp.c: Likewise.
36039         * tests/test-base64.c: Likewise.
36040         * lib/localename.c: Insert space before sizeof's argument list.
36041         * lib/safe-alloc.h: Likewise.
36042         * lib/file-set.h: Insert space before macro argument list.
36043         * tests/test-argp.c: Likewise.
36044         * lib/argp-namefrob.h: Insert space before function parameter list.
36045         * lib/getaddrinfo.c: Likewise.
36046         * lib/netdb.in.h: Likewise.
36047         * lib/parse-duration.h: Likewise.
36048         * lib/parse-duration.c: Likewise.
36049         * lib/poll.c: Likewise.
36050         * lib/select.c: Likewise.
36051         * lib/trim.h: Likewise.
36052         * tests/test-usleep.c: Likewise.
36053         * lib/ldexpl.c: Insert space before function parameter list and before
36054         function argument list.
36055         * lib/logl.c: Likewise.
36056         * lib/sqrtl.c: Likewise.
36057         * lib/trim.c: Likewise.
36058         * lib/cosl.c: Use GNU style indentation. Insert space before function
36059         argument list.
36060         * lib/sinl.c: Likewise.
36061         * lib/tsearch.c: Insert space after 'for'.
36062         Reported by Jim Meyering.
36063
36064 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36065
36066         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36067         config header before grepping, as it's not present before
36068         autoreconf/configure are run.  Reported by Simon Josefsson.
36069
36070 2010-03-23  Bruno Haible  <bruno@clisp.org>
36071
36072         pt_chown: Make it work with automake < 1.11.
36073         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36074         Reported by Simon Josefsson.
36075
36076 2010-03-23  Bruno Haible  <bruno@clisp.org>
36077
36078         pt_chown: Don't depend on GPLed modules.
36079         * lib/pt_chown.c: Don't include idpriv.h.
36080         (main): Don't drop privileges.
36081         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36082         Reported by Simon Josefsson.
36083
36084 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36085
36086         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36087         suggestions from karl@freefriends.org (Karl Berry).
36088
36089 2010-03-22  Eric Blake  <eblake@redhat.com>
36090
36091         gethostname: further tweaks
36092         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36093         are overriding gethostname.
36094         Suggested by Bruno Haible.
36095
36096 2010-03-21  Bruno Haible  <bruno@clisp.org>
36097
36098         Fix comments.
36099         * lib/forkpty.c (rpl_forkpty): Fix comment.
36100         * lib/openpty.c (rpl_openpty): Likewise.
36101         Reported by Eric Blake.
36102
36103 2010-03-22  Eric Blake  <eblake@redhat.com>
36104
36105         gethostname: fix build on mingw
36106         * lib/unistd.in.h (includes): Work around fact that mingw
36107         <winsock2.h> re-includes <unistd.h>, by avoiding any
36108         redeclarations if we are being included by <winsock2.h>.
36109         Reported by Matthias Bolte.
36110
36111 2010-03-21  Bruno Haible  <bruno@clisp.org>
36112
36113         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36114         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36115         modifications.
36116         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36117         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36118         provide the replacement.
36119         * modules/forkpty (Depends-on): Add openpty, login_tty.
36120         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36121         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36122         * doc/glibc-functions/forkpty.texi: More supported platforms.
36123         * config/srclist.txt: Add forkpty.c (commented).
36124
36125 2010-03-21  Bruno Haible  <bruno@clisp.org>
36126
36127         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36128         (Makefile.am): Verify that PTY_LIB is defined.
36129
36130         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36131
36132 2010-03-21  Bruno Haible  <bruno@clisp.org>
36133
36134         Tests for module 'login_tty'.
36135         * modules/login_tty-tests: New file.
36136         * tests/test-login_tty.c: New file.
36137
36138         New module 'login_tty'.
36139         * lib/login_tty.c: New file.
36140         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36141         * modules/login_tty: New file.
36142         * doc/glibc-functions/login_tty.texi: Mention the new module.
36143
36144 2010-03-21  Bruno Haible  <bruno@clisp.org>
36145
36146         login_tty: Documentation.
36147         * doc/glibc-functions/login_tty.texi: New file.
36148         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36149
36150 2010-03-21  Bruno Haible  <bruno@clisp.org>
36151
36152         pty: Consistent macro naming.
36153         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36154         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36155         * modules/pty (configure.ac): Update.
36156
36157 2010-03-21  Bruno Haible  <bruno@clisp.org>
36158
36159         Tests for openpty: Make stricter.
36160         * tests/test-openpty.c (main): Add test of canonical processing and
36161         erase.
36162         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36163
36164         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36165         * lib/openpty.c (openpty): New replacement function.
36166         * lib/pty.in.h: Include <termios.h>.
36167         (openpty): Update declaration. Add comments.
36168         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36169         is not declared, arrange to provide the replacement. Check for _getpty
36170         and posix_openpt.
36171         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36172         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36173         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36174         * modules/pty-tests (test_pty_c___LDADD): New variable.
36175         * doc/glibc-functions/openpty.texi: More supported platforms.
36176
36177 2010-03-21  Bruno Haible  <bruno@clisp.org>
36178
36179         setenv: Tweaks.
36180         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36181         the test program.
36182         * doc/posix-functions/setenv.texi: Update platforms list.
36183
36184 2010-03-21  Bruno Haible  <bruno@clisp.org>
36185
36186         New module 'unlockpt'.
36187         * lib/unlockpt.c: New file, from glibc with modifications.
36188         * m4/unlockpt.m4: New file.
36189         * modules/unlockpt: New file.
36190         * lib/stdlib.in.h (unlockpt): New declaration.
36191         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36192         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36193         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36194         HAVE_UNLOCKPT.
36195         * doc/posix-functions/unlockpt.texi: Mention the new module.
36196         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36197         * config/srclist.txt: Add unlockpt.c (commented).
36198
36199 2010-03-21  Jim Meyering  <meyering@redhat.com>
36200
36201         maint.mk: prohibit inclusion of "intprops.h" without use
36202         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36203
36204 2010-03-21  Bruno Haible  <bruno@clisp.org>
36205
36206         New module 'grantpt'.
36207         * lib/grantpt.c: New file, from glibc with modifications.
36208         * m4/grantpt.m4: New file.
36209         * modules/grantpt: New file.
36210         * lib/stdlib.in.h (grantpt): New declaration.
36211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36213         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36214         HAVE_GRANTPT.
36215         * doc/posix-functions/grantpt.texi: Mention the new module.
36216         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36217         * config/srclist.txt: Add grantpt.c (commented).
36218
36219 2010-03-21  Bruno Haible  <bruno@clisp.org>
36220
36221         New module 'pt_chown'.
36222         * lib/pt_chown.c: New file, from glibc with modifications.
36223         * lib/pty-private.h: New file, from glibc with modifications.
36224         * modules/pt_chown: New file.
36225         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36226
36227 2010-03-21  Bruno Haible  <bruno@clisp.org>
36228
36229         Tests for module 'ptsname'.
36230         * modules/ptsname-tests: New file.
36231         * tests/test-ptsname.c: New file.
36232
36233         New module 'ptsname'.
36234         * lib/ptsname.c: New file, from glibc with modifications.
36235         * m4/ptsname.m4: New file.
36236         * modules/ptsname: New file.
36237         * lib/stdlib.in.h (ptsname): New declaration.
36238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36240         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36241         HAVE_PTSNAME.
36242         * doc/posix-functions/ptsname.texi: Mention the new module.
36243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36244         * config/srclist.txt: Add ptsname.c (commented).
36245
36246 2010-03-21  Bruno Haible  <bruno@clisp.org>
36247
36248         Tests for module 'ttyname_r'.
36249         * modules/ttyname_r-tests: New file.
36250         * tests/test-ttyname_r.c: New file.
36251
36252         New module 'ttyname_r'.
36253         * lib/ttyname_r.c: New file.
36254         * m4/ttyname_r.m4: New file.
36255         * modules/ttyname_r: New file.
36256         * lib/unistd.in.h (ttyname_r): New declaration.
36257         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36259         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36260         HAVE_TTYNAME_R.
36261         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36262         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36263
36264 2010-03-20  Bruno Haible  <bruno@clisp.org>
36265
36266         signal: Undefine macro definitions in C++ mode.
36267         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36268         sigfillset): Undefine macro definitions from the system header in C++
36269         mode.
36270         Reported by John W. Eaton <jwe@gnu.org>.
36271
36272 2010-03-20  Bruno Haible  <bruno@clisp.org>
36273
36274         Ensure no #include statements inside extern "C" { ... }.
36275         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36276         contain #include statements.
36277         * lib/time.in.h: Likewise.
36278
36279 2010-03-20  Bruno Haible  <bruno@clisp.org>
36280
36281         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36282         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36283         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36284         Reported by John W. Eaton <jwe@gnu.org>.
36285
36286 2010-03-20  Bruno Haible  <bruno@clisp.org>
36287
36288         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36289         Reported by Jim Meyering.
36290
36291 2010-03-20  Bruno Haible  <bruno@clisp.org>
36292
36293         pipe: Set errno upon failure.
36294         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36295         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36296         errno value in error message.
36297
36298 2010-03-20  Bruno Haible  <bruno@clisp.org>
36299             Jim Meyering  <meyering@redhat.com>
36300
36301         lchown: Avoid "unused variable" warning.
36302         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36303
36304 2010-03-20  Bruno Haible  <bruno@clisp.org>
36305
36306         Work around unlink() bug on MacOS X 10.5.6.
36307         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36308         attempting to unlink a parent directory.
36309         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36310         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36311         activate for the replacement function.
36312         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36313
36314 2010-03-20  Bruno Haible  <bruno@clisp.org>
36315
36316         Fix link errors on Solaris 8.
36317         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36318         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36319
36320 2010-03-19  Jim Meyering  <meyering@redhat.com>
36321
36322         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36323         The _LIBC implementation of build_range_exp correctly honors the
36324         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36325         However, the non-_LIBC implementation would ignore that syntax-bit
36326         flag and return REG_ERANGE unconditionally.
36327         This change makes it honor that flag.
36328         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36329         Make two pointer parameters "const".
36330         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36331         (parse_bracket_exp): Update caller.
36332
36333         regex.m4: correct the reversed range endpoint ([b-a]) test
36334         * m4/regex.m4: When requiring that [b-a] evoke failure,
36335         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36336         test pass once again for x86-based systems.
36337
36338 2010-03-19  Bruno Haible  <bruno@clisp.org>
36339
36340         scandir: Fix link error on Solaris 8.
36341         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36342         macros.
36343
36344 2010-03-19  Bruno Haible  <bruno@clisp.org>
36345
36346         getusershell: Fix documentation.
36347         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36348         module.
36349         * doc/glibc-functions/setusershell.texi: Likewise.
36350
36351         getusershell: Provide declaration, missing on Solaris 9.
36352         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36353         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36354         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36355         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36357         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36358         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36359         HAVE_GETUSERSHELL.
36360         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36361
36362 2010-03-19  Bruno Haible  <bruno@clisp.org>
36363
36364         wctype: Provide iswblank function.
36365         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36366         exists and is fine.
36367         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36368         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36369         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36370         * doc/posix-functions/iswblank.texi: Update.
36371
36372 2010-03-19  Bruno Haible  <bruno@clisp.org>
36373
36374         Tests of module 'pty' in C++ mode.
36375         * modules/pty-tests: New file.
36376         * tests/test-pty-c++.cc: New file.
36377         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36378
36379 2010-03-19  Eric Blake  <eblake@redhat.com>
36380
36381         logb: fix documentation
36382         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36383         1.5 declaration bug.
36384
36385         forkpty, openpty: prefer glibc's const-safe prototype
36386         * lib/forkpty.c (rpl_forkpty): New file.
36387         * lib/openpty.c (rpl_openpty): Likewise.
36388         * modules/forkpty (Files): Distribute it.
36389         * modules/openpty (Files): Likewise.
36390         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36391         check...
36392         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36393         replacement for for non-const BSD signature.
36394         * modules/pty (Makefile.am): Substitute witnesses.
36395         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36396         * tests/test-forkpty.c: Update signature check.
36397         * tests/test-openpty.c: Likewise.
36398         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36399         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36400
36401         forkpty, openpty: split functions into new modules
36402         * modules/pty (Makefile.am): Substitute new witnesses.
36403         (Libraries): Move library detection...
36404         * modules/forkpty: ...into new module.
36405         * modules/openpty: Another new module.
36406         * modules/pty-tests: Rename and split...
36407         * modules/forkpty-tests: ...to this...
36408         * modules/openpty-tests: ...and this.
36409         * tests/test-pty.c: Rename and split...
36410         * tests/test-forkpty.c: ...to this...
36411         * tests/test-openpty.c: ...and this.
36412         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36413         (gl_PTY): Split library searching...
36414         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36415         (gl_FORKPTY, gl_OPENPTY): New macros.
36416         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36417         * NEWS: Mention the split.
36418         * MODULES.html.sh (Misc): Document the modules.
36419         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36420         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36421
36422         pty: improve replacement header
36423         * lib/pty.in.h: New file.
36424         * modules/pty (Files): Ship it.
36425         (Makefile.am): Always build replacement.
36426         * m4/pty.m4: Rename...
36427         * m4/pty_h.m4: ...to this.
36428         (gl_PTY): Modernize setting of witness macros; update check of
36429         forkpty to take proper advantage of cache.
36430         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36431
36432         getopt: avoid compiler warning
36433         * lib/getopt.c (attribute_hidden): Remove unused macro.
36434
36435 2010-03-18  Bruno Haible  <bruno@clisp.org>
36436
36437         Fix link errors on Solaris 8.
36438         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36439         * modules/search-tests (test_search_c___LDADD): Likewise.
36440         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36441         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36442         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36443         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36444         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36445         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36446         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36447
36448 2010-03-18  Bruno Haible  <bruno@clisp.org>
36449
36450         Fix bug introduced on 2010-03-14.
36451         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36452         (gl_SPAWN_H): Require it.
36453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36454         Reported by Simon Josefsson.
36455
36456 2010-03-18  Bruno Haible  <bruno@clisp.org>
36457
36458         Fix typo introduced on 2009-12-31.
36459         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36460         posix_spawn_file_actions_adddup2.
36461
36462 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36463         and Eric Blake  <eblake@redhat.com>
36464
36465         test-vc-list-files-git: make more robust
36466         * tests/test-vc-list-files-git.sh: Unset problematic environment
36467         variables.  Chain commands together.
36468
36469 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36470
36471         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36472         `AC_CHECK_DECL' invocation.
36473
36474 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36475
36476         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36477         appears before executable statements. Suggested by Petr Sumbera
36478         <Petr.Sumbera@Sun.COM>.
36479
36480 2010-03-14  Bruno Haible  <bruno@clisp.org>
36481
36482         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36483         portability problems. Instead use a simpler test.
36484         (main): Check that invalid arguments are rejected only on Linux.
36485
36486 2010-03-14  Bruno Haible  <bruno@clisp.org>
36487
36488         Fix bug introduced on 2009-12-31.
36489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36490         gl_PREREQ_SYS_H_WINSOCK2 always.
36491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36492         SYS_SOCKET_H variable.
36493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36494         Update comments.
36495         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36496         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36499         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36500
36501 2010-03-14  Bruno Haible  <bruno@clisp.org>
36502
36503         Fix values returned by sinl, cosl.
36504         * lib/trigl.h: Add specification comments.
36505         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36506         that combines the values from the precomputed table with the values of
36507         the Chebyshev polynomials.
36508
36509 2010-03-14  Bruno Haible  <bruno@clisp.org>
36510
36511         Fix compilation error when modules 'posix_spawn[p]' are not used.
36512         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36514
36515 2010-03-14  Bruno Haible  <bruno@clisp.org>
36516
36517         Fix compilation error on mingw when module 'time_r' is not used.
36518         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36519         is 1.
36520         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36521         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36522         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36524
36525 2010-03-14  Bruno Haible  <bruno@clisp.org>
36526
36527         Fix compilation error with Sun C.
36528         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36529         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36530         instead of GCC specific ULONG_LONG_MAX.
36531         * lib/xstrtoll.c: Likewise.
36532         * lib/xstrtoull.c: Likewise.
36533
36534 2010-03-13  Bruno Haible  <bruno@clisp.org>
36535
36536         Allow the user to disable C++ code and tests.
36537         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36538         (gl_PROG_ANSI_CXX): Require it.
36539
36540 2010-03-13  Bruno Haible  <bruno@clisp.org>
36541
36542         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36543         cases.
36544
36545 2010-03-13  Bruno Haible  <bruno@clisp.org>
36546
36547         Test that gnulib does not break the standard C++ headers.
36548         * tests/test-locale-c++2.cc: New file.
36549         * modules/locale-tests (Files): Add it.
36550         (Makefile.am): Compile it for test-locale-c++.
36551         * tests/test-math-c++2.cc: New file.
36552         * modules/math-tests (Files): Add it.
36553         (Makefile.am): Compile it for test-math-c++.
36554         * tests/test-signal-c++2.cc: New file.
36555         * modules/signal-tests (Files): Add it.
36556         (Makefile.am): Compile it for test-signal-c++.
36557         * tests/test-stdio-c++2.cc: New file.
36558         * modules/stdio-tests (Files): Add it.
36559         (Makefile.am): Compile it for test-stdio-c++.
36560         * tests/test-stdlib-c++2.cc: New file.
36561         * modules/stdlib-tests (Files): Add it.
36562         (Makefile.am): Compile it for test-stdlib-c++.
36563         * tests/test-string-c++2.cc: New file.
36564         * modules/string-tests (Files): Add it.
36565         (Makefile.am): Compile it for test-string-c++.
36566         * tests/test-time-c++2.cc: New file.
36567         * modules/time-tests (Files): Add it.
36568         (Makefile.am): Compile it for test-time-c++.
36569         Reported by John W. Eaton <jwe@gnu.org>.
36570
36571 2010-03-13  Bruno Haible  <bruno@clisp.org>
36572
36573         * gnulib-tool (func_usage): Clarify which options are available for
36574         --create-testdir and --create-megatestdir.
36575
36576 2010-03-13  Bruno Haible  <bruno@clisp.org>
36577
36578         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36579         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36580         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36581         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36582         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36583         when appropriate.
36584         Reported by Jim Meyering.
36585
36586 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36587
36588         * gnulib-tool (func_import): Explain origin of code.
36589
36590 2010-03-12  Bruno Haible  <bruno@clisp.org>
36591
36592         Fix problem with automake's definition of CXXLINK.
36593         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36594         Reported by Simon Josefsson and Ludovic Courtès.
36595
36596 2010-03-12  Bruno Haible  <bruno@clisp.org>
36597
36598         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36599         stable releases.
36600
36601 2010-03-11  Bruno Haible  <bruno@clisp.org>
36602
36603         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36604         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36605         whether the system provides one variant or multiple variants of the
36606         function.
36607         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36608         C++ compilers.
36609         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36610         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36611         Reported by Jim Meyering.
36612
36613 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36614
36615         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36616
36617 2010-03-08  Bruno Haible  <bruno@clisp.org>
36618
36619         gnulib-tool: Add support for --libtool in --create-testdir.
36620         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36621         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36622
36623 2010-03-08  Eric Blake  <eblake@redhat.com>
36624
36625         gnulib-tool.texi: mention possibility of git submodule
36626         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36627         submodules.
36628         * doc/.gitignore: Ignore another generated file.
36629
36630 2010-03-08  Karl Berry  <karl@gnu.org>
36631
36632         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36633         of committing gnulib files while skipping others.
36634
36635 2010-03-07  Bruno Haible  <bruno@clisp.org>
36636
36637         Tests of module 'wctype' in C++ mode.
36638         * tests/test-wctype-c++.cc: New file.
36639         * modules/wctype-tests (Files): Add it and tests/signature.h.
36640         (Depends-on): Add ansi-c++-opt.
36641         (Makefile.am): Arrange to compile and run test-wctype-c++.
36642
36643         Tests of module 'wchar' in C++ mode.
36644         * tests/test-wchar-c++.cc: New file.
36645         * modules/wchar-tests (Files): Add it and tests/signature.h.
36646         (Depends-on): Add ansi-c++-opt.
36647         (Makefile.am): Arrange to compile and run test-wchar-c++.
36648         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36649         gl_MODULE_INDICATOR.
36650
36651         Tests of module 'unistd' in C++ mode.
36652         * tests/test-unistd-c++.cc: New file.
36653         * modules/unistd-tests (Files): Add it and tests/signature.h.
36654         (Depends-on): Add ansi-c++-opt.
36655         (Makefile.am): Arrange to compile and run test-unistd-c++.
36656         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36657         gl_MODULE_INDICATOR.
36658
36659         Tests of module 'time' in C++ mode.
36660         * tests/test-time-c++.cc: New file.
36661         * modules/time-tests (Files): Add it and tests/signature.h.
36662         (Depends-on): Add ansi-c++-opt.
36663         (Makefile.am): Arrange to compile and run test-time-c++.
36664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36665
36666         Tests of module 'sys_time' in C++ mode.
36667         * tests/test-sys_time-c++.cc: New file.
36668         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36669         (Depends-on): Add ansi-c++-opt.
36670         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36671         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36672         gl_MODULE_INDICATOR.
36673
36674         Tests of module 'sys_stat' in C++ mode.
36675         * tests/test-sys_stat-c++.cc: New file.
36676         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36677         (Depends-on): Add ansi-c++-opt.
36678         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36679         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36680         gl_MODULE_INDICATOR.
36681
36682         Tests of module 'sys_socket' in C++ mode.
36683         * tests/test-sys_socket-c++.cc: New file.
36684         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36685         (Depends-on): Add ansi-c++-opt.
36686         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36687         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36688         gl_MODULE_INDICATOR.
36689
36690         Tests of module 'sys_select' in C++ mode.
36691         * tests/test-sys_select-c++.cc: New file.
36692         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36693         (Depends-on): Add ansi-c++-opt.
36694         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36695         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36696         gl_MODULE_INDICATOR.
36697
36698         Tests of module 'sys_ioctl' in C++ mode.
36699         * tests/test-sys_ioctl-c++.cc: New file.
36700         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36701         (Depends-on): Add ansi-c++-opt.
36702         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36704         gl_MODULE_INDICATOR.
36705
36706         Tests of module 'string' in C++ mode.
36707         * tests/test-string-c++.cc: New file.
36708         * modules/string-tests (Files): Add it and tests/signature.h.
36709         (Depends-on): Add ansi-c++-opt.
36710         (Makefile.am): Arrange to compile and run test-string-c++.
36711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36712         gl_MODULE_INDICATOR.
36713
36714         Tests of module 'stdlib' in C++ mode.
36715         * tests/test-stdlib-c++.cc: New file.
36716         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36717         (Depends-on): Add ansi-c++-opt.
36718         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36719         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36720         gl_MODULE_INDICATOR.
36721
36722         Tests of module 'stdio' in C++ mode.
36723         * tests/test-stdio-c++.cc: New file.
36724         * modules/stdio-tests (Files): Add it and tests/signature.h.
36725         (Depends-on): Add ansi-c++-opt.
36726         (Makefile.am): Arrange to compile and run test-stdio-c++.
36727         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36728         gl_MODULE_INDICATOR.
36729
36730         Tests of module 'spawn' in C++ mode.
36731         * tests/test-spawn-c++.cc: New file.
36732         * modules/spawn-tests (Files): Add it and tests/signature.h.
36733         (Depends-on): Add ansi-c++-opt.
36734         (Makefile.am): Arrange to compile and run test-spawn-c++.
36735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36736         gl_MODULE_INDICATOR.
36737
36738         Tests of module 'signal' in C++ mode.
36739         * tests/test-signal-c++.cc: New file.
36740         * modules/signal-tests (Files): Add it and tests/signature.h.
36741         (Depends-on): Add ansi-c++-opt.
36742         (Makefile.am): Arrange to compile and run test-signal-c++.
36743         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36744         gl_MODULE_INDICATOR.
36745
36746         Tests of module 'search' in C++ mode.
36747         * tests/test-search-c++.cc: New file.
36748         * modules/search-tests (Files): Add it and tests/signature.h.
36749         (Depends-on): Add ansi-c++-opt.
36750         (Makefile.am): Arrange to compile and run test-search-c++.
36751         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36752         gl_MODULE_INDICATOR.
36753
36754         Tests of module 'math' in C++ mode.
36755         * tests/test-math-c++.cc: New file.
36756         * modules/math-tests (Files): Add it and tests/signature.h.
36757         (Depends-on): Add ansi-c++-opt.
36758         (Makefile.am): Arrange to compile and run test-math-c++.
36759         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36760
36761         Tests of module 'locale' in C++ mode.
36762         * tests/test-locale-c++.cc: New file.
36763         * modules/locale-tests (Files): Add it and tests/signature.h.
36764         (Depends-on): Add ansi-c++-opt.
36765         (Makefile.am): Arrange to compile and run test-locale-c++.
36766         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36767         gl_MODULE_INDICATOR.
36768
36769         Tests of module 'langinfo' in C++ mode.
36770         * tests/test-langinfo-c++.cc: New file.
36771         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36772         (Depends-on): Add ansi-c++-opt.
36773         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36774         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36775         gl_MODULE_INDICATOR.
36776
36777         Tests of module 'iconv-h' in C++ mode.
36778         * tests/test-iconv-h-c++.cc: New file.
36779         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36780         (Depends-on): Add ansi-c++-opt.
36781         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36782
36783         Tests of module 'glob' in C++ mode.
36784         * tests/test-glob-c++.cc: New file.
36785         * modules/glob-tests (Files): Add it.
36786         (Depends-on): Add ansi-c++-opt.
36787         (Makefile.am): Arrange to compile and run test-glob-c++.
36788
36789         Tests of module 'fcntl-h' in C++ mode.
36790         * tests/test-fcntl-h-c++.cc: New file.
36791         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36792         (Depends-on): Add ansi-c++-opt.
36793         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36795         gl_MODULE_INDICATOR.
36796
36797         Tests of module 'dirent' in C++ mode.
36798         * tests/test-dirent-c++.cc: New file.
36799         * modules/dirent-tests (Files): Add it and tests/signature.h.
36800         (Depends-on): Add ansi-c++-opt.
36801         (Makefile.am): Arrange to compile and run test-dirent-c++.
36802         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36803         gl_MODULE_INDICATOR.
36804
36805         New module 'ansi-c++-opt'.
36806         * modules/ansi-c++-opt: New file.
36807         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36808
36809         Document C++ namespace mode.
36810         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36811
36812         wctype: Avoid #define replacements in C++ mode.
36813         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36814         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36815         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36816         In C++, define a namespaced alias symbol.
36817         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36818         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36819         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36820         rule.
36821
36822         wchar: Avoid #define replacements in C++ mode.
36823         * lib/wchar.in.h: Include c++defs.h.
36824         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36825         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36826         symbol.
36827         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36828         * modules/wchar (Depends-on): Add c++defs.
36829         (Makefile.am): Update wchar.h rule.
36830
36831         unistd: Avoid #define replacements in C++ mode.
36832         * lib/unistd.in.h: Include c++defs.h.
36833         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36834         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36835         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36836         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36837         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36838         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36839         symbol.
36840         (environ): Update.
36841         * modules/unistd (Depends-on): Add c++defs.
36842         (Makefile.am): Update unistd.h rule.
36843
36844         time: Avoid #define replacements in C++ mode.
36845         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36846         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36847         define a namespaced alias symbol.
36848         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36849         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36850         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36851         * modules/time (Depends-on): Add c++defs, warn-on-use.
36852         (Makefile.am): Update time.h rule.
36853         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36854         * modules/nanosleep (configure.ac): Likewise.
36855         * modules/strptime (configure.ac): Likewise.
36856         * modules/timegm (configure.ac): Likewise.
36857
36858         sys_time: Avoid #define replacements in C++ mode.
36859         * lib/sys_time.in.h: Include c++defs.h.
36860         (gettimeofday): In C++, define a namespaced alias symbol.
36861         * modules/sys_time (Depends-on): Add c++defs.
36862         (Makefile.am): Update sys/time.h rule.
36863
36864         sys_stat: Avoid #define replacements in C++ mode.
36865         * lib/sys_stat.in.h: Include c++defs.h.
36866         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36867         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36868         namespaced alias symbol.
36869         In C++, define a namespaced alias symbol.
36870         * modules/sys_stat (Depends-on): Add c++defs.
36871         (Makefile.am): Update sys/stat.h rule.
36872
36873         sys_socket: Avoid #define replacements in C++ mode.
36874         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36875         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36876         definitions also when the system has a <sys/socket.h>.
36877         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36878         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36879         In C++, define a namespaced alias symbol.
36880         * modules/sys_socket (Depends-on): Add c++defs.
36881         (Makefile.am): Update sys/socket.h rule.
36882
36883         sys_select: Avoid #define replacements in C++ mode.
36884         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36885         definitions also when the system has a <sys/select.h>.
36886         (select): In C++, define a namespaced alias symbol.
36887         * modules/sys_select (Depends-on): Add c++defs.
36888         (Makefile.am): Update sys/select.h rule.
36889
36890         sys_ioctl: Avoid #define replacements in C++ mode.
36891         * lib/sys_ioctl.in.h: Include c++defs.h.
36892         (ioctl): In C++, define a namespaced alias symbol.
36893         * modules/sys_ioctl (Depends-on): Add c++defs.
36894         (Makefile.am): Update sys/ioctl.h rule.
36895
36896         string: Avoid #define replacements in C++ mode.
36897         * lib/string.in.h: Include c++defs.h.
36898         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36899         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36900         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36901         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36902         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36903         * modules/string (Depends-on): Add c++defs.
36904         (Makefile.am): Update string.h rule.
36905
36906         stdlib: Avoid #define replacements in C++ mode.
36907         * lib/stdlib.in.h: Include c++defs.h.
36908         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36909         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36910         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36911         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36912         symbol.
36913         * modules/stdlib (Depends-on): Add c++defs.
36914         (Makefile.am): Update stdlib.h rule.
36915
36916         stdio: Avoid #define replacements in C++ mode.
36917         * lib/stdio.in.h: Include c++defs.h.
36918         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36919         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36920         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36921         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36922         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36923         namespaced alias symbol.
36924         * modules/stdio (Depends-on): Add c++defs.
36925         (Makefile.am): Update stdio.h rule.
36926
36927         spawn: Avoid #define replacements in C++ mode.
36928         * lib/spawn.in.h: Include c++defs.h.
36929         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36930         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36931         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36932         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36933         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36934         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36935         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36936         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36937         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36938         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36939         In C++, define a namespaced alias symbol.
36940         * modules/spawn (Depends-on): Add c++defs.
36941         (Makefile.am): Update spawn.h rule.
36942
36943         signal: Avoid #define replacements in C++ mode.
36944         * lib/signal.in.h: Include c++defs.h.
36945         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36946         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36947         namespaced alias symbol.
36948         * modules/signal (Depends-on): Add c++defs.
36949         (Makefile.am): Update signal.h rule.
36950
36951         search: Avoid #define replacements in C++ mode.
36952         * lib/search.in.h: Include c++defs.h.
36953         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36954         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36955         symbol.
36956         * modules/search (Depends-on): Add c++defs.
36957         (Makefile.am): Update search.h rule.
36958
36959         math: Avoid #define replacements in C++ mode.
36960         * lib/math.in.h: Include c++defs.h.
36961         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36962         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36963         trunc, truncl): In C++, define a namespaced alias symbol.
36964         * modules/math (Depends-on): Add c++defs.
36965         (Makefile.am): Update math.h rule.
36966
36967         locale: Avoid #define replacements in C++ mode.
36968         * lib/locale.in.h: Include c++defs.h.
36969         (duplocale): In C++, define a namespaced alias symbol.
36970         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36971         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36972         * modules/locale (Depends-on): Add c++defs.
36973         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36974
36975         langinfo: Avoid #define replacements in C++ mode.
36976         * lib/langinfo.in.h: Include c++defs.h.
36977         (nl_langinfo): In C++, define a namespaced alias symbol.
36978         * modules/langinfo (Depends-on): Add c++defs.
36979         (Makefile.am): Update langinfo.h rule.
36980
36981         iconv-h: Avoid #define replacements in C++ mode.
36982         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36983         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36984         symbol.
36985         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36986         whenever iconv is present.
36987         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36988         (Makefile.am): Update iconv.h rule.
36989
36990         glob: Avoid #define replacements in C++ mode.
36991         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36992         (_gl_glob_errfunc_fn): New type.
36993         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36994         symbol.
36995         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36996         (Makefile.am): Update glob.h rule.
36997
36998         fcntl-h: Avoid #define replacements in C++ mode.
36999         * lib/fcntl.in.h: Include c++defs.h.
37000         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37001         * modules/fcntl-h (Depends-on): Add c++defs.
37002         (Makefile.am): Update fcntl.h rule.
37003
37004         dirent: Avoid #define replacements in C++ mode.
37005         * lib/dirent.in.h: Include c++defs.h.
37006         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37007         namespaced alias symbol.
37008         (dirfd): Update declaration.
37009         * modules/dirent (Depends-on): Add c++defs.
37010         (Makefile.am): Update dirent.h rule.
37011
37012         ctype: Make it usable in C++ code.
37013         * lib/ctype.in.h: Include c++defs.h.
37014         (isblank): Declare as extern "C".
37015         * modules/ctype (Depends-on): Add c++defs.
37016         (Makefile.am): Update ctype.h rule.
37017
37018         New module 'c++defs'.
37019         * modules/c++defs: New file.
37020         * build-aux/c++defs.h: New file.
37021         Reported by John W. Eaton <jwe@gnu.org>.
37022
37023 2010-03-07  Bruno Haible  <bruno@clisp.org>
37024
37025         logb: Provide missing declaration for Cygwin.
37026         * lib/math.in.h (logb): New declaration.
37027         * m4/logb.m4: New file.
37028         * modules/logb (Files): Add m4/logb.m4.
37029         (Depends-on): Add math.
37030         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37031         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37033         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37034         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37035
37036 2010-03-07  Bruno Haible  <bruno@clisp.org>
37037
37038         Fix test-cond link error.
37039         * tests/test-cond.c: Include <stdio.h>.
37040
37041 2010-03-07  Bruno Haible  <bruno@clisp.org>
37042
37043         Fix test-dirent-safer link error.
37044         * modules/dirent-safer-tests (Makefile.am): Define
37045         test_dirent_safer_LDADD.
37046
37047 2010-03-07  Bruno Haible  <bruno@clisp.org>
37048
37049         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37050         among default module list.
37051
37052 2010-03-07  Bruno Haible  <bruno@clisp.org>
37053
37054         Fix link error on platforms with GNU libiconv.
37055         * modules/unistr/u8-strcoll-tests (Makefile): Define
37056         test_u8_strcoll_LDADD.
37057         * modules/unistr/u16-strcoll-tests (Makefile): Define
37058         test_u16_strcoll_LDADD.
37059         * modules/unistr/u32-strcoll-tests (Makefile): Define
37060         test_u32_strcoll_LDADD.
37061
37062 2010-03-07  Bruno Haible  <bruno@clisp.org>
37063
37064         Use POSIX declarations for socket functions.
37065         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37066         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37067         rpl_sendto): Change declaration to match POSIX.
37068         * lib/connect.c (rpl_connect): Likewise.
37069         * lib/accept.c (rpl_accept): Likewise.
37070         * lib/bind.c (rpl_bind): Likewise.
37071         * lib/getpeername.c (rpl_getpeername): Likewise.
37072         * lib/getsockname.c (rpl_getsockname): Likewise.
37073         * lib/recv.c (rpl_recv): Likewise.
37074         * lib/send.c (rpl_send): Likewise.
37075         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37076         * lib/sendto.c (rpl_sendto): Likewise.
37077
37078 2010-03-06  Bruno Haible  <bruno@clisp.org>
37079
37080         Clarify access, euidaccess, faccessat.
37081         * doc/posix-functions/faccessat.texi: Mention security problem under
37082         "Other problems", not "Portability problems".
37083         * doc/posix-functions/access.texi: Likewise. Mention a related security
37084         problem.
37085         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37086         * lib/euidaccess.c: Add comments about platforms.
37087         * lib/unistd.in.h (access, euidaccess): Add warnings.
37088
37089 2010-03-07  Bruno Haible  <bruno@clisp.org>
37090
37091         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37092         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37093         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37094         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37095         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37096         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37097         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37098         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37099         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37101         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37102         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37103         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37104         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37105         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37106         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37107         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37108         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37109         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37110         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37111         Likewise.
37112         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37113         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37114         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37115         Likewise.
37116         * tests/test-spawn.c (main): Make it work when
37117         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37118
37119 2010-03-07  Bruno Haible  <bruno@clisp.org>
37120
37121         Fix incorrect Makefile.am generation in German locale.
37122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37123         Execute sed command with character range in C locale.
37124
37125 2010-03-06  Bruno Haible  <bruno@clisp.org>
37126
37127         Tests for module 'iconv-h'.
37128         * modules/iconv-h-tests: New file.
37129         * tests/test-iconv-h.c: New file.
37130
37131         New module 'iconv-h'.
37132         * modules/iconv-h: New file.
37133         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37134         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37135         (configure.ac): Remove gl_ICONV_H.
37136         (Makefile.am): Remove rule for iconv.h.
37137
37138 2010-03-06  Bruno Haible  <bruno@clisp.org>
37139
37140         More consistent naming of *.m4 files.
37141         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37142         * modules/wctype (Files): Update.
37143
37144         More consistent naming of *.m4 files.
37145         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37146         * modules/wchar (Files): Update.
37147
37148 2010-03-06  Jim Meyering  <meyering@redhat.com>
37149
37150         euidaccess: relax license to LGPLv2+
37151         * modules/euidaccess (License): Relax to LGPLv2+.
37152
37153 2010-03-06  Bruno Haible  <bruno@clisp.org>
37154
37155         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37156         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37157         (Makefile.am): Augment lib_SOURCES instead.
37158
37159 2010-03-04  Jim Meyering  <meyering@redhat.com>
37160
37161         utime: remove obsolete module
37162         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37163         unnecessary for years, and has been marked as obsolete for 10 months.
37164         * modules/utime: Remove file.
37165         * lib/utime.c: Remove file.
37166         * m4/utime.m4: Remove file.
37167         * m4/utimes-null.m4: Remove file.
37168         * doc/posix-functions/utime.texi (utime): Remove reference to
37169         the module.  Move the sole "fixed by gnulib" item into the
37170         "problems not fixed by Gnulib" list.
37171         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37172
37173 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37174
37175         * modules/exit (License): Relax license to LGPLv2+.
37176         (Status): Mark as obsolete.
37177         * NEWS: Mention deprecated 'exit' module.
37178         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37179         of now obsolete 'exit'.
37180
37181 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37182
37183         fts-lgpl: remove unused module
37184         * modules/fts-lgpl: Remove.
37185         * MODULES.html.sh (func_all_modules): Adjust.
37186         * check-module (find_included_lib_files): Adjust.
37187         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37188
37189 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37190
37191         copy-acl: enhance Solaris ACL error handling
37192         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37193         * lib/set-mode-acl.c (qset_acl): Likewise.
37194
37195 2010-03-02  Bruno Haible  <bruno@clisp.org>
37196
37197         spawn: Don't override the system defined values on FreeBSD 8.
37198         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37199         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37200         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37201         if HAVE_POSIX_SPAWN is 1.
37202         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37203
37204 2010-03-01  Bruno Haible  <bruno@clisp.org>
37205
37206         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37207         regarding Automake.
37208
37209 2010-02-25  Bruno Haible  <bruno@clisp.org>
37210
37211         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37212         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37213         setting, not afterwards.
37214         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37215
37216 2010-02-24  Eric Blake  <eblake@redhat.com>
37217
37218         bootstrap, git-version-gen: use timestamp
37219         * build-aux/git-version-gen (scriptversion): Force UTC.
37220         * build-aux/bootstrap (scriptversion): New variable.
37221
37222         bootstrap: allow older git
37223         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37224         older than 1.6.4.  Requested by the libvirt project.
37225
37226 2010-02-23  Eric Blake  <eblake@redhat.com>
37227
37228         warn-on-use: work with old autoconf
37229         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37230         AS_VAR semantics of autoconf 2.60.
37231         Reported by Bruno Haible.
37232
37233         bootstrap: improve some comments
37234         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37235         clarification comments.
37236
37237         gettimeofday: provide correct function
37238         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37239         when replacement is declared, otherwise provide gettimeofday.
37240         Reported by Michael Goffioul.
37241
37242 2010-02-23  Jim Meyering  <meyering@redhat.com>
37243
37244         lib-ignore: relax license to "unlimited", not LGPLv2+
37245         * modules/lib-ignore (License): Relax to "unlimited".
37246
37247 2010-02-23  Jim Meyering  <meyering@redhat.com>
37248
37249         lib-ignore: relax license to LGPLv2+
37250         * modules/lib-ignore (License): Relax to LGPLv2+.
37251
37252 2010-02-22  Eric Blake  <eblake@redhat.com>
37253
37254         lseek: avoid bash 3.2 broken pipe bug
37255         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37256         warning from bash 3.2.
37257         Reported by Ben Pfaff, with analysis from Bruno Haible.
37258
37259         bootstrap: support non-FSF copyright holder
37260         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37261         bootstrap.conf override of COPYRIGHT_HOLDER.
37262         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37263
37264         bootstrap: interoperate with gettext 0.14.1
37265         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37266
37267         bootstrap: allow for alternate submodule location
37268         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37269         hardcoding submodule location.
37270         (gnulib_mk): Allow direct use of Makefile.am.
37271
37272         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37273         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37274         rather than reconfiguring where the submodule points.
37275
37276         gettimeofday: restore support for platforms that lack function
37277         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37278         replacement if function is missing.
37279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37280         * modules/sys_time (Makefile.am): Substitute it.
37281         * lib/sys_time.in.h (gettimeofday): Check it.
37282         Reported by Michael Goffioul.
37283
37284 2010-02-21  Bruno Haible  <bruno@clisp.org>
37285
37286         * lib/stdio.in.h (obstack_printf): Fix typo.
37287
37288 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37289
37290         vc-list-files: use bzr ls's -R option
37291         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37292         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37293
37294 2010-02-21  Jim Meyering  <meyering@redhat.com>
37295
37296         init.sh: fix EXEEXT shims to work also for names like test-prog
37297         * tests/init.sh: Re-exec a better shell, when needed.
37298         If the current shell lacks support for posix $(...), an init.sh-using
37299         test will now try to find a shell that supports that.  If EXEEXT is
37300         nonempty, we also require support for hyphen-in-alias-name and shell
37301         substitutions like ${var#glob}.  Failure to find such a shell results
37302         in a skipped test.
37303
37304 2010-02-21  Bruno Haible  <bruno@clisp.org>
37305
37306         Really work around around "broken pipe" error message from bash 3.2.
37307         * gnulib-tool (func_reset_sigpipe): Remove function.
37308         (echo): In bash 3.2, define to a function that uses printf.
37309         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37310
37311 2010-02-20  Bruno Haible  <bruno@clisp.org>
37312
37313         Restore support for automake 1.9.6 with autoconf 2.61.
37314         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37315         Reported by James Youngman <jay@gnu.org>.
37316
37317 2010-02-20  Bruno Haible  <bruno@clisp.org>
37318
37319         Improve *printf warning condition.
37320         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37321         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37322         and the function is overridden due to SIGPIPE emulation.
37323
37324 2010-02-20  Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/stdio.in.h: Tweak comments.
37327
37328 2010-02-19  Bruno Haible  <bruno@clisp.org>
37329
37330         Make it easier to find modules. New gnulib-tool option '--find'.
37331         * gnulib-tool: New option --find.
37332         (func_usage): Document it.
37333         (func_sanitize_modulelist): New function, extracted from
37334         func_all_modules.
37335         (func_all_modules): Invoke it.
37336         * doc/gnulib-tool.texi (Which modules?): New node.
37337
37338 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37339
37340         * lib/sys_select.in.h: Provide select replacement even if
37341         sys/select.h exists on a system, for Interix.
37342
37343 2010-02-18  Jim Meyering  <meyering@redhat.com>
37344
37345         init.sh: don't use $(...) just yet
37346         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37347         to accommodate e.g., Solaris' /bin/sh.
37348
37349 2010-02-17  Bruno Haible  <bruno@clisp.org>
37350
37351         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37352         Reported by Ludovic Courtès <ludo@gnu.org>.
37353
37354 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37355
37356         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37357         linking with -lintl.
37358
37359 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37360
37361         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37362         if not provided by the system's netdb.h.  Reported by
37363         ludo@gnu.org (Ludovic Courtès).
37364
37365 2010-02-15  Jim Meyering  <meyering@redhat.com>
37366
37367         init.sh: improve portability and efficiency
37368         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37369         "dummy" in a for loop.
37370         Use '!', not '^' to select the complement of a character set used
37371         in a "case" statement.
37372         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37373         Suggestions from Eric Blake.
37374
37375         init.sh: automatically accommodate programs with the .exe suffix
37376         Automatically arrange for an invocation of "prog" to execute the
37377         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37378         may use the simpler "prog", yet still work when built on a system
37379         that requires specifying the added suffix.
37380         Do this by constructing a function named "prog" that invokes
37381         "prog.exe" for each .exe file in selected directories.
37382         * tests/init.sh (find_exe_basenames_): New function.
37383         (create_exe_shim_functions_): New function.
37384         (path_prepend_): Use it.
37385
37386         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37387         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37388         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37389
37390 2010-02-14  Jim Meyering  <meyering@redhat.com>
37391
37392         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37393         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37394         (sc_prohibit_hash_pjw_without_use): New rule.
37395
37396         maint.mk: allow the default upload destination dir to be overridden
37397         * top/maint.mk (upload_dest_dir_): Define with a default that
37398         preserves the status quo.
37399         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37400         Reported by Peter Simons.
37401
37402         maint.mk: prohibit inclusion of "hash.h" without_use
37403         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37404
37405 2010-02-10  Jim Meyering  <meyering@redhat.com>
37406
37407         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37408         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37409
37410 2010-02-09  Eric Blake  <ebb9@byu.net>
37411         and Bruno Haible  <bruno@clisp.org>
37412
37413         obstack-printf-posix: ensure declaration
37414         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37415         extracted from gl_FUNC_OBSTACK_PRINTF.
37416         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37418         Likewise.
37419         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37420         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37421         0.
37422
37423 2010-02-08  Bruno Haible  <bruno@clisp.org>
37424
37425         gnulib-tool: Fix typo in 2010-02-07 commit.
37426         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37427         Reported by Eric Blake.
37428
37429 2010-02-07  Bruno Haible  <bruno@clisp.org>
37430
37431         gnulib-tool: Fix up caching patches.
37432         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37433         option --no-cache. Use associative arrays when supported by the shell.
37434         (sed_comments): New variable.
37435         (modcache): Renamed from do_cache.
37436         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37437         abbreviate unnecessarily.
37438         (have_associative): New variable.
37439         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37440         way also for ksh and zsh.
37441         (func_init_sed_convert_to_cache_statements): New function, extracted
37442         from func_cache_lookup_module. Add support for associative arrays.
37443         Don't set the c_MODULE_cached variable here. Ignore all lines before
37444         the first field header. Remove only the final newline, not all trailing
37445         newlines. Support empty fields correctly. Limit the use of 'eval' to
37446         assignments.
37447         (func_get_description, func_get_status, func_get_notice,
37448         func_get_applicability, func_get_filelist, func_get_dependencies,
37449         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37450         func_get_automake_snippet, func_get_include_directive,
37451         func_get_link_directive, func_get_license, func_get_maintainer):
37452         Update documentation. List the unoptimized code first. Add support for
37453         associative arrays. Limit the use of 'eval' to assignments.
37454         (func_get_applicability): Undo stylistic pessimisations.
37455         (func_get_automake_snippet, func_get_include_directive): Reduce code
37456         duplication.
37457         (func_modules_transitive_closure, func_modules_add_dummy,
37458         func_modules_notice, func_modules_to_filelist, func_add_file,
37459         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37460         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37461         func_create_testdir, func_create_megatestdir): Update documentation.
37462
37463 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37464
37465         * gnulib-tool (func_cache_lookup_module): Store the module name
37466         belonging to the cache variable; error out if two different
37467         module names map to the same cache variable name.
37468
37469 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37470
37471         gnulib-tool: Make caching optional.
37472         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37473         Update matching short versions of --no-changelog.
37474         (func_usage): Update.
37475         (sed_extract_cache_prog): Renamed from ...
37476         (sed_extract_prog): ... this; revert to old extraction script.
37477         (func_get_description, func_get_status)
37478         (func_get_notice, func_get_applicability, func_get_filelist)
37479         (func_get_dependencies, func_get_autoconf_early_snippet)
37480         (func_get_autoconf_snippet, func_get_automake_snippet)
37481         (func_get_include_directive, func_get_link_directive)
37482         (func_get_license, func_get_maintainer): If $do_cache is false,
37483         use old, non-caching extraction scripts.
37484         Suggestion by Bruno Haible.
37485
37486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37487
37488         gnulib-tool: cache module metainformation.
37489         * gnulib-tool (sed_extract_prog): Match newline before each
37490         header, and rewrite header to a shell variable suffix.
37491         (func_cache_var, func_cache_lookup_module): New functions,
37492         to turn a module name into a cache variable prefix, and to
37493         look up and cache module metainformation.
37494         (func_get_description, func_get_status)
37495         (func_get_notice, func_get_applicability, func_get_filelist)
37496         (func_get_dependencies, func_get_autoconf_early_snippet)
37497         (func_get_autoconf_snippet, func_get_automake_snippet)
37498         (func_get_include_directive, func_get_link_directive)
37499         (func_get_license, func_get_maintainer): Use
37500         func_cache_lookup_module.
37501
37502 2010-02-07  Bruno Haible  <bruno@clisp.org>
37503
37504         fnctl: Fix missing dependency.
37505         * modules/fcntl (Depends-on): Add getdtablesize.
37506         Reported by John W. Eaton <jwe@gnu.org>.
37507
37508 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37509
37510         Argp: fix recognition of short alias options.
37511
37512         * lib/argp-parse.c (convert_options): Fix improper use of
37513         `|' between character values.
37514         * tests/test-argp.c (group1_option): New alias option
37515         --read (-r).
37516         (group1_parser): Special handling for 'r'.
37517         (test15): New test case.
37518         (test_fun): Add test15.
37519         * tests/test-argp-2.sh: Update expected --help and --usage
37520         outputs.
37521
37522 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37523
37524         * tests/test-argp.c: Fix indentation.
37525
37526 2010-02-04  Eric Blake  <ebb9@byu.net>
37527
37528         gettimeofday: expose type of second argument
37529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37530         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37531         * tests/test-gettimeofday.c: Use it to silence warning.
37532         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37533         the issue.
37534
37535 2010-02-03  Jim Meyering  <meyering@redhat.com>
37536
37537         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37538         * lib/regcomp.c (TYPE_SIGNED): Define.
37539         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37540
37541         regcomp.c: avoid a new -Wshadow warning
37542         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37543
37544 2010-02-01  Jim Meyering  <meyering@redhat.com>
37545
37546         removing useless parentheses in cpp #define directives
37547         For motivation, see commit c0221df4, "define STREQ(a,b)
37548         consistently, removing useless parentheses"
37549         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37550         * lib/mountlist.c (MNT_IGNORE): Likewise.
37551         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37552
37553 2010-02-01  Eric Blake  <ebb9@byu.net>
37554
37555         sys_time: use link-warning
37556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37557         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37558         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37559         * modules/sys_time (Depends-on): Add warn-on-use.
37560         (Makefile.am): Always build replacement.
37561         (configure.ac): Update substitutions.
37562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37563         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37564         bother with SYS_TIME_H.
37565         * modules/gettimeofday (configure.ac): Declare indicator.
37566         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37567         in use.
37568
37569         closein-tests: silence compiler warning
37570         * tests/test-closein.c (main): Ignore fread result.
37571         * modules/closein-tests (Depends-on): Add ignore-value.
37572
37573         tests: silence warning about system return
37574         * tests/test-areadlink-with-size.c (main): Ignore system result.
37575         * tests/test-areadlink.c (main): Likewise.
37576         * tests/test-areadlinkat-with-size.c (main): Likewise.
37577         * tests/test-areadlinkat.c (main): Likewise.
37578         * tests/test-canonicalize-lgpl.c (main): Likewise.
37579         * tests/test-canonicalize.c (main): Likewise.
37580         * tests/test-chown.c (main): Likewise.
37581         * tests/test-fchownat.c (main): Likewise.
37582         * tests/test-fdutimensat.c (main): Likewise.
37583         * tests/test-fstatat.c (main): Likewise.
37584         * tests/test-futimens.c (main): Likewise.
37585         * tests/test-lchown.c (main): Likewise.
37586         * tests/test-link.c (main): Likewise.
37587         * tests/test-linkat.c (main): Likewise.
37588         * tests/test-lstat.c (main): Likewise.
37589         * tests/test-mkdir.c (main): Likewise.
37590         * tests/test-mkdirat.c (main): Likewise.
37591         * tests/test-mkfifo.c (main): Likewise.
37592         * tests/test-mkfifoat.c (main): Likewise.
37593         * tests/test-mknod.c (main): Likewise.
37594         * tests/test-readlink.c (main): Likewise.
37595         * tests/test-remove.c (main): Likewise.
37596         * tests/test-rename.c (main): Likewise.
37597         * tests/test-renameat.c (main): Likewise.
37598         * tests/test-rmdir.c (main): Likewise.
37599         * tests/test-symlink.c (main): Likewise.
37600         * tests/test-symlinkat.c (main): Likewise.
37601         * tests/test-unlink.c (main): Likewise.
37602         * tests/test-unlinkat.c (main): Likewise.
37603         * tests/test-utimens.c (main): Likewise.
37604         * tests/test-utimensat.c (main): Likewise.
37605         * modules/areadlink-tests (Depends-on): Add ignore-value.
37606         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37607         * modules/areadlinkat-tests (Depends-on): Likewise.
37608         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37609         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37610         * modules/canonicalize-tests (Depends-on): Likewise.
37611         * modules/chown-tests (Depends-on): Likewise.
37612         * modules/fdutimensat-tests (Depends-on): Likewise.
37613         * modules/futimens-tests (Depends-on): Likewise.
37614         * modules/lchown-tests (Depends-on): Likewise.
37615         * modules/link-tests (Depends-on): Likewise.
37616         * modules/linkat-tests (Depends-on): Likewise.
37617         * modules/lstat-tests (Depends-on): Likewise.
37618         * modules/mkdir-tests (Depends-on): Likewise.
37619         * modules/mkfifo-tests (Depends-on): Likewise.
37620         * modules/mkfifoat-tests (Depends-on): Likewise.
37621         * modules/mknod-tests (Depends-on): Likewise.
37622         * modules/openat-tests (Depends-on): Likewise.
37623         * modules/readlink-tests (Depends-on): Likewise.
37624         * modules/remove-tests (Depends-on): Likewise.
37625         * modules/rename-tests (Depends-on): Likewise.
37626         * modules/renameat-tests (Depends-on): Likewise.
37627         * modules/rmdir-tests (Depends-on): Likewise.
37628         * modules/symlink-tests (Depends-on): Likewise.
37629         * modules/symlinkat-tests (Depends-on): Likewise.
37630         * modules/unlink-tests (Depends-on): Likewise.
37631         * modules/utimens-tests (Depends-on): Likewise.
37632         * modules/utimensat-tests (Depends-on): Likewise.
37633
37634 2010-01-31  Bruno Haible  <bruno@clisp.org>
37635
37636         Perform the same test for many <math.h> functions.
37637         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37638         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37639         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37640         of gl_MATHFUNC.
37641         * modules/acos (configure.ac): Likewise.
37642         * modules/asin (configure.ac): Likewise.
37643         * modules/atan (configure.ac): Likewise.
37644         * modules/atan2 (configure.ac): Likewise.
37645         * modules/cbrt (configure.ac): Likewise.
37646         * modules/copysign (configure.ac): Likewise.
37647         * modules/cos (configure.ac): Likewise.
37648         * modules/cosh (configure.ac): Likewise.
37649         * modules/erf (configure.ac): Likewise.
37650         * modules/erfc (configure.ac): Likewise.
37651         * modules/exp (configure.ac): Likewise.
37652         * modules/fmod (configure.ac): Likewise.
37653         * modules/hypot (configure.ac): Likewise.
37654         * modules/j0 (configure.ac): Likewise.
37655         * modules/j1 (configure.ac): Likewise.
37656         * modules/jn (configure.ac): Likewise.
37657         * modules/lgamma (configure.ac): Likewise.
37658         * modules/log (configure.ac): Likewise.
37659         * modules/log10 (configure.ac): Likewise.
37660         * modules/log1p (configure.ac): Likewise.
37661         * modules/pow (configure.ac): Likewise.
37662         * modules/remainder (configure.ac): Likewise.
37663         * modules/sin (configure.ac): Likewise.
37664         * modules/sinh (configure.ac): Likewise.
37665         * modules/tan (configure.ac): Likewise.
37666         * modules/tanh (configure.ac): Likewise.
37667         * modules/y0 (configure.ac): Likewise.
37668         * modules/y1 (configure.ac): Likewise.
37669         * modules/yn (configure.ac): Likewise.
37670         Suggested by Paolo Bonzini.
37671
37672 2010-01-31  Bruno Haible  <bruno@clisp.org>
37673
37674         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37675
37676 2010-01-31  Bruno Haible  <bruno@clisp.org>
37677
37678         Work around getdelim() bug on FreeBSD 8.0.
37679         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37680         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37681         not work.
37682         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37683         is 1.
37684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37685         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37686         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37687         a non-zero size.
37688         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37689
37690 2010-01-31  Bruno Haible  <bruno@clisp.org>
37691
37692         Work around getline() bug on FreeBSD 8.0.
37693         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37694         and a non-zero size.
37695         * tests/test-getline.c (main): Likewise.
37696         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37697         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37698
37699 2010-01-28  Eric Blake  <ebb9@byu.net>
37700
37701         regex: fix build failure
37702         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37703         platforms.
37704
37705 2010-01-28  Jim Meyering  <meyering@redhat.com>
37706
37707         regex: do not ignore memory allocation failure
37708         * lib/regex_internal.c (create_cd_newstate): Detect
37709         re_node_set_init_copy failure.   Extracted from glibc commit
37710         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37711
37712         regex: sync more white-space changes from libc
37713         * lib/regex_internal.c: White-space only changes.
37714         * lib/regexec.c: Likewise.
37715
37716         regex: add many uses of __attribute_warn_unused_result__
37717         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37718         * lib/regexec.c: Likewise.
37719         Extracted from a messy glibc commit.
37720
37721         regcomp.c: spelling and merge-artifact from glibc
37722         * lib/regcomp.c: Merge remainder of glibc's
37723         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37724
37725         regcomp.c: sync white-space changes from glibc
37726         * lib/regcomp.c: Merge to accommodate white space
37727         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37728
37729         regcomp.c: do not ignore internal return values
37730         * lib/regcomp.c: Do not ignore internal return values.
37731         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37732         but without its white-space changes and spelling fixes.
37733
37734         regex_internal.h: define __attribute_warn_unused_result__
37735         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37736
37737         maint: add a syntax-check rule to check for vulnerable Makefile.in
37738         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37739
37740 2010-01-27  Jim Meyering  <meyering@redhat.com>
37741
37742         ncftpput-ftp: clean up spaces
37743         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37744         Remove trailing blanks.
37745
37746 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37747
37748         * build-aux/git-version-gen: Fix copyright statement.
37749         * build-aux/gnupload: Likewise.
37750         * tests/test-arcfour.c: Likewise.
37751         * tests/test-arctwo.c: Likewise.
37752         * tests/test-count-one-bits.c: Likewise.
37753         * tests/test-crc.c: Likewise.
37754         * tests/test-des.c: Likewise.
37755         * tests/test-gc-arcfour.c: Likewise.
37756         * tests/test-gc-arctwo.c: Likewise.
37757         * tests/test-gc-des.c: Likewise.
37758         * tests/test-gc-hmac-md5.c: Likewise.
37759         * tests/test-gc-hmac-sha1.c: Likewise.
37760         * tests/test-gc-md2.c: Likewise.
37761         * tests/test-gc-md4.c: Likewise.
37762         * tests/test-gc-md5.c: Likewise.
37763         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37764         * tests/test-gc-rijndael.c: Likewise.
37765         * tests/test-gc-sha1.c: Likewise.
37766         * tests/test-gc.c: Likewise.
37767         * tests/test-gethostname.c: Likewise.
37768         * tests/test-gettimeofday.c: Likewise.
37769         * tests/test-hash.c: Likewise.
37770         * tests/test-hmac-md5.c: Likewise.
37771         * tests/test-hmac-sha1.c: Likewise.
37772         * tests/test-md2.c: Likewise.
37773         * tests/test-md4.c: Likewise.
37774         * tests/test-md5.c: Likewise.
37775         * tests/test-memchr.c: Likewise.
37776         * tests/test-memchr2.c: Likewise.
37777         * tests/test-memcmp.c: Likewise.
37778         * tests/test-memmem.c: Likewise.
37779         * tests/test-memrchr.c: Likewise.
37780         * tests/test-rawmemchr.c: Likewise.
37781         * tests/test-read-file.c: Likewise.
37782         * tests/test-rijndael.c: Likewise.
37783         * tests/test-sockets.c: Likewise.
37784         * tests/test-strchrnul.c: Likewise.
37785         * tests/test-strstr.c: Likewise.
37786         * tests/test-strtod.c: Likewise.
37787         * build-aux/ncftpput-ftp: Likewise.
37788
37789 2010-01-26  Eric Blake  <ebb9@byu.net>
37790
37791         ignore-value: update recommended header name
37792         * modules/ignore-value (Include): Only use <> for headers that
37793         exist in glibc.
37794
37795 2010-01-26  Jim Meyering  <meyering@redhat.com>
37796
37797         test-userspec.c: avoid compiler warnings
37798         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37799         and "initialization discards qualifiers..." warnings.
37800         Put the first "uid" in its own scope, and make char* members "const".
37801
37802 2010-01-25  Bruno Haible  <bruno@clisp.org>
37803
37804         gnulib-tool: Make warning diagnostics consistent.
37805         * gnulib-tool (func_warning): New function.
37806         Use it everywhere where gnulib-tool produces output to stderr and it is
37807         not a fatal error.
37808
37809 2010-01-25  Bruno Haible  <bruno@clisp.org>
37810
37811         Fix test dependencies.
37812         * modules/xstrtol-tests (Depends-on): Add inttypes.
37813         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37814
37815 2010-01-25 Pádraig Brady <P@draigBrady.com>
37816
37817         syntax-check: detect incorrect boolean macro values in config.h
37818         * modules/maintainer-makefile (configure.ac): Parameterize the location
37819         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37820         The logic is from Eric Blake and the location indicated by Jim Meyering.
37821         Note the more natural CONFIG_HEADER name is prohibited by automake
37822         for backwards compatibility reasons.
37823         * top/maint.mk (sc_Wundef_boolean): New rule.
37824
37825 2010-01-25  Jim Meyering  <meyering@redhat.com>
37826
37827         bootstrap: detect MacOS 10.6's shasum, too
37828         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37829         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37830
37831 2010-01-23  Jim Meyering  <meyering@redhat.com>
37832
37833         xstrtoll: new module
37834         * modules/xstrtoll: New file.
37835         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37836         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37837         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37838         ./configure fails if you use this module and lack "long long".
37839         * modules/xstrtoll-tests: New module.
37840         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37841         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37842         new init.sh-based test framework.
37843
37844 2010-01-24  Bruno Haible  <bruno@clisp.org>
37845
37846         Tests for module 'yn'.
37847         * modules/yn-tests: New file.
37848         * tests/test-yn.c: New file.
37849
37850         Tests for module 'y1'.
37851         * modules/y1-tests: New file.
37852         * tests/test-y1.c: New file.
37853
37854         Tests for module 'y0'.
37855         * modules/y0-tests: New file.
37856         * tests/test-y0.c: New file.
37857
37858         Tests for module 'tanh'.
37859         * modules/tanh-tests: New file.
37860         * tests/test-tanh.c: New file.
37861
37862         Tests for module 'tan'.
37863         * modules/tan-tests: New file.
37864         * tests/test-tan.c: New file.
37865
37866         Tests for module 'sqrt'.
37867         * modules/sqrt-tests: New file.
37868         * tests/test-sqrt.c: New file.
37869
37870         Tests for module 'sinh'.
37871         * modules/sinh-tests: New file.
37872         * tests/test-sinh.c: New file.
37873
37874         Tests for module 'sin'.
37875         * modules/sin-tests: New file.
37876         * tests/test-sin.c: New file.
37877
37878         Tests for module 'rint'.
37879         * modules/rint-tests: New file.
37880         * tests/test-rint.c: New file.
37881
37882         Tests for module 'remainder'.
37883         * modules/remainder-tests: New file.
37884         * tests/test-remainder.c: New file.
37885
37886         Tests for module 'pow'.
37887         * modules/pow-tests: New file.
37888         * tests/test-pow.c: New file.
37889
37890         Tests for module 'nextafter'.
37891         * modules/nextafter-tests: New file.
37892         * tests/test-nextafter.c: New file.
37893
37894         Tests for module 'modf'.
37895         * modules/modf-tests: New file.
37896         * tests/test-modf.c: New file.
37897
37898         Tests for module 'logb'.
37899         * modules/logb-tests: New file.
37900         * tests/test-logb.c: New file.
37901
37902         Tests for module 'log1p'.
37903         * modules/log1p-tests: New file.
37904         * tests/test-log1p.c: New file.
37905
37906         Tests for module 'log10'.
37907         * modules/log10-tests: New file.
37908         * tests/test-log10.c: New file.
37909
37910         Tests for module 'log'.
37911         * modules/log-tests: New file.
37912         * tests/test-log.c: New file.
37913
37914         Tests for module 'lgamma'.
37915         * modules/lgamma-tests: New file.
37916         * tests/test-lgamma.c: New file.
37917
37918         Tests for module 'ldexp'.
37919         * modules/ldexp-tests: New file.
37920         * tests/test-ldexp.c: New file.
37921
37922         Tests for module 'jn'.
37923         * modules/jn-tests: New file.
37924         * tests/test-jn.c: New file.
37925
37926         Tests for module 'j1'.
37927         * modules/j1-tests: New file.
37928         * tests/test-j1.c: New file.
37929
37930         Tests for module 'j0'.
37931         * modules/j0-tests: New file.
37932         * tests/test-j0.c: New file.
37933
37934         Tests for module 'hypot'.
37935         * modules/hypot-tests: New file.
37936         * tests/test-hypot.c: New file.
37937
37938         Tests for module 'fmod'.
37939         * modules/fmod-tests: New file.
37940         * tests/test-fmod.c: New file.
37941
37942         Tests for module 'fabs'.
37943         * modules/fabs-tests: New file.
37944         * tests/test-fabs.c: New file.
37945
37946         Tests for module 'exp'.
37947         * modules/exp-tests: New file.
37948         * tests/test-exp.c: New file.
37949
37950         Tests for module 'erfc'.
37951         * modules/erfc-tests: New file.
37952         * tests/test-erfc.c: New file.
37953
37954         Tests for module 'erf'.
37955         * modules/erf-tests: New file.
37956         * tests/test-erf.c: New file.
37957
37958         Tests for module 'cosh'.
37959         * modules/cosh-tests: New file.
37960         * tests/test-cosh.c: New file.
37961
37962         Tests for module 'cos'.
37963         * modules/cos-tests: New file.
37964         * tests/test-cos.c: New file.
37965
37966         Tests for module 'copysign'.
37967         * modules/copysign-tests: New file.
37968         * tests/test-copysign.c: New file.
37969
37970         Tests for module 'cbrt'.
37971         * modules/cbrt-tests: New file.
37972         * tests/test-cbrt.c: New file.
37973
37974         Tests for module 'atan2'.
37975         * modules/atan2-tests: New file.
37976         * tests/test-atan2.c: New file.
37977
37978         Tests for module 'atan'.
37979         * modules/atan-tests: New file.
37980         * tests/test-atan.c: New file.
37981
37982         Tests for module 'asin'.
37983         * modules/asin-tests: New file.
37984         * tests/test-asin.c: New file.
37985
37986         Tests for module 'acos'.
37987         * modules/acos-tests: New file.
37988         * tests/test-acos.c: New file.
37989
37990 2010-01-24  Bruno Haible  <bruno@clisp.org>
37991
37992         Fix tests for common <math.h> functions.
37993         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37994         code snippet that references the function pointer, rather than merely
37995         calling the function. Substitute the FUNC_LIBM variable.
37996         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37997         * modules/acos (configure.ac): Likewise.
37998         * modules/asin (configure.ac): Likewise.
37999         * modules/atan (configure.ac): Likewise.
38000         * modules/atan2 (configure.ac): Likewise.
38001         * modules/cbrt (configure.ac): Likewise.
38002         * modules/copysign (configure.ac): Likewise.
38003         * modules/cos (configure.ac): Likewise.
38004         * modules/cosh (configure.ac): Likewise.
38005         * modules/erf (configure.ac): Likewise.
38006         * modules/erfc (configure.ac): Likewise.
38007         * modules/exp (configure.ac): Likewise.
38008         * modules/fabs (configure.ac): Likewise.
38009         * modules/fmod (configure.ac): Likewise.
38010         * modules/hypot (configure.ac): Likewise.
38011         * modules/j0 (configure.ac): Likewise.
38012         * modules/j1 (configure.ac): Likewise.
38013         * modules/jn (configure.ac): Likewise.
38014         * modules/ldexp (configure.ac): Likewise.
38015         * modules/lgamma (configure.ac): Likewise.
38016         * modules/log (configure.ac): Likewise.
38017         * modules/log10 (configure.ac): Likewise.
38018         * modules/log1p (configure.ac): Likewise.
38019         * modules/logb (configure.ac): Likewise.
38020         * modules/modf (configure.ac): Likewise.
38021         * modules/nextafter (configure.ac): Likewise.
38022         * modules/pow (configure.ac): Likewise.
38023         * modules/remainder (configure.ac): Likewise.
38024         * modules/rint (configure.ac): Likewise.
38025         * modules/sin (configure.ac): Likewise.
38026         * modules/sinh (configure.ac): Likewise.
38027         * modules/tan (configure.ac): Likewise.
38028         * modules/tanh (configure.ac): Likewise.
38029         * modules/y0 (configure.ac): Likewise.
38030         * modules/y1 (configure.ac): Likewise.
38031         * modules/yn (configure.ac): Likewise.
38032
38033 2010-01-24  Bruno Haible  <bruno@clisp.org>
38034
38035         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38036         * tests/test-acosl.c (x): New variable.
38037         (main): Store argument in x and fetch it from x.
38038         * tests/test-asinl.c (x): New variable.
38039         (main): Store argument in x and fetch it from x.
38040         * tests/test-atanl.c (x): New variable.
38041         (main): Store argument in x and fetch it from x.
38042         * tests/test-cosl.c (x): New variable.
38043         (main): Store argument in x and fetch it from x.
38044         * tests/test-expl.c (x): New variable.
38045         (main): Store argument in x and fetch it from x.
38046         * tests/test-logl.c (x): New variable.
38047         (main): Store argument in x and fetch it from x.
38048         * tests/test-sinl.c (x): New variable.
38049         (main): Store argument in x and fetch it from x.
38050         * tests/test-sqrtl.c (x): New variable.
38051         (main): Store argument in x and fetch it from x.
38052         * tests/test-tanl.c (x): New variable.
38053         (main): Store argument in x and fetch it from x.
38054
38055 2010-01-24  Bruno Haible  <bruno@clisp.org>
38056
38057         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38058         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38059         assignments to the initial TESTS_ENVIRONMENT.
38060         * doc/gnulib.texi (Unit test modules): Document it.
38061         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38062         TESTS_ENVIRONMENT.
38063         * modules/btowc-tests (Makefile.am): Likewise.
38064         * modules/c-stack-tests (Makefile.am): Likewise.
38065         * modules/c-strcase-tests (Makefile.am): Likewise.
38066         * modules/copy-file-tests (Makefile.am): Likewise.
38067         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38068         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38069         * modules/mbrtowc-tests (Makefile.am): Likewise.
38070         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38071         * modules/mbscasestr-tests (Makefile.am): Likewise.
38072         * modules/mbschr-tests (Makefile.am): Likewise.
38073         * modules/mbscspn-tests (Makefile.am): Likewise.
38074         * modules/mbsinit-tests (Makefile.am): Likewise.
38075         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38076         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38077         * modules/mbspbrk-tests (Makefile.am): Likewise.
38078         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38079         * modules/mbsrchr-tests (Makefile.am): Likewise.
38080         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38081         * modules/mbsspn-tests (Makefile.am): Likewise.
38082         * modules/mbsstr-tests (Makefile.am): Likewise.
38083         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38084         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38085         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38086         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38087         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38088         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38089         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38090         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38091         * modules/wcrtomb-tests (Makefile.am): Likewise.
38092         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38093         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38094         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38095         assignments from TESTS_ENVIRONMENT.
38096         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38097         augmentation.
38098         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38099         * modules/atexit-tests (Makefile.am): Likewise.
38100         * modules/binary-io-tests (Makefile.am): Likewise.
38101         * modules/closein-tests (Makefile.am): Likewise.
38102         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38103         * modules/exclude-tests (Makefile.am): Likewise.
38104         * modules/fflush-tests (Makefile.am): Likewise.
38105         * modules/fpending-tests (Makefile.am): Likewise.
38106         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38107         * modules/freadahead-tests (Makefile.am): Likewise.
38108         * modules/freadptr-tests (Makefile.am): Likewise.
38109         * modules/freadseek-tests (Makefile.am): Likewise.
38110         * modules/fseek-tests (Makefile.am): Likewise.
38111         * modules/fseeko-tests (Makefile.am): Likewise.
38112         * modules/ftell-tests (Makefile.am): Likewise.
38113         * modules/ftello-tests (Makefile.am): Likewise.
38114         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38115         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38116         * modules/lseek-tests (Makefile.am): Likewise.
38117         * modules/parse-duration-tests (Makefile.am): Likewise.
38118         * modules/perror-tests (Makefile.am): Likewise.
38119         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38120         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38121         * modules/pipe-tests (Makefile.am): Likewise.
38122         * modules/pread-tests (Makefile.am): Likewise.
38123         * modules/printf-posix-tests (Makefile.am): Likewise.
38124         * modules/select-tests (Makefile.am): Likewise.
38125         * modules/sigpipe-tests (Makefile.am): Likewise.
38126         * modules/tsearch-tests (Makefile.am): Likewise.
38127         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38128         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38129         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38130         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38131         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38132         * modules/version-etc-tests (Makefile.am): Likewise.
38133         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38134         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38135         * modules/xalloc-die-tests (Makefile.am): Likewise.
38136         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38137         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38138         * modules/xstrtol-tests (Makefile.am): Likewise.
38139         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38140         * modules/yesno-tests (Makefile.am): Likewise.
38141         Suggested by Jim Meyering.
38142
38143 2010-01-24  Bruno Haible  <bruno@clisp.org>
38144
38145         More documentation.
38146         * doc/gnulib.texi (Writing modules): New chapter.
38147         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38148         the new chapter.
38149
38150 2010-01-24  Jim Meyering  <meyering@redhat.com>
38151
38152         maint.mk: do not prepend "./" after filtering
38153         * top/maint.mk (_prepend_srcdir_prefix): New variable
38154         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38155         "./" when $(srcdir) is ".".
38156
38157         define STREQ(a,b) consistently, removing useless parentheses
38158         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38159         since the only risk is that "a" or "b" contains an unparenthesized
38160         comma, but if either did that, STREQ would have 3 or more arguments.
38161         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38162         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38163         * lib/hash-triple.c (STREQ): Likewise.
38164         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38165         * lib/getugroups.c (STREQ): Likewise.
38166
38167 2010-01-23  Jim Meyering  <meyering@redhat.com>
38168
38169         maint.mk: fix syntax-check in a non-srcdir build directory
38170         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38171         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38172
38173 2010-01-22  Jim Meyering  <meyering@redhat.com>
38174
38175         userspec: add unit tests
38176         * tests/test-userspec.c: New file.
38177         * modules/userspec-tests: Likewise.
38178
38179 2010-01-21  Jim Meyering  <meyering@redhat.com>
38180
38181         maint.mk: handle source file names containing "." robustly
38182         * top/maint.mk (_dot_escaped_srcdir): Define.
38183         (VC_LIST): Use it in LHS of sed substitution.
38184
38185 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38186
38187         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38188         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38189         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38190         from a non-srcdir build.
38191
38192 2010-01-20  Eric Blake  <ebb9@byu.net>
38193
38194         warn-on-use: use instead of link-warning
38195         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38196         * modules/unistd (Depends-on, Makefile.am): Likewise.
38197         * modules/arpa_inet (Depends-on): Replace link-warning with
38198         warn-on-use.
38199         (Makefile.am): Update rules accordingly.
38200         * modules/ctype (Depends-on, Makefile.am): Likewise.
38201         * modules/dirent (Depends-on, Makefile.am): Likewise.
38202         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38203         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38204         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38205         * modules/locale (Depends-on, Makefile.am): Likewise.
38206         * modules/math (Depends-on, Makefile.am): Likewise.
38207         * modules/search (Depends-on, Makefile.am): Likewise.
38208         * modules/signal (Depends-on, Makefile.am): Likewise.
38209         * modules/spawn (Depends-on, Makefile.am): Likewise.
38210         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38211         * modules/string (Depends-on, Makefile.am): Likewise.
38212         * modules/strings (Depends-on, Makefile.am): Likewise.
38213         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38214         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38215         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38216         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38217         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38218         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38219         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38220         * modules/wchar (Depends-on, Makefile.am): Likewise.
38221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38222         should be poisoned.
38223         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38224         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38225         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38226         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38227         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38228         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38229         * m4/math_h.m4 (gl_MATH_H): Likewise.
38230         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38231         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38232         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38233         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38234         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38235         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38236         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38242         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38244         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38245         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38246         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38247         GL_LINK_WARNING.
38248         * lib/ctype.in.h: Likewise.
38249         * lib/dirent.in.h: Likewise.
38250         * lib/fcntl.in.h: Likewise.
38251         * lib/inttypes.in.h: Likewise.
38252         * lib/langinfo.in.h: Likewise.
38253         * lib/locale.in.h: Likewise.
38254         * lib/math.in.h: Likewise.
38255         * lib/search.in.h: Likewise.
38256         * lib/signal.in.h: Likewise.
38257         * lib/spawn.in.h: Likewise.
38258         * lib/stdio.in.h: Likewise.
38259         * lib/stdlib.in.h: Likewise.
38260         * lib/string.in.h: Likewise.
38261         * lib/strings.in.h: Likewise.
38262         * lib/sys_file.in.h: Likewise.
38263         * lib/sys_ioctl.in.h: Likewise.
38264         * lib/sys_select.in.h: Likewise.
38265         * lib/sys_socket.in.h: Likewise.
38266         * lib/sys_stat.in.h: Likewise.
38267         * lib/sys_times.in.h: Likewise.
38268         * lib/sys_utsname.in.h: Likewise.
38269         * lib/unistd.in.h: Likewise.
38270         * lib/wchar.in.h: Likewise.
38271
38272 2010-01-20  Bruno Haible  <bruno@clisp.org>
38273
38274         Avoid duplicate -lm.
38275         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38276         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38279         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38280         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38281         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38282         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38283         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38284         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38285         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38286         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38287         Reported by Paolo Bonzini.
38288
38289 2010-01-19  Bruno Haible  <bruno@clisp.org>
38290
38291         langinfo, nl_langinfo: Relicense under LGPLv2+.
38292         * modules/langinfo (License): Change to LGPLv2+.
38293         * modules/nl_langinfo (License): Likewise.
38294         Patch by David Lutterkort <lutter@redhat.com>.
38295
38296 2010-01-19  Bruno Haible  <bruno@clisp.org>
38297
38298         Avoid compilation error with cc on OSF/1 5.1.
38299         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38300         statement, not before.
38301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38302
38303 2010-01-18  Bruno Haible  <bruno@clisp.org>
38304
38305         Avoid a link error due to the __printf__ symbol.
38306         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38307         and 2.6.x.
38308         (__format__, __printf__): Remove definitions.
38309         * lib/argp-fmtstream.h: Likewise.
38310         * lib/argp.h: Likewise.
38311         * lib/error.h: Likewise.
38312         * lib/vasnprintf.h: Likewise.
38313         * lib/xprintf.h: Likewise.
38314         * lib/xvasprintf.h: Likewise.
38315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38316
38317 2010-01-18  Bruno Haible  <bruno@clisp.org>
38318
38319         Tests for module 'tanl'.
38320         * modules/tanl-tests: New file.
38321         * tests/test-tanl.c: New file.
38322
38323         Tests for module 'sqrtl'.
38324         * modules/sqrtl-tests: New file.
38325         * tests/test-sqrtl.c: New file.
38326
38327         Tests for module 'sinl'.
38328         * modules/sinl-tests: New file.
38329         * tests/test-sinl.c: New file.
38330
38331         Tests for module 'logl'.
38332         * modules/logl-tests: New file.
38333         * tests/test-logl.c: New file.
38334
38335         Tests for module 'expl'.
38336         * modules/expl-tests: New file.
38337         * tests/test-expl.c: New file.
38338
38339         Tests for module 'cosl'.
38340         * modules/cosl-tests: New file.
38341         * tests/test-cosl.c: New file.
38342
38343         Tests for module 'atanl'.
38344         * modules/atanl-tests: New file.
38345         * tests/test-atanl.c: New file.
38346
38347         Tests for module 'asinl'.
38348         * modules/asinl-tests: New file.
38349         * tests/test-asinl.c: New file.
38350
38351         Tests for module 'acosl'.
38352         * modules/acosl-tests: New file.
38353         * tests/test-acosl.c: New file.
38354
38355         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38356         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38357         tanl): Use the standard gnulib idiom.
38358         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38359         * lib/sinl.c: Likewise.
38360         * lib/tanl.c: Don't include trigl.c.
38361         (kernel_tanl): Make static.
38362         * lib/sincosl.c: Include trigl.h first.
38363         * lib/trigl.c: Likewise.
38364         * m4/acosl.m4: New file.
38365         * m4/asinl.m4: New file.
38366         * m4/atanl.m4: New file.
38367         * m4/cosl.m4: New file.
38368         * m4/expl.m4: New file.
38369         * m4/logl.m4: New file.
38370         * m4/sinl.m4: New file.
38371         * m4/sqrtl.m4: New file.
38372         * m4/tanl.m4: New file.
38373         * m4/mathl.m4: Remove file.
38374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38375         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38376         Don't initialize GNULIB_MATHL.
38377         * modules/acosl: New file.
38378         * modules/asinl: New file.
38379         * modules/atanl: New file.
38380         * modules/cosl: New file.
38381         * modules/expl: New file.
38382         * modules/logl: New file.
38383         * modules/sinl: New file.
38384         * modules/sqrtl: New file.
38385         * modules/tanl: New file.
38386         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38387         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38388         substitute GNULIB_MATHL.
38389         * modules/mathl: Rewritten.
38390         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38391         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38392         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38393         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38394         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38395         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38396         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38397         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38398         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38399
38400 2010-01-18  Bruno Haible  <bruno@clisp.org>
38401
38402         sqrt: Make gl_FUNC_SQRT requirable.
38403         * m4/sqrt.m4: New file.
38404         * modules/sqrt (Files): Add it.
38405         (configure.ac): Invoke gl_FUNC_SQRT.
38406
38407 2010-01-18  Bruno Haible  <bruno@clisp.org>
38408
38409         New modules for common <math.h> functions.
38410         * m4/mathfunc.m4: New file.
38411         * modules/acos: New file.
38412         * modules/asin: New file.
38413         * modules/atan: New file.
38414         * modules/atan2: New file.
38415         * modules/cbrt: New file.
38416         * modules/copysign: New file.
38417         * modules/cos: New file.
38418         * modules/cosh: New file.
38419         * modules/erf: New file.
38420         * modules/erfc: New file.
38421         * modules/exp: New file.
38422         * modules/fabs: New file.
38423         * modules/fmod: New file.
38424         * modules/hypot: New file.
38425         * modules/j0: New file.
38426         * modules/j1: New file.
38427         * modules/jn: New file.
38428         * modules/ldexp: New file.
38429         * modules/lgamma: New file.
38430         * modules/log: New file.
38431         * modules/log10: New file.
38432         * modules/log1p: New file.
38433         * modules/logb: New file.
38434         * modules/modf: New file.
38435         * modules/nextafter: New file.
38436         * modules/pow: New file.
38437         * modules/remainder: New file.
38438         * modules/rint: New file.
38439         * modules/sin: New file.
38440         * modules/sinh: New file.
38441         * modules/sqrt: New file.
38442         * modules/tan: New file.
38443         * modules/tanh: New file.
38444         * modules/y0: New file.
38445         * modules/y1: New file.
38446         * modules/yn: New file.
38447         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38448         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38449         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38450         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38451         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38452         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38453         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38454         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38455         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38456         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38457         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38458         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38459         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38460         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38461         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38462         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38463         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38464         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38465         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38466         * doc/posix-functions/log.texi: Mention the 'log' module.
38467         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38468         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38469         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38470         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38471         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38472         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38473         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38474         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38475         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38476         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38477         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38478         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38479         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38480         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38481         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38482         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38483
38484 2010-01-18  Jim Meyering  <meyering@redhat.com>
38485
38486         ignore-value: relax license to LGPLv2+
38487         * modules/ignore-value (License): Relax to LGPLv2+.
38488
38489         getdate: don't leak when TZ contains two or more '"'s
38490         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38491         double quote in TZ after the first one.
38492
38493         readtokens: do not leak internal token_lengths buffer
38494         * lib/readtokens.c (readtokens): Free the local, lengths,
38495         when the supplied "token_lengths" parameter is NULL.
38496
38497 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38498
38499         Fix a couple of missing LIBTHREAD link failures on AIX.
38500         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38501         $(LIBTHREAD).
38502         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38503
38504         Link test-poll against INET_PTON_LIB.
38505         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38506         for inet_pton on Solaris 10.
38507
38508 2010-01-17  Bruno Haible  <bruno@clisp.org>
38509
38510         unistdio/*-sprintf: Fix typo in module description.
38511         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38512         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38513         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38514         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38515         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38516         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38517         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38519
38520 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38521
38522         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38523         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38524         variables in shell case patterns, for AIX and HP-UX ksh.
38525
38526         Split large sed scripts, for HP-UX sed.
38527         * modules/stdio: Split sed scripts around 50 sed commands,
38528         to avoid HP-UX limit of 99 commands, in the near future.
38529         * modules/string: Likewise.
38530         * modules/unistd: Likewise.
38531
38532         gnulib-tool: avoid writing in the current directory.
38533         * gnulib-tool (func_emit_lib_Makefile_am)
38534         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38535         not in the current directory, so concurrent gnulib-tool
38536         instances do not interfere.
38537
38538 2010-01-16  Jim Meyering  <meyering@redhat.com>
38539
38540         doc: update users.txt
38541         * users.txt: Add grep.
38542         (diffutils, gzip): Update URLs.
38543
38544 2010-01-12  Bruno Haible  <bruno@clisp.org>
38545
38546         posix_spawn: Avoid test failure on Cygwin.
38547         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38548         characters.
38549         Reported by Simon Josefsson.
38550
38551 2010-01-12  Bruno Haible  <bruno@clisp.org>
38552
38553         * tests/test-cond.c (main): When skipping the test, show the reason.
38554
38555 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38556
38557         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38558
38559 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38560
38561         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38562         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38563
38564 2010-01-12  Eric Blake  <ebb9@byu.net>
38565
38566         build: guarantee AS_VAR_IF
38567         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38568         (gl_AS_VAR_IF): Move...
38569         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38570         Reported by Simon Josefsson.
38571
38572 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38573
38574         * lib/stdio.in.h: Fix typo.
38575
38576 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38577
38578         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38579         libgpg-error.
38580
38581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38582
38583         * tests/test-xalloc-die.sh: Use $EXEEXT.
38584
38585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38586             Bruno Haible  <bruno@clisp.org>
38587
38588         getlogin, getlogin_r: Avoid test failure.
38589         * tests/test-getlogin.c: Include <stdio.h>.
38590         (main): Skip the test when the function fails because stdin is not a
38591         tty.
38592         * tests/test-getlogin_r.c: Include <stdio.h>.
38593         (main): Skip the test when the function fails because stdin is not a
38594         tty.
38595
38596 2010-01-11  Eric Blake  <ebb9@byu.net>
38597
38598         tests: avoid more large file warnings
38599         * tests/test-fflush.c: Avoid warning about ftell use.
38600         * tests/test-fseek.c: Avoid warning about fseek use.
38601
38602 2010-01-10  Bruno Haible  <bruno@clisp.org>
38603
38604         nproc: Work better on Linux when /proc and /sys are not mounted.
38605         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38606         as lower bound when, on glibc/Linux systems,
38607         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38608         Suggested by Pádraig Brady <P@draigbrady.com>.
38609         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38610
38611         nproc: Refactor.
38612         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38613         extracted from num_processors.
38614         (num_processors): Call it.
38615
38616 2010-01-11  Jim Meyering  <meyering@redhat.com>
38617
38618         utimecmp: avoid new warning from upcoming gcc-4.5.0
38619         * lib/utimecmp.c (BILLION): Define using #define rather than an
38620         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38621
38622 2010-01-11  Eric Blake  <ebb9@byu.net>
38623
38624         math: add portability warnings for classification macros
38625         * modules/math (Depends-on): Add warn-on-use.
38626         (Makefile.am): Provide new substitutions.
38627         * m4/math_h.m4 (gl_MATH_H): Require inline.
38628         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38629         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38630         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38631         implement warnings.
38632
38633         unistd: warn on use of environ without module
38634         * modules/unistd (Depends-on): Add warn-on-use.
38635         (Makefile.am): Provide new substitutions.
38636         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38637         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38638
38639         stdio: warn on suspicious uses
38640         * modules/stdio (Depends-on): Add warn-on-use.
38641         (Makefile.am): Provide new substitutions.
38642         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38643         fseeko.
38644         * lib/stdio.in.h (gets): Always warn on use.
38645         (fseek, ftell): Adjust when warnings are issued, and honor
38646         _GL_NO_LARGE_FILES as a way to silence the warning.
38647         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38648         any warning about large file offsets.
38649         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38650         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38651         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38652         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38653         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38654         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38655         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38656         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38657
38658         warn-on-use: new module
38659         * modules/warn-on-use: New file.
38660         * build-aux/warn-on-use.h: Likewise.
38661         * m4/warn-on-use.m4: Likewise.
38662         * MODULES.html.sh (Support for building): Mention it.
38663
38664 2010-01-10  Bruno Haible  <bruno@clisp.org>
38665
38666         Tests for module 'unistr/u32-strdup'.
38667         * modules/unistr/u32-strdup-tests: New file.
38668         * tests/unistr/test-u32-strdup.c: New file.
38669
38670         Tests for module 'unistr/u16-strdup'.
38671         * modules/unistr/u16-strdup-tests: New file.
38672         * tests/unistr/test-u16-strdup.c: New file.
38673
38674         Tests for module 'unistr/u8-strdup'.
38675         * modules/unistr/u8-strdup-tests: New file.
38676         * tests/unistr/test-u8-strdup.c: New file.
38677         * tests/unistr/test-strdup.h: New file.
38678
38679         Tests for module 'unistr/u32-strncmp'.
38680         * modules/unistr/u32-strncmp-tests: New file.
38681         * tests/unistr/test-u32-strncmp.c: New file.
38682
38683         Tests for module 'unistr/u16-strncmp'.
38684         * modules/unistr/u16-strncmp-tests: New file.
38685         * tests/unistr/test-u16-strncmp.c: New file.
38686
38687         Tests for module 'unistr/u8-strncmp'.
38688         * modules/unistr/u8-strncmp-tests: New file.
38689         * tests/unistr/test-u8-strncmp.c: New file.
38690         * tests/unistr/test-strncmp.h: New file.
38691
38692         Tests for module 'unistr/u32-strcoll'.
38693         * modules/unistr/u32-strcoll-tests: New file.
38694         * tests/unistr/test-u32-strcoll.c: New file.
38695
38696         Tests for module 'unistr/u16-strcoll'.
38697         * modules/unistr/u16-strcoll-tests: New file.
38698         * tests/unistr/test-u16-strcoll.c: New file.
38699
38700         Tests for module 'unistr/u8-strcoll'.
38701         * modules/unistr/u8-strcoll-tests: New file.
38702         * tests/unistr/test-u8-strcoll.c: New file.
38703
38704         Tests for module 'unistr/u32-strcmp'.
38705         * modules/unistr/u32-strcmp-tests: New file.
38706         * tests/unistr/test-u32-strcmp.c: New file.
38707         * tests/unistr/test-u32-strcmp.h: New file.
38708
38709         Tests for module 'unistr/u16-strcmp'.
38710         * modules/unistr/u16-strcmp-tests: New file.
38711         * tests/unistr/test-u16-strcmp.c: New file.
38712         * tests/unistr/test-u16-strcmp.h: New file.
38713
38714         Tests for module 'unistr/u8-strcmp'.
38715         * modules/unistr/u8-strcmp-tests: New file.
38716         * tests/unistr/test-u8-strcmp.c: New file.
38717         * tests/unistr/test-u8-strcmp.h: New file.
38718         * tests/unistr/test-strcmp.h: New file.
38719
38720         Tests for module 'unistr/u32-strncat'.
38721         * modules/unistr/u32-strncat-tests: New file.
38722         * tests/unistr/test-u32-strncat.c: New file.
38723
38724         Tests for module 'unistr/u16-strncat'.
38725         * modules/unistr/u16-strncat-tests: New file.
38726         * tests/unistr/test-u16-strncat.c: New file.
38727
38728         Tests for module 'unistr/u8-strncat'.
38729         * modules/unistr/u8-strncat-tests: New file.
38730         * tests/unistr/test-u8-strncat.c: New file.
38731         * tests/unistr/test-strncat.h: New file.
38732
38733         Tests for module 'unistr/u32-strcat'.
38734         * modules/unistr/u32-strcat-tests: New file.
38735         * tests/unistr/test-u32-strcat.c: New file.
38736
38737         Tests for module 'unistr/u16-strcat'.
38738         * modules/unistr/u16-strcat-tests: New file.
38739         * tests/unistr/test-u16-strcat.c: New file.
38740
38741         Tests for module 'unistr/u8-strcat'.
38742         * modules/unistr/u8-strcat-tests: New file.
38743         * tests/unistr/test-u8-strcat.c: New file.
38744         * tests/unistr/test-strcat.h: New file.
38745
38746         Tests for module 'unistr/u32-stpncpy'.
38747         * modules/unistr/u32-stpncpy-tests: New file.
38748         * tests/unistr/test-u32-stpncpy.c: New file.
38749
38750         Tests for module 'unistr/u16-stpncpy'.
38751         * modules/unistr/u16-stpncpy-tests: New file.
38752         * tests/unistr/test-u16-stpncpy.c: New file.
38753
38754         Tests for module 'unistr/u8-stpncpy'.
38755         * modules/unistr/u8-stpncpy-tests: New file.
38756         * tests/unistr/test-u8-stpncpy.c: New file.
38757         * tests/unistr/test-stpncpy.h: New file.
38758
38759         Tests for module 'unistr/u32-strncpy'.
38760         * modules/unistr/u32-strncpy-tests: New file.
38761         * tests/unistr/test-u32-strncpy.c: New file.
38762
38763         Tests for module 'unistr/u16-strncpy'.
38764         * modules/unistr/u16-strncpy-tests: New file.
38765         * tests/unistr/test-u16-strncpy.c: New file.
38766
38767         Tests for module 'unistr/u8-strncpy'.
38768         * modules/unistr/u8-strncpy-tests: New file.
38769         * tests/unistr/test-u8-strncpy.c: New file.
38770         * tests/unistr/test-strncpy.h: New file.
38771
38772         Tests for module 'unistr/u32-stpcpy'.
38773         * modules/unistr/u32-stpcpy-tests: New file.
38774         * tests/unistr/test-u32-stpcpy.c: New file.
38775
38776         Tests for module 'unistr/u16-stpcpy'.
38777         * modules/unistr/u16-stpcpy-tests: New file.
38778         * tests/unistr/test-u16-stpcpy.c: New file.
38779
38780         Tests for module 'unistr/u8-stpcpy'.
38781         * modules/unistr/u8-stpcpy-tests: New file.
38782         * tests/unistr/test-u8-stpcpy.c: New file.
38783         * tests/unistr/test-stpcpy.h: New file.
38784
38785         Tests for module 'unistr/u32-strcpy'.
38786         * modules/unistr/u32-strcpy-tests: New file.
38787         * tests/unistr/test-u32-strcpy.c: New file.
38788
38789         Tests for module 'unistr/u16-strcpy'.
38790         * modules/unistr/u16-strcpy-tests: New file.
38791         * tests/unistr/test-u16-strcpy.c: New file.
38792
38793         Tests for module 'unistr/u8-strcpy'.
38794         * modules/unistr/u8-strcpy-tests: New file.
38795         * tests/unistr/test-u8-strcpy.c: New file.
38796         * tests/unistr/test-strcpy.h: New file.
38797
38798         Tests for module 'unistr/u32-strnlen'.
38799         * modules/unistr/u32-strnlen-tests: New file.
38800         * tests/unistr/test-u32-strnlen.c: New file.
38801
38802         Tests for module 'unistr/u16-strnlen'.
38803         * modules/unistr/u16-strnlen-tests: New file.
38804         * tests/unistr/test-u16-strnlen.c: New file.
38805
38806         Tests for module 'unistr/u8-strnlen'.
38807         * modules/unistr/u8-strnlen-tests: New file.
38808         * tests/unistr/test-u8-strnlen.c: New file.
38809         * tests/unistr/test-strnlen.h: New file.
38810
38811         Tests for module 'unistr/u32-strlen'.
38812         * modules/unistr/u32-strlen-tests: New file.
38813         * tests/unistr/test-u32-strlen.c: New file.
38814
38815         Tests for module 'unistr/u16-strlen'.
38816         * modules/unistr/u16-strlen-tests: New file.
38817         * tests/unistr/test-u16-strlen.c: New file.
38818
38819         Tests for module 'unistr/u8-strlen'.
38820         * modules/unistr/u8-strlen-tests: New file.
38821         * tests/unistr/test-u8-strlen.c: New file.
38822
38823         Tests for module 'unistr/u32-prev'.
38824         * modules/unistr/u32-prev-tests: New file.
38825         * tests/unistr/test-u32-prev.c: New file.
38826
38827         Tests for module 'unistr/u16-prev'.
38828         * modules/unistr/u16-prev-tests: New file.
38829         * tests/unistr/test-u16-prev.c: New file.
38830
38831         Tests for module 'unistr/u8-prev'.
38832         * modules/unistr/u8-prev-tests: New file.
38833         * tests/unistr/test-u8-prev.c: New file.
38834
38835         Tests for module 'unistr/u32-next'.
38836         * modules/unistr/u32-next-tests: New file.
38837         * tests/unistr/test-u32-next.c: New file.
38838
38839         Tests for module 'unistr/u16-next'.
38840         * modules/unistr/u16-next-tests: New file.
38841         * tests/unistr/test-u16-next.c: New file.
38842
38843         Tests for module 'unistr/u8-next'.
38844         * modules/unistr/u8-next-tests: New file.
38845         * tests/unistr/test-u8-next.c: New file.
38846
38847         Tests for module 'unistr/u32-strmbtouc'.
38848         * modules/unistr/u32-strmbtouc-tests: New file.
38849         * tests/unistr/test-u32-strmbtouc.c: New file.
38850
38851         Tests for module 'unistr/u16-strmbtouc'.
38852         * modules/unistr/u16-strmbtouc-tests: New file.
38853         * tests/unistr/test-u16-strmbtouc.c: New file.
38854
38855         Tests for module 'unistr/u8-strmbtouc'.
38856         * modules/unistr/u8-strmbtouc-tests: New file.
38857         * tests/unistr/test-u8-strmbtouc.c: New file.
38858
38859         Tests for module 'unistr/u32-strmblen'.
38860         * modules/unistr/u32-strmblen-tests: New file.
38861         * tests/unistr/test-u32-strmblen.c: New file.
38862
38863         Tests for module 'unistr/u16-strmblen'.
38864         * modules/unistr/u16-strmblen-tests: New file.
38865         * tests/unistr/test-u16-strmblen.c: New file.
38866
38867         Tests for module 'unistr/u8-strmblen'.
38868         * modules/unistr/u8-strmblen-tests: New file.
38869         * tests/unistr/test-u8-strmblen.c: New file.
38870
38871         Tests for module 'unistr/u32-cpy-alloc'.
38872         * modules/unistr/u32-cpy-alloc-tests: New file.
38873         * tests/unistr/test-u32-cpy-alloc.c: New file.
38874
38875         Tests for module 'unistr/u16-cpy-alloc'.
38876         * modules/unistr/u16-cpy-alloc-tests: New file.
38877         * tests/unistr/test-u16-cpy-alloc.c: New file.
38878
38879         Tests for module 'unistr/u8-cpy-alloc'.
38880         * modules/unistr/u8-cpy-alloc-tests: New file.
38881         * tests/unistr/test-u8-cpy-alloc.c: New file.
38882         * tests/unistr/test-cpy-alloc.h: New file.
38883
38884         Tests for module 'unistr/u32-mbsnlen'.
38885         * modules/unistr/u32-mbsnlen-tests: New file.
38886         * tests/unistr/test-u32-mbsnlen.c: New file.
38887
38888         Tests for module 'unistr/u16-mbsnlen'.
38889         * modules/unistr/u16-mbsnlen-tests: New file.
38890         * tests/unistr/test-u16-mbsnlen.c: New file.
38891
38892         Tests for module 'unistr/u8-mbsnlen'.
38893         * modules/unistr/u8-mbsnlen-tests: New file.
38894         * tests/unistr/test-u8-mbsnlen.c: New file.
38895
38896         Tests for module 'unistr/u32-chr'.
38897         * modules/unistr/u32-chr-tests: New file.
38898         * tests/unistr/test-u32-chr.c: New file.
38899
38900         Tests for module 'unistr/u16-chr'.
38901         * modules/unistr/u16-chr-tests: New file.
38902         * tests/unistr/test-u16-chr.c: New file.
38903
38904         Tests for module 'unistr/u8-chr'.
38905         * modules/unistr/u8-chr-tests: New file.
38906         * tests/unistr/test-u8-chr.c: New file.
38907         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38908
38909         Tests for module 'unistr/u32-cmp2'.
38910         * modules/unistr/u32-cmp2-tests: New file.
38911         * tests/unistr/test-u32-cmp2.c: New file.
38912
38913         Tests for module 'unistr/u16-cmp2'.
38914         * modules/unistr/u16-cmp2-tests: New file.
38915         * tests/unistr/test-u16-cmp2.c: New file.
38916
38917         Tests for module 'unistr/u8-cmp2'.
38918         * modules/unistr/u8-cmp2-tests: New file.
38919         * tests/unistr/test-u8-cmp2.c: New file.
38920         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38921
38922         Tests for module 'unistr/u32-cmp'.
38923         * modules/unistr/u32-cmp-tests: New file.
38924         * tests/unistr/test-u32-cmp.c: New file.
38925
38926         Tests for module 'unistr/u16-cmp'.
38927         * modules/unistr/u16-cmp-tests: New file.
38928         * tests/unistr/test-u16-cmp.c: New file.
38929
38930         Tests for module 'unistr/u8-cmp'.
38931         * modules/unistr/u8-cmp-tests: New file.
38932         * tests/unistr/test-u8-cmp.c: New file.
38933         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38934
38935         Tests for module 'unistr/u32-set'.
38936         * modules/unistr/u32-set-tests: New file.
38937         * tests/unistr/test-u32-set.c: New file.
38938
38939         Tests for module 'unistr/u16-set'.
38940         * modules/unistr/u16-set-tests: New file.
38941         * tests/unistr/test-u16-set.c: New file.
38942
38943         Tests for module 'unistr/u8-set'.
38944         * modules/unistr/u8-set-tests: New file.
38945         * tests/unistr/test-u8-set.c: New file.
38946         * tests/unistr/test-set.h: New file.
38947
38948         Tests for module 'unistr/u32-move'.
38949         * modules/unistr/u32-move-tests: New file.
38950         * tests/unistr/test-u32-move.c: New file.
38951
38952         Tests for module 'unistr/u16-move'.
38953         * modules/unistr/u16-move-tests: New file.
38954         * tests/unistr/test-u16-move.c: New file.
38955
38956         Tests for module 'unistr/u8-move'.
38957         * modules/unistr/u8-move-tests: New file.
38958         * tests/unistr/test-u8-move.c: New file.
38959         * tests/unistr/test-move.h: New file.
38960
38961         Tests for module 'unistr/u32-cpy'.
38962         * modules/unistr/u32-cpy-tests: New file.
38963         * tests/unistr/test-u32-cpy.c: New file.
38964
38965         Tests for module 'unistr/u16-cpy'.
38966         * modules/unistr/u16-cpy-tests: New file.
38967         * tests/unistr/test-u16-cpy.c: New file.
38968
38969         Tests for module 'unistr/u8-cpy'.
38970         * modules/unistr/u8-cpy-tests: New file.
38971         * tests/unistr/test-u8-cpy.c: New file.
38972         * tests/unistr/test-cpy.h: New file.
38973
38974 2010-01-09  Bruno Haible  <bruno@clisp.org>
38975
38976         Tests for module 'unistr/u32-uctomb'.
38977         * modules/unistr/u32-uctomb-tests: New file.
38978         * tests/unistr/test-u32-uctomb.c: New file.
38979
38980         Tests for module 'unistr/u16-uctomb'.
38981         * modules/unistr/u16-uctomb-tests: New file.
38982         * tests/unistr/test-u16-uctomb.c: New file.
38983
38984         Tests for module 'unistr/u8-uctomb'.
38985         * modules/unistr/u8-uctomb-tests: New file.
38986         * tests/unistr/test-u8-uctomb.c: New file.
38987
38988         Tests for module 'unistr/u32-mbtoucr'.
38989         * modules/unistr/u32-mbtoucr-tests: New file.
38990         * tests/unistr/test-u32-mbtoucr.c: New file.
38991
38992         Tests for module 'unistr/u16-mbtoucr'.
38993         * modules/unistr/u16-mbtoucr-tests: New file.
38994         * tests/unistr/test-u16-mbtoucr.c: New file.
38995
38996         Tests for module 'unistr/u8-mbtoucr'.
38997         * modules/unistr/u8-mbtoucr-tests: New file.
38998         * tests/unistr/test-u8-mbtoucr.c: New file.
38999
39000         Tests for module 'unistr/u32-mbtouc'.
39001         * modules/unistr/u32-mbtouc-tests: New file.
39002         * tests/unistr/test-u32-mbtouc.c: New file.
39003
39004         Tests for module 'unistr/u16-mbtouc'.
39005         * modules/unistr/u16-mbtouc-tests: New file.
39006         * tests/unistr/test-u16-mbtouc.c: New file.
39007
39008         Tests for module 'unistr/u8-mbtouc'.
39009         * modules/unistr/u8-mbtouc-tests: New file.
39010         * tests/unistr/test-u8-mbtouc.c: New file.
39011
39012         Tests for module 'unistr/u32-mbtouc-unsafe'.
39013         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39014         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39015         * tests/unistr/test-u32-mbtouc.h: New file.
39016
39017         Tests for module 'unistr/u16-mbtouc-unsafe'.
39018         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39019         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39020         * tests/unistr/test-u16-mbtouc.h: New file.
39021
39022         Tests for module 'unistr/u8-mbtouc-unsafe'.
39023         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39024         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39025         * tests/unistr/test-u8-mbtouc.h: New file.
39026
39027         Tests for module 'unistr/u32-mblen'.
39028         * modules/unistr/u32-mblen-tests: New file.
39029         * tests/unistr/test-u32-mblen.c: New file.
39030
39031         Tests for module 'unistr/u16-mblen'.
39032         * modules/unistr/u16-mblen-tests: New file.
39033         * tests/unistr/test-u16-mblen.c: New file.
39034
39035         Tests for module 'unistr/u8-mblen'.
39036         * modules/unistr/u8-mblen-tests: New file.
39037         * tests/unistr/test-u8-mblen.c: New file.
39038
39039         Tests for module 'unistr/u32-to-u16'.
39040         * modules/unistr/u32-to-u16-tests: New file.
39041         * tests/unistr/test-u32-to-u16.c: New file.
39042
39043         Tests for module 'unistr/u32-to-u8'.
39044         * modules/unistr/u32-to-u8-tests: New file.
39045         * tests/unistr/test-u32-to-u8.c: New file.
39046
39047         Tests for module 'unistr/u16-to-u32'.
39048         * modules/unistr/u16-to-u32-tests: New file.
39049         * tests/unistr/test-u16-to-u32.c: New file.
39050
39051         Tests for module 'unistr/u16-to-u8'.
39052         * modules/unistr/u16-to-u8-tests: New file.
39053         * tests/unistr/test-u16-to-u8.c: New file.
39054
39055         Tests for module 'unistr/u8-to-u32'.
39056         * modules/unistr/u8-to-u32-tests: New file.
39057         * tests/unistr/test-u8-to-u32.c: New file.
39058
39059         Tests for module 'unistr/u8-to-u16'.
39060         * modules/unistr/u8-to-u16-tests: New file.
39061         * tests/unistr/test-u8-to-u16.c: New file.
39062
39063         Tests for module 'unistr/u32-check'.
39064         * modules/unistr/u32-check-tests: New file.
39065         * tests/unistr/test-u32-check.c: New file.
39066
39067         Tests for module 'unistr/u16-check'.
39068         * modules/unistr/u16-check-tests: New file.
39069         * tests/unistr/test-u16-check.c: New file.
39070
39071         Tests for module 'unistr/u8-check'.
39072         * modules/unistr/u8-check-tests: New file.
39073         * tests/unistr/test-u8-check.c: New file.
39074
39075         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39076         (category_equals): New function.
39077         (main): Add more tests.
39078         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39079
39080         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39081
39082 2010-01-10  Bruno Haible  <bruno@clisp.org>
39083
39084         unistr/u*-strcoll: Try harder to distinguish different strings.
39085         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39086         compare s1 and s2 to see if they are different.
39087
39088 2010-01-10  Bruno Haible  <bruno@clisp.org>
39089
39090         unistr/u*-stpncpy: Fix the return value.
39091         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39092         description of the return value consistent with stpncpy in glibc.
39093         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39094         written non-NUL unit.
39095
39096 2010-01-10  Bruno Haible  <bruno@clisp.org>
39097
39098         unistr/u*-next: Add missing dependencies.
39099         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39100         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39101         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39102
39103 2010-01-10  Bruno Haible  <bruno@clisp.org>
39104
39105         unistr/u8-mbsnlen: Fix return value for incomplete character.
39106         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39107         u8_mblen.
39108         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39109         Remove unistr/u8-mblen.
39110         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39111         u16_mblen.
39112         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39113         Remove unistr/u16-mblen.
39114
39115 2010-01-10  Bruno Haible  <bruno@clisp.org>
39116
39117         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39118         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39119         Reported by Brian Gough <bjg@gnu.org> and
39120         Chris Clayton <chris2553@googlemail.com> via
39121         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39122
39123 2010-01-09  Bruno Haible  <bruno@clisp.org>
39124
39125         unistr/u16-to-u32: Reject invalid input.
39126         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39127         u16_mbtouc.
39128         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39129         Remove unistr/u16-mbtouc.
39130
39131         unistr/u16-to-u8: Reject invalid input.
39132         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39133         u16_mbtouc.
39134         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39135         Remove unistr/u16-mbtouc.
39136
39137         unistr/u8-to-u32: Reject invalid input.
39138         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39139         u8_mbtouc.
39140         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39141         Remove unistr/u8-mbtouc.
39142
39143         unistr/u8-to-u16: Reject invalid input.
39144         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39145         u8_mbtouc.
39146         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39147         Remove unistr/u8-mbtouc.
39148
39149 2010-01-09  Bruno Haible  <bruno@clisp.org>
39150
39151         Tests for module 'getlogin'.
39152         * modules/getlogin-tests: New file.
39153         * tests/test-getlogin.c: New file.
39154
39155         New module 'getlogin'.
39156         * lib/unistd.in.h (getlogin): New declaration.
39157         * lib/getlogin.c: New file.
39158         * m4/getlogin.m4: New file.
39159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39160         HAVE_GETLOGIN.
39161         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39162         HAVE_GETLOGIN.
39163         * modules/getlogin: New file.
39164         * doc/posix-functions/getlogin.texi: Mention the new module.
39165         Reported by John W. Eaton <jwe@gnu.org>.
39166
39167 2010-01-09  Bruno Haible  <bruno@clisp.org>
39168
39169         getlogin_r: Support for native Windows.
39170         * lib/getlogin_r.c: Include <windows.h>
39171         (getlogin_r): Implement for native Windows.
39172         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39173         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39174         via John W. Eaton <jwe@gnu.org>.
39175
39176 2010-01-09  Bruno Haible  <bruno@clisp.org>
39177
39178         getlogin_r: Small fixes.
39179         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39180         succeeds.
39181         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39182         before testing whether getlogin_r is declared. No need to set
39183         HAVE_DECL_GETLOGIN_R to 1.
39184         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39185
39186 2010-01-09  Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/unistd.in.h (getlogin_r): Add comment.
39189
39190 2010-01-09  Bruno Haible  <bruno@clisp.org>
39191
39192         Tests for module 'getlogin_r'.
39193         * modules/getlogin_r-tests: New file.
39194         * tests/test-getlogin_r.c: New file.
39195
39196 2010-01-09  Jim Meyering  <meyering@redhat.com>
39197
39198         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39199         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39200         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39201
39202 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39203
39204         * lib/dup2.c (rpl_dup2): Improve comment.
39205
39206 2010-01-08  Eric Blake  <ebb9@byu.net>
39207
39208         maint.mk: allow packages to add makefile @@ exceptions
39209         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39210         (sc_makefile_check): Rename...
39211         (sc_makefile_at_at_check): ...to this, and use hook.
39212
39213         dup2: work around mingw bug
39214         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39215         Reported by Simon Josefsson.
39216
39217 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39218
39219         glob: Fix C++ compilation.
39220         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39221         C++.
39222
39223 2010-01-07  Bruno Haible  <bruno@clisp.org>
39224
39225         Fix indentation of wctype.in.h, broken since 2007-01-06.
39226         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39227
39228 2010-01-07  Bruno Haible  <bruno@clisp.org>
39229
39230         mbslen: Avoid collision with system function.
39231         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39232         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39233         * m4/mbslen.m4: New file.
39234         * modules/mbslen (Files): Add it.
39235         (configure.ac): Invoke gl_MBSLEN.
39236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39237         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39239         via Ian Beckwith <ianb@erislabs.net>.
39240
39241 2010-01-07  Bruno Haible  <bruno@clisp.org>
39242
39243         dirent: Document the last fix.
39244         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39245
39246 2010-01-07  Bruno Haible  <bruno@clisp.org>
39247
39248         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39249         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39250         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39251         va_list are defined.
39252         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39253         Reported by Eric Blake.
39254
39255 2010-01-07  Bruno Haible  <bruno@clisp.org>
39256
39257         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39258         * modules/xlist (Depends-on): Add 'list',
39259         * modules/xoset (Depends-on): Add 'oset'.
39260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39261
39262 2010-01-07  Bruno Haible  <bruno@clisp.org>
39263
39264         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39265         * doc/posix-functions/strncasecmp.texi: Likewise.
39266
39267 2010-01-07  Bruno Haible  <bruno@clisp.org>
39268
39269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39270
39271 2010-01-07  John W. Eaton  <jwe@octave.org>
39272
39273         wctype: allow C++ use
39274         * lib/wctype.in.h: Add extern "C" block for C++.
39275
39276 2010-01-06  Eric Blake  <ebb9@byu.net>
39277
39278         maint.mk: detect incorrect GFDL usage
39279         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39280
39281 2010-01-06  Jim Meyering  <meyering@redhat.com>
39282         and Eric Blake  <ebb9@byu.net>
39283
39284         maint.mk: ignore multi-line copyright in NEWS
39285         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39286
39287 2010-01-06  Eric Blake  <ebb9@byu.net>
39288
39289         select: add missing dependency
39290         * modules/select-tests (Depends-on): Move sockets dependency...
39291         * modules/select (Depends-on): ...here.
39292         Reported by Ian Beckwith.
39293
39294         doc: regenerate INSTALL
39295         * doc/INSTALL: Reflect recent autoconf update.
39296         * doc/INSTALL.ISO: Likewise.
39297         * doc/INSTALL.UTF-8: Likewise.
39298
39299         pread: fix compilation on glibc
39300         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39301         Reported by Ralf Wildenhues.
39302
39303         dirent: fix test failure
39304         * lib/dirent.in.h (includes): Guarantee ino_t.
39305         Reported by Ralf Wildenhues.
39306
39307 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39308
39309         linkat, renameat: avoid bad free
39310         * lib/at-func2.c (at_func2): Fix typo.
39311         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39312
39313 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39314
39315         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39316         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39317         to avoid failure of symlink test later.
39318
39319 2010-01-06  Eric Blake  <ebb9@byu.net>
39320
39321         stdio, unistd: guarantee ssize_t
39322         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39323         2008 are exposed when needed.
39324         * lib/stdio.in.h (includes): Likewise.
39325         Reported by Ralf Wildenhues.
39326
39327 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39328
39329         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39330         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39331         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39332
39333 2010-01-06  Jim Meyering  <meyering@redhat.com>
39334
39335         readtokens: this module *does* require xalloc.h
39336         It uses only functions that were omitted by the old syntax-check rule.
39337         * lib/readtokens.c: Include "xalloc.h" once again.
39338         * modules/readtokens (Depends-on): Add xalloc.
39339         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39340
39341 2010-01-05  Eric Blake  <ebb9@byu.net>
39342
39343         maint: support 'make announcement' from a VPATH build
39344         * top/maint.mk (announcement): Look for correct NEWS file.
39345
39346 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39347
39348         utimens (fdutimens): ignore a negative FD, per contract
39349         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39350         when we have a valid file descriptor.  Otherwise, using a brand
39351         new glibc (with just-patched futimens that now fails with EBADF)
39352         would cause this function to fail with ENOSYS.
39353         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39354         See also http://bugzilla.redhat.com/552320.
39355
39356 2010-01-05  Eric Blake  <ebb9@byu.net>
39357
39358         strcase: document what it provides
39359         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39360         gnulib module.
39361         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39362         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39363
39364 2010-01-05  Jim Meyering  <meyering@redhat.com>
39365
39366         maint: remove useless inclusions of "xalloc.h"
39367         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39368         * lib/readtokens.c: Likewise.
39369         * lib/same.c: Likewise.
39370         * modules/getloadavg (Depends-on): Remove xalloc.
39371         * modules/readtokens: Likewise.
39372         * modules/same: Likewise.
39373
39374         maint.mk: include 4 more function names in alloca.h-checking regexp
39375         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39376         regexp.  Before, we would give a false-positive (saying alloca.h
39377         is included unnecessarily) when the only uses involved omitted symbols.
39378
39379         xalloc.h: use consistent formatting
39380         * lib/xalloc.h: Move declarations to start in the first column.
39381
39382 2010-01-05  Eric Blake  <ebb9@byu.net>
39383
39384         mkdir: avoid xalloc
39385         * lib/mkdir.c (includes): Drop unused header.
39386         Reported by John W. Eaton.
39387
39388 2010-01-04  Jim Meyering  <meyering@redhat.com>
39389
39390         nl_langinfo: avoid configure-time syntax error
39391         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39392         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39393         the empty string.  Don't let that provoke a shell syntax error.
39394
39395         regcomp, regexec, fnmatch: avoid array bounds read error
39396         * lib/regcomp.c (build_equiv_class): From glibc:
39397         Use only the low 24 bits of a findidx return value as an index
39398         into the weights array.  Patch by Ulrich Drepper:
39399         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39400         * lib/regexec.c (check_node_accept_bytes): Likewise.
39401         * lib/fnmatch_loop.c (FCT): Likewise.
39402
39403         regcomp: skip collseq lookup when there are no rules
39404         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39405         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39406
39407         regcomp: recognize ill-formed { } expressions
39408         * lib/regcomp.c (parse_dup_op): From glibc:
39409         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39410
39411         regcomp: fix typo in comment
39412         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39413         s/satisfy/satisfies/.
39414
39415         regcomp: sync from glibc: remove dead store
39416         * lib/regcomp.c (duplicate_node_closure): Remove useless
39417         search_duplicated_node call and dead store.
39418
39419         regcomp: sync from glibc; always use nl_langinfo
39420         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39421         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39422         * modules/regex (Depends-on): Add nl_langinfo.
39423
39424 2010-01-04  Eric Blake  <ebb9@byu.net>
39425
39426         fdopendir: fix configure test
39427         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39428
39429 2010-01-01  Bruno Haible  <bruno@clisp.org>
39430
39431         wchar: Remove unused configure check.
39432         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39433
39434 2010-01-01  Eric Blake  <ebb9@byu.net>
39435
39436         headers: make check of system header explicit
39437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39438         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39439         ourselves.
39440         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39443         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39444         internals.
39445         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39446         missing.
39447         Suggested by Bruno Haible.
39448
39449 2010-01-01  Jim Meyering  <meyering@redhat.com>
39450
39451         ChangeLog: tweak to eliminate unnecessary copyright line
39452         * ChangeLog: Remove a copyright line that was mistakenly updated
39453         by today's update-copyright run.  Reported by Eric Blake.
39454
39455         test-update-copyright: don't let envvar setting cause test failure
39456         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39457
39458 2010-01-01  Bruno Haible  <bruno@clisp.org>
39459
39460         localename: Avoid gcc warning.
39461         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39462         function if it is not used.
39463
39464 2010-01-01  Jim Meyering  <meyering@redhat.com>
39465
39466         update nearly all FSF copyright year lists to include 2010
39467         Use the same procedure as for 2009, outlined in
39468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39469
39470         version-etc: set COPYRIGHT_YEAR to 2010
39471         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39472
39473 2009-12-31  Eric Blake  <ebb9@byu.net>
39474
39475         doc: correct availability of cygwin 1.5.x getopt
39476         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39477         variables.
39478         * doc/posix-functions/opterr.texi (opterr): Likewise.
39479         * doc/posix-functions/optind.texi (optind): Likewise.
39480         * doc/posix-functions/optopt.texi (optopt): Likewise.
39481         * doc/posix-functions/tzname.texi (tzname): Likewise.
39482
39483         openat: update maintainer
39484         * modules/openat (Maintainer): Add myself.
39485
39486         utimens: avoid shadowing warning
39487         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39488         buffers into one, to avoid shadowing, as well as avoiding a
39489         redundant stat.
39490         Reported by Jim Meyering.
39491
39492         test-dup2: avoid compiler warning
39493         * tests/test-dup2.c (is_inheritable): Only define if used.
39494
39495 2010-01-01  Bruno Haible  <bruno@clisp.org>
39496
39497         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39498         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39499         defined, use wctomb instead of wcrtomb.
39500
39501 2010-01-01  Bruno Haible  <bruno@clisp.org>
39502
39503         iconv: Reject native Solaris iconv.
39504         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39505         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39506
39507 2009-12-31  Bruno Haible  <bruno@clisp.org>
39508
39509         * tests/test-signal.c (main): Remove test of 'SIG'.
39510
39511 2009-12-31  Bruno Haible  <bruno@clisp.org>
39512
39513         spawn: Fix incomplete fix.
39514         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39515         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39516         warnings for GNULIB_POSIXCHECK again.
39517         Reported by Eric Blake.
39518
39519 2009-12-31  Bruno Haible  <bruno@clisp.org>
39520
39521         Avoid namespace pollution on glibc systems.
39522         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39523         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39524         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39525         glibc systems.
39526
39527 2009-12-31  Bruno Haible  <bruno@clisp.org>
39528
39529         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39530         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39531         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39532         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39534         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39535         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39536
39537 2009-12-31  Bruno Haible  <bruno@clisp.org>
39538
39539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39540         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39541         afterwards.
39542
39543 2009-12-31  Bruno Haible  <bruno@clisp.org>
39544
39545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39546         SYS_UTSNAME_H.
39547
39548 2009-12-31  Bruno Haible  <bruno@clisp.org>
39549
39550         spawn: Fix misapplied patch.
39551         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39552         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39553         warnings for GNULIB_POSIXCHECK.
39554
39555 2009-12-31  Bruno Haible  <bruno@clisp.org>
39556
39557         times: Update after sys_times changed.
39558         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39559         * modules/times (Files): Add it.
39560         (configure.ac): Invoke gl_FUNC_TIMES.
39561
39562 2009-12-31  Bruno Haible  <bruno@clisp.org>
39563
39564         Use AC_C_INLINE where necessary.
39565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39566         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39568         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39569         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39570         * m4/mbiter.m4 (gl_MBITER): Likewise.
39571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39573         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39574         * modules/u64 (configure.ac): Likewise.
39575
39576 2009-12-31  Bruno Haible  <bruno@clisp.org>
39577
39578         Use AC_C_INLINE instead of module 'inline' where possible.
39579         * modules/inline (Description): Clarify purpose.
39580         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39581         * modules/count-one-bits (Depends-on): Remove inline.
39582         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39583         * modules/openat (Depends-on): Remove inline.
39584         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39585         instead of depending on module 'inline'.
39586         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39587         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39588         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39589         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39590         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39591         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39592         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39593         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39594         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39595         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39596         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39597         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39598         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39599         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39600         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39601         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39602         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39603         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39604         Likewise.
39605         * modules/unictype/property-ascii-hex-digit (Depends-on,
39606         configure.ac): Likewise.
39607         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39608         configure.ac): Likewise.
39609         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39610         configure.ac): Likewise.
39611         * modules/unictype/property-bidi-block-separator (Depends-on,
39612         configure.ac): Likewise.
39613         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39614         configure.ac): Likewise.
39615         * modules/unictype/property-bidi-common-separator (Depends-on,
39616         configure.ac): Likewise.
39617         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39618         Likewise.
39619         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39620         configure.ac): Likewise.
39621         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39622         configure.ac): Likewise.
39623         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39624         configure.ac): Likewise.
39625         * modules/unictype/property-bidi-european-digit (Depends-on,
39626         configure.ac): Likewise.
39627         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39628         configure.ac): Likewise.
39629         * modules/unictype/property-bidi-left-to-right (Depends-on,
39630         configure.ac): Likewise.
39631         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39632         configure.ac): Likewise.
39633         * modules/unictype/property-bidi-other-neutral (Depends-on,
39634         configure.ac): Likewise.
39635         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39636         Likewise.
39637         * modules/unictype/property-bidi-segment-separator (Depends-on,
39638         configure.ac): Likewise.
39639         * modules/unictype/property-bidi-whitespace (Depends-on,
39640         configure.ac): Likewise.
39641         * modules/unictype/property-combining (Depends-on, configure.ac):
39642         Likewise.
39643         * modules/unictype/property-composite (Depends-on, configure.ac):
39644         Likewise.
39645         * modules/unictype/property-currency-symbol (Depends-on,
39646         configure.ac): Likewise.
39647         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39648         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39649         Likewise.
39650         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39651         configure.ac): Likewise.
39652         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39653         Likewise.
39654         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39655         Likewise.
39656         * modules/unictype/property-extender (Depends-on, configure.ac):
39657         Likewise.
39658         * modules/unictype/property-format-control (Depends-on, configure.ac):
39659         Likewise.
39660         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39661         Likewise.
39662         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39663         Likewise.
39664         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39665         Likewise.
39666         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39667         Likewise.
39668         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39669         Likewise.
39670         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39671         Likewise.
39672         * modules/unictype/property-id-start (Depends-on, configure.ac):
39673         Likewise.
39674         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39675         Likewise.
39676         * modules/unictype/property-ids-binary-operator (Depends-on,
39677         configure.ac): Likewise.
39678         * modules/unictype/property-ids-trinary-operator (Depends-on,
39679         configure.ac): Likewise.
39680         * modules/unictype/property-ignorable-control (Depends-on,
39681         configure.ac): Likewise.
39682         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39683         Likewise.
39684         * modules/unictype/property-join-control (Depends-on, configure.ac):
39685         Likewise.
39686         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39687         Likewise.
39688         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39689         Likewise.
39690         * modules/unictype/property-logical-order-exception (Depends-on,
39691         configure.ac): Likewise.
39692         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39693         Likewise.
39694         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39695         * modules/unictype/property-non-break (Depends-on, configure.ac):
39696         Likewise.
39697         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39698         Likewise.
39699         * modules/unictype/property-numeric (Depends-on, configure.ac):
39700         Likewise.
39701         * modules/unictype/property-other-alphabetic (Depends-on,
39702         configure.ac): Likewise.
39703         * modules/unictype/property-other-default-ignorable-code-point
39704         (Depends-on, configure.ac): Likewise.
39705         * modules/unictype/property-other-grapheme-extend (Depends-on,
39706         configure.ac): Likewise.
39707         * modules/unictype/property-other-id-continue (Depends-on,
39708         configure.ac): Likewise.
39709         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39710         Likewise.
39711         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39712         Likewise.
39713         * modules/unictype/property-other-math (Depends-on, configure.ac):
39714         Likewise.
39715         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39716         Likewise.
39717         * modules/unictype/property-paired-punctuation (Depends-on,
39718         configure.ac): Likewise.
39719         * modules/unictype/property-paragraph-separator (Depends-on,
39720         configure.ac): Likewise.
39721         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39722         Likewise.
39723         * modules/unictype/property-pattern-white-space (Depends-on,
39724         configure.ac): Likewise.
39725         * modules/unictype/property-private-use (Depends-on, configure.ac):
39726         Likewise.
39727         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39728         Likewise.
39729         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39730         Likewise.
39731         * modules/unictype/property-radical (Depends-on, configure.ac):
39732         Likewise.
39733         * modules/unictype/property-sentence-terminal (Depends-on,
39734         configure.ac): Likewise.
39735         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39736         Likewise.
39737         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39738         * modules/unictype/property-terminal-punctuation (Depends-on,
39739         configure.ac): Likewise.
39740         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39741         Likewise.
39742         * modules/unictype/property-unassigned-code-value (Depends-on,
39743         configure.ac): Likewise.
39744         * modules/unictype/property-unified-ideograph (Depends-on,
39745         configure.ac): Likewise.
39746         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39747         Likewise.
39748         * modules/unictype/property-variation-selector (Depends-on,
39749         configure.ac): Likewise.
39750         * modules/unictype/property-white-space (Depends-on, configure.ac):
39751         Likewise.
39752         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39753         Likewise.
39754         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39755         Likewise.
39756         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39757         Likewise.
39758         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39759         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39760         Likewise.
39761
39762 2009-12-31  Bruno Haible  <bruno@clisp.org>
39763
39764         Remove unnecessary AC_C_INLINE invocation.
39765         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39766         since 2009-08-21.
39767
39768 2009-12-31  Jim Meyering  <meyering@redhat.com>
39769
39770         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39771         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39772         With this change, we can all remove the gpg_key_ID = ... definition
39773         from our respective cfg.mk files.
39774
39775         maint.mk: create announcement template in ~/, not in /tmp
39776         * top/maint.mk (emit_upload_commands): Adjust.
39777         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39778         Remove temporary file, .ci-msg.
39779
39780 2009-12-31  Eric Blake  <ebb9@byu.net>
39781
39782         link-warning: always build headers with link warnings
39783         * modules/arpa_inet (Makefile.am): Always build replacement
39784         header.
39785         * modules/ctype (Makefile.am): Likewise.
39786         * modules/dirent (Makefile.am): Likewise.
39787         * modules/inttypes (Makefile.am): Likewise.
39788         * modules/langinfo (Makefile.am): Likewise.
39789         * modules/locale (Makefile.am): Likewise.
39790         * modules/spawn (Makefile.am): Likewise.
39791         * modules/sys_file (Makefile.am): Likewise.
39792         * modules/sys_ioctl (Makefile.am): Likewise.
39793         * modules/sys_select (Makefile.am): Likewise.
39794         * modules/sys_socket (Makefile.am): Likewise.
39795         * modules/sys_times (Makefile.am): Likewise.
39796         * modules/sys_utsname (Makefile.am): Likewise.
39797         * modules/sys_wait (Makefile.am): Likewise.
39798         * modules/wchar (Makefile.am): Likewise.
39799         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39800         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39801         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39802         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39803         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39804         Likewise.
39805         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39806         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39807         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39808         Likewise.
39809         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39810         Likewise.
39811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39813         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39817         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39818         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39819         (gl_WCHAR_H_DEFAULTS): Likewise.
39820
39821 2009-12-31  Eric Blake  <ebb9@byu.net>
39822
39823         signal, spawn: use link warnings
39824         * lib/signal.in.h (sigset_t): Make unconditional.
39825         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39826         (sigpending, sigprocmask, sigaction): Add link warnings.
39827         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39828         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39829         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39830         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39831         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39832         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39833         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39834         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39835         (posix_spawn_file_actions_destroy)
39836         (posix_spawn_file_actions_addopen)
39837         (posix_spawn_file_actions_addclose)
39838         (posix_spawn_file_actions_adddup2): Likewise.
39839         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39840         * tests/test-signal.c (main): Enhance test.
39841
39842         spawn: improve wrapper support
39843         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39844         (gl_SPAWN_H_DEFAULTS): New defaults.
39845         * modules/spawn (Makefile.am): Substitute them.
39846         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39847         Only declare if missing or broken.
39848
39849         sys_times, sys_utsname: use include_next
39850         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39851         header.
39852         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39854         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39855         * modules/sys_times (Depends-on): Add include_next.
39856         (Makefile.am): Substitute additional values.
39857         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39858         * lib/sys_times.in.h (includes): Include native header, if
39859         available.
39860         * lib/sys_utsname.in.h (includes): Likewise.
39861         * tests/test-sys_times.c (main): Enhance test.
39862
39863         fdutimensat: revert prior patch
39864         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39865         utimens.h.
39866         Reported by Bruno Haible.
39867
39868 2009-12-30  Eric Blake  <ebb9@byu.net>
39869
39870         sys_wait: drop link-warning dependency
39871         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39872         link-warning efforts.
39873         * lib/sys_wait.in.h: Likewise.
39874
39875         fdutimensat: remove bogus dependency
39876         * modules/fdutimensat (Depends-on): Drop inline.
39877
39878         unistd: fix typo
39879         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39880
39881 2009-12-30  Bruno Haible  <bruno@clisp.org>
39882
39883         Fix compilation error with Solaris cc.
39884         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39885         * lib/unicase/u16-is-invariant.c: Likewise.
39886         * lib/unicase/u32-is-invariant.c: Likewise.
39887         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39888
39889 2009-12-30  Bruno Haible  <bruno@clisp.org>
39890
39891         Fix test crash.
39892         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39893         locales.
39894         Reported by Simon Josefsson <simon@josefsson.org>.
39895
39896 2009-12-30  Bruno Haible  <bruno@clisp.org>
39897
39898         Fix compilation error on most platforms.
39899         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39900         Reported by Simon Josefsson <simon@josefsson.org>
39901         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39902
39903 2009-12-30  Eric Blake  <ebb9@byu.net>
39904
39905         futimens, utimensat: work around ntfs-3g bug
39906         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39907         a ctime bug is present, and expand workaround to cover ntfs-3g.
39908         * lib/utimens.c (fdutimens, lutimens): Likewise.
39909         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39910         (validate_timespec): Adjust return value.
39911         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39913         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39914
39915 2009-12-29  Eric Blake  <ebb9@byu.net>
39916
39917         link-warning: make usage consistent
39918         * modules/ctype (Depends-on): Add link-warning.
39919         (Makefile.am): Update rules accordingly.
39920         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39921         * modules/locale (Depends-on, Makefile.am): Likewise.
39922         * modules/sys_file (Makefile.am): Likewise.
39923         * modules/getopt-posix (Makefile.am): Delete unused link warning
39924         efforts.
39925         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39926         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39927         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39928         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39929
39930         stdio: remove unused variables
39931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39933         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39934
39935         tests: test more substitute headers
39936         * modules/ctype-tests: New file.
39937         * modules/dirent-tests: Likewise.
39938         * modules/spawn-tests: Likewise.
39939         * modules/sys_file-tests: Likewise.
39940         * modules/sys_ioctl-tests: Likewise.
39941         * modules/sys_wait-tests: Likewise.
39942         * tests/test-ctype.c: Likewise.
39943         * tests/test-dirent.c: Likewise.
39944         * tests/test-spawn.c: Likewise.
39945         * tests/test-sys_file.c: Likewise.
39946         * tests/test-sys_ioctl.c: Likewise.
39947         * tests/test-sys_wait.c: Likewise.
39948         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39949         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39950         whether or not flock is in use.
39951
39952         tests: remove License section from module
39953         * modules/arpa_inet-tests: Remove unneeded section.
39954         * modules/byteswap-tests: Likewise.
39955         * modules/ceilf-tests: Likewise.
39956         * modules/ceill-tests: Likewise.
39957         * modules/crypto/des-tests: Likewise.
39958         * modules/crypto/gc-arcfour-tests: Likewise.
39959         * modules/crypto/gc-arctwo-tests: Likewise.
39960         * modules/crypto/gc-des-tests: Likewise.
39961         * modules/crypto/gc-hmac-md5-tests: Likewise.
39962         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39963         * modules/crypto/gc-md2-tests: Likewise.
39964         * modules/crypto/gc-md4-tests: Likewise.
39965         * modules/crypto/gc-md5-tests: Likewise.
39966         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39967         * modules/crypto/gc-rijndael-tests: Likewise.
39968         * modules/crypto/gc-sha1-tests: Likewise.
39969         * modules/crypto/gc-tests: Likewise.
39970         * modules/crypto/md2-tests: Likewise.
39971         * modules/crypto/md4-tests: Likewise.
39972         * modules/fcntl-h-tests: Likewise.
39973         * modules/floorf-tests: Likewise.
39974         * modules/floorl-tests: Likewise.
39975         * modules/frexp-nolibm-tests: Likewise.
39976         * modules/frexp-tests: Likewise.
39977         * modules/frexpl-nolibm-tests: Likewise.
39978         * modules/frexpl-tests: Likewise.
39979         * modules/getaddrinfo-tests: Likewise.
39980         * modules/inttypes-tests: Likewise.
39981         * modules/isfinite-tests: Likewise.
39982         * modules/isinf-tests: Likewise.
39983         * modules/ldexpl-tests: Likewise.
39984         * modules/locale-tests: Likewise.
39985         * modules/math-tests: Likewise.
39986         * modules/netdb-tests: Likewise.
39987         * modules/netinet_in-tests: Likewise.
39988         * modules/printf-frexp-tests: Likewise.
39989         * modules/printf-frexpl-tests: Likewise.
39990         * modules/priv-set-tests: Likewise.
39991         * modules/random_r-tests: Likewise.
39992         * modules/round-tests: Likewise.
39993         * modules/roundf-tests: Likewise.
39994         * modules/roundl-tests: Likewise.
39995         * modules/search-tests: Likewise.
39996         * modules/select-tests: Likewise.
39997         * modules/signal-tests: Likewise.
39998         * modules/stdbool-tests: Likewise.
39999         * modules/stddef-tests: Likewise.
40000         * modules/stdint-tests: Likewise.
40001         * modules/stdio-tests: Likewise.
40002         * modules/stdlib-tests: Likewise.
40003         * modules/string-tests: Likewise.
40004         * modules/strings-tests: Likewise.
40005         * modules/sys_select-tests: Likewise.
40006         * modules/sys_socket-tests: Likewise.
40007         * modules/sys_stat-tests: Likewise.
40008         * modules/sys_time-tests: Likewise.
40009         * modules/sys_utsname-tests: Likewise.
40010         * modules/sysexits-tests: Likewise.
40011         * modules/time-tests: Likewise.
40012         * modules/trunc-tests: Likewise.
40013         * modules/truncf-tests: Likewise.
40014         * modules/truncl-tests: Likewise.
40015         * modules/tsearch-tests: Likewise.
40016         * modules/unistd-tests: Likewise.
40017         * modules/wchar-tests: Likewise.
40018         * modules/wctype-tests: Likewise.
40019
40020         tests: fix license on several tests
40021         * tests/test-des.c: Update to GPLv3+.
40022         * tests/test-flock.c: Likewise.
40023         * tests/test-fsync.c: Likewise.
40024         * tests/test-futimens.h: Likewise.
40025         * tests/test-gc-arcfour.c: Likewise.
40026         * tests/test-gc-arctwo.c: Likewise.
40027         * tests/test-gc-des.c: Likewise.
40028         * tests/test-gc-hmac-md5.c: Likewise.
40029         * tests/test-gc-hmac-sha1.c: Likewise.
40030         * tests/test-gc-md2.c: Likewise.
40031         * tests/test-gc-md4.c: Likewise.
40032         * tests/test-gc-md5.c: Likewise.
40033         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40034         * tests/test-gc-rijndael.c: Likewise.
40035         * tests/test-gc-sha1.c: Likewise.
40036         * tests/test-gc.c: Likewise.
40037         * tests/test-getcwd.c: Likewise.
40038         * tests/test-link.c: Likewise.
40039         * tests/test-link.h: Likewise.
40040         * tests/test-lutimens.h: Likewise.
40041         * tests/test-md2.c: Likewise.
40042         * tests/test-md4.c: Likewise.
40043         * tests/test-mkdir.h: Likewise.
40044         * tests/test-rename.c: Likewise.
40045         * tests/test-rename.h: Likewise.
40046         * tests/test-safe-alloc.c: Likewise.
40047         * tests/test-utimens-common.h: Likewise.
40048         * tests/test-utimens.h: Likewise.
40049
40050         maint: sync license texts
40051         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40052         * doc/gpl-3.0.texi: Revert copyright year update.
40053         * doc/lgpl-3.0.texi: Likewise.
40054
40055 2009-12-29  Jim Meyering  <meyering@redhat.com>
40056
40057         update nearly all FSF copyright year lists to include 2009
40058         The files named by the following are exempted:
40059             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40060               test -f "$dst" && { echo "$dst"; continue; }
40061               test -d "$dst" || continue
40062               echo "$dst"/$(basename "$src")
40063             done > exempt
40064             git ls-files tests/unictype >> exempt
40065         In the remaining files, convert to all-interval notation if
40066         - there is already at least one year interval like 2000-2003
40067         - the file is maintained by me
40068         - the file is in lib/uni*/, where that style already prevails
40069         Otherwise, use update-copyright's default.
40070
40071 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40072         and Eric Blake  <ebb9@byu.net>
40073
40074         tests: don't require debug system() to pass
40075         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40076         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40077         * tests/test-unlink.h (test_unlink_func): Likewise.
40078         * tests/test-fstatat.c (main): ...into callers.
40079         * tests/test-lstat.c (main): Likewise.
40080         * tests/test-rmdir.c (main): Likewise.
40081         * tests/test-unlink.c (main): Likewise.
40082         * tests/test-unlinkat.c (main): Likewise.
40083         * tests/test-areadlink-with-size.c (main): Don't require a
40084         debug-only system call to pass, aiding cross-testing to mingw.
40085         * tests/test-areadlink.c (main): Likewise.
40086         * tests/test-areadlinkat-with-size.c (main): Likewise.
40087         * tests/test-areadlinkat.c (main): Likewise.
40088         * tests/test-canonicalize-lgpl.c (main): Likewise.
40089         * tests/test-canonicalize.c (main): Likewise.
40090         * tests/test-chown.c (main): Likewise.
40091         * tests/test-fchownat.c (main): Likewise.
40092         * tests/test-lchown.c (main): Likewise.
40093         * tests/test-fdutimensat.c (main): Likewise.
40094         * tests/test-futimens.c (main): Likewise.
40095         * tests/test-link.c (main): Likewise.
40096         * tests/test-linkat.c (main): Likewise.
40097         * tests/test-mkdir.c (main): Likewise.
40098         * tests/test-mkdirat.c (main): Likewise.
40099         * tests/test-mkfifo.c (main): Likewise.
40100         * tests/test-mkfifoat.c (main): Likewise.
40101         * tests/test-mknod.c (main): Likewise.
40102         * tests/test-readlink.c (main): Likewise.
40103         * tests/test-remove.c (main): Likewise.
40104         * tests/test-rename.c (main): Likewise.
40105         * tests/test-renameat.c (main): Likewise.
40106         * tests/test-symlink.c (main): Likewise.
40107         * tests/test-symlinkat.c (main): Likewise.
40108         * tests/test-utimens.c (main): Likewise.
40109         * tests/test-utimensat.c (main): Likewise.
40110
40111 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40112
40113         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40114         on $(UNUSED_PARAMETER_H) to avoid build failure.
40115
40116 2009-12-28  Jim Meyering  <meyering@redhat.com>
40117
40118         update-copyright: you may specify a max. line length other than 72
40119         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40120
40121         maint: use consistent FSF copyright line syntax
40122         * lib/posixtm.c: Add missing comma in FSF copyright line.
40123         * lib/posixtm.h: Likewise.
40124         * lib/getugroups.c: Add missing ", Inc.".
40125
40126         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40127         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40128         FSF copyright line.  Remove trailing blanks.
40129
40130 2009-12-28  Eric Blake  <ebb9@byu.net>
40131
40132         test-dup2: reduce dependencies
40133         * modules/cloexec (Configure.ac): Set witness.
40134         * modules/dup2-tests (Depends-on): Drop cloexec.
40135         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40136         not present.
40137         Suggested by Bruno Haible.
40138
40139 2009-12-26  Bruno Haible  <bruno@clisp.org>
40140
40141         Remove an unneeded dependency.
40142         * modules/fseterr (Depends-on): Remove dup2.
40143
40144 2009-12-26  Eric Blake  <ebb9@byu.net>
40145
40146         tests: use macros.h in more places
40147         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40148         (ASSERT_STREAM): Provide default of stderr.
40149         * tests/test-dirent-safer.c: Include macros.h, using alternate
40150         stream for assertions.
40151         * tests/test-dup-safer.c: Likewise.
40152         * tests/test-freopen-safer.c: Likewise.
40153         * tests/test-getopt.c: Likewise.
40154         * tests/test-openat-safer.c: Likewise.
40155         * tests/test-pipe.c: Likewise.
40156         * tests/test-popen-safer.c: Likewise.
40157         * modules/dirent-safer-tests (Files): Include macros.h.
40158         * modules/unistd-safer-tests (Files): Likewise.
40159         * modules/freopen-safer-tests (Files): Likewise.
40160         * modules/getopt-posix-tests (Files): Likewise.
40161         * modules/openat-safer-tests (Files): Likewise.
40162         * modules/pipe-tests (Files): Likewise.
40163
40164 2009-12-26  Bruno Haible  <bruno@clisp.org>
40165
40166         javacomp: Portability fix.
40167         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40168         that it also works on Solaris.
40169
40170 2009-12-26  Bruno Haible  <bruno@clisp.org>
40171
40172         localename: Fix storage allocation of gl_locale_name_thread's result.
40173         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40174         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40175         all platforms that have 'uselocale'.
40176         (gl_locale_name_thread_unsafe): New function, extracted from
40177         gl_locale_name_thread.
40178         (gl_locale_name_thread): Call struniq on all platforms that have
40179         'uselocale'.
40180         * tests/test-localename.c (test_locale_name_thread): Check that the
40181         resulting strings are permanently allocated.
40182         * modules/localename-tests (Depends-on): Add strdup.
40183
40184 2009-12-26  Bruno Haible  <bruno@clisp.org>
40185
40186         * tests/test-localename.c (categories): Fill in the strings.
40187
40188 2009-12-26  Jim Meyering  <meyering@redhat.com>
40189
40190         isdir: complete the removal of m4/isdir.m4
40191         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40192
40193         isdir: clean up, since at least grep still uses it
40194         * lib/isdir.c: Include "isdir.h".
40195         (S_ISDIR): Remove now-unneeded definition.
40196         * modules/isdir (Files): Add lib/isdir.h.
40197         * lib/isdir.h: New file, with declaration.
40198         * m4/isdir.m4: Remove file -- unneeded.
40199
40200 2009-12-25  Bruno Haible  <bruno@clisp.org>
40201
40202         selinux-h: Make generated .h files standalone.
40203         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40204         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40205         * lib/se-selinux.in.h: Likewise.
40206         * modules/selinux-h (Depends-on): Add unused-parameter.
40207         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40208         selinux/selinux.h and selinux/context.h.
40209         Suggested by Eric Blake.
40210
40211 2009-12-25  Bruno Haible  <bruno@clisp.org>
40212
40213         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40214         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40215         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40216         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40217         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40218
40219 2009-12-24  Bruno Haible  <bruno@clisp.org>
40220
40221         openat: Fix warning.
40222         * lib/openat-proc.c: Include <unistd.h>.
40223
40224 2009-12-24  Bruno Haible  <bruno@clisp.org>
40225
40226         New module 'unused-parameter'.
40227         * build-aux/unused-parameter.h: New file, extracted from earlier
40228         gnulib-common.m4.
40229         * modules/unused-parameter: New file.
40230         * lib/unistr.h: Include unused-parameter.h.
40231         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40232         _GL_UNUSED.
40233         * modules/unistr/base (Depends-on): Add unused-parameter.
40234
40235 2009-12-24  Bruno Haible  <bruno@clisp.org>
40236
40237         Add missing dependencies to 'extensions' module.
40238         * m4/extensions.m4: Add comment.
40239         * modules/accept4 (Depends-on): Add extensions.
40240         * modules/dup3 (Depends-on): Likewise.
40241         * modules/fcntl (Depends-on): Likewise.
40242         * modules/futimens (Depends-on): Likewise.
40243         * modules/mknod (Depends-on): Likewise.
40244         * modules/pipe2 (Depends-on): Likewise.
40245         * modules/stat-time (Depends-on): Likewise.
40246         * modules/strcasestr-simple (Depends-on): Likewise.
40247         * modules/strsignal (Depends-on): Likewise.
40248         * modules/utimensat (Depends-on): Likewise.
40249         * modules/localcharset (Depends-on): Likewise. Needed because of
40250         gl_FCNTL_O_FLAGS.
40251         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40252         AC_TYPE_MBSTATE_T.
40253         * modules/wcsnrtombs (Depends-on): Likewise.
40254         * modules/wcsrtombs (Depends-on): Likewise.
40255
40256 2009-12-24  Bruno Haible  <bruno@clisp.org>
40257
40258         binary-io: Avoid gcc warning due to SET_BINARY.
40259         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40260         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40261
40262 2009-12-24  Bruno Haible  <bruno@clisp.org>
40263
40264         Avoid future namespace pollution on glibc systems.
40265         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40266         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40267         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40268         glibc systems.
40269
40270 2009-12-24  Bruno Haible  <bruno@clisp.org>
40271
40272         Refactor common macros used in tests.
40273         * tests/macros.h: New file.
40274         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40275         and/or <stdlib.h>, if appropriate.
40276         (ASSERT, SIZEOF): Remove macros.
40277         * tests/test-areadlink-with-size.c: Likewise.
40278         * tests/test-areadlinkat.c: Likewise.
40279         * tests/test-areadlinkat-with-size.c: Likewise.
40280         * tests/test-argmatch.c: Likewise.
40281         * tests/test-argv-iter.c: Likewise.
40282         * tests/test-array-mergesort.c: Likewise.
40283         * tests/test-array_list.c: Likewise.
40284         * tests/test-array_oset.c: Likewise.
40285         * tests/test-avltree_list.c: Likewise.
40286         * tests/test-avltree_oset.c: Likewise.
40287         * tests/test-avltreehash_list.c: Likewise.
40288         * tests/test-base64.c: Likewise.
40289         * tests/test-binary-io.c: Likewise.
40290         * tests/test-bitrotate.c: Likewise.
40291         * tests/test-btowc.c: Likewise.
40292         * tests/test-byteswap.c: Likewise.
40293         * tests/test-c-ctype.c: Likewise.
40294         * tests/test-c-stack.c: Likewise.
40295         * tests/test-c-strcasecmp.c: Likewise.
40296         * tests/test-c-strcasestr.c: Likewise.
40297         * tests/test-c-strncasecmp.c: Likewise.
40298         * tests/test-c-strstr.c: Likewise.
40299         * tests/test-canonicalize-lgpl.c: Likewise.
40300         * tests/test-canonicalize.c: Likewise.
40301         * tests/test-carray_list.c: Likewise.
40302         * tests/test-ceilf1.c: Likewise.
40303         * tests/test-ceilf2.c: Likewise.
40304         * tests/test-ceill.c: Likewise.
40305         * tests/test-chown.c: Likewise.
40306         * tests/test-cloexec.c: Likewise.
40307         * tests/test-copy-acl.c: Likewise.
40308         * tests/test-copy-file.c: Likewise.
40309         * tests/test-count-one-bits.c: Likewise.
40310         * tests/test-dprintf-posix.c: Likewise.
40311         * tests/test-dup2.c: Likewise.
40312         * tests/test-dup3.c: Likewise.
40313         * tests/test-duplocale.c: Likewise.
40314         * tests/test-fbufmode.c: Likewise.
40315         * tests/test-fchdir.c: Likewise.
40316         * tests/test-fchownat.c: Likewise.
40317         * tests/test-fcntl-safer.c: Likewise.
40318         * tests/test-fcntl.c: Likewise.
40319         * tests/test-fdopendir.c: Likewise.
40320         * tests/test-fdutimensat.c: Likewise.
40321         * tests/test-fflush2.c: Likewise.
40322         * tests/test-file-has-acl.c: Likewise.
40323         * tests/test-filevercmp.c: Likewise.
40324         * tests/test-flock.c: Likewise.
40325         * tests/test-floorf1.c: Likewise.
40326         * tests/test-floorf2.c: Likewise.
40327         * tests/test-floorl.c: Likewise.
40328         * tests/test-fnmatch.c: Likewise.
40329         * tests/test-fopen.h: Likewise.
40330         * tests/test-fpending.c: Likewise.
40331         * tests/test-fprintf-posix.c: Likewise.
40332         * tests/test-fpurge.c: Likewise.
40333         * tests/test-freadable.c: Likewise.
40334         * tests/test-freadahead.c: Likewise.
40335         * tests/test-freading.c: Likewise.
40336         * tests/test-freadptr.c: Likewise.
40337         * tests/test-freadptr2.c: Likewise.
40338         * tests/test-freadseek.c: Likewise.
40339         * tests/test-freopen.c: Likewise.
40340         * tests/test-frexp.c: Likewise.
40341         * tests/test-frexpl.c: Likewise.
40342         * tests/test-fseek.c: Likewise.
40343         * tests/test-fseeko.c: Likewise.
40344         * tests/test-fstatat.c: Likewise.
40345         * tests/test-fstrcmp.c: Likewise.
40346         * tests/test-fsync.c: Likewise.
40347         * tests/test-ftell.c: Likewise.
40348         * tests/test-ftello.c: Likewise.
40349         * tests/test-func.c: Likewise.
40350         * tests/test-futimens.c: Likewise.
40351         * tests/test-fwritable.c: Likewise.
40352         * tests/test-fwriting.c: Likewise.
40353         * tests/test-getcwd.c: Likewise.
40354         * tests/test-getdate.c: Likewise.
40355         * tests/test-getdelim.c: Likewise.
40356         * tests/test-getdtablesize.c: Likewise.
40357         * tests/test-getgroups.c: Likewise.
40358         * tests/test-getline.c: Likewise.
40359         * tests/test-getndelim2.c: Likewise.
40360         * tests/test-glob.c: Likewise.
40361         * tests/test-hash.c: Likewise.
40362         * tests/test-i-ring.c: Likewise.
40363         * tests/test-iconv-utf.c: Likewise.
40364         * tests/test-iconv.c: Likewise.
40365         * tests/test-idpriv-drop.c: Likewise.
40366         * tests/test-idpriv-droptemp.c: Likewise.
40367         * tests/test-inet_ntop.c: Likewise.
40368         * tests/test-inet_pton.c: Likewise.
40369         * tests/test-isblank.c: Likewise.
40370         * tests/test-isfinite.c: Likewise.
40371         * tests/test-isinf.c: Likewise.
40372         * tests/test-isnan.c: Likewise.
40373         * tests/test-isnand.h: Likewise.
40374         * tests/test-isnanf.h: Likewise.
40375         * tests/test-isnanl.h: Likewise.
40376         * tests/test-lchown.c: Likewise.
40377         * tests/test-ldexpl.c: Likewise.
40378         * tests/test-link.c: Likewise.
40379         * tests/test-linkat.c: Likewise.
40380         * tests/test-linked_list.c: Likewise.
40381         * tests/test-linkedhash_list.c: Likewise.
40382         * tests/test-localename.c: Likewise.
40383         * tests/test-lseek.c: Likewise.
40384         * tests/test-lstat.c: Likewise.
40385         * tests/test-mbmemcasecmp.c: Likewise.
40386         * tests/test-mbmemcasecoll.c: Likewise.
40387         * tests/test-mbrtowc.c: Likewise.
40388         * tests/test-mbscasecmp.c: Likewise.
40389         * tests/test-mbscasestr1.c: Likewise.
40390         * tests/test-mbscasestr2.c: Likewise.
40391         * tests/test-mbscasestr3.c: Likewise.
40392         * tests/test-mbscasestr4.c: Likewise.
40393         * tests/test-mbschr.c: Likewise.
40394         * tests/test-mbscspn.c: Likewise.
40395         * tests/test-mbsinit.c: Likewise.
40396         * tests/test-mbsncasecmp.c: Likewise.
40397         * tests/test-mbsnrtowcs.c: Likewise.
40398         * tests/test-mbspbrk.c: Likewise.
40399         * tests/test-mbspcasecmp.c: Likewise.
40400         * tests/test-mbsrchr.c: Likewise.
40401         * tests/test-mbsrtowcs.c: Likewise.
40402         * tests/test-mbsspn.c: Likewise.
40403         * tests/test-mbsstr1.c: Likewise.
40404         * tests/test-mbsstr2.c: Likewise.
40405         * tests/test-mbsstr3.c: Likewise.
40406         * tests/test-memchr.c: Likewise.
40407         * tests/test-memchr2.c: Likewise.
40408         * tests/test-memcmp.c: Likewise.
40409         * tests/test-memmem.c: Likewise.
40410         * tests/test-memrchr.c: Likewise.
40411         * tests/test-mkdir.c: Likewise.
40412         * tests/test-mkdirat.c: Likewise.
40413         * tests/test-mkfifo.c: Likewise.
40414         * tests/test-mkfifoat.c: Likewise.
40415         * tests/test-mknod.c: Likewise.
40416         * tests/test-nanosleep.c: Likewise.
40417         * tests/test-nl_langinfo.c: Likewise.
40418         * tests/test-obstack-printf.c: Likewise.
40419         * tests/test-open.c: Likewise.
40420         * tests/test-openat.c: Likewise.
40421         * tests/test-pipe-filter-gi1.c: Likewise.
40422         * tests/test-pipe-filter-gi2-main.c: Likewise.
40423         * tests/test-pipe-filter-ii1.c: Likewise.
40424         * tests/test-pipe-filter-ii2-main.c: Likewise.
40425         * tests/test-pipe2.c: Likewise.
40426         * tests/test-popen.h: Likewise.
40427         * tests/test-posixtm.c: Likewise.
40428         * tests/test-pread.c: Likewise.
40429         * tests/test-printf-frexp.c: Likewise.
40430         * tests/test-printf-frexpl.c: Likewise.
40431         * tests/test-printf-posix.c: Likewise.
40432         * tests/test-priv-set.c: Likewise.
40433         * tests/test-quotearg.c: Likewise.
40434         * tests/test-random_r.c: Likewise.
40435         * tests/test-rawmemchr.c: Likewise.
40436         * tests/test-rbtree_list.c: Likewise.
40437         * tests/test-rbtree_oset.c: Likewise.
40438         * tests/test-rbtreehash_list.c: Likewise.
40439         * tests/test-readlink.c: Likewise.
40440         * tests/test-remove.c: Likewise.
40441         * tests/test-rename.c: Likewise.
40442         * tests/test-renameat.c: Likewise.
40443         * tests/test-rmdir.c: Likewise.
40444         * tests/test-round1.c: Likewise.
40445         * tests/test-roundf1.c: Likewise.
40446         * tests/test-roundl.c: Likewise.
40447         * tests/test-safe-alloc.c: Likewise.
40448         * tests/test-sameacls.c: Likewise.
40449         * tests/test-set-mode-acl.c: Likewise.
40450         * tests/test-setenv.c: Likewise.
40451         * tests/test-sigaction.c: Likewise.
40452         * tests/test-signbit.c: Likewise.
40453         * tests/test-sleep.c: Likewise.
40454         * tests/test-snprintf-posix.c: Likewise.
40455         * tests/test-snprintf.c: Likewise.
40456         * tests/test-sprintf-posix.c: Likewise.
40457         * tests/test-stat-time.c: Likewise.
40458         * tests/test-stat.c: Likewise.
40459         * tests/test-strcasestr.c: Likewise.
40460         * tests/test-strchrnul.c: Likewise.
40461         * tests/test-strerror.c: Likewise.
40462         * tests/test-striconv.c: Likewise.
40463         * tests/test-striconveh.c: Likewise.
40464         * tests/test-striconveha.c: Likewise.
40465         * tests/test-strsignal.c: Likewise.
40466         * tests/test-strstr.c: Likewise.
40467         * tests/test-strtod.c: Likewise.
40468         * tests/test-strverscmp.c: Likewise.
40469         * tests/test-symlink.c: Likewise.
40470         * tests/test-symlinkat.c: Likewise.
40471         * tests/test-trunc1.c: Likewise.
40472         * tests/test-trunc2.c: Likewise.
40473         * tests/test-truncf1.c: Likewise.
40474         * tests/test-truncf2.c: Likewise.
40475         * tests/test-truncl.c: Likewise.
40476         * tests/test-uname.c: Likewise.
40477         * tests/test-unlink.c: Likewise.
40478         * tests/test-unlinkat.c: Likewise.
40479         * tests/test-unsetenv.c: Likewise.
40480         * tests/test-usleep.c: Likewise.
40481         * tests/test-utimens.c: Likewise.
40482         * tests/test-utimensat.c: Likewise.
40483         * tests/test-vasnprintf-posix.c: Likewise.
40484         * tests/test-vasnprintf-posix2.c: Likewise.
40485         * tests/test-vasnprintf.c: Likewise.
40486         * tests/test-vasprintf-posix.c: Likewise.
40487         * tests/test-vasprintf.c: Likewise.
40488         * tests/test-vdprintf-posix.c: Likewise.
40489         * tests/test-vfprintf-posix.c: Likewise.
40490         * tests/test-vprintf-posix.c: Likewise.
40491         * tests/test-vsnprintf-posix.c: Likewise.
40492         * tests/test-vsnprintf.c: Likewise.
40493         * tests/test-vsprintf-posix.c: Likewise.
40494         * tests/test-wcrtomb.c: Likewise.
40495         * tests/test-wcsnrtombs.c: Likewise.
40496         * tests/test-wcsrtombs.c: Likewise.
40497         * tests/test-wctype.c: Likewise.
40498         * tests/test-wcwidth.c: Likewise.
40499         * tests/test-xfprintf-posix.c: Likewise.
40500         * tests/test-xmemdup0.c: Likewise.
40501         * tests/test-xprintf-posix.c: Likewise.
40502         * tests/test-xvasprintf.c: Likewise.
40503         * tests/unicase/test-locale-language.c: Likewise.
40504         * tests/unicase/test-mapping-part1.h: Likewise.
40505         * tests/unicase/test-predicate-part1.h: Likewise.
40506         * tests/unicase/test-u8-casecmp.c: Likewise.
40507         * tests/unicase/test-u8-casecoll.c: Likewise.
40508         * tests/unicase/test-u8-casefold.c: Likewise.
40509         * tests/unicase/test-u8-is-cased.c: Likewise.
40510         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40511         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40512         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40513         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40514         * tests/unicase/test-u8-tolower.c: Likewise.
40515         * tests/unicase/test-u8-totitle.c: Likewise.
40516         * tests/unicase/test-u8-toupper.c: Likewise.
40517         * tests/unicase/test-u16-casecmp.c: Likewise.
40518         * tests/unicase/test-u16-casecoll.c: Likewise.
40519         * tests/unicase/test-u16-casefold.c: Likewise.
40520         * tests/unicase/test-u16-is-cased.c: Likewise.
40521         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40522         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40523         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40524         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40525         * tests/unicase/test-u16-tolower.c: Likewise.
40526         * tests/unicase/test-u16-totitle.c: Likewise.
40527         * tests/unicase/test-u16-toupper.c: Likewise.
40528         * tests/unicase/test-u32-casecmp.c: Likewise.
40529         * tests/unicase/test-u32-casecoll.c: Likewise.
40530         * tests/unicase/test-u32-casefold.c: Likewise.
40531         * tests/unicase/test-u32-is-cased.c: Likewise.
40532         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40533         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40534         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40535         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40536         * tests/unicase/test-u32-tolower.c: Likewise.
40537         * tests/unicase/test-u32-totitle.c: Likewise.
40538         * tests/unicase/test-u32-toupper.c: Likewise.
40539         * tests/unicase/test-ulc-casecmp.c: Likewise.
40540         * tests/unicase/test-ulc-casecoll.c: Likewise.
40541         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40542         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40543         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40544         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40545         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40546         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40550         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40551         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40552         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40553         * tests/unictype/test-bidi_byname.c: Likewise.
40554         * tests/unictype/test-bidi_name.c: Likewise.
40555         * tests/unictype/test-bidi_of.c: Likewise.
40556         * tests/unictype/test-bidi_test.c: Likewise.
40557         * tests/unictype/test-block_list.c: Likewise.
40558         * tests/unictype/test-block_of.c: Likewise.
40559         * tests/unictype/test-block_test.c: Likewise.
40560         * tests/unictype/test-categ_and.c: Likewise.
40561         * tests/unictype/test-categ_and_not.c: Likewise.
40562         * tests/unictype/test-categ_byname.c: Likewise.
40563         * tests/unictype/test-categ_name.c: Likewise.
40564         * tests/unictype/test-categ_none.c: Likewise.
40565         * tests/unictype/test-categ_of.c: Likewise.
40566         * tests/unictype/test-categ_or.c: Likewise.
40567         * tests/unictype/test-categ_test_withtable.c: Likewise.
40568         * tests/unictype/test-combining.c: Likewise.
40569         * tests/unictype/test-decdigit.c: Likewise.
40570         * tests/unictype/test-digit.c: Likewise.
40571         * tests/unictype/test-mirror.c: Likewise.
40572         * tests/unictype/test-numeric.c: Likewise.
40573         * tests/unictype/test-pr_byname.c: Likewise.
40574         * tests/unictype/test-pr_test.c: Likewise.
40575         * tests/unictype/test-predicate-part1.h: Likewise.
40576         * tests/unictype/test-scripts.c: Likewise.
40577         * tests/unictype/test-sy_c_ident.c: Likewise.
40578         * tests/unictype/test-sy_java_ident.c: Likewise.
40579         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40580         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40581         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40582         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40583         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40584         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40585         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40586         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40587         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40588         * tests/uninorm/test-compat-decomposition.c: Likewise.
40589         * tests/uninorm/test-composition.c: Likewise.
40590         * tests/uninorm/test-decomposing-form.c: Likewise.
40591         * tests/uninorm/test-decomposition.c: Likewise.
40592         * tests/uninorm/test-u8-nfc.c: Likewise.
40593         * tests/uninorm/test-u8-nfd.c: Likewise.
40594         * tests/uninorm/test-u8-nfkc.c: Likewise.
40595         * tests/uninorm/test-u8-nfkd.c: Likewise.
40596         * tests/uninorm/test-u8-normcmp.c: Likewise.
40597         * tests/uninorm/test-u8-normcoll.c: Likewise.
40598         * tests/uninorm/test-u16-nfc.c: Likewise.
40599         * tests/uninorm/test-u16-nfd.c: Likewise.
40600         * tests/uninorm/test-u16-nfkc.c: Likewise.
40601         * tests/uninorm/test-u16-nfkd.c: Likewise.
40602         * tests/uninorm/test-u16-normcmp.c: Likewise.
40603         * tests/uninorm/test-u16-normcoll.c: Likewise.
40604         * tests/uninorm/test-u32-nfc.c: Likewise.
40605         * tests/uninorm/test-u32-nfd.c: Likewise.
40606         * tests/uninorm/test-u32-nfkc.c: Likewise.
40607         * tests/uninorm/test-u32-nfkd.c: Likewise.
40608         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40609         * tests/uninorm/test-u32-normcmp.c: Likewise.
40610         * tests/uninorm/test-u32-normcoll.c: Likewise.
40611         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40612         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40613         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40614         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40615         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40616         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40617         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40618         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40619         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40620         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40621         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40622         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40623         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40624         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40625         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40626         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40627         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40628         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40629         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40630         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40631         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40632         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40633         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40634         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40635         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40636         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40637         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40638         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40639         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40640         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40641         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40642         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40643         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40644         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40645         * tests/uniwidth/test-u8-width.c: Likewise.
40646         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40647         * tests/uniwidth/test-u16-width.c: Likewise.
40648         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40649         * tests/uniwidth/test-u32-width.c: Likewise.
40650         * tests/uniwidth/test-uc_width.c: Likewise.
40651         * tests/uniwidth/test-uc_width2.c: Likewise.
40652         * modules/acl-tests (Files): Add tests/macros.h.
40653         * modules/areadlink-tests (Files): Likewise.
40654         * modules/areadlink-with-size-tests (Files): Likewise.
40655         * modules/areadlinkat-tests (Files): Likewise.
40656         * modules/areadlinkat-with-size-tests (Files): Likewise.
40657         * modules/argmatch-tests (Files): Likewise.
40658         * modules/argv-iter-tests (Files): Likewise.
40659         * modules/array-list-tests (Files): Likewise.
40660         * modules/array-mergesort-tests (Files): Likewise.
40661         * modules/array-oset-tests (Files): Likewise.
40662         * modules/avltree-list-tests (Files): Likewise.
40663         * modules/avltree-oset-tests (Files): Likewise.
40664         * modules/avltreehash-list-tests (Files): Likewise.
40665         * modules/base64-tests (Files): Likewise.
40666         * modules/binary-io-tests (Files): Likewise.
40667         * modules/bitrotate-tests (Files): Likewise.
40668         * modules/btowc-tests (Files): Likewise.
40669         * modules/byteswap-tests (Files): Likewise.
40670         * modules/c-ctype-tests (Files): Likewise.
40671         * modules/c-stack-tests (Files): Likewise.
40672         * modules/c-strcase-tests (Files): Likewise.
40673         * modules/c-strcasestr-tests (Files): Likewise.
40674         * modules/c-strstr-tests (Files): Likewise.
40675         * modules/canonicalize-lgpl-tests (Files): Likewise.
40676         * modules/canonicalize-tests (Files): Likewise.
40677         * modules/carray-list-tests (Files): Likewise.
40678         * modules/ceilf-tests (Files): Likewise.
40679         * modules/ceill-tests (Files): Likewise.
40680         * modules/chown-tests (Files): Likewise.
40681         * modules/cloexec-tests (Files): Likewise.
40682         * modules/copy-file-tests (Files): Likewise.
40683         * modules/count-one-bits-tests (Files): Likewise.
40684         * modules/dprintf-posix-tests (Files): Likewise.
40685         * modules/dup2-tests (Files): Likewise.
40686         * modules/dup3-tests (Files): Likewise.
40687         * modules/duplocale-tests (Files): Likewise.
40688         * modules/fbufmode-tests (Files): Likewise.
40689         * modules/fchdir-tests (Files): Likewise.
40690         * modules/fcntl-safer-tests (Files): Likewise.
40691         * modules/fcntl-tests (Files): Likewise.
40692         * modules/fdopendir-tests (Files): Likewise.
40693         * modules/fdutimensat-tests (Files): Likewise.
40694         * modules/fflush-tests (Files): Likewise.
40695         * modules/filevercmp-tests (Files): Likewise.
40696         * modules/flock-tests (Files): Likewise.
40697         * modules/floorf-tests (Files): Likewise.
40698         * modules/floorl-tests (Files): Likewise.
40699         * modules/fnmatch-tests (Files): Likewise.
40700         * modules/fopen-safer-tests (Files): Likewise.
40701         * modules/fopen-tests (Files): Likewise.
40702         * modules/fpending-tests (Files): Likewise.
40703         * modules/fprintf-posix-tests (Files): Likewise.
40704         * modules/fpurge-tests (Files): Likewise.
40705         * modules/freadable-tests (Files): Likewise.
40706         * modules/freadahead-tests (Files): Likewise.
40707         * modules/freading-tests (Files): Likewise.
40708         * modules/freadptr-tests (Files): Likewise.
40709         * modules/freadseek-tests (Files): Likewise.
40710         * modules/freopen-tests (Files): Likewise.
40711         * modules/frexp-nolibm-tests (Files): Likewise.
40712         * modules/frexp-tests (Files): Likewise.
40713         * modules/frexpl-nolibm-tests (Files): Likewise.
40714         * modules/frexpl-tests (Files): Likewise.
40715         * modules/fseek-tests (Files): Likewise.
40716         * modules/fseeko-tests (Files): Likewise.
40717         * modules/fstrcmp-tests (Files): Likewise.
40718         * modules/fsync-tests (Files): Likewise.
40719         * modules/ftell-tests (Files): Likewise.
40720         * modules/ftello-tests (Files): Likewise.
40721         * modules/func-tests (Files): Likewise.
40722         * modules/futimens-tests (Files): Likewise.
40723         * modules/fwritable-tests (Files): Likewise.
40724         * modules/fwriting-tests (Files): Likewise.
40725         * modules/getcwd-tests (Files): Likewise.
40726         * modules/getdate-tests (Files): Likewise.
40727         * modules/getdelim-tests (Files): Likewise.
40728         * modules/getdtablesize-tests (Files): Likewise.
40729         * modules/getgroups-tests (Files): Likewise.
40730         * modules/getline-tests (Files): Likewise.
40731         * modules/getndelim2-tests (Files): Likewise.
40732         * modules/glob-tests (Files): Likewise.
40733         * modules/hash-tests (Files): Likewise.
40734         * modules/i-ring-tests (Files): Likewise.
40735         * modules/iconv-tests (Files): Likewise.
40736         * modules/iconv_open-utf-tests (Files): Likewise.
40737         * modules/idpriv-drop-tests (Files): Likewise.
40738         * modules/idpriv-droptemp-tests (Files): Likewise.
40739         * modules/inet_ntop-tests (Files): Likewise.
40740         * modules/inet_pton-tests (Files): Likewise.
40741         * modules/isblank-tests (Files): Likewise.
40742         * modules/isfinite-tests (Files): Likewise.
40743         * modules/isinf-tests (Files): Likewise.
40744         * modules/isnan-tests (Files): Likewise.
40745         * modules/isnand-nolibm-tests (Files): Likewise.
40746         * modules/isnand-tests (Files): Likewise.
40747         * modules/isnanf-nolibm-tests (Files): Likewise.
40748         * modules/isnanf-tests (Files): Likewise.
40749         * modules/isnanl-nolibm-tests (Files): Likewise.
40750         * modules/isnanl-tests (Files): Likewise.
40751         * modules/lchown-tests (Files): Likewise.
40752         * modules/ldexpl-tests (Files): Likewise.
40753         * modules/link-tests (Files): Likewise.
40754         * modules/linkat-tests (Files): Likewise.
40755         * modules/linked-list-tests (Files): Likewise.
40756         * modules/linkedhash-list-tests (Files): Likewise.
40757         * modules/localename-tests (Files): Likewise.
40758         * modules/lseek-tests (Files): Likewise.
40759         * modules/lstat-tests (Files): Likewise.
40760         * modules/mbmemcasecmp-tests (Files): Likewise.
40761         * modules/mbmemcasecoll-tests (Files): Likewise.
40762         * modules/mbrtowc-tests (Files): Likewise.
40763         * modules/mbscasecmp-tests (Files): Likewise.
40764         * modules/mbscasestr-tests (Files): Likewise.
40765         * modules/mbschr-tests (Files): Likewise.
40766         * modules/mbscspn-tests (Files): Likewise.
40767         * modules/mbsinit-tests (Files): Likewise.
40768         * modules/mbsncasecmp-tests (Files): Likewise.
40769         * modules/mbsnrtowcs-tests (Files): Likewise.
40770         * modules/mbspbrk-tests (Files): Likewise.
40771         * modules/mbspcasecmp-tests (Files): Likewise.
40772         * modules/mbsrchr-tests (Files): Likewise.
40773         * modules/mbsrtowcs-tests (Files): Likewise.
40774         * modules/mbsspn-tests (Files): Likewise.
40775         * modules/mbsstr-tests (Files): Likewise.
40776         * modules/memchr-tests (Files): Likewise.
40777         * modules/memchr2-tests (Files): Likewise.
40778         * modules/memcmp-tests (Files): Likewise.
40779         * modules/memmem-tests (Files): Likewise.
40780         * modules/memrchr-tests (Files): Likewise.
40781         * modules/mkdir-tests (Files): Likewise.
40782         * modules/mkfifo-tests (Files): Likewise.
40783         * modules/mkfifoat-tests (Files): Likewise.
40784         * modules/mknod-tests (Files): Likewise.
40785         * modules/nanosleep-tests (Files): Likewise.
40786         * modules/nl_langinfo-tests (Files): Likewise.
40787         * modules/obstack-printf-tests (Files): Likewise.
40788         * modules/open-tests (Files): Likewise.
40789         * modules/openat-tests (Files): Likewise.
40790         * modules/pipe-filter-gi-tests (Files): Likewise.
40791         * modules/pipe-filter-ii-tests (Files): Likewise.
40792         * modules/pipe2-tests (Files): Likewise.
40793         * modules/popen-safer-tests (Files): Likewise.
40794         * modules/popen-tests (Files): Likewise.
40795         * modules/posixtm-tests (Files): Likewise.
40796         * modules/pread-tests (Files): Likewise.
40797         * modules/printf-frexp-tests (Files): Likewise.
40798         * modules/printf-frexpl-tests (Files): Likewise.
40799         * modules/printf-posix-tests (Files): Likewise.
40800         * modules/priv-set-tests (Files): Likewise.
40801         * modules/quotearg-tests (Files): Likewise.
40802         * modules/random_r-tests (Files): Likewise.
40803         * modules/rawmemchr-tests (Files): Likewise.
40804         * modules/rbtree-list-tests (Files): Likewise.
40805         * modules/rbtree-oset-tests (Files): Likewise.
40806         * modules/rbtreehash-list-tests (Files): Likewise.
40807         * modules/readlink-tests (Files): Likewise.
40808         * modules/remove-tests (Files): Likewise.
40809         * modules/rename-tests (Files): Likewise.
40810         * modules/renameat-tests (Files): Likewise.
40811         * modules/rmdir-tests (Files): Likewise.
40812         * modules/round-tests (Files): Likewise.
40813         * modules/roundf-tests (Files): Likewise.
40814         * modules/roundl-tests (Files): Likewise.
40815         * modules/safe-alloc-tests (Files): Likewise.
40816         * modules/setenv-tests (Files): Likewise.
40817         * modules/sigaction-tests (Files): Likewise.
40818         * modules/signbit-tests (Files): Likewise.
40819         * modules/sleep-tests (Files): Likewise.
40820         * modules/snprintf-posix-tests (Files): Likewise.
40821         * modules/snprintf-tests (Files): Likewise.
40822         * modules/sprintf-posix-tests (Files): Likewise.
40823         * modules/stat-tests (Files): Likewise.
40824         * modules/stat-time-tests (Files): Likewise.
40825         * modules/strcasestr-tests (Files): Likewise.
40826         * modules/strchrnul-tests (Files): Likewise.
40827         * modules/strerror-tests (Files): Likewise.
40828         * modules/striconv-tests (Files): Likewise.
40829         * modules/striconveh-tests (Files): Likewise.
40830         * modules/striconveha-tests (Files): Likewise.
40831         * modules/strsignal-tests (Files): Likewise.
40832         * modules/strstr-tests (Files): Likewise.
40833         * modules/strtod-tests (Files): Likewise.
40834         * modules/strverscmp-tests (Files): Likewise.
40835         * modules/symlink-tests (Files): Likewise.
40836         * modules/symlinkat-tests (Files): Likewise.
40837         * modules/trunc-tests (Files): Likewise.
40838         * modules/truncf-tests (Files): Likewise.
40839         * modules/truncl-tests (Files): Likewise.
40840         * modules/uname-tests (Files): Likewise.
40841         * modules/unicase/cased-tests (Files): Likewise.
40842         * modules/unicase/ignorable-tests (Files): Likewise.
40843         * modules/unicase/locale-language-tests (Files): Likewise.
40844         * modules/unicase/tolower-tests (Files): Likewise.
40845         * modules/unicase/totitle-tests (Files): Likewise.
40846         * modules/unicase/toupper-tests (Files): Likewise.
40847         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40848         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40849         * modules/unicase/u8-casefold-tests (Files): Likewise.
40850         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40851         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40852         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40853         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40854         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40855         * modules/unicase/u8-tolower-tests (Files): Likewise.
40856         * modules/unicase/u8-totitle-tests (Files): Likewise.
40857         * modules/unicase/u8-toupper-tests (Files): Likewise.
40858         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40859         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40860         * modules/unicase/u16-casefold-tests (Files): Likewise.
40861         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40862         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40863         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40864         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40865         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40866         * modules/unicase/u16-tolower-tests (Files): Likewise.
40867         * modules/unicase/u16-totitle-tests (Files): Likewise.
40868         * modules/unicase/u16-toupper-tests (Files): Likewise.
40869         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40870         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40871         * modules/unicase/u32-casefold-tests (Files): Likewise.
40872         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40873         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40874         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40875         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40876         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40877         * modules/unicase/u32-tolower-tests (Files): Likewise.
40878         * modules/unicase/u32-totitle-tests (Files): Likewise.
40879         * modules/unicase/u32-toupper-tests (Files): Likewise.
40880         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40881         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40882         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40883         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40884         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40885         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40886         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40887         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40888         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40889         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40890         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40891         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40892         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40893         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40894         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40895         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40896         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40897         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40898         * modules/unictype/block-list-tests (Files): Likewise.
40899         * modules/unictype/block-of-tests (Files): Likewise.
40900         * modules/unictype/block-test-tests (Files): Likewise.
40901         * modules/unictype/category-C-tests (Files): Likewise.
40902         * modules/unictype/category-Cc-tests (Files): Likewise.
40903         * modules/unictype/category-Cf-tests (Files): Likewise.
40904         * modules/unictype/category-Cn-tests (Files): Likewise.
40905         * modules/unictype/category-Co-tests (Files): Likewise.
40906         * modules/unictype/category-Cs-tests (Files): Likewise.
40907         * modules/unictype/category-L-tests (Files): Likewise.
40908         * modules/unictype/category-Ll-tests (Files): Likewise.
40909         * modules/unictype/category-Lm-tests (Files): Likewise.
40910         * modules/unictype/category-Lo-tests (Files): Likewise.
40911         * modules/unictype/category-Lt-tests (Files): Likewise.
40912         * modules/unictype/category-Lu-tests (Files): Likewise.
40913         * modules/unictype/category-M-tests (Files): Likewise.
40914         * modules/unictype/category-Mc-tests (Files): Likewise.
40915         * modules/unictype/category-Me-tests (Files): Likewise.
40916         * modules/unictype/category-Mn-tests (Files): Likewise.
40917         * modules/unictype/category-N-tests (Files): Likewise.
40918         * modules/unictype/category-Nd-tests (Files): Likewise.
40919         * modules/unictype/category-Nl-tests (Files): Likewise.
40920         * modules/unictype/category-No-tests (Files): Likewise.
40921         * modules/unictype/category-P-tests (Files): Likewise.
40922         * modules/unictype/category-Pc-tests (Files): Likewise.
40923         * modules/unictype/category-Pd-tests (Files): Likewise.
40924         * modules/unictype/category-Pe-tests (Files): Likewise.
40925         * modules/unictype/category-Pf-tests (Files): Likewise.
40926         * modules/unictype/category-Pi-tests (Files): Likewise.
40927         * modules/unictype/category-Po-tests (Files): Likewise.
40928         * modules/unictype/category-Ps-tests (Files): Likewise.
40929         * modules/unictype/category-S-tests (Files): Likewise.
40930         * modules/unictype/category-Sc-tests (Files): Likewise.
40931         * modules/unictype/category-Sk-tests (Files): Likewise.
40932         * modules/unictype/category-Sm-tests (Files): Likewise.
40933         * modules/unictype/category-So-tests (Files): Likewise.
40934         * modules/unictype/category-Z-tests (Files): Likewise.
40935         * modules/unictype/category-Zl-tests (Files): Likewise.
40936         * modules/unictype/category-Zp-tests (Files): Likewise.
40937         * modules/unictype/category-Zs-tests (Files): Likewise.
40938         * modules/unictype/category-and-not-tests (Files): Likewise.
40939         * modules/unictype/category-and-tests (Files): Likewise.
40940         * modules/unictype/category-byname-tests (Files): Likewise.
40941         * modules/unictype/category-name-tests (Files): Likewise.
40942         * modules/unictype/category-none-tests (Files): Likewise.
40943         * modules/unictype/category-of-tests (Files): Likewise.
40944         * modules/unictype/category-or-tests (Files): Likewise.
40945         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40946         * modules/unictype/combining-class-tests (Files): Likewise.
40947         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40948         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40949         * modules/unictype/ctype-blank-tests (Files): Likewise.
40950         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40951         * modules/unictype/ctype-digit-tests (Files): Likewise.
40952         * modules/unictype/ctype-graph-tests (Files): Likewise.
40953         * modules/unictype/ctype-lower-tests (Files): Likewise.
40954         * modules/unictype/ctype-print-tests (Files): Likewise.
40955         * modules/unictype/ctype-punct-tests (Files): Likewise.
40956         * modules/unictype/ctype-space-tests (Files): Likewise.
40957         * modules/unictype/ctype-upper-tests (Files): Likewise.
40958         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40959         * modules/unictype/decimal-digit-tests (Files): Likewise.
40960         * modules/unictype/digit-tests (Files): Likewise.
40961         * modules/unictype/mirror-tests (Files): Likewise.
40962         * modules/unictype/numeric-tests (Files): Likewise.
40963         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40964         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40965         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40966         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40967         Likewise.
40968         * modules/unictype/property-bidi-block-separator-tests (Files):
40969         Likewise.
40970         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40971         Likewise.
40972         * modules/unictype/property-bidi-common-separator-tests (Files):
40973         Likewise.
40974         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40975         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40976         Likewise.
40977         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40978         Likewise.
40979         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40980         Likewise.
40981         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40982         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40983         Likewise.
40984         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40985         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40986         Likewise.
40987         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40988         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40989         * modules/unictype/property-bidi-segment-separator-tests (Files):
40990         Likewise.
40991         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40992         * modules/unictype/property-byname-tests (Files): Likewise.
40993         * modules/unictype/property-combining-tests (Files): Likewise.
40994         * modules/unictype/property-composite-tests (Files): Likewise.
40995         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40996         * modules/unictype/property-dash-tests (Files): Likewise.
40997         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40998         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40999         Likewise.
41000         * modules/unictype/property-deprecated-tests (Files): Likewise.
41001         * modules/unictype/property-diacritic-tests (Files): Likewise.
41002         * modules/unictype/property-extender-tests (Files): Likewise.
41003         * modules/unictype/property-format-control-tests (Files): Likewise.
41004         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41005         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41006         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41007         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41008         * modules/unictype/property-hyphen-tests (Files): Likewise.
41009         * modules/unictype/property-id-continue-tests (Files): Likewise.
41010         * modules/unictype/property-id-start-tests (Files): Likewise.
41011         * modules/unictype/property-ideographic-tests (Files): Likewise.
41012         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41013         * modules/unictype/property-ids-trinary-operator-tests (Files):
41014         Likewise.
41015         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41016         * modules/unictype/property-iso-control-tests (Files): Likewise.
41017         * modules/unictype/property-join-control-tests (Files): Likewise.
41018         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41019         * modules/unictype/property-line-separator-tests (Files): Likewise.
41020         * modules/unictype/property-logical-order-exception-tests (Files):
41021         Likewise.
41022         * modules/unictype/property-lowercase-tests (Files): Likewise.
41023         * modules/unictype/property-math-tests (Files): Likewise.
41024         * modules/unictype/property-non-break-tests (Files): Likewise.
41025         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41026         * modules/unictype/property-numeric-tests (Files): Likewise.
41027         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41028         * modules/unictype/property-other-default-ignorable-code-point-tests
41029         (Files): Likewise.
41030         * modules/unictype/property-other-grapheme-extend-tests (Files):
41031         Likewise.
41032         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41033         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41034         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41035         * modules/unictype/property-other-math-tests (Files): Likewise.
41036         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41037         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41038         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41039         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41040         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41041         * modules/unictype/property-private-use-tests (Files): Likewise.
41042         * modules/unictype/property-punctuation-tests (Files): Likewise.
41043         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41044         * modules/unictype/property-radical-tests (Files): Likewise.
41045         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41046         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41047         * modules/unictype/property-space-tests (Files): Likewise.
41048         * modules/unictype/property-terminal-punctuation-tests (Files):
41049         Likewise.
41050         * modules/unictype/property-test-tests (Files): Likewise.
41051         * modules/unictype/property-titlecase-tests (Files): Likewise.
41052         * modules/unictype/property-unassigned-code-value-tests (Files):
41053         Likewise.
41054         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41055         * modules/unictype/property-uppercase-tests (Files): Likewise.
41056         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41057         * modules/unictype/property-white-space-tests (Files): Likewise.
41058         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41059         * modules/unictype/property-xid-start-tests (Files): Likewise.
41060         * modules/unictype/property-zero-width-tests (Files): Likewise.
41061         * modules/unictype/scripts-tests (Files): Likewise.
41062         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41063         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41064         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41065         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41066         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41067         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41068         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41069         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41070         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41071         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41072         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41073         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41074         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41075         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41076         * modules/uninorm/composition-tests (Files): Likewise.
41077         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41078         * modules/uninorm/decomposition-tests (Files): Likewise.
41079         * modules/uninorm/filter-tests (Files): Likewise.
41080         * modules/uninorm/nfc-tests (Files): Likewise.
41081         * modules/uninorm/nfd-tests (Files): Likewise.
41082         * modules/uninorm/nfkc-tests (Files): Likewise.
41083         * modules/uninorm/nfkd-tests (Files): Likewise.
41084         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41085         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41086         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41087         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41088         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41089         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41090         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41091         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41092         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41093         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41094         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41095         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41096         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41097         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41098         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41099         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41100         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41101         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41102         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41103         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41104         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41105         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41106         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41107         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41108         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41109         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41110         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41111         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41112         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41113         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41114         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41115         * modules/uniwidth/u8-width-tests (Files): Likewise.
41116         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41117         * modules/uniwidth/u16-width-tests (Files): Likewise.
41118         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41119         * modules/uniwidth/u32-width-tests (Files): Likewise.
41120         * modules/uniwidth/width-tests (Files): Likewise.
41121         * modules/unlink-tests (Files): Likewise.
41122         * modules/unsetenv-tests (Files): Likewise.
41123         * modules/usleep-tests (Files): Likewise.
41124         * modules/utimens-tests (Files): Likewise.
41125         * modules/utimensat-tests (Files): Likewise.
41126         * modules/vasnprintf-posix-tests (Files): Likewise.
41127         * modules/vasnprintf-tests (Files): Likewise.
41128         * modules/vasprintf-posix-tests (Files): Likewise.
41129         * modules/vasprintf-tests (Files): Likewise.
41130         * modules/vdprintf-posix-tests (Files): Likewise.
41131         * modules/vfprintf-posix-tests (Files): Likewise.
41132         * modules/vprintf-posix-tests (Files): Likewise.
41133         * modules/vsnprintf-posix-tests (Files): Likewise.
41134         * modules/vsnprintf-tests (Files): Likewise.
41135         * modules/vsprintf-posix-tests (Files): Likewise.
41136         * modules/wcrtomb-tests (Files): Likewise.
41137         * modules/wcsnrtombs-tests (Files): Likewise.
41138         * modules/wcsrtombs-tests (Files): Likewise.
41139         * modules/wctype-tests (Files): Likewise.
41140         * modules/wcwidth-tests (Files): Likewise.
41141         * modules/xmemdup0-tests (Files): Likewise.
41142         * modules/xprintf-posix-tests (Files): Likewise.
41143         * modules/xvasprintf-tests (Files): Likewise.
41144
41145 2009-12-24  Eric Blake  <ebb9@byu.net>
41146
41147         test-nanosleep: fix typo
41148         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41149         patch.
41150         Reported by Bruno Haible.
41151
41152 2009-12-24  Bruno Haible  <bruno@clisp.org>
41153
41154         Reduce namespace pollution on glibc systems.
41155         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41156         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41157         systems.
41158         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41159         <getopt.h> on glibc systems.
41160         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41161         systems.
41162         * lib/fcntl.c: Include <unistd.h> here instead.
41163
41164 2009-12-24  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41167
41168 2009-12-24  Eric Blake  <ebb9@byu.net>
41169
41170         tests: add signature checks
41171         * tests/signature.h (SIGNATURE_CHECK): New file.
41172         * modules/atexit-tests (Files): Use it.
41173         * modules/btowc-tests (Files): Likewise.
41174         * modules/canonicalize-lgpl-tests (Files): Likewise.
41175         * modules/ceilf-tests (Files): Likewise.
41176         * modules/ceill-tests (Files): Likewise.
41177         * modules/chown-tests (Files): Likewise.
41178         * modules/dprintf-posix-tests (Files): Likewise.
41179         * modules/dup2-tests (Files): Likewise.
41180         * modules/dup3-tests (Files): Likewise.
41181         * modules/duplocale-tests (Files): Likewise.
41182         * modules/fchdir-tests (Files): Likewise.
41183         * modules/fcntl-tests (Files): Likewise.
41184         * modules/fdopendir-tests (Files): Likewise.
41185         * modules/fflush-tests (Files): Likewise.
41186         * modules/flock-tests (Files): Likewise.
41187         * modules/floorf-tests (Files): Likewise.
41188         * modules/floorl-tests (Files): Likewise.
41189         * modules/fnmatch-tests (Files): Likewise.
41190         * modules/fopen-tests (Files): Likewise.
41191         * modules/fprintf-posix-tests (Files): Likewise.
41192         * modules/freopen-tests (Files): Likewise.
41193         * modules/frexp-nolibm-tests (Files): Likewise.
41194         * modules/frexp-tests (Files): Likewise.
41195         * modules/frexpl-nolibm-tests (Files): Likewise.
41196         * modules/frexpl-tests (Files): Likewise.
41197         * modules/fseek-tests (Files): Likewise.
41198         * modules/fseeko-tests (Files): Likewise.
41199         * modules/fsync-tests (Files): Likewise.
41200         * modules/ftell-tests (Files): Likewise.
41201         * modules/ftello-tests (Files): Likewise.
41202         * modules/futimens-tests (Files): Likewise.
41203         * modules/getaddrinfo-tests (Files): Likewise.
41204         * modules/getcwd-tests (Files): Likewise.
41205         * modules/getdelim-tests (Files): Likewise.
41206         * modules/getdtablesize-tests (Files): Likewise.
41207         * modules/getgroups-tests (Files): Likewise.
41208         * modules/gethostname-tests (Files): Likewise.
41209         * modules/getline-tests (Files): Likewise.
41210         * modules/getopt-posix-tests (Files): Likewise.
41211         * modules/gettimeofday-tests (Files): Likewise.
41212         * modules/glob-tests (Files): Likewise.
41213         * modules/iconv-tests (Files): Likewise.
41214         * modules/inet_ntop-tests (Files): Likewise.
41215         * modules/inet_pton-tests (Files): Likewise.
41216         * modules/isblank-tests (Files): Likewise.
41217         * modules/lchown-tests (Files): Likewise.
41218         * modules/ldexpl-tests (Files): Likewise.
41219         * modules/link-tests (Files): Likewise.
41220         * modules/linkat-tests (Files): Likewise.
41221         * modules/lseek-tests (Files): Likewise.
41222         * modules/lstat-tests (Files): Likewise.
41223         * modules/mbrtowc-tests (Files): Likewise.
41224         * modules/mbsinit-tests (Files): Likewise.
41225         * modules/mbsnrtowcs-tests (Files): Likewise.
41226         * modules/mbsrtowcs-tests (Files): Likewise.
41227         * modules/memchr-tests (Files): Likewise.
41228         * modules/memcmp-tests (Files): Likewise.
41229         * modules/memmem-tests (Files): Likewise.
41230         * modules/memrchr-tests (Files): Likewise.
41231         * modules/mkdir-tests (Files): Likewise.
41232         * modules/mkfifo-tests (Files): Likewise.
41233         * modules/mkfifoat-tests (Files): Likewise.
41234         * modules/mknod-tests (Files): Likewise.
41235         * modules/nanosleep-tests (Files): Likewise.
41236         * modules/nl_langinfo-tests (Files): Likewise.
41237         * modules/obstack-printf-tests (Files): Likewise.
41238         * modules/open-tests (Files): Likewise.
41239         * modules/openat-tests (Files): Likewise.
41240         * modules/perror-tests (Files): Likewise.
41241         * modules/pipe2-tests (Files): Likewise.
41242         * modules/poll-tests (Files): Likewise.
41243         * modules/popen-tests (Files): Likewise.
41244         * modules/posix_spawn-tests (Files): Likewise.
41245         * modules/posix_spawnp-tests (Files): Likewise.
41246         * modules/pread-tests (Files): Likewise.
41247         * modules/printf-posix-tests (Files): Likewise.
41248         * modules/pty-tests (Files): Likewise.
41249         * modules/random_r-tests (Files): Likewise.
41250         * modules/rawmemchr-tests (Files): Likewise.
41251         * modules/readlink-tests (Files): Likewise.
41252         * modules/remove-tests (Files): Likewise.
41253         * modules/rename-tests (Files): Likewise.
41254         * modules/renameat-tests (Files): Likewise.
41255         * modules/rmdir-tests (Files): Likewise.
41256         * modules/round-tests (Files): Likewise.
41257         * modules/roundf-tests (Files): Likewise.
41258         * modules/roundl-tests (Files): Likewise.
41259         * modules/select-tests (Files): Likewise.
41260         * modules/setenv-tests (Files): Likewise.
41261         * modules/sigaction-tests (Files): Likewise.
41262         * modules/sleep-tests (Files): Likewise.
41263         * modules/snprintf-posix-tests (Files): Likewise.
41264         * modules/snprintf-tests (Files): Likewise.
41265         * modules/sprintf-posix-tests (Files): Likewise.
41266         * modules/stat-tests (Files): Likewise.
41267         * modules/strcasestr-tests (Files): Likewise.
41268         * modules/strchrnul-tests (Files): Likewise.
41269         * modules/strerror-tests (Files): Likewise.
41270         * modules/strsignal-tests (Files): Likewise.
41271         * modules/strstr-tests (Files): Likewise.
41272         * modules/strtod-tests (Files): Likewise.
41273         * modules/strverscmp-tests (Files): Likewise.
41274         * modules/symlink-tests (Files): Likewise.
41275         * modules/symlinkat-tests (Files): Likewise.
41276         * modules/times-tests (Files): Likewise.
41277         * modules/trunc-tests (Files): Likewise.
41278         * modules/truncf-tests (Files): Likewise.
41279         * modules/truncl-tests (Files): Likewise.
41280         * modules/tsearch-tests (Files): Likewise.
41281         * modules/uname-tests (Files): Likewise.
41282         * modules/unlink-tests (Files): Likewise.
41283         * modules/unsetenv-tests (Files): Likewise.
41284         * modules/usleep-tests (Files): Likewise.
41285         * modules/utimensat-tests (Files): Likewise.
41286         * modules/vasprintf-tests (Files): Likewise.
41287         * modules/vdprintf-posix-tests (Files): Likewise.
41288         * modules/vfprintf-posix-tests (Files): Likewise.
41289         * modules/vprintf-posix-tests (Files): Likewise.
41290         * modules/vsnprintf-posix-tests (Files): Likewise.
41291         * modules/vsnprintf-tests (Files): Likewise.
41292         * modules/vsprintf-posix-tests (Files): Likewise.
41293         * modules/wcrtomb-tests (Files): Likewise.
41294         * modules/wcsnrtombs-tests (Files): Likewise.
41295         * modules/wcsrtombs-tests (Files): Likewise.
41296         * modules/wcwidth-tests (Files): Likewise.
41297         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41298         * tests/test-isinf.c (isinf): Likewise.
41299         * tests/test-isnan.c (isnan): Likewise.
41300         * tests/test-signbit.c (signbit): Likewise.
41301         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41302         declaration, either as macro or with correct signature.
41303         (select): Ensure function under test is declared with correct
41304         signature in correct header.
41305         * tests/test-atexit.c (atexit): Likewise.
41306         * tests/test-btowc.c (btowc): Likewise.
41307         * tests/test-canonicalize-lgpl.c (realpath)
41308         (canonicalize_file_name): Likewise.
41309         * tests/test-ceilf1.c (ceilf): Likewise.
41310         * tests/test-ceill.c (ceill): Likewise.
41311         * tests/test-chown.c (chown): Likewise.
41312         * tests/test-dprintf-posix.c (dprintf): Likewise.
41313         * tests/test-dup2.c (dup2): Likewise.
41314         * tests/test-dup3.c (dup3): Likewise.
41315         * tests/test-duplocale.c (duplocale): Likewise.
41316         * tests/test-fchdir.c (fchdir): Likewise.
41317         * tests/test-fchownat.c (fchownat): Likewise.
41318         * tests/test-fcntl.c (fcntl): Likewise.
41319         * tests/test-fdopendir.c (fdopendir): Likewise.
41320         * tests/test-fflush.c (fflush): Likewise.
41321         * tests/test-flock.c (flock): Likewise.
41322         * tests/test-floorf1.c (floorf): Likewise.
41323         * tests/test-floorl.c (floorl): Likewise.
41324         * tests/test-fnmatch.c (fnmatch): Likewise.
41325         * tests/test-fopen.c (fopen): Likewise.
41326         * tests/test-fprintf-posix.c (fprintf): Likewise.
41327         * tests/test-freopen.c (freopen): Likewise.
41328         * tests/test-frexp.c (frexp): Likewise.
41329         * tests/test-frexpl.c (frexpl): Likewise.
41330         * tests/test-fseek.c (fseek): Likewise.
41331         * tests/test-fseeko.c (fseeko): Likewise.
41332         * tests/test-fstatat.c (fstatat): Likewise.
41333         * tests/test-fsync.c (fsync): Likewise.
41334         * tests/test-ftell.c (ftell): Likewise.
41335         * tests/test-ftello.c (ftello): Likewise.
41336         * tests/test-futimens.c (futimens): Likewise.
41337         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41338         (gai_strerror): Likewise.
41339         * tests/test-getcwd.c (getcwd): Likewise.
41340         * tests/test-getdelim.c (getdelim): Likewise.
41341         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41342         * tests/test-getgroups.c (getgroups): Likewise.
41343         * tests/test-gethostname.c (gethostname): Likewise.
41344         * tests/test-getline.c (getline): Likewise.
41345         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41346         Likewise.
41347         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41348         * tests/test-glob.c (glob, globfree): Likewise.
41349         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41350         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41351         * tests/test-inet_pton.c (inet_pton): Likewise.
41352         * tests/test-isblank.c (isblank): Likewise.
41353         * tests/test-lchown.c (lchown): Likewise.
41354         * tests/test-ldexpl.c (ldexpl): Likewise.
41355         * tests/test-link.c (link): Likewise.
41356         * tests/test-linkat.c (linkat): Likewise.
41357         * tests/test-lseek.c (lseek): Likewise.
41358         * tests/test-lstat.c (lstat): Likewise.
41359         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41360         * tests/test-mbsinit.c (mbsinit): Likewise.
41361         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41362         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41363         * tests/test-memchr.c (memchr): Likewise.
41364         * tests/test-memcmp.c (memcmp): Likewise.
41365         * tests/test-memmem.c (memmem): Likewise.
41366         * tests/test-memrchr.c (memrchr): Likewise.
41367         * tests/test-mkdir.c (mkdir): Likewise.
41368         * tests/test-mkdirat.c (mkdirat): Likewise.
41369         * tests/test-mkfifo.c (mkfifo): Likewise.
41370         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41371         * tests/test-mknod.c (mknod): Likewise.
41372         * tests/test-nanosleep.c (nanosleep): Likewise.
41373         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41374         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41375         Likewise.
41376         * tests/test-open.c (open): Likewise.
41377         * tests/test-openat.c (openat): Likewise.
41378         * tests/test-perror.c (perror): Likewise.
41379         * tests/test-pipe2.c (pipe2): Likewise.
41380         * tests/test-poll.c (poll): Likewise.
41381         * tests/test-popen.c (popen, pclose): Likewise.
41382         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41383         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41384         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41385         (posix_spawn_file_actions_destroy)
41386         (posix_spawn_file_actions_addclose)
41387         (posix_spawn_file_actions_addopen)
41388         (posix_spawn_file_actions_adddup2): Likewise.
41389         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41390         * tests/test-pread.c (pread): Likewise.
41391         * tests/test-printf-posix.c (printf): Likewise.
41392         * tests/test-pty.c (openpty, forkpty): Likewise.
41393         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41394         (random_r): Likewise.
41395         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41396         * tests/test-readlink.c (readlink): Likewise.
41397         * tests/test-remove.c (remove): Likewise.
41398         * tests/test-rename.c (rename): Likewise.
41399         * tests/test-renameat.c (renameat): Likewise.
41400         * tests/test-rmdir.c (rmdir): Likewise.
41401         * tests/test-round1.c (round): Likewise.
41402         * tests/test-roundf1.c (roundf): Likewise.
41403         * tests/test-roundl.c (roundl): Likewise.
41404         * tests/test-setenv.c (setenv): Likewise.
41405         * tests/test-sigaction.c (sigaction): Likewise.
41406         * tests/test-sleep.c (sleep): Likewise.
41407         * tests/test-snprintf.c (snprintf): Likewise.
41408         * tests/test-sprintf-posix.c (sprintf): Likewise.
41409         * tests/test-stat.c (stat): Likewise.
41410         * tests/test-stpncpy.c (stpncpy): Likewise.
41411         * tests/test-strcasestr.c (strcasestr): Likewise.
41412         * tests/test-strchrnul.c (strchrnul): Likewise.
41413         * tests/test-strerror.c (strerror): Likewise.
41414         * tests/test-strsignal.c (strsignal): Likewise.
41415         * tests/test-strstr.c (strstr): Likewise.
41416         * tests/test-strtod.c (strtod): Likewise.
41417         * tests/test-strverscmp.c (strverscmp): Likewise.
41418         * tests/test-symlink.c (symlink): Likewise.
41419         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41420         * tests/test-times.c (times): Likewise.
41421         * tests/test-trunc1.c (trunc): Likewise.
41422         * tests/test-truncf1.c (truncf): Likewise.
41423         * tests/test-truncl.c (truncl): Likewise.
41424         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41425         Likewise.
41426         * tests/test-uname.c (uname): Likewise.
41427         * tests/test-unlink.c (unlink): Likewise.
41428         * tests/test-unlinkat.c (unlinkat): Likewise.
41429         * tests/test-unsetenv.c (unsetenv): Likewise.
41430         * tests/test-usleep.c (usleep): Likewise.
41431         * tests/test-utimensat.c (utimensat): Likewise.
41432         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41433         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41434         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41435         * tests/test-vprintf-posix.c (vprintf): Likewise.
41436         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41437         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41438         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41439         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41440         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41441         * tests/test-wcwidth.c (wcwidth): Likewise.
41442
41443         build: pull in conditional headers during GNULIB_POSIXCHECK
41444         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41445         definitions from any conditionally-included headers.
41446         * lib/stdlib.in.h (includes): Likewise.
41447         * lib/unistd.in.h (includes): Likewise.
41448
41449 2009-12-24  Bruno Haible  <bruno@clisp.org>
41450
41451         * tests/test-argv-iter.c: Include header file being tested immediately
41452         after config.h.
41453         * tests/test-base64.c: Likewise.
41454         * tests/test-flock.c: Likewise.
41455         * tests/test-fsync.c: Likewise.
41456         * tests/test-getdate.c: Likewise.
41457         * tests/test-getndelim2.c: Likewise.
41458         * tests/test-isfinite.c: Likewise.
41459         * tests/test-isinf.c: Likewise.
41460         * tests/test-strerror.c: Likewise.
41461         * tests/test-strsignal.c: Likewise.
41462
41463 2009-12-23  Eric Blake  <ebb9@byu.net>
41464
41465         unistd: work around cygwin bug
41466         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41467         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41468         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41469
41470 2009-12-23  Bruno Haible  <bruno@clisp.org>
41471
41472         localename: More tests.
41473         * tests/test-localename.c (SIZEOF): New macro.
41474         (categories): New variable.
41475         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41476         test_locale_name_default): Add test w.r.t. thread locale.
41477         (test_locale_name_thread): New function.
41478         (main): Invoke it.
41479
41480         localename: Make aware of thread locale.
41481         * lib/localename.h (gl_locale_name_thread): New declaration.
41482         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41483         behaviour with respect to thread locale.
41484         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41485         <langinfo.h>, glthread/lock.h.
41486         (SIZE_BITS): New macro.
41487         (string_hash): New function.
41488         (struct hash_node): New type.
41489         (HASH_TABLE_SIZE): New macro.
41490         (struniq_hash_table, struniq_lock): New variables.
41491         (struniq): New function.
41492         (gl_locale_name_thread): New function.
41493         (gl_locale_name): Invoke it.
41494         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41495         * modules/localename (Depends-on): Add lock.
41496         Reported by Mike Gran <spk121@yahoo.com>.
41497
41498 2009-12-23  Eric Blake  <ebb9@byu.net>
41499
41500         va-args: new module
41501         * modules/va-args: New file.
41502         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41503         * MODULES.html.sh (Core language properties): Mention it.
41504
41505         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41506         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41507         named alias for __attribute__((__unused__)).
41508         * lib/chown.c: Update client.
41509         * lib/fchmodat.c: Likewise.
41510         * lib/fts.c: Likewise.
41511         * lib/getdate.y: Likewise.
41512         * lib/getgroups.c: Likewise.
41513         * lib/getopt.c: Likewise.
41514         * lib/getugroups.c: Likewise.
41515         * lib/mkdir.c: Likewise.
41516         * lib/mkfifo.c: Likewise.
41517         * lib/mkfifoat.c: Likewise.
41518         * lib/mknod.c: Likewise.
41519         * lib/mknodat.c: Likewise.
41520         * lib/readlink.c: Likewise.
41521         * lib/se-context.in.h: Likewise.
41522         * lib/se-selinux.in.h: Likewise.
41523         * lib/sockets.c: Likewise.
41524         * lib/symlink.c: Likewise.
41525         * lib/symlinkat.c: Likewise.
41526         * lib/unicodeio.c: Likewise.
41527         * lib/unistr.h: Likewise.
41528         * tests/test-areadlink.c: Likewise.
41529         * tests/test-areadlinkat.c: Likewise.
41530         * tests/test-filenamecat.c: Likewise.
41531         * tests/test-fseeko.c: Likewise.
41532         * tests/test-ftello.c: Likewise.
41533         * tests/test-getdate.c: Likewise.
41534         * tests/test-getgroups.c: Likewise.
41535         * tests/test-gethostname.c: Likewise.
41536         * tests/test-quotearg.c: Likewise.
41537         * tests/test-version-etc.c: Likewise.
41538         * tests/test-xalloc-die.c: Likewise.
41539         * tests/test-xfprintf-posix.c: Likewise.
41540         * tests/test-xprintf-posix.c: Likewise.
41541         * tests/test-xvasprintf.c: Likewise.
41542
41543         tests: avoid compiler warnings
41544         * tests/test-fcntl.c (main): Delete unused parameters.
41545         * tests/test-freopen-safer.c (main): Likewise.
41546         * tests/test-xalloc-die.c (main): Mark unused parameters.
41547         * tests/test-fseeko.c (main): Likewise.
41548         * tests/test-ftello.c (main): Likewise.
41549         * tests/test-nanosleep.c (main): Avoid declaration warning.
41550         * tests/test-sleep.c (main): Likewise.
41551         * tests/test-unsetenv.c (main): Silence warning about string
41552         literal.
41553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41554
41555 2009-12-23  Bruno Haible  <bruno@clisp.org>
41556
41557         * tests/test-localename.c (test_locale_name): New function, extracted
41558         from main. Also test mixed situations.
41559         (test_locale_name_posix, test_locale_name_environ,
41560         test_locale_name_default): New functions.
41561         (main): Invoke them all.
41562         * modules/localename-tests (configure.ac): Test for newlocale.
41563
41564 2009-12-23  Bruno Haible  <bruno@clisp.org>
41565
41566         unistd: Ensure getcwd gets declared before being overridden.
41567         * lib/unistd.in.h: Conditionally include <io.h>.
41568
41569 2009-12-22  Bruno Haible  <bruno@clisp.org>
41570
41571         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41572         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41573         (gl_WCHAR_H): Invoke it.
41574         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41575         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41576         Reported by Karl Berry <karl@freefriends.org>.
41577
41578 2009-12-22  Eric Blake  <ebb9@byu.net>
41579
41580         math, unistd: avoid redundant includes
41581         * lib/math.in.h (isnan): No need to re-include <math.h>.
41582         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41583
41584         getsubopt: work around cygwin bug
41585         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41586         avoid conflicting with system getsubopt.
41587         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41588         bug.
41589
41590         getopt: synchronize from glibc
41591         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41592         parameter order.  Adjust all callers.
41593         (_getopt_internal_r, main): Adjust quoting in error messages.
41594         Drop considerations for outdated POSIX 1003.2 error message.
41595         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41596         callers.
41597         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41598
41599         test-getopt: test stderr behavior
41600         * modules/getopt-posix-tests (Depends-on): Add dup2.
41601         * tests/test-getopt.c (ASSERT): Avoid stderr.
41602         (main): Move stderr to a temporary file.
41603         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41604         Instead, add parameter to inform caller if output occurred.
41605         (test_getopt): Adjust all existing tests to expect silence, and
41606         add new tests of leading ":".
41607         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41608         glibc shortcomings with leading "-:" or "+:" in optstring.
41609         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41610         Likewise.
41611         * doc/posix-functions/getopt.texi (getopt): Likewise.
41612
41613         test-getopt: enhance test
41614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41615         supports optind=0.
41616         * tests/test-getopt.c (OPTIND_MIN): Move...
41617         * tests/test-getopt.h (OPTIND_MIN): ...here.
41618         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41619         Require that optind=0 works, since modern BSD supports it in
41620         addition to optreset, and since coreutils expects it.
41621         (test_getopt_long_only): New test.
41622         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41623         glibc shortcomings with 'W;', and enforcement of optind=0.
41624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41625         Likewise.
41626
41627 2009-12-21  Bruno Haible  <bruno@clisp.org>
41628
41629         localename: Improvements for MacOS X and Cygwin.
41630         * lib/localename.h (gl_locale_name_environ): New declaration.
41631         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41632         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41633         (gl_locale_name_posix): Invoke it.
41634         (gl_locale_name_default): Add comments. Use Windows native API also on
41635         Cygwin.
41636
41637 2009-12-21  Bruno Haible  <bruno@clisp.org>
41638
41639         Update list of Win32 locale ids.
41640         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41641         (LANG_SAMI): Renamed from LANG_SAAMI.
41642         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41643         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41644         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41645         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41646         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41647         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41648         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41649         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41650         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41651         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41652         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41653         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41654         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41655         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41656         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41657         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41658         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41659         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41660         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41661         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41662         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41663         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41664         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41665         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41666         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41667         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41668         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41669         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41670         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41671         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41672         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41673         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41674         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41675         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41676         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41677         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41678         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41679         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41680         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41681         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41682         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41683         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41684         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41685         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41686         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41687         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41688         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41689         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41690         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41691         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41692         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41693         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41694         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41695         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41696         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41697         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41698         Add more languages and countries for Sami, Sorbian. Add more countries
41699         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41700         for Pashto. Change country for Syriac, Tswana.
41701
41702 2009-12-21  Eric Blake  <ebb9@byu.net>
41703
41704         test-utimens: avoid spurious failure
41705         * tests/test-chown.h (nap): Factor...
41706         * tests/nap.h: ...into new file.
41707         * tests/test-lchown.h (nap): Avoid duplication.
41708         * tests/test-utimens-common.h (nap): Use shared implementation,
41709         necessary on file systems with 1-second resolution.
41710         * modules/chown-tests (Files): Include new file.
41711         * modules/fdutimensat-tests (Files): Likewise.
41712         * modules/futimens-tests (Files): Likewise.
41713         * modules/lchown-tests (Files): Likewise.
41714         * modules/openat-tests (Files): Likewise.
41715         * modules/utimens-tests (Files): Likewise.
41716         * modules/utimensat-tests (Files): Likewise.
41717
41718 2009-12-19  Eric Blake  <ebb9@byu.net>
41719
41720         futimens, utimensat: work around Linux bug
41721         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41722         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41723         * lib/utimensat.c (rpl_utimensat): Work around it.
41724         * lib/futimens.c (rpl_futimens): Adjust comment.
41725
41726         utimens: work around Linux ctime bug
41727         * lib/utimens.c (detect_ctime_bug): New helper function.
41728         (update_timespec): Differentiate between workaround needed for
41729         this bug vs. what is needed for systems that lack utimensat.
41730         (fdutimens, lutimens): Work around bug.
41731
41732         utimens: check for ctime update
41733         * tests/test-utimens-common.h (check_ctime): Define.
41734         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41735         * tests/test-futimens.h (test_futimens): Likewise.
41736         * tests/test-lutimens.h (test_lutimens): Likewise.
41737         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41738         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41739
41740 2009-12-19  Bruno Haible  <bruno@clisp.org>
41741
41742         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41743         * tests/test-dprintf-posix2.sh: New file.
41744         * tests/test-dprintf-posix2.c: New file.
41745         * modules/dprintf-posix-tests (Files): Add them.
41746         (configure.ac): Check for getrlimit and setrlimit.
41747         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41748
41749 2009-12-19  Bruno Haible  <bruno@clisp.org>
41750
41751         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41752         * tests/test-fprintf-posix3.sh: New file.
41753         * tests/test-fprintf-posix3.c: New file.
41754         * modules/fprintf-posix-tests (Files): Add them.
41755         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41756
41757 2009-12-19  Eric Blake  <ebb9@byu.net>
41758
41759         dirfd: fix prototype
41760         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41761         * lib/dirfd.c (dirfd): Likewise.
41762
41763         canonicalize: reduce memory usage
41764         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41765         allocation to size.
41766         Reported by Solar Designer <solar@openwall.com>.
41767
41768 2009-12-19  Bruno Haible  <bruno@clisp.org>
41769
41770         New module attribute 'Applicability'.
41771         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41772         * gnulib-tool: New option --extract-applicability.
41773         (func_usage): Document it.
41774         (sed_extract_prog): Recognize it.
41775         (func_get_applicability): New function.
41776         (func_import): Generalize handling of 'link-warning' module.
41777         * modules/link-warning (Applicability): New section.
41778         * modules/arg-nonnull (Applicability): New section.
41779         Repoted by Simon Josefsson <simon@josefsson.org>.
41780
41781 2009-12-19  Bruno Haible  <bruno@clisp.org>
41782
41783         fflush: tweak
41784         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41785         * lib/fseeko.c (rpl_fseeko): Likewise.
41786
41787 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41788
41789         * lib/gl_list.h: Fix typo in comment.
41790
41791 2009-12-16  Eric Blake  <ebb9@byu.net>
41792
41793         fcntl: use to simplify other modules
41794         * modules/cloexec (Depends-on): Add fcntl.
41795         * modules/fchdir (Depends-on): Likewise.
41796         * modules/fd-safer-flag (Depends-on): Likewise.
41797         * modules/unistd-safer (Depends-on): Likewise.
41798         * modules/dup3 (configure.ac): Set module indicator.
41799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41800         missing.
41801         * lib/fchdir.c (_gl_register_dup): Fix comment.
41802         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41803         * lib/dup-safer.c (dup_safer): Likewise.
41804         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41805         * lib/dup3.c (dup3): Likewise.
41806         * tests/test-fchdir.c (main): Enhance test.
41807         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41808
41809         fcntl: port portions of fcntl to mingw
41810         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41811         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41812         replacement for mingw.
41813         * modules/fcntl (Description): Update.
41814         (Depends-on): Add dup2.
41815         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41816         * modules/fcntl-h (Makefile.am): Substitute it.
41817         * lib/fcntl.in.h (fcntl): Update declaration.
41818         (F_DUPFD, F_GETFD): New macros, when needed.
41819         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41820         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41821         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41822         we now guarantee.
41823
41824         fcntl: work around cygwin bug in F_DUPFD
41825         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41826         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41827         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41828         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41829         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41830
41831         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41832         * modules/fcntl (Files): List new files.
41833         (configure.ac): Run a test.
41834         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41835         * lib/fcntl.c (rpl_fcntl): Likewise.
41836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41837         (gl_FCNTL_H): Always replace fcntl.h.
41838         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41839         * lib/fcntl.in.h (fcntl): Declare replacement.
41840         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41841         needed, plus a witness.
41842         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41843         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41844         * tests/test-fcntl.c: New file.
41845         * modules/fcntl-tests: Likewise.
41846
41847         binary-io: avoid potential compilation warning
41848         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41849         directives.
41850
41851         fflush: avoid compilation error on NetBSD
41852         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41853         between off_t and fpos_t, since the latter is sometimes a struct.
41854         * lib/fseeko.c (rpl_fseeko): Likewise.
41855         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41856
41857 2009-12-15  Eric Blake  <ebb9@byu.net>
41858
41859         fcntl-h, stdio, sys_ioctl: fix declarations
41860         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41861         function must not take arguments.
41862         * lib/sys_ioctl.in.h (ioctl): Likewise.
41863         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41864         (open): Add a link warning.
41865
41866 2009-12-15  Jim Meyering  <meyering@redhat.com>
41867
41868         areadlink, areadlink-with-size: relax license to LGPLv2+
41869         * modules/areadlink (License): Relax to LGPLv2+.
41870         * modules/areadlink-with-size (License): Likewise.
41871
41872 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41873             Bruno Haible  <bruno@clisp.org>
41874
41875         *printf: Fix memory leak.
41876         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41877         * lib/vfprintf.c (vfprintf): Likewise.
41878         * lib/dprintf.c (dprintf): Likewise.
41879         * lib/vdprintf.c (vdprintf): Likewise.
41880
41881 2009-12-14  Eric Blake  <ebb9@byu.net>
41882
41883         accept4: adjust module dependencies
41884         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41885
41886         utimens: one more try at avoiding compiler warning
41887         * lib/utimens.c (lutimens): Lower scope of result.
41888
41889 2009-12-13  Bruno Haible  <bruno@clisp.org>
41890
41891         Move the malloc checking from module 'list' to new module 'xlist'.
41892         * modules/xlist: New file.
41893         * lib/gl_xlist.h: New file.
41894         * lib/gl_xlist.c: New file.
41895         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41896         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41897         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41898         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41899         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41900         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41901         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41902         gl_sortedlist_nx_add): New declarations.
41903         (struct gl_list_implementation): Rename and change methods accordingly.
41904         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41905         (gl_list_nx_create): Renamed from gl_list_create.
41906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41914         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41915         gl_list_create_empty.
41916         (gl_list_nx_create): Renamed from gl_list_create.
41917         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41918         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41919         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41920         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41921         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41922         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41923         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41924         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41925         * lib/gl_array_list.c: Don't include xalloc.h.
41926         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41927         NULL upon out-of-memory.
41928         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41929         out-of-memory.
41930         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41931         Change return type to 'int'.
41932         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41933         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41934         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41935         upon out-of-memory.
41936         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41937         upon out-of-memory.
41938         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41939         upon out-of-memory.
41940         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41941         upon out-of-memory.
41942         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41943         out-of-memory.
41944         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41945         Update.
41946         (gl_array_list_implementation): Update.
41947         * lib/gl_carray_list.c: Don't include xalloc.h.
41948         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41949         Return NULL upon out-of-memory.
41950         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41951         out-of-memory.
41952         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41953         Change return type to 'int'.
41954         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41955         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41956         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41957         upon out-of-memory.
41958         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41959         upon out-of-memory.
41960         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41961         out-of-memory.
41962         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41963         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41964         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41965         Update.
41966         (gl_carray_list_implementation): Update.
41967         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41968         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41969         gl_linked_create_empty. Return NULL upon out-of-memory.
41970         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41971         out-of-memory.
41972         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41973         Change return type to 'int'. Return -1 upon out-of-memory.
41974         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41975         out-of-memory.
41976         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41977         upon out-of-memory.
41978         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41979         upon out-of-memory.
41980         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41981         NULL upon out-of-memory.
41982         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41983         upon out-of-memory.
41984         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41985         out-of-memory.
41986         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41987         Update.
41988         * lib/gl_linked_list.c: Don't include xalloc.h.
41989         (gl_linked_list_implementation): Update.
41990         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41991         (add_to_bucket): Change return type to 'int'.
41992         (gl_linkedhash_list_implementation): Update.
41993         * lib/gl_anytree_list1.h (free_subtree): New function.
41994         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41995         gl_tree_create_empty. Return NULL upon out-of-memory.
41996         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41997         Change return type to 'int'. Return -1 upon out-of-memory.
41998         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41999         out-of-memory.
42000         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42001         (gl_tree_remove_node): New function, moved here from
42002         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42003         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42004         Update.
42005         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42006         malloc, not xmalloc. Return NULL upon out-of-memory.
42007         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42008         out-of-memory.
42009         (gl_tree_remove_node_from_tree): New function, extracted from
42010         gl_tree_remove_node.
42011         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42012         upon out-of-memory.
42013         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42014         out-of-memory.
42015         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42016         upon out-of-memory.
42017         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42018         upon out-of-memory.
42019         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42020         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42021         not xmalloc. Return NULL upon out-of-memory.
42022         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42023         out-of-memory.
42024         (gl_tree_remove_node_from_tree): New function, extracted from
42025         gl_tree_remove_node.
42026         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42027         upon out-of-memory.
42028         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42029         out-of-memory.
42030         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42031         upon out-of-memory.
42032         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42033         upon out-of-memory.
42034         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42035         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42036         gl_anytree_list1.h before gl_anyavltree_list2.h.
42037         (gl_avltree_list_implementation): Update.
42038         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42039         gl_anytree_list1.h before gl_anyavltree_list2.h.
42040         (gl_rbtree_list_implementation): Update.
42041         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42042         Change return type to 'int'. Return -1 upon out-of-memory. Use
42043         __builtin_expect.
42044         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42045         (gl_avltreehash_list_implementation): Update.
42046         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42047         (gl_rbtreehash_list_implementation): Update.
42048         * modules/array-list (Depends-on): Remove xalloc.
42049         * modules/carray-list (Depends-on): Likewise.
42050         * modules/linked-list (Depends-on): Likewise.
42051         * modules/linkedhash-list (Depends-on): Likewise.
42052         * modules/avltree-list (Depends-on): Likewise.
42053         * modules/rbtree-list (Depends-on): Likewise.
42054         * modules/avltreehash-list (Depends-on): Likewise.
42055         * modules/rbtreehash-list (Depends-on): Likewise.
42056
42057         * modules/xsublist: New file.
42058         * lib/gl_xsublist.h: New file.
42059         * lib/gl_xsublist.c: New file.
42060         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42061         (gl_sublist_nx_create): New declaration.
42062         * lib/gl_sublist.c: Don't include xalloc.h.
42063         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42064         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42065         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42066         Change return type to 'int'. Return -1 upon out-of-memory.
42067         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42068         upon out-of-memory.
42069         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42070         NULL upon out-of-memory.
42071         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42072         upon out-of-memory.
42073         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42074         NULL upon out-of-memory.
42075         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42076         NULL upon out-of-memory.
42077         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42078         upon out-of-memory.
42079         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42080         (gl_sublist_list_implementation): Update.
42081         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42082         upon out-of-memory.
42083         * modules/sublist (Depends-on): Remove xalloc.
42084
42085         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42086         * tests/test-carray_list.c: Likewise.
42087         * tests/test-linked_list.c: Likewise.
42088         * tests/test-linkedhash_list.c: Likewise.
42089         * tests/test-avltree_list.c: Likewise.
42090         * tests/test-rbtree_list.c: Likewise.
42091         * tests/test-avltreehash_list.c: Likewise.
42092         * tests/test-rbtreehash_list.c: Likewise.
42093         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42094         * modules/carray-list-tests (Makefile.am): Likewise.
42095         * modules/linked-list-tests (Makefile.am): Likewise.
42096         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42097         * modules/avltree-list-tests (Makefile.am): Likewise.
42098         * modules/rbtree-list-tests (Makefile.am): Likewise.
42099         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42100         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42101
42102         * NEWS: Mention the changes.
42103
42104         * lib/clean-temp.c: Include gl_xlist.h.
42105         * modules/clean-temp (Depends-on): Add xlist.
42106
42107         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42108         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42109
42110         * tests/test-array_oset.c: Include gl_xlist.h.
42111         * modules/array-oset-tests (Depends-on): Add xlist.
42112
42113         Reported by José E. Marchesi <jemarch@gnu.org>.
42114
42115 2009-12-13  Bruno Haible  <bruno@clisp.org>
42116
42117         Move the malloc checking from module 'oset' to new module 'xoset'.
42118         * modules/xoset: New file.
42119         * lib/gl_xoset.h: New file.
42120         * lib/gl_xoset.c: New file.
42121         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42122         declarations.
42123         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42124         (struct gl_oset_implementation): Rename and change methods accordingly.
42125         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42126         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42127         'int'. Mark as __warn_unused_result__.
42128         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42129         gl_oset_create_empty.
42130         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42131         'int'.
42132         * lib/gl_array_oset.c: Don't include xalloc.h.
42133         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42134         malloc, not xmalloc.
42135         (grow): Change return type to 'int'. Don't call xalloc_die.
42136         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42137         to 'int'.
42138         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42139         'int'.
42140         (gl_array_oset_implementation): Update.
42141         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42142         gl_tree_create_empty.
42143         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42144         'int'.
42145         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42146         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42147         xmalloc.
42148         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42149         not xmalloc.
42150         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42151         xmalloc.
42152         (gl_avltree_oset_implementation): Update.
42153         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42154         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42155         xmalloc.
42156         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42157         not xmalloc.
42158         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42159         xmalloc.
42160         (gl_rbtree_oset_implementation): Update.
42161         * modules/array-oset (Depends-on): Remove xalloc.
42162         * modules/avltree-oset (Depends-on): Likewise.
42163         * modules/rbtree-oset (Depends-on): Likewise.
42164         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42165         * tests/test-avltree_oset.c: Likewise.
42166         * tests/test-rbtree_oset.c: Likewise.
42167         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42168         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42169         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42170         * NEWS: Mention the change.
42171
42172 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42173
42174         maint.mk: allow a project to override release-prep commands
42175         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42176         commands into a new rule.
42177         (release-prep): New rule.
42178         (release-prep-hook): New overridable variable.
42179
42180 2009-12-13  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42183
42184 2009-12-13  Jim Meyering  <meyering@redhat.com>
42185
42186         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42187         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42188
42189 2009-12-12  Bruno Haible  <bruno@clisp.org>
42190
42191         duplocale: Tweak.
42192         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42193
42194 2009-12-12  Karl Berry  <karl@gnu.org>
42195
42196         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42197
42198 2009-12-12  Bruno Haible  <bruno@clisp.org>
42199
42200         * m4/po.m4: Undo incorrect untabification.
42201
42202 2009-12-12  Bruno Haible  <bruno@clisp.org>
42203
42204         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42205         * modules/c-strtod (Depends-on): Add locale.
42206         * modules/c-strtold (Depends-on): Likewise.
42207
42208 2009-12-12  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42211
42212 2009-12-11  Eric Blake  <ebb9@byu.net>
42213
42214         setenv: relax requirement in light of POSIX ruling
42215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42216         not NULL.
42217         * tests/test-setenv.c (main): Relax test.
42218         * tests/test-unsetenv.c (main): Likewise.
42219         * doc/posix-functions/setenv.texi (setenv): Document this.
42220         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42221
42222 2009-12-11  Bruno Haible  <bruno@clisp.org>
42223
42224         New module 'fd-safer-flag'.
42225         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42226         * lib/dup-safer.c (dup_safer_flag): Remove function.
42227         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42228         * lib/fd-safer.c (fd_safer_flag): Remove function.
42229         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42230         * modules/cloexec (configure.ac): Drop indicator macro.
42231         * modules/fd-safer-flag: New file.
42232         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42233         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42234         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42235
42236 2009-12-11  Bruno Haible  <bruno@clisp.org>
42237
42238         Tests for module 'nl_langinfo'.
42239         * modules/nl_langinfo-tests: New file.
42240         * tests/test-nl_langinfo.sh: New file.
42241         * tests/test-nl_langinfo.c: New file.
42242
42243         New module 'nl_langinfo'.
42244         * lib/nl_langinfo.c: New file.
42245         * m4/nl_langinfo.m4: New file.
42246         * modules/nl_langinfo: New file.
42247         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42248
42249 2009-12-11  Bruno Haible  <bruno@clisp.org>
42250
42251         Tests for module 'langinfo'.
42252         * modules/langinfo-tests: New file.
42253         * tests/test-langinfo.c: New file.
42254
42255         New module 'langinfo'.
42256         * lib/langinfo.in.h: New file.
42257         * m4/langinfo_h.m4: New file.
42258         * modules/langinfo: New file.
42259         * doc/posix-headers/langinfo.texi: Mention the new module.
42260
42261 2009-12-11  Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/config.charset: Untabify.
42264
42265 2009-12-11  Bruno Haible  <bruno@clisp.org>
42266
42267         * modules/unistd-safer (configure.ac): Drop indicator macro.
42268
42269 2009-12-11  Bruno Haible  <bruno@clisp.org>
42270
42271         Move pipe2-safer code to its own file.
42272         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42273         * lib/pipe-safer.c (pipe2_safer): Remove function.
42274         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42275         (Makefile.am): Add it to lib_SOURCES.
42276
42277 2009-12-10  Bruno Haible  <bruno@clisp.org>
42278
42279         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42280
42281 2009-12-10  Bruno Haible  <bruno@clisp.org>
42282
42283         Declare which arguments expect non-NULL values, for GCC and clang.
42284         * build-aux/arg-nonnull.h: New file.
42285         * modules/arg-nonnull: New file.
42286         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42287         (inet_ntop, inet_pton): Use it.
42288         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42289         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42290         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42291         (open, openat): Use it.
42292         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42293         (fnmatch): Use it.
42294         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42295         (getopt, getopt_long, getopt_long_only): Use it.
42296         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42297         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42298         Use it.
42299         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42300         (iconv_open): Use it.
42301         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42302         (strtoimax, strtoumax): Use it.
42303         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42304         (duplocale): Use it.
42305         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42306         (frexp, frexpl): Use it.
42307         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42308         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42309         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42310         (tsearch, tfind, tdelete, twalk): Use it.
42311         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42312         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42313         sigpending): Use it.
42314         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42315         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42316         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42317         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42318         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42319         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42320         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42321         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42322         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42323         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42324         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42325         Use it.
42326         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42327         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42328         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42329         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42330         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42331         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42332         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42333         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42334         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42335         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42336         strtoull, unsetenv): Use it.
42337         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42338         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42339         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42340         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42341         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42342         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42343         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42344         (strcasecmp, strncasecmp): Use it.
42345         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42346         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42347         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42348         rpl_setsockopt): Use it.
42349         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42350         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42351         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42352         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42353         (gettimeofday): Use it.
42354         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42355         (times): Use it.
42356         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42357         (uname): Use it.
42358         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42359         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42360         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42361         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42362         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42363         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42364         unlinkat, write): Use it.
42365         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42366         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42367         * lib/argv-iter.h: Include arg-nonnull.h.
42368         (_ATTRIBUTE_NONNULL_): Remove macro.
42369         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42370         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42371         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42372         optimization.
42373         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42374         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42375         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42376         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42377         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42378         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42379         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42380         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42381         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42382         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42383         * modules/dirent (Depends-on): Add arg-nonnull.
42384         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42385         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42386         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42387         * modules/fnmatch (Depends-on): Add arg-nonnull.
42388         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42389         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42390         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42391         * modules/glob (Depends-on): Add arg-nonnull.
42392         (Makefile.am): Insert arg-nonnull.h into glob.h.
42393         * modules/iconv_open (Depends-on): Add arg-nonnull.
42394         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42395         * modules/inttypes (Depends-on): Add arg-nonnull.
42396         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42397         * modules/locale (Depends-on): Add arg-nonnull.
42398         (Makefile.am): Insert arg-nonnull.h into locale.h.
42399         * modules/math (Depends-on): Add arg-nonnull.
42400         (Makefile.am): Insert arg-nonnull.h into math.h.
42401         * modules/netdb (Depends-on): Add arg-nonnull.
42402         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42403         * modules/search (Depends-on): Add arg-nonnull.
42404         (Makefile.am): Insert arg-nonnull.h into search.h.
42405         * modules/signal (Depends-on): Add arg-nonnull.
42406         (Makefile.am): Insert arg-nonnull.h into signal.h.
42407         * modules/spawn (Depends-on): Add arg-nonnull.
42408         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42409         * modules/stdio (Depends-on): Add arg-nonnull.
42410         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42411         * modules/stdlib (Depends-on): Add arg-nonnull.
42412         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42413         * modules/string (Depends-on): Add arg-nonnull.
42414         (Makefile.am): Insert arg-nonnull.h into string.h.
42415         * modules/strings (Depends-on): Add arg-nonnull.
42416         (Makefile.am): Insert arg-nonnull.h into strings.h.
42417         * modules/sys_socket (Depends-on): Add arg-nonnull.
42418         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42419         * modules/sys_stat (Depends-on): Add arg-nonnull.
42420         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42421         * modules/sys_time (Depends-on): Add arg-nonnull.
42422         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42423         * modules/sys_times (Depends-on): Add arg-nonnull.
42424         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42425         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42426         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42427         * modules/time (Depends-on): Add arg-nonnull.
42428         (Makefile.am): Insert arg-nonnull.h into time.h.
42429         * modules/unistd (Depends-on): Add arg-nonnull.
42430         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42431         * modules/wchar (Depends-on): Add arg-nonnull.
42432         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42433         * modules/argv-iter (Depends-on): Add arg-nonnull.
42434         * tests/test-canonicalize.c (null_ptr): New function.
42435         (main): Use it.
42436         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42437         (main): Use it.
42438         * tests/test-memmem.c (null_ptr): New function.
42439         (main): Use it.
42440         Reported by Jim Meyering.
42441
42442 2009-12-10  Bruno Haible  <bruno@clisp.org>
42443
42444         Use spaces for indentation, not tabs.
42445         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42446         * m4/*.m4: Untabify.
42447         * build-aux/*.h: Untabify.
42448         * tests/**/*.[hc]: Untabify.
42449         * README: New section "Indent with spaces, not TABs", based on
42450         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42451         * NEWS: Mention the change.
42452
42453 2009-12-10  Bruno Haible  <bruno@clisp.org>
42454
42455         pty test: Fix link error.
42456         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42457         test_pty_LDADD.
42458
42459 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42460
42461         * modules/pty: New file.
42462         * modules/pty-tests: New file.
42463         * m4/pty.m4: New file.
42464         * tests/test-pty.c: New file.
42465         * doc/glibc-headers/pty.texi: Modified.
42466         * doc/glibc-functions/forkpty.texi: Modified.
42467         * doc/glibc-functions/openpty.texi: Modified.
42468
42469 2009-12-10  Bruno Haible  <bruno@clisp.org>
42470
42471         Avoid syntax error in C++ mode.
42472         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42473
42474 2009-12-10  Bruno Haible  <bruno@clisp.org>
42475
42476         Use sed with option -e.
42477         * gnulib-tool (func_version, func_emit_copyright_notice,
42478         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42479         option -e to sed.
42480         * modules/link-warning (Makefile.am): Likewise.
42481
42482 2009-12-10  Jim Meyering  <meyering@redhat.com>
42483
42484         mgetgroups: do not write bytes beyond end of malloc'd buffer
42485         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42486         username, we call getgroups with a one-element-shorter buffer,
42487         but still told it the length was original, max_n_groups.
42488
42489 2009-12-09  Eric Blake  <ebb9@byu.net>
42490
42491         cloexec: relax license
42492         * modules/cloexec (Maintainer): Add myself.
42493         (License): Use LGPL, not GPL.
42494
42495         link-warning: optimize generation
42496         * modules/link-warning (Makefile.am): Reduce process usage.
42497
42498 2009-12-09  Bruno Haible  <bruno@clisp.org>
42499
42500         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42501         workaround was added on 2009-11-17.
42502
42503 2009-12-09  Jim Meyering  <meyering@redhat.com>
42504             Bruno Haible  <bruno@clisp.org>
42505
42506         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42507         * modules/link-warning (Makefile.am): Make the comment-removing sed
42508         command more robust in the face of bootstrap-prepended comment lines.
42509
42510 2009-12-09  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42513         most one group.
42514
42515 2009-12-09  Simon Josefsson <simon@josefsson.org>
42516             Bruno Haible  <bruno@clisp.org>
42517
42518         * build-aux/link-warning.h: Add copyright notice.
42519         * modules/link-warning (Makefile.am): Generate link-warning.h from
42520         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42521         * NEWS: Mention change in link-warning module.
42522         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42523         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42524         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42525         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42526         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42527         * modules/math (Makefile.am): Add dependency to math.h.
42528         * modules/search (Makefile.am): Add dependency to search.h.
42529         * modules/signal (Makefile.am): Add dependency to signal.h.
42530         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42531         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42532         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42533         * modules/string (Makefile.am): Add dependency to string.h.
42534         * modules/strings (Makefile.am): Add dependency to strings.h.
42535         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42536         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42537         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42538         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42539         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42540         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42541         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42542         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42543         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42544
42545 2009-12-09  Bruno Haible  <bruno@clisp.org>
42546
42547         fchdir: Optimize away rpl_fstat when possible.
42548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42549         REPLACE_OPEN_DIRECTORY.
42550         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42551
42552 2009-12-09  Bruno Haible  <bruno@clisp.org>
42553
42554         * lib/fchdir.c: Update comment.
42555
42556 2009-12-09  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42559
42560 2009-12-08  Eric Blake  <ebb9@byu.net>
42561
42562         fchdir: avoid memory leak on re-registration.
42563         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42564
42565 2009-12-08  Jim Meyering  <meyering@redhat.com>
42566
42567         init.sh: avoid Solaris 10 /bin/sh portability problem
42568         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42569         sourced script:
42570           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42571           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42572           bar
42573         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42574         and two tests used that idiom.
42575         * tests/init.sh: Update suggested usage comments.
42576         (path_prepend_): New function, to be used in place
42577         of the --src-path=DIR option.
42578         (setup_): Move PATH-prepending code into path_prepend_.
42579         * tests/test-pread.sh: Adapt to new usage.
42580         * tests/test-xalloc-die.sh: Likewise.
42581
42582 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42583
42584         * doc/gnulib.texi (Glibc pty.h): Add.
42585         * doc/glibc-functions/forkpty.texi: Add.
42586         * doc/glibc-functions/openpty.texi: Add.
42587         Suggested by Bruno Haible.
42588
42589 2009-12-08  Eric Blake  <ebb9@byu.net>
42590
42591         fchdir: fix logic bugs
42592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42593         * tests/test-fchdir.c (main): Enhance test.
42594         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42595         is in use.
42596
42597         dup2: fix logic bugs
42598         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42599         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42600         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42601         exists.
42602         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42603
42604 2009-12-07  Eric Blake  <ebb9@byu.net>
42605
42606         unlink: fix m4 detection
42607         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42608
42609         unistd-safer: add unit test
42610         * modules/unistd-safer-tests: New file.
42611         * tests/test-dup-safer.c: Likewise.
42612         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42613         * tests/test-dup2.c (setmode): Likewise.
42614         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42615
42616         cloexec: preserve text vs. binary across dup_cloexec
42617         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42618         mode.
42619         * modules/dup2-tests (Depends-on): Add binary-io.
42620         * modules/cloexec-tests (Depends-on): Likewise.
42621         * tests/test-dup2.c (setmode, is_mode): New helpers.
42622         (main): Add tests that translation mode is preserved.
42623         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42624         Reported by Bruno Haible.
42625
42626         mgetgroups: reduce duplicate listings
42627         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42628         resulting array.
42629         * tests/test-chown.h (test_chown): Simplify client.
42630         * tests/test-lchown.h (test_lchown): Likewise.
42631
42632 2009-12-06  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42635         value.
42636
42637 2009-12-06  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/progname.c: Include stdio.h, stdlib.h.
42640         (set_program_name): Reject a NULL argument.
42641
42642 2009-12-05  Eric Blake  <ebb9@byu.net>
42643
42644         pipe2-safer: new module
42645         * modules/pipe2-safer: New file.
42646         * lib/unistd-safer.h (pipe2_safer): New prototype.
42647         * lib/unistd--.h (pipe2): New wrapper.
42648         * lib/pipe-safer.c (pipe2_safer): New function.
42649         * modules/pipe (Depends-on): Add pipe2-safer.
42650         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42651
42652         stdlib-safer: preserve cloexec flag for mkostemp[s]
42653         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42654         fd_safer_flag.
42655
42656         unistd-safer: allow preservation of cloexec status via flag
42657         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42658         prototypes.
42659         * lib/dup-safer.c (dup_safer_flag): New function.
42660         * lib/fd-safer.c (fd_safer_flag): Likewise.
42661         * modules/cloexec (configure.ac): Set witness.
42662
42663         test-dup2: enhance test
42664         * modules/dup2-tests (Depends-on): Add cloexec.
42665         * tests/test-dup2.c (main): Enhance test.
42666
42667         cloexec: add dup_cloexec
42668         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42669         header and comments.
42670         * lib/cloexec.c (set_cloexec_flag): Add comments.
42671         (dup_cloexec): New function, with mingw implementation borrowed
42672         from...
42673         * lib/w32spawn.h (dup_noinherit): ...here.
42674         * modules/execute (Depends-on): Add cloexec.
42675         * modules/pipe (Depends-on): Likewise.
42676         * modules/cloexec (Depends-on): Add dup2.
42677         * modules/cloexec-tests (Files): New file.
42678         * tests/test-cloexec.c: Likewise.
42679
42680         test-xalloc-die: fix test for mingw
42681         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42682         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42683         directory and .exe suffix off argv[0] output.
42684
42685         test-fseeko: fix test for mingw
42686         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42687         than undefining fseek, so test will pass on mingw.
42688
42689 2009-12-05  Bruno Haible  <bruno@clisp.org>
42690
42691         * lib/progname.h (set_program_name): Clarify specification.
42692         * lib/progname.c (set_program_name): Likewise.
42693         Reported by Jim Meyering.
42694
42695 2009-12-05  Jim Meyering  <meyering@redhat.com>
42696
42697         maint.mk: backslash-escape parens in default regexp
42698         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42699         backslash-escape the literal parentheses.
42700
42701         maint.mk: news-date-check: use grep -E
42702         * top/maint.mk (today): Define a Make variable, not a...
42703         (news-date-check): ...shell variable.
42704         (news-date-regexp): Use the Make variable.
42705         Use grep's -E option.  Change the failing diagnostic to mention
42706         the variable, $(news-date-regexp).
42707
42708 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42709
42710         maintainer-makefile: allow customization of NEWS entry format
42711         * top/maint.mk (news-date-regexp): New overridable variable.
42712         (news-date-check): Use it.
42713
42714 2009-12-04  Eric Blake  <ebb9@byu.net>
42715
42716         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42717         * lib/mgetgroups.h (xgetgroups): New prototype.
42718         * lib/mgetgroups.c (xgetgroups): New wrapper.
42719         (mgetgroups): Handle ENOSYS.
42720         * modules/mgetgroups (Depends-on): Add realloc.
42721         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42722
42723         mgetgroups: avoid argument promotion issues with -1
42724         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42725         for invalid gid_t.
42726         * tests/test-chown.h (getegid, test_chown): Likewise.
42727         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42728
42729 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42730
42731         exclude: Fix header file problems.
42732         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42733
42734 2009-12-01  Jim Meyering  <meyering@redhat.com>
42735
42736         fts: fts_open: do not let an empty string cause immediate failure
42737         This is required in support of GNU rm, for which the command
42738         "rm A '' B" must process and remove both A and B, in spite of
42739         the empty string argument.
42740         * lib/fts.c (fts_open): Do not let the presence of an empty string
42741         cause fts_open to fail immediately.  Most fts-using tools must be
42742         able to process all arguments, in order, and can be expected to
42743         diagnose such arguments themselves.
42744
42745 2009-11-30  Eric Blake  <ebb9@byu.net>
42746
42747         utimens: fix compilation error
42748         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42749         Declare variable at right scope.
42750
42751 2009-11-29  Jim Meyering  <meyering@redhat.com>
42752
42753         bootstrap: handle perl-5.11's changed --version output
42754         * build-aux/bootstrap (get_version): Handle perl separately,
42755         since perl-5.11's --version output is different.
42756
42757 2009-11-28  Jim Meyering  <meyering@redhat.com>
42758
42759         userspec: depend on the inttostr module, too
42760         * modules/userspec (Depends-on): Add inttostr.
42761
42762         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42763         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42764         number of MAXUID when it evaluates to (uid_t) -1.
42765         Likewise for group ID.  Reported by Matt McCutchen in
42766         <http://savannah.gnu.org/bugs/?28113>
42767
42768         userspec: reformat to use spaces, not TABs
42769         * lib/userspec.c: Expand TABs to spaces.
42770         Add Emacs' "indent-tabs-mode: nil" hint.
42771
42772 2009-11-27  Eric Blake  <ebb9@byu.net>
42773
42774         getopt-gnu: flush out another BSD bug
42775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42776         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42777         flush out BSD bug.
42778         * tests/test-getopt.h (test_getopt): End lists with NULL.
42779         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42780         (test_getopt_long_posix): Enhance test.
42781         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42782         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42783         getopt-gnu.
42784         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42785         Likewise.
42786
42787 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42788
42789         * modules/idpriv-droptemp-tests (Notice): Fix text.
42790
42791 2009-11-27  Jim Meyering  <meyering@redhat.com>
42792
42793         test-xalloc-die: avoid spurious failure due to libtool argv difference
42794         In a libtool-enabled project, this test would fail due to a difference
42795         in the emitted program name, e.g.,
42796         -test-xalloc-die: memory exhausted
42797         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42798         Use program to avoid that.
42799         * modules/xalloc-die-tests (Depends-on): Add progname.
42800         * tests/test-xalloc-die.c: Include progname.h".
42801         (program_name): Remove decl.
42802         (main): Call set_program_name.
42803         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42804
42805 2009-11-26  Richard Jones  <rjones@redhat.com>
42806
42807         w32sock: leave win32 error in place.
42808         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42809
42810 2009-11-26  Eric Blake  <ebb9@byu.net>
42811
42812         init.sh: suggest to use skip_ and fail_ functions in comments
42813         * tests/init.sh: Add a sentence.
42814
42815 2009-11-25  Bruno Haible  <bruno@clisp.org>
42816
42817         init.sh: add documentation in comments
42818         * tests/init.sh: Add some developer and user documentation.
42819
42820 2009-11-26  Jim Meyering  <meyering@redhat.com>
42821
42822         init.sh: accommodate even those who specify bogus srcdir manually
42823         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42824         configure-time tests to be sanitized, so that there is no need to
42825         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42826         (with no double quotes) suffices.  However, since tests may be
42827         invoked manually, and since you may explicitly set srcdir to the
42828         name of a directory containing spaces, do quote its uses here.
42829         * tests/test-pread.sh: Likewise.
42830         Suggested by Bruno Haible.
42831
42832         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42833         * tests/test-pread.sh: Write no data into the pipe, because
42834         test-pread actually reads none.  This avoids a diagnostic,
42835         "bash: echo: write error: Broken pipe", that arises in the unusual
42836         event something is ignoring SIGPIPE, and might be interpreted
42837         as some sort of failure.  Reported by Bruno Haible.
42838
42839 2009-11-25  Jim Meyering  <meyering@redhat.com>
42840
42841         test-pread: cover failure with ESPIPE and EINVAL
42842         * tests/test-pread.c (main): Test for failure, too.
42843         * tests/test-pread.sh: Invoke with stdin on a pipe.
42844         Suggested by Eric Blake.
42845
42846         pread: improvement and fix
42847         * modules/pread (Depends-on): Depend on lseek, for portability to
42848         e.g., mingw.  Suggested by Eric Blake.
42849         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42850
42851         unistd.in.h: correct declaration of pread
42852         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42853         Reported by Richard W.M. Jones.
42854
42855         test-pread.sh: distribute the test script
42856         * modules/pread-tests (Files): Include test-pread.sh.
42857
42858         test-pread.sh: clean up
42859         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42860         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42861         That is unnecessary, since it's always ".".
42862         Suggestion from Eric Blake.
42863
42864         test-pread.sh: make executable
42865         * tests/test-pread.sh: Set executable bit.
42866         Reported by Eric Blake.
42867
42868         correct typo in test-pread.sh
42869         * tests/test-pread.sh: Add #! line.
42870
42871         test pread
42872         * tests/test-pread.c: New file.
42873         * tests/test-pread.sh: Likewise.
42874         * modules/pread-tests: Likewise.
42875
42876         pread: new module
42877         * modules/pread: New file.
42878         * lib/unistd.in.h (pread): Define/declare.
42879         * lib/pread.c (pread): New file.
42880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42881         * modules/unistd (Makefile.am): Substitute witnesses.
42882         * doc/posix-functions/pread.texi (pread): Update.
42883         * MODULES.html.sh: Add pread.
42884
42885 2009-11-25  Jim Meyering  <meyering@redhat.com>
42886
42887         tests/init.sh: new file to be used via most *.sh tests
42888         * tests/init.sh: New file.
42889
42890 2009-11-25  Eric Blake  <ebb9@byu.net>
42891
42892         utimens: work around older Linux failure with symlinks
42893         * lib/utimens.c (lutimensat_works_really): New variable.
42894         (fdutimens, lutimens): Use it to manage kernels that support
42895         nanosecond times on files, but not on symlinks.
42896         Reported by Ondřej Vašík.
42897
42898         utimes: fix configure grammar
42899         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42900
42901 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42902
42903         regex: Fix fastmap for multibyte character ranges.
42904         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42905         characters when a multibyte character range is included.
42906
42907 2009-11-22  Andy Wingo  <wingo@pobox.com>
42908
42909         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42910         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42911
42912 2009-11-24  Bruno Haible  <bruno@clisp.org>
42913
42914         doc: Most *_l functions exist in MacOS X 10.5.
42915         * doc/posix-functions/duplocale.texi: Update platforms list.
42916         * doc/posix-functions/freelocale.texi: Likewise.
42917         * doc/posix-functions/newlocale.texi: Likewise.
42918         * doc/posix-functions/uselocale.texi: Likewise.
42919         * doc/posix-functions/isalnum_l.texi: Likewise.
42920         * doc/posix-functions/isalpha_l.texi: Likewise.
42921         * doc/posix-functions/isblank_l.texi: Likewise.
42922         * doc/posix-functions/iscntrl_l.texi: Likewise.
42923         * doc/posix-functions/isdigit_l.texi: Likewise.
42924         * doc/posix-functions/isgraph_l.texi: Likewise.
42925         * doc/posix-functions/islower_l.texi: Likewise.
42926         * doc/posix-functions/isprint_l.texi: Likewise.
42927         * doc/posix-functions/ispunct_l.texi: Likewise.
42928         * doc/posix-functions/isspace_l.texi: Likewise.
42929         * doc/posix-functions/isupper_l.texi: Likewise.
42930         * doc/posix-functions/iswalnum_l.texi: Likewise.
42931         * doc/posix-functions/iswalpha_l.texi: Likewise.
42932         * doc/posix-functions/iswblank_l.texi: Likewise.
42933         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42934         * doc/posix-functions/iswctype_l.texi: Likewise.
42935         * doc/posix-functions/iswdigit_l.texi: Likewise.
42936         * doc/posix-functions/iswgraph_l.texi: Likewise.
42937         * doc/posix-functions/iswlower_l.texi: Likewise.
42938         * doc/posix-functions/iswprint_l.texi: Likewise.
42939         * doc/posix-functions/iswpunct_l.texi: Likewise.
42940         * doc/posix-functions/iswspace_l.texi: Likewise.
42941         * doc/posix-functions/iswupper_l.texi: Likewise.
42942         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42943         * doc/posix-functions/isxdigit_l.texi: Likewise.
42944         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42945         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42946         * doc/posix-functions/strcoll_l.texi: Likewise.
42947         * doc/posix-functions/strfmon_l.texi: Likewise.
42948         * doc/posix-functions/strftime_l.texi: Likewise.
42949         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42950         * doc/posix-functions/strxfrm_l.texi: Likewise.
42951         * doc/posix-functions/tolower_l.texi: Likewise.
42952         * doc/posix-functions/toupper_l.texi: Likewise.
42953         * doc/posix-functions/towctrans_l.texi: Likewise.
42954         * doc/posix-functions/towlower_l.texi: Likewise.
42955         * doc/posix-functions/towupper_l.texi: Likewise.
42956         * doc/posix-functions/wcscoll_l.texi: Likewise.
42957         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42958         * doc/posix-functions/wctrans_l.texi: Likewise.
42959         * doc/posix-functions/wctype_l.texi: Likewise.
42960         * doc/glibc-functions/strptime_l.texi: Likewise.
42961         * doc/glibc-functions/strtod_l.texi: Likewise.
42962         * doc/glibc-functions/strtof_l.texi: Likewise.
42963         * doc/glibc-functions/strtol_l.texi: Likewise.
42964         * doc/glibc-functions/strtold_l.texi: Likewise.
42965         * doc/glibc-functions/strtoll_l.texi: Likewise.
42966         * doc/glibc-functions/strtoul_l.texi: Likewise.
42967         * doc/glibc-functions/strtoull_l.texi: Likewise.
42968         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42969         * doc/glibc-functions/wcstod_l.texi: Likewise.
42970         * doc/glibc-functions/wcstof_l.texi: Likewise.
42971         * doc/glibc-functions/wcstol_l.texi: Likewise.
42972         * doc/glibc-functions/wcstold_l.texi: Likewise.
42973         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42974         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42975         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42976
42977 2009-11-24  Bruno Haible  <bruno@clisp.org>
42978
42979         duplocale: Fix logic bug.
42980         * lib/duplocale.c: Don't include <langinfo.h>.
42981         (_NL_LOCALE_NAME): Remove macro.
42982         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42983         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42984
42985 2009-11-23  Jim Meyering  <meyering@redhat.com>
42986
42987         test-update-copyright: don't hard-code /usr/bin/perl
42988         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42989         perl to print the current year.  Gilles Espinasse reported that
42990         the replaced use of perl was hard-coded as /usr/bin/perl.
42991
42992 2009-11-23  Bruno Haible  <bruno@clisp.org>
42993
42994         duplocale: Add support for glibc 2.3.x.
42995         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42996
42997 2009-11-22  Bruno Haible  <bruno@clisp.org>
42998
42999         vasnprintf: Tiny optimization.
43000         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43001         MacOS X.
43002
43003 2009-11-22  Bruno Haible  <bruno@clisp.org>
43004
43005         Tests for module 'duplocale'.
43006         * modules/duplocale-tests: New file.
43007         * tests/test-duplocale.c: New file.
43008
43009         New module 'duplocale'.
43010         * m4/duplocale.m4: New file.
43011         * lib/locale.in.h (duplocale): New declaration.
43012         * lib/duplocale.c: New file.
43013         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43014         gl_LOCALE_H_DEFAULTS): New macros.
43015         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43016         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43017         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43018         REPLACE_DUPLOCALE.
43019         * modules/duplocale: New file.
43020         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43021
43022 2009-11-22  Bruno Haible  <bruno@clisp.org>
43023
43024         * modules/locale-tests (configure.ac): Test for newlocale function.
43025         * tests/test-locale.c: When the system has extended locale functions,
43026         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43027
43028         locale: Make locale_t available when possible.
43029         * lib/locale.in.h: Include <xlocale.h> when it exists.
43030         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43031         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43032         * modules/locale (Depends-on): Add extensions.
43033         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43034         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43035
43036 2009-11-22  Bruno Haible  <bruno@clisp.org>
43037
43038         Add comments.
43039         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43040         invocation.
43041         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43043         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43044
43045 2009-11-22  Bruno Haible  <bruno@clisp.org>
43046
43047         error: account for the possibility of freopen (stdout).
43048         * lib/error.c: Include <unistd.h>.
43049         (flush_stdout): New function, extracted from error and error_at_line.
43050         Determine stdout's fd dynamically.
43051         (error, error_at_line): Invoke flush_stdout.
43052         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43053         * modules/error (Depends-on): Add unistd.
43054
43055 2009-11-22  Bruno Haible  <bruno@clisp.org>
43056
43057         diffseq: Add comment.
43058         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43059
43060 2009-11-22  Jim Meyering  <meyering@redhat.com>
43061
43062         c-stack: avoid defining an unused static function
43063         * lib/c-stack.c (find_stack_direction): Do not define this function
43064         when it will not be used.
43065
43066         diffseq: avoid spurious gcc warnings
43067         * lib/diffseq.h (IF_LINT2): Define.
43068         (compareseq): Use it to initialize two members of "part".
43069         This avoids two used-uninitialized warnings.
43070
43071 2009-11-21  Jim Meyering  <meyering@redhat.com>
43072
43073         c-stack: avoid "ignoring return value of `write'" warning
43074         * lib/c-stack.c: Include "ignore-value.h".
43075         (die): Explicitly ignore each write return value.
43076         * modules/c-stack (Depends-on): Add ignore-value.
43077
43078 2009-11-21  Bruno Haible  <bruno@clisp.org>
43079
43080         diffseq: reduce scope of variable 'best'.
43081         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43082         variable, earlier used for two different purposes.
43083
43084 2009-11-21  Jim Meyering  <meyering@redhat.com>
43085
43086         diffseq: remove useless assignment to "best"
43087         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43088         assignment.  At that point "best" is already guaranteed to be zero.
43089
43090 2009-11-20  Eric Blake  <ebb9@byu.net>
43091
43092         build: mention ftp redirector in release announcements
43093         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43094         values that used to come from cfg.mk; mention FTP redirect URL.
43095         * build-aux/announce-gen: Mention the mirror list.
43096         Suggested by Karl Berry.
43097
43098         nanosleep: improve port to mingw
43099         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43101         LIB_NANOSLEEP, but only when needed.
43102         * modules/select (Link): Document LIBSOCKET.
43103         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43104         enough.
43105
43106         nanosleep: work around cygwin bug
43107         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43108         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43109         bug.
43110         (getnow): Delete, not needed.
43111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43112         LIB_CLOCK_GETTIME.
43113         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43114         clock-time, gettime.
43115         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43116         bug.
43117         * modules/nanosleep-tests: New test.
43118         * tests/test-nanosleep.c: New file.
43119
43120         sleep: work around cygwin bug
43121         * lib/sleep.c (rpl_sleep): Work around the bug.
43122         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43123         (gl_PREREQ_SLEEP): Delete unused macro.
43124         * modules/sleep (Depends-on): Add verify.
43125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43126         * modules/unistd (Makefile.am): Substitute witness.
43127         * lib/unistd.in.h (sleep): Update prototype.
43128         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43129         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43130         * modules/sleep-tests (Depends-on): Check for alarm.
43131
43132 2009-11-20  Jim Meyering  <meyering@redhat.com>
43133
43134         maint.mk: improve sc_prohibit_magic_number_exit
43135         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43136         so it does not match uses like System.exit(1).
43137         Add comments showing how to correct all offenders.
43138
43139 2009-11-19  Eric Blake  <ebb9@byu.net>
43140
43141         xalloc-die-tests: add missing library
43142         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43143
43144         test-xvasprintf: silence compiler warnings
43145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43146         empty string from gcc.
43147
43148 2009-11-19  Jim Meyering  <meyering@redhat.com>
43149
43150         xfreopen: new module, from coreutils
43151         * modules/xfreopen: New module.
43152         * lib/xfreopen.c: New file.
43153         * lib/xfreopen.h: New file.
43154         * MODULES.html.sh (File stream based Input/Output"): Add it.
43155
43156 2009-11-19  Eric Blake  <ebb9@byu.net>
43157
43158         manywarnings: depend on warnings
43159         * modules/manywarnings (Depends-on): Add warnings.
43160
43161         build: avoid compiler warnings
43162         * lib/select.c (rpl_select): Delete unused variable.
43163         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43164
43165 2009-11-18  Eric Blake  <ebb9@byu.net>
43166
43167         tests: avoid false negative with --with-packager
43168         * tests/test-version-etc.sh: Discard packager information.
43169         * tests/test-argp-version-etc-1.sh: Likewise.
43170         Reported by Mike Frysinger.
43171
43172         utimens: fix regression on Solaris
43173         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43174         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43175         can only change fd timestamps via futimesat.  Instead, use an
43176         additional witness macro to avoid BSD bug.
43177         Reported by Jim Meyering.
43178
43179 2009-11-17  Eric Blake  <ebb9@byu.net>
43180
43181         usleep: use it to simplify tests
43182         * modules/stat-time-tests (Depends-on): Add usleep.
43183         (configure.ac): Drop usleep check.
43184         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43185         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43186         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43187         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43188         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43189         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43190         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43191         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43192         Likewise.
43193         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43194         * tests/test-lchown.h (nap): Likewise.
43195         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43196         * tests/test-stat-time.c (nap): Likewise.
43197         * tests/test-utimens-common.h (nap): Update comments.
43198
43199         usleep: new module
43200         * modules/usleep: New file.
43201         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43202         * lib/usleep.c (usleep): Likewise.
43203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43204         * modules/unistd (Makefile.am): Substitute witnesses.
43205         * lib/unistd.in.h (usleep): Add declaration.
43206         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43207         * MODULES.html.sh (Date and time): Likewise.
43208         * modules/usleep-tests (Depends-on): New test.
43209         * tests/test-usleep.c: New file.
43210
43211         chown: work around OpenBSD bug
43212         * lib/chown.c (rpl_chown): Work around the bug.
43213         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43214         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43216         * modules/chown (Depends-on): Add stdbool.
43217         * modules/lchown (Depends-on): Likewise.
43218         * doc/posix-functions/chown.texi (chown): Document the bug.
43219         * doc/posix-functions/lchown.texi (lchown): Likewise.
43220         * tests/test-lchown.h (test_chown): Relax test.
43221
43222         mkstemp: avoid conflict with C++ keyword template
43223         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43224         * lib/mkostemp.c (mkostemp): Likewise.
43225         * lib/mkostemps.c (mkostemps): Likewise.
43226         * lib/mkstemp.c (mkstemp): Likewise.
43227         * lib/mkstemps.c (mkstemps): Likewise.
43228
43229         xalloc-die-tests: optimize
43230         * tests/test-xalloc-die.sh: Reduce number of processes.
43231
43232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43233
43234         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43235         patch from ludo@gnu.org (Ludovic Courtès).
43236
43237 2009-11-17  Jim Meyering  <meyering@redhat.com>
43238
43239         version-etc: use proper license string
43240         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43241         * modules/version-etc-fsf: Likewise.
43242
43243 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43244
43245         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43246         printed to stdout.  Deal with EOL differences.
43247
43248 2009-11-17  Eric Blake  <ebb9@byu.net>
43249
43250         unsetenv: work around Solaris bug
43251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43252         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43253         Reported by Jim Meyering.
43254
43255         vasnprintf: avoid compiler warnings
43256         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43257         variables.
43258         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43259
43260 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43261
43262         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43263         settings since xalloc-die is no longer the self test,
43264         xalloc-die.sh is.
43265
43266 2009-11-17  Jim Meyering  <meyering@redhat.com>
43267
43268         test-xalloc-die.sh: make the code agree with the commit log
43269         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43270         at the end, just in case you happen to have a test-xalloc-die
43271         program in some other PATH directory.
43272
43273         test-xalloc-die.sh: fix a portability bug
43274         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43275         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43276         Otherwise, argv[0] (as often seen in diagnostics) would be too
43277         system-dependent, sometimes with, and sometimes without the leading "./".
43278
43279         version-etc-fsf: relax license to LGPLv3+
43280         * modules/version-etc-fsf (License): Relax license.
43281
43282 2009-11-16  Eric Blake  <ebb9@byu.net>
43283
43284         xalloc-die-tests: avoid printing null pointer
43285         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43286         shell script.
43287         * tests/test-xalloc-die.c (program_name): Declare.
43288         * tests/test-xalloc-die.sh (tmpfiles): New file.
43289
43290         setenv, unsetenv: work around various bugs
43291         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43292         (setenv) [HAVE_SETENV]: Work around bugs.
43293         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43295         for bugs.
43296         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43297         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43299         * modules/stdlib (Makefile.am): Update substitutions.
43300         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43301         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43302         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43303         * modules/setenv-tests: New test.
43304         * modules/unsetenv-tests: Likewise.
43305         * tests/test-setenv.c: New file.
43306         * tests/test-unsetenv.c: Likewise.
43307
43308 2009-11-16  Jim Meyering  <meyering@redhat.com>
43309
43310         version-etc: relax license to LGPLv3+
43311         * modules/version-etc (License): Relax license.
43312
43313         better AC_REQUIRE expanded-before-required-warning avoidance
43314         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43315         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43316         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43317         which is no longer needed.
43318
43319 2009-11-16  Eric Blake  <ebb9@byu.net>
43320
43321         test-freading: clean up temporary file
43322         * tests/test-freading.c (main): Remove file on success, and use
43323         ASSERT more liberally.
43324         Reported by Jim Meyering.
43325
43326 2009-11-16  Jim Meyering  <meyering@redhat.com>
43327
43328         avoid new AC_REQUIRE expanded-before-required warnings
43329         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43330         merely using it.
43331         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43332         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43333
43334 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43335
43336         * tests/test-xalloc-die.c: New file.
43337         * modules/xalloc-die-tests: New file.
43338         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43339         XFAIL_TESTS so it can be appended by modules.
43340
43341 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43342
43343         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43344         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43345
43346 2009-11-14  Eric Blake  <ebb9@byu.net>
43347
43348         fnmatch: avoid compiler warning
43349         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43350         to silence compiler warning about mismatch signedness in ?:.
43351         Reported by Robert Millan.
43352
43353         intprops: add double-inclusion guard
43354         * lib/intprops.h: Allow idempotent includes.
43355         Suggested by Bruce Korb.
43356
43357         openat: detect Solaris fchownat bug
43358         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43359         penalizing glibc chownat when only lchownat is broken.
43360         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43361         trailing slash bugs.
43362         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43363         * modules/openat-tests (Files): Include more files.
43364         (Depends-on): Add mgetgroups, sleep, stat-time.
43365         (configure.ac): Add additional checks.
43366         (Makefile.am): Build new test.
43367         * tests/test-fchownat.c: New file.
43368
43369         lchown: detect Solaris and FreeBSD bug
43370         * lib/lchown.c (rpl_lchown): Work around bug.
43371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43373         * modules/unistd (Makefile.am): Populate it.
43374         * lib/unistd.in.h (lchown): Update declaration.
43375         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43376         * modules/lchown-tests: New file.
43377         * tests/test-lchown.h (test_lchown): Likewise.
43378         * tests/test-lchown.c (main): Likewise.
43379
43380         chown: detect Solaris and FreeBSD bug
43381         * lib/chown.c (rpl_chown): Work around bug.
43382         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43383         (gl_PREREQ_CHOWN): Delete.
43384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43385         * modules/unistd (Makefile.am): Populate it.
43386         * lib/unistd.in.h (chown): Update declaration.
43387         * lib/lchown.c (chown): Update client.
43388         * modules/lchown (Depends-on): Add lstat.
43389         * doc/posix-functions/chown.texi (chown): Document the bug.
43390         * doc/posix-functions/getgroups.texi (getgroups): Document
43391         getgroups pitfall.
43392         * modules/chown-tests: New file.
43393         * tests/test-chown.h (test_chown): Likewise.
43394         * tests/test-chown.c (main): Likewise.
43395
43396 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43397
43398         gnulib-tool: correctly detect absence of m4 directories
43399         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43400
43401 2009-11-14  Jim Meyering  <meyering@redhat.com>
43402
43403         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43404         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43405
43406 2009-11-14  John W. Eaton  <jwe@gnu.org>
43407
43408         strftime.h: wrap function declaration in extern "C" block
43409         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43410
43411 2009-11-13  Eric Blake  <ebb9@byu.net>
43412
43413         getgroups: avoid compiler warning
43414         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43415
43416         getgroups: work around FreeBSD bug
43417         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43418         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43419         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43420         * tests/test-getgroups.c (main): Fix buffer overrun.
43421
43422         getgroups: avoid compilation failure
43423         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43424         * modules/getgroups (Depends-on): Add stdint.
43425
43426 2009-11-13  Jim Meyering  <meyering@redhat.com>
43427
43428         test-getgroups: avoid compilation failure
43429         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43430
43431 2009-11-13  Eric Blake  <ebb9@byu.net>
43432
43433         mgetgroups: new module, taken from coreutils
43434         * modules/mgetgroups: New file.
43435         * lib/mgetgroups.h: Likewise.
43436         * lib/mgetgroups.c (mgetgroups): Likewise.
43437         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43438         * MODULES.html.sh (Users and groups): Mention it.
43439
43440         getgroups: don't expose GETGROUPS_T to user
43441         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43442         an element at a time if GETGROUPS_T is wrong size.
43443         * lib/getugroups.h (getugroups): Change signature.
43444         * lib/unistd.in.h (getgroups): Likewise.
43445         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43446         signature needs fixing.
43447         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43448         AC_TYPE_GETGROUPS.
43449         * modules/group-member (Depends-on): Add getgroups.
43450         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43451         (group_member): Rely on getgroups replacement.
43452         * lib/getugroups.c (getugroups): Use gid_t.
43453         * tests/test-getgroups.c (main): Likewise.
43454         * NEWS: Mention the signature change.
43455         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43456         problem with signature.
43457         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43458         GETGROUPS_T is still useful for setgroups.
43459
43460         getgroups, getugroups: provide stubs for mingw
43461         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43462         * lib/getugroups.c (getugroups): Likewise.
43463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43464         function.  Modernize replacement scheme.
43465         (gl_PREREQ_GETGROUPS): Delete.
43466         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43467         * modules/getgroups (configure.ac): Declare witness.
43468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43469         * modules/unistd (Depends-on): Substitute witness.
43470         * lib/unistd.in.h (getgroups): Declare replacement.
43471
43472         getgroups: avoid calling exit
43473         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43474         drop xalloc.
43475         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43476         dependencies.
43477         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43478         exiting, in the rare case of malloc failure.
43479
43480         getgroups: fix logic error
43481         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43482         has more than 20 groups.
43483         * modules/getgroups-tests: New test.
43484         * tests/test-getgroups.c: New file.
43485
43486 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43487
43488         * tests/test-base64.c: Improve.
43489
43490 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43491
43492         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43493         Blake <ebb9@byu.net>.
43494
43495 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43496
43497         * tests/test-xvasprintf.c: Add %s%s related checks.
43498
43499 2009-11-12  Eric Blake  <ebb9@byu.net>
43500
43501         version-etc: match standards.texi style
43502         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43503         and use <> only for URLs.
43504
43505 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43506
43507         fts: do not fail on a submount during traversal
43508         * lib/fts.c (fts_build): Read the stat info again after opening
43509         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43510         Original report at http://bugzilla.redhat.com/501848.
43511
43512 2009-11-12  Jim Meyering  <meyering@redhat.com>
43513
43514         bootstrap: sync from coreutils
43515         * build-aux/bootstrap (bootstrap_epilogue): New function.
43516         Use git_modules_config in one more place.  This make bootstrap's
43517         --gnulib-srcdir option more useful for testing.
43518
43519         bootstrap: generalize autoheader check
43520         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43521         AC_CONFIG_HEADERS.
43522
43523 2009-11-11  Eric Blake  <ebb9@byu.net>
43524
43525         mkfifoat: use new modules for Solaris and BSD bugs
43526         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43527         * lib/mkfifoat.c (mknodat): Split...
43528         * lib/mknodat.c (mknodat): ...into new file.
43529         * modules/mkfifoat (Files): Ship new file.
43530         (Depends-on): Add mkfifo, mknod.
43531         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43532         (Depends-on): Add symlink.
43533         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43534         redundant with test_mkfifo.h.
43535         (do_mkfifoat, do_mknodat): New helpers.
43536
43537         mknod: new module
43538         * modules/mknod: New file.
43539         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43540         * lib/mknod.c (mknod): Likewise.
43541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43542         defaults.
43543         * modules/sys_stat (Makefile.am): Substitute them.
43544         * lib/sys_stat.in.h (mknod): Declare replacement.
43545         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43546         Document it.
43547         * doc/posix-functions/mknod.texi (mknod): Likewise.
43548         * modules/mknod-tests: New test.
43549         * tests/test-mknod.c: Likewise.
43550
43551         mkfifo: new module
43552         * modules/mkfifo: New file.
43553         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43554         * lib/mkfifo.c (mkfifo): Likewise.
43555         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43556         defaults.
43557         * modules/sys_stat (Makefile.am): Substitute them.
43558         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43559         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43560         Document it.
43561         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43562         * modules/mkfifo-tests: New test.
43563         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43564         from test-mkfifoat.c.
43565         * tests/test-mkfifo.c: New file.
43566
43567         readlink: detect FreeBSD bug
43568         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43569         slash on symlink.
43570         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43571         * tests/test-readlink.h (test_readlink): Enhance test.
43572
43573         symlink: detect FreeBSD bug
43574         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43575         slash on symlink.
43576         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43577         * tests/test-symlink.h (test_symlink): Enhance test.
43578
43579 2009-11-10  Eric Blake  <ebb9@byu.net>
43580
43581         link: detect FreeBSD bug
43582         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43583         symlink.
43584         * doc/posix-functions/link.texi (link): Document the bug.
43585         * tests/test-link.h (test_link): Enhance test.
43586         * tests/test-linkat.c (main): Update caller.
43587
43588         unlink, remove: detect FreeBSD bug
43589         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43590         slash on symlink.
43591         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43592         * doc/posix-functions/remove.texi (remove): Likewise.
43593         * tests/test-unlink.h (test_unlink): Enhance test.
43594         * tests/test-remove.c (main): Likewise.
43595
43596 2009-11-09  Eric Blake  <ebb9@byu.net>
43597
43598         rename: detect FreeBSD bug
43599         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43600         slash on symlink.
43601         * modules/renameat-tests (Depends-on): Add filenamecat.
43602         * tests/test-rename.h (test_rename): Allow one more errno.
43603         * tests/test-renameat.c (main): Likewise.
43604         * doc/posix-functions/rename.texi (rename): Document the bug.
43605
43606         open: detect FreeBSD bug
43607         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43608         symlink.
43609         * doc/posix-functions/open.texi (open): Document the bug.
43610         * doc/posix-functions/utimes.texi (utimes): Likewise.
43611         * tests/test-open.h (test_open): Add parameters, and test symlink
43612         handling.
43613         * tests/test-open.c (main): Adjust caller.
43614         * tests/test-fcntl-safer.c (main): Likewise.
43615         * modules/open-tests (Depends-on): Add stdbool, symlink.
43616         * modules/fcntl-safer-tests (Depends-on): Likewise.
43617         * tests/test-openat.c (main): Add test-open tests.
43618
43619         stat: detect FreeBSD bug
43620         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43621         symlink.
43622         * doc/posix-functions/stat.texi (stat): Document the bug.
43623         * tests/test-stat.h (test_stat_func): Add argument.
43624         * tests/test-stat.c (main): Adjust caller.
43625         * tests/test-fstatat.c (main): Likewise.
43626         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43627         Reported by Jim Meyering.
43628
43629 2009-11-09  James Youngman  <jay@gnu.org>
43630
43631         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43632         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43633
43634 2009-11-08  Jim Meyering  <meyering@redhat.com>
43635
43636         utimens: remove invalid futimesat call
43637         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43638         It used the file descriptor of the target file as the DIR_FD
43639         parameter and NULL as the file name.  That caused failure with
43640         errno == EFAULT on FreeBSD-8.0-rc2
43641
43642 2009-11-07  Eric Blake  <ebb9@byu.net>
43643
43644         fflush, freadseek: use fseeko, not fseek
43645         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43646         (clear_ungetc_buffer): Avoid potential problems on large files.
43647         * lib/freadseek.c (freadseek): Likewise.
43648         * modules/freadseek (Depends-on): Add fseeko.
43649         * modules/fseek (configure.ac): Set a witness.
43650         * tests/test-fflush.c (main): Use fseeko.
43651         * tests/test-fpurge.c (fseek): Disable link warning.
43652         * tests/test-freadable.c (fseek): Likewise.
43653         * tests/test-freading.c (fseek): Likewise.
43654         * tests/test-fseeko.c (fseek): Likewise.
43655         * tests/test-ftell.c (fseek): Likewise.
43656         * tests/test-ftello.c (fseek): Likewise.
43657         * tests/test-fwritable.c (fseek): Likewise.
43658         * tests/test-fwriting.c (fseek): Likewise.
43659
43660 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43661
43662         * modules/memchr (Depends-on): Drop getpagesize dependency.
43663
43664 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43665
43666         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43667         Reported by Ludovic Courtès.
43668         * build-aux/pmccabe2html: Improve example usage.
43669         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43670
43671 2009-11-06  Jim Meyering  <meyering@redhat.com>
43672
43673         do-release-commit-and-tag: New module.
43674         Automate the release-commit and tag process.
43675         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43676         * modules/do-release-commit-and-tag: New file.
43677         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43678
43679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43680
43681         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43682         because test-select.c uses inet_pton.
43683
43684 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43685
43686         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43687         GETADDRINFO_LIB.  Bump serial number.
43688         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43689         Suggested by Eric Blake <ebb9@byu.net>.
43690
43691 2009-11-05  Eric Blake  <ebb9@byu.net>
43692
43693         strtod: detect darwin bug
43694         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43695         Reported by Leo Davis.
43696
43697         freopen-safer: new module
43698         * modules/freopen-safer: New module.
43699         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43700         * lib/freopen-safer.c (freopen_safer): New file.
43701         * lib/stdio-safer.h (freopen_safer): New declaration.
43702         * lib/stdio--.h (freopen): New override.
43703         * MODULES.html.sh (File stream based Input/Output): Mention it.
43704         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43705         freopen-safer module.
43706         * doc/posix-functions/stderr.texi (stderr): Likewise.
43707         * doc/posix-functions/stdin.texi (stdin): Likewise.
43708         * doc/posix-functions/stdout.texi (stdout): Likewise.
43709         * modules/freopen-safer-tests: New test.
43710         * tests/test-reopen-safer.c: New file.
43711
43712 2009-11-05  Jim Meyering  <meyering@redhat.com>
43713
43714         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43715         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43716
43717 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43718
43719         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43720
43721 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43722
43723         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43724
43725 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43726
43727         Fix link error.
43728         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43730
43731 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43732
43733         * tests/test-func.c: Also test value of __func__.
43734
43735 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43736
43737         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43738         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43739
43740 2009-11-05  Bruno Haible  <bruno@clisp.org>
43741
43742         Fix link error.
43743         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43744         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43745         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43746
43747 2009-11-05  Bruno Haible  <bruno@clisp.org>
43748
43749         Tests for module 'inet_pton'.
43750         * modules/inet_pton-tests: New file.
43751         * tests/test-inet_pton.c: New file.
43752
43753 2009-11-05  Bruno Haible  <bruno@clisp.org>
43754
43755         Tests for module 'inet_ntop'.
43756         * modules/inet_ntop-tests: New file.
43757         * tests/test-inet_ntop.c: New file.
43758
43759 2009-11-04  Eric Blake  <ebb9@byu.net>
43760
43761         stdlib-safer: wrap all mkstemp variants
43762         * modules/mkostemp (configure.ac): Set witness.
43763         * modules/mkostemps (configure.ac): Likewise.
43764         * modules/mkstemps (configure.ac): Likewise.
43765         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43766         (mkstemps_safer): Wrap more functions.
43767         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43768         wrapping.
43769         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43770         (mkstemps_safer): Implement the wrappers.
43771
43772         mkstemps, mkostemps: new modules
43773         * modules/mkostemps: New module.
43774         * modules/mkstemps: Likewise.
43775         * lib/mkostemps.c (mkostemps): New file.
43776         * lib/mkstemps.c (mkstemps): Likewise.
43777         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43778         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43780         * modules/stdlib (Makefile.am): Substitute them.
43781         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43782         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43783         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43784         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43785         * MODULES.html.sh (File system functions): Mention them.
43786
43787         tempname: resync from glibc
43788         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43789         same values for __GT_FILE as glibc.  Abort even when assertions
43790         are disabled.
43791         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43792         match its value otherwise.  Allow idempotent inclusion.
43793         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43794         * lib/mkostemp.c (mkostemp): Likewise.
43795         * lib/mkstemp.c (mkstemp): Likewise.
43796         * lib/tmpfile.c (tmpfile): Likewise.
43797         * NEWS: Document this.
43798
43799         utimens: fix use of futimens on older Linux
43800         * lib/utimens.c (fdutimens): Use updated, rather than original,
43801         timespec to avoid bug in older Linux kernel.
43802         Reported by Simon Josefsson.
43803
43804 2009-11-04  Bruno Haible  <bruno@clisp.org>
43805
43806         Make num_processors more flexible and consistent.
43807         * lib/nproc.h (enum nproc_query): New type.
43808         (num_processors): Add a 'query' argument.
43809         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43810         (num_processors): Add a 'query' argument. Test the value of the
43811         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43812         mingw, count the number of CPUs available for the current process.
43813         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43814         Check for sched_getaffinity and sched_getaffinity_np.
43815         * modules/nproc (Depends-on): Add c-ctype, extensions.
43816         * NEWS: Mention the change.
43817
43818 2009-11-03  Bruno Haible  <bruno@clisp.org>
43819
43820         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43821
43822 2009-11-03  Jim Meyering  <meyering@redhat.com>
43823
43824         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43825         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43826         if it is defined.
43827
43828 2009-11-02  Eric Blake  <ebb9@byu.net>
43829
43830         mktime, timegm: share common declaration
43831         * lib/mktime-internal.h: New file.
43832         * lib/mktime.c: Use it rather than open-coding a declaration.
43833         * lib/timegm.c: Likewise.
43834         * modules/mktime (Files): Ship it.
43835         * modules/timegm (Files): Likewise.
43836         Suggested by Bruno Haible.
43837
43838         test-update-copyright: update test to match script changes
43839         * tests/test-update-copyright.sh: Avoid hard-coding perl
43840         location.  Don't update *.bak created by earlier runs.
43841
43842 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43843             Simon Josefsson  <simon@josefsson.org>
43844             Bruno Haible  <bruno@clisp.org>
43845
43846         Fix link error on Solaris 8.
43847         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43848         also in libnsl. Define also INET_PTON_LIB.
43849         * modules/inet_pton (Link): New section.
43850
43851 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43852             Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43855         * modules/inet_ntop (Link): New section.
43856         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43857
43858 2009-11-02  Eric Blake  <ebb9@byu.net>
43859
43860         maint: avoid compiler warnings in m4 macros
43861         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43862         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43863
43864 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43865
43866         * m4/pmccabe2html.m4: Remove file.
43867         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43868         function.  Change maintainer.
43869         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43870         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43871         Courtès).
43872
43873 2009-10-31  Eric Blake  <ebb9@byu.net>
43874
43875         fseeko: fix m4 regression
43876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43877         regression from 2009-10-27.
43878         Reported by Ralf Wildenhues.
43879
43880 2009-10-31  Jim Meyering  <meyering@redhat.com>
43881
43882         inttostr: aesthetics and improved (compile-time) safety
43883         Define inttype_is_signed rather than inttype_is_unsigned,
43884         since the sole use is via "#if inttype_is_signed".
43885         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43886         inttype_is_unsigned.
43887         * lib/offtostr.c (inttype_is_signed): Likewise.
43888         * lib/uinttostr.c (inttype_is_signed): Likewise.
43889         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43890         * lib/inttostr.c (inttostr): Use verify to cross-check the
43891         inttype_is_signed value and the signedness of the actual type.
43892         * modules/inttostr (Depends-on): Add verify.
43893
43894 2009-10-30  Eric Blake  <ebb9@byu.net>
43895
43896         build: avoid compiler warnings
43897         * lib/fchmodat.c (lchmod): Mark unused variables.
43898         * lib/getopt.c (_getopt_initialize): Likewise.
43899         * lib/mktime.c (__mktime_internal): Provide prototype.
43900         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43901         older gcc that do not understand #pragma GCC diagnostic.
43902         * lib/uinttostr.c (inttype_is_unsigned): Define.
43903         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43904
43905 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43906
43907         stat: fix compilation on AIX
43908         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43909         only see struct stat64.
43910
43911 2009-10-30  Eric Blake  <ebb9@byu.net>
43912
43913         exclude: make more robust
43914         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43915         rather than masking a coding bug.
43916         Suggested by Bruno Haible.
43917
43918 2009-10-30  Jim Meyering  <meyering@redhat.com>
43919
43920         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43921         Rather than putting #!/usr/bin/perl on the first line,
43922         start with a variant of what's recommended by "man perlrun" that
43923         invokes the first "perl" program from your shell's search path.
43924         * build-aux/gitlog-to-changelog: Replace #!... as above.
43925         Add a "Local Variables" perl mode setting.
43926         Prompted by a patch from Ludovic Courtès.
43927         Improved by Eric Blake.
43928         * build-aux/useless-if-before-free: Likewise.
43929         * build-aux/announce-gen: Likewise.
43930         * build-aux/update-copyright: Likewise.
43931
43932 2009-10-29  Eric Blake  <ebb9@byu.net>
43933
43934         filenamecat-lgpl: adjust clients
43935         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43936         filenamecat.
43937         * modules/renameat (Depends-on): Likewise.
43938
43939         filenamecat: split into filenamecat-lgpl
43940         * modules/filenamecat-lgpl: New module.
43941         * modules/filenamecat (Files): Move library-safe files into
43942         filenamecat-lgpl.
43943         (Depends-on): Add filenamecat-lgpl.
43944         (configure.ac): Declare witness.
43945         * lib/filenamecat.h (file_name_concat): Only declare when using
43946         GPL module.
43947         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43948         Move...
43949         * lib/filenamecat-lgpl.c: ...into new file.
43950         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43951         (gl_FILE_NAME_CONCAT): Use it.
43952         * MODULES.html.sh (File system functions): Mention new module.
43953
43954         argp: avoid memory leak
43955         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43956         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43957         base_name, since the latter malloc()s and can call exit().
43958         Leak introduced 2006-07-03.
43959
43960         dirname-lgpl: adjust clients that don't need full dirname
43961         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43962         * modules/filenamecat (Depends-on): Likewise.
43963         * modules/linkat (Depends-on): Likewise.
43964         * modules/mkancesdirs (Depends-on): Likewise.
43965         * modules/mkdir (Depends-on): Likewise.
43966         * modules/openat (Depends-on): Likewise.
43967         * modules/savewd (Depends-on): Likewise.
43968         * modules/rename (Depends-on): Likewise.
43969         (License): Relax license.
43970         * modules/mkdir-tests (Depends-on): Drop progname.
43971         (Makefile.am): Delete unneeded LDADD.
43972         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43973
43974         dirname: split into dirname-lgpl
43975         * modules/dirname-lgpl: New module.
43976         * modules/dirname (Files): Move library-safe files into
43977         dirname-lgpl.
43978         (Depends-on): Add dirname-lgpl.
43979         (configure.ac): Declare witness.
43980         * modules/double-slash-root (License): Relax license.
43981         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43982         module.
43983         * lib/dirname.c (dir_len, mdir_name): Move...
43984         * lib/dirname-lgpl.c: ...into new file.
43985         * lib/basename.c (last_component, base_len): Move...
43986         * lib/basename-lgpl.c: ...into new file.
43987         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43988         (gl_DIRNAME): Use it.
43989         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43990         Mention new module.
43991         * modules/dirname-tests (Depends-on): Add progname.
43992         * tests/test-dirname.c (program_name): Delete.
43993
43994         mkdir: make safe for libraries
43995         * modules/mkdir (Depends-on): Drop xalloc.
43996         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43997         exit.
43998
43999         tests: avoid some compiler warnings
44000         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44001         literals.
44002         * tests/test-memchr.c (main): Avoid type mismatch.
44003         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44004         * tests/test-base64.c (main): Likewise.
44005         * tests/test-getdelim.c (main): Likewise.
44006         * tests/test-gethostname.c (main): Likewise.
44007         * tests/test-getline.c (main): Likewise.
44008         * tests/test-netinet_in.c (main): Likewise.
44009         * tests/test-select.c (open_server_socket, main): Likewise.
44010         * tests/test-select-stdin.c (main): Likewise.
44011         * tests/test-sockets.c (main): Likewise.
44012         * tests/test-strsignal.c (main): Likewise.
44013         * tests/test-sys_select.c (main): Likewise.
44014         * tests/test-sys_socket.c (main): Likewise.
44015         * tests/test-u64.c (main): Likewise.
44016         * tests/test-xfprintf-posix.c (main): Likewise.
44017         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44018
44019         sockets: avoid compiler warning
44020         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44021
44022         maint: detect usage(1) and other suspicious exits
44023         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44024
44025 2009-10-29  Jim Meyering  <meyering@redhat.com>
44026
44027         timespec: long-to-int truncation could make timespec_cmp malfunction
44028         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44029         a multiple of 2^32 nanoseconds as no difference.
44030
44031 2009-10-28  Jim Meyering  <meyering@redhat.com>
44032
44033         fprintftime: wrap macro code argument in "do {...} while(0)"
44034         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44035         cpy macro must be a statement that can be followed by a semicolon.
44036         Now that the else clause contains a comment and is hence longer
44037         than one line, I require curly braces.  That in turn requires
44038         that we wrap this code block in the standard do...while(0).
44039
44040         fprintftime: remove stray semicolon from previous change
44041         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44042
44043         fprintftime: avoid a warning about ignored fwrite return value
44044         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44045         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44046         that is unsafe.
44047         * modules/fprintftime (Depends-on): Add ignore-value.
44048
44049         exclude: avoid an unwarranted warning
44050         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44051
44052 2009-10-27  Eric Blake  <ebb9@byu.net>
44053
44054         fseek: avoid compilation failure when fflush is replaced
44055         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44056         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44057         module is in use.
44058         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44059         module is not in use; since REPLACE_FSEEK worked otherwise.
44060         (GNULIB_FTELLO): Likewise for ftell.
44061         Reported by Ian Beckwith and others.
44062
44063 2009-10-27  Bruno Haible  <bruno@clisp.org>
44064
44065         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44066         Reported by Jim Meyering.
44067
44068 2009-10-27  Jim Meyering  <jim@meyering.net>
44069             Bruno Haible  <bruno@clisp.org>
44070
44071         Avoid warning despite dropping the return value of fwrite.
44072         * lib/unicodeio.c: Include ignore-value.h.
44073         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44074         * modules/unicodeio (Depends-on): Add ignore-value.
44075
44076 2009-10-26  Eric Blake  <ebb9@byu.net>
44077
44078         areadlinkat: fix fallback path
44079         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44080         pointer and zero.
44081
44082 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44083
44084         Use a better IO block size for modern systems
44085         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44086         * lib/md2.c: Likewise.
44087         * lib/md4.c: Likewise.
44088         * lib/md5.c: Likewise.
44089         * lib/sha1.c: Likewise.
44090         * lib/sha256.c: Likewise.
44091         * lib/sha512.c: Likewise.
44092
44093 2009-10-22  Eric Blake  <ebb9@byu.net>
44094
44095         tests: avoid several compiler warnings
44096         * tests/test-getcwd.c (main): Avoid buffer underflow.
44097         * tests/test-getdate.c (main): String literals are not safe with
44098         putenv, so use setenv.  Declare unused argument.
44099         * modules/getdate-tests (Depends-on): Add setenv.
44100         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44101         problems with string literals in char *.
44102         * tests/test-hash.c (main): Avoid shadowing declaration.
44103         (insert_new): Treat string literals as char const *.
44104         * tests/test-getopt.h (test_getopt): Likewise.
44105         (getopt_loop): Alter types to minimize casting elsewhere.
44106         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44107         (test_getopt_long_posix): Likewise.
44108         (do_getopt_long): Add wrapper to minimize casting.
44109         * tests/test-atexit.c (clear_temp_file): Use void.
44110         * tests/test-areadlink-with-size.c (main): Declare unused
44111         arguments.
44112         * tests/test-areadlink.c (main): Likewise.
44113         * tests/test-areadlinkat-with-size.c (main): Likewise.
44114         * tests/test-areadlinkat.c (main): Likewise.
44115         * tests/test-canonicalize-lgpl.c (main): Likewise.
44116         * tests/test-canonicalize.c (main): Likewise.
44117         * tests/test-dirent-safer.c (main): Likewise.
44118         * tests/test-dirname.c (main): Likewise.
44119         * tests/test-dup2.c (main): Likewise.
44120         * tests/test-fchdir.c (main): Likewise.
44121         * tests/test-fcntl-h.c (main): Likewise.
44122         * tests/test-fcntl-safer.c (main): Likewise.
44123         * tests/test-fdopendir.c (main): Likewise.
44124         * tests/test-fdutimensat.c (main): Likewise.
44125         * tests/test-fflush.c (main): Likewise.
44126         * tests/test-filenamecat.c (main): Likewise.
44127         * tests/test-filevercmp.c (main): Likewise.
44128         * tests/test-fopen-safer.c (main): Likewise.
44129         * tests/test-fopen.c (main): Likewise.
44130         * tests/test-fpending.c (main): Likewise.
44131         * tests/test-fpurge.c (main): Likewise.
44132         * tests/test-freading.c (main): Likewise.
44133         * tests/test-fstatat.c (main): Likewise.
44134         * tests/test-fsync.c (main): Likewise.
44135         * tests/test-futimens.c (main): Likewise.
44136         * tests/test-getndelim2.c (main): Likewise.
44137         * tests/test-gettimeofday.c (main): Likewise.
44138         * tests/test-getopt.c (main): Likewise.
44139         * tests/test-i-ring.c (main): Likewise.
44140         * tests/test-inttypes.c (main): Likewise.
44141         * tests/test-link.c (main): Likewise.
44142         * tests/test-lstat.c (main): Likewise.
44143         * tests/test-math.c (main): Likewise.
44144         * tests/test-md5.c (main): Likewise.
44145         * tests/test-memchr2.c (main): Likewise.
44146         * tests/test-memrchr.c (main): Likewise.
44147         * tests/test-mkdir.c (main): Likewise.
44148         * tests/test-mkdirat.c (main): Likewise.
44149         * tests/test-mkfifoat.c (main): Likewise.
44150         * tests/test-open.c (main): Likewise.
44151         * tests/test-openat-safer.c (main): Likewise.
44152         * tests/test-openat.c (main): Likewise.
44153         * tests/test-quotearg.c (main): Likewise.
44154         * tests/test-rawmemchr.c (main): Likewise.
44155         * tests/test-readlink.c (main): Likewise.
44156         * tests/test-remove.c (main): Likewise.
44157         * tests/test-rename.c (main): Likewise.
44158         * tests/test-renameat.c (main): Likewise.
44159         * tests/test-rmdir.c (main): Likewise.
44160         * tests/test-sha1.c (main): Likewise.
44161         * tests/test-signal.c (main): Likewise.
44162         * tests/test-sigaction.c (main): Likewise.
44163         * tests/test-stat.c (main): Likewise.
44164         * tests/test-stat-time.c (main): Likewise.
44165         * tests/test-stddef.c (main): Likewise.
44166         * tests/test-stdint.c (main): Likewise.
44167         * tests/test-stdio.c (main): Likewise.
44168         * tests/test-stdlib.c (main): Likewise.
44169         * tests/test-strchrnul.c (main): Likewise.
44170         * tests/test-strerror.c (main): Likewise.
44171         * tests/test-string.c (main): Likewise.
44172         * tests/test-strtod.c (main): Likewise.
44173         * tests/test-strverscmp.c (main): Likewise.
44174         * tests/test-symlink.c (main): Likewise.
44175         * tests/test-symlinkat.c (main): Likewise.
44176         * tests/test-sys_stat.c (main): Likewise.
44177         * tests/test-sys_time.c (main): Likewise.
44178         * tests/test-time.c (main): Likewise.
44179         * tests/test-unistd.c (main): Likewise.
44180         * tests/test-unlink.c (main): Likewise.
44181         * tests/test-unlinkat.c (main): Likewise.
44182         * tests/test-utimens.c (main): Likewise.
44183         * tests/test-utimensat.c (main): Likewise.
44184         * tests/test-version-etc.c (main): Likewise.
44185         * tests/test-wchar.c (main): Likewise.
44186         * tests/test-wctype.c (main): Likewise.
44187         * tests/test-xprintf-posix.c (main): Likewise.
44188         * tests/test-posixtm.c (main): Likewise.
44189         (STREQ): Delete unused macro.
44190         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44191         shadowed variables.
44192         * tests/test-memchr.c (main): Likewise.
44193
44194 2009-10-21  Eric Blake  <ebb9@byu.net>
44195
44196         areadlinkat: avoid failure on older glibc
44197         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44198         rather than mis-comparing 0 against FUNC_RESULT of char*.
44199
44200 2009-10-21  Bruno Haible  <bruno@clisp.org>
44201
44202         * modules/stpncpy (License): Relicense under LGPLv2+.
44203         Reported by David Lutterkort <lutter@redhat.com>.
44204
44205 2009-10-20  Eric Blake  <ebb9@byu.net>
44206
44207         utimensat: work around Solaris 9 bug
44208         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44209         has trailing slash bugs.
44210         * tests/test-lutimens.h (test_lutimens): Enhance test.
44211         * tests/test-utimens.h (test_utimens): Likewise.
44212         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44213         * doc/posix-functions/utimes.texi (utimes): Likewise.
44214         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44215         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44216         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44217         * doc/posix-functions/futimens.texi (futimens): Likewise.
44218
44219         fdutimensat: new module
44220         * modules/fdutimensat: New file.
44221         * lib/fdutimensat.c (fdutimensat): Likewise.
44222         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44223         * MODULES.html.sh (File system functions): Mention module.
44224         * modules/fdutimensat-tests: New test.
44225         * tests/test-fdutimensat.c: Likewise.
44226
44227         doc: regenerate INSTALL
44228         * doc/INSTALL: Reflect recent autoconf update.
44229         * doc/INSTALL.ISO: Likewise.
44230         * doc/INSTALL.UTF-8: Likewise.
44231
44232 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44233
44234         acl: warn if ACL support is not detected
44235         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44236
44237 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44238
44239         * lib/nproc.h: Add extern "C" block for C++.
44240
44241 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44242             Bruno Haible  <bruno@clisp.org>
44243
44244         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44245         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44246         * doc/posix-functions/isalpha.texi: Likewise.
44247         * doc/posix-functions/isblank.texi: Likewise.
44248         * doc/posix-functions/iscntrl.texi: Likewise.
44249         * doc/posix-functions/isdigit.texi: Likewise.
44250         * doc/posix-functions/isgraph.texi: Likewise.
44251         * doc/posix-functions/islower.texi: Likewise.
44252         * doc/posix-functions/isprint.texi: Likewise.
44253         * doc/posix-functions/ispunct.texi: Likewise.
44254         * doc/posix-functions/isspace.texi: Likewise.
44255         * doc/posix-functions/isupper.texi: Likewise.
44256         * doc/posix-functions/isxdigit.texi: Likewise.
44257
44258 2009-10-18  Bruno Haible  <bruno@clisp.org>
44259
44260         Tests for module 'isblank'.
44261         * modules/isblank-tests: New file.
44262         * tests/test-isblank.c: New file.
44263
44264         New module 'isblank'.
44265         * lib/isblank.c: New file.
44266         * m4/isblank.m4: New file.
44267         * modules/isblank: New file.
44268         * doc/posix-functions/isblank.texi: Mention the new module.
44269
44270 2009-10-18  Bruno Haible  <bruno@clisp.org>
44271
44272         New module 'ctype'.
44273         * lib/ctype.in.h: New file.
44274         * m4/ctype.m4: New file.
44275         * modules/ctype: New file.
44276         * doc/posix-headers/ctype.texi: Mention the new module.
44277
44278 2009-10-18  Jim Meyering  <meyering@redhat.com>
44279
44280         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44281         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44282         right after its initialization, rather than farther down.
44283         Keeping these in close proximity makes it easier to ensure
44284         that each such variable is initialized.  E.g.,
44285
44286             LIB_CLOCK_GETTIME=
44287             AC_SUBST([LIB_CLOCK_GETTIME])
44288
44289         This change also increments these serial numbers.
44290         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44291         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44293
44294 2009-10-18  Bruno Haible  <bruno@clisp.org>
44295
44296         Don't let environment variables perturb build.
44297         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44298         (gl_PREREQ_GETHRXTIME): ... not here.
44299
44300 2009-10-18  Bruno Haible  <bruno@clisp.org>
44301
44302         Avoid symlink attack in localcharset module.
44303         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44304         (O_NOFOLLOW): Define fallback.
44305         (get_charset_aliases): Don't open the file if it is a symbolic link.
44306         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44307         gl_FCNTL_H.
44308         (gl_FCNTL_H): Require it.
44309         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44310         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44311         Reported by Fergal Glynn <fglynn@veracode.com>.
44312
44313 2009-10-18  Bruno Haible  <bruno@clisp.org>
44314
44315         Implement nproc for mingw.
44316         * lib/nproc.c: Include <windows.h>
44317         (num_processors): On native Windows platforms, try GetSystemInfo.
44318
44319 2009-10-18  Bruno Haible  <bruno@clisp.org>
44320
44321         Implement nproc for IRIX.
44322         * lib/nproc.c: Include <sys/sysmp.h>.
44323         (num_processors): On IRIX systems, try sysmp.
44324         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44325
44326 2009-10-18  Bruno Haible  <bruno@clisp.org>
44327
44328         Implement nproc for HP-UX.
44329         * lib/nproc.c: Include <sys/pstat.h>
44330         (num_processors): On HP-UX systems, try pstat_getdynamic.
44331         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44332         pstat_getdynamic.
44333
44334 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44335             Bruno Haible  <bruno@clisp.org>
44336
44337         Implement nproc for NetBSD, OpenBSD.
44338         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44339         (ARRAY_SIZE): New macro.
44340         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44341         * m4/nproc.m4: New file.
44342         * modules/nproc (Files): Add m4/nproc.m4.
44343         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44344         (Makefile.am): Instead, augment lib_SOURCES.
44345
44346 2009-10-18  Bruno Haible  <bruno@clisp.org>
44347
44348         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44349         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44350         sys/param.h.
44351
44352 2009-10-16  Eric Blake  <ebb9@byu.net>
44353
44354         utimensat: new module
44355         * modules/utimensat: New file.
44356         * lib/utimensat.c (utimensat): Likewise.
44357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44358         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44359         so we can work around Linux bugs.
44360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44361         * modules/sys_stat (Makefile.am): Substitute them.
44362         * lib/sys_stat.in.h (utimensat): Declare it.
44363         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44364         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44365         * modules/utimensat-tests: New test.
44366         * tests/test-utimensat.c: Likewise.
44367
44368         utimens: let lutimens work on non-symlinks
44369         * lib/utimens.c (lutimens): Fall back to utimens rather than
44370         failing with ENOSYS, when file is not a symlink.
44371         (utimens): Reduce redirection.
44372         * tests/test-lutimens.h (test_lutimens): Update test to cover
44373         non-symlinks.
44374         * tests/test-utimens.h (test_utimens): Update test to cover
44375         symlinks.
44376         * tests/test-utimens.c (main): Update caller.
44377
44378         utimens: cache whether utimensat syscall works
44379         * lib/utimens.c (utimensat_works_really): New cache variable.
44380         (fdutimens, lutimens): Use it to avoid failing syscall.
44381
44382         test-stat-time, test-utimens: improve portability
44383         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44384         ext4 on alpha, and for cygwin.
44385         * tests/test-utimens-common.h: New file.
44386         (nap): Factor delays into single function.
44387         * tests/test-lutimens.h (test_lutimens): Use new header.
44388         * tests/test-futimens.h (test_futimens): Likewise.
44389         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44390         timestamps to occur from same machine, as was done previously for
44391         test_utimens.
44392         * modules/utimens-tests (Files): Ship new file.
44393         * modules/futimens-tests (Files): Likewise.
44394         Reported in part by Jim Meyering.
44395
44396         sys_stat: sort replacement declarations
44397         * lib/sys_stat.in.h: Sort declarations.
44398         * lib/futimens.c (futimens): Fix typo.
44399
44400 2009-10-15  Jim Meyering  <meyering@redhat.com>
44401
44402         don't let environment settings perturb build
44403         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44404         could cause a configure-time and/or build-time malfunction.
44405         Typically, a configure-time function-in-library test is performed
44406         via code like this:
44407
44408           LIB_VAR=
44409           AC_SUBST([LIB_VAR])
44410           prefix_saved_LIBS=$LIBS
44411             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44412                        [test "$ac_cv_search_FUNC" = "none required" ||
44413                         LIB_VAR=$ac_cv_search_FUNC])
44414           LIBS=$prefix_saved_LIBS
44415
44416         However, in each of the files affected by this change, the LIB_VAR=
44417         initialization was omitted.  Thus, when set in the environment, its
44418         value would propagate into generated Makefiles when FUNC is not found
44419         in LIB_NAME.
44420         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44423
44424 2009-10-14  Eric Blake  <ebb9@byu.net>
44425
44426         fchdir: avoid infinite recursion in mingw
44427         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44428         recursing.
44429
44430         test-stat-time: port to mingw
44431         * tests/test-stat-time.c (force_unlink): Return a value.
44432         (test_ctime) [W32]: Fix compilation error.
44433         (nap): Don't call usleep with too large an argument.  Use
44434         force_unlink.
44435         * doc/pastposix-functions/usleep.texi (usleep): Document the
44436         portability issue.
44437
44438 2009-10-13  Jim Meyering  <meyering@redhat.com>
44439
44440         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44441         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44442         * modules/pipe-filter-ii: Likewise.
44443         * modules/sys_socket-tests: Likewise.
44444         * modules/tsearch-tests: Likewise.
44445         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44446         (check): Depend on it.
44447
44448 2009-10-12  Eric Blake  <ebb9@byu.net>
44449
44450         utimens-tests: port to NFS file systems
44451         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44452         comparisons to avoid spurious failures from timestamp drift
44453         between NFS machines.
44454
44455 2009-10-12  Eric Blake  <ebb9@byu.net>
44456
44457         stat-time-tests: minor cleanups
44458         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44459         * tests/test-stat-time.c (nap): Separate assignment from call.
44460         Suggested by Paolo Bonzini and Bruno Haible.
44461
44462         sys_stat: guarantee struct timespec
44463         * lib/sys_stat.in.h (includes): Always include <time.h>
44464         * modules/sys_stat (Depends-on): Add time.
44465         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44466         mode_t permission values.
44467         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44468         get at subsecond timestamps.
44469
44470 2009-10-10  Eric Blake  <ebb9@byu.net>
44471
44472         futimens: new module
44473         * modules/futimens: New file.
44474         * lib/futimens.c (futimens): Likewise.
44475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44476         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44477         we can work around Linux bugs.
44478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44479         * modules/sys_stat (Makefile.am): Substitute them.
44480         * lib/sys_stat.in.h (futimens): Declare it.
44481         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44482         * doc/posix-functions/futimens.texi (futimens): Likewise.
44483         * modules/futimens-tests: New test.
44484         * tests/test-futimens.c: Likewise.
44485
44486         utimens: introduce fdutimens
44487         * lib/utimens.h (fdutimens): New prototype.
44488         * lib/utimens.c (gl_futimens): Move guts...
44489         (fdutimens): ...to new interface.
44490         * tests/test-utimens.c (do_fdutimens): Use it.
44491
44492         utimens: add UTIME_NOW and UTIME_OMIT support
44493         * lib/utimens.c (validate_timespec, update_timespec): New helper
44494         functions.
44495         (gl_futimens, lutimens): Use them.
44496         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44497         stdbool, sys_stat.
44498         (Link): Mention resulting library dependency.
44499         * modules/utimecmp (Link): Likewise.
44500         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44501         (Makefile.am): Pick up library dependency.
44502         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44503         definition.
44504         * tests/test-sys_stat.c: Test the definitions.
44505         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44506         * NEWS: Document library dependency.
44507
44508         utimecmp: support symlink timestamps
44509         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44510         hashing when possible.  Use pathconf when available.
44511         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44512         * modules/utimecmp (Depends-on): Add lstat.
44513
44514         utimens: add lutimens interface
44515         * lib/utimens.c (lutimens): New function.
44516         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44517         * lib/utimens.h (lutimens): Declare new interface.
44518         * tests/test-utimens.c (main): Enhance test.
44519         * tests/test-lutimens.h (test_lutimens): New file.
44520         * modules/utimens-tests (Files): Distribute it.
44521         (Depends-on): Add symlink.
44522         (configure.ac): Check for usleep.
44523
44524         utimens: validate futimens usage
44525         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44526         fewer syscalls on failure later on.  Avoid compiler warning on
44527         mingw.
44528         * modules/utimens (Depends-on): Add dup2.
44529
44530         utimens: add test
44531         * modules/utimens-tests: New test.
44532         * tests/test-utimens.h: New file.
44533         * tests/test-futimens.h: Likewise.
44534         * tests/test-utimens.c: Likewise.
44535
44536         doc: mention timestamp portability issues
44537         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44538         instead.
44539         * doc/posix-functions/utime.texi (utime): Likewise.
44540         * doc/posix-functions/utimes.texi (utimes): Likewise.
44541         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44542         instead.
44543         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44544         module.
44545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44546         Mention weakness with symlink timestamps.
44547         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44548         to utimensat/futimens instead.
44549         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44550
44551         test-dup2: enhance test
44552         * tests/test-dup2.c (main): Also check AT_FDCWD.
44553
44554         test-stat-time: avoid more spurious failures
44555         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44556         xfs; and avoid race if the two timestamps cross quantization edge.
44557
44558         relocatable: prefer 'file system' over 'filesystem'
44559         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44560         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44561         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44562         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44563         * lib/relocatable.c (compute_curr_prefix): Likewise.
44564
44565 2009-10-10  Jim Meyering  <meyering@redhat.com>
44566
44567         stat-time-tests: check for the usleep function
44568         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44569
44570 2009-10-10  Bruno Haible  <bruno@clisp.org>
44571
44572         * modules/xnanosleep: Put the Link section after the Include section.
44573
44574 2009-10-09  Eric Blake  <ebb9@byu.net>
44575
44576         dup2: work around FreeBSD 6.1 bug
44577         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44578         * doc/posix-functions/dup2.texi (dup2): Document it.
44579         Reported by Nelson H. F. Beebe and Jim Meyering.
44580
44581         test-stat-time: port to buggy NFS clients
44582         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44583         (test_ctime): Also skip test if mtime and ctime are skewed.
44584
44585         maint: prefer 'file system' over 'filesystem'
44586         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44587         * doc/posix-functions/lstat.texi (lstat): Likewise.
44588         * lib/file-has-acl.c (file_has_acl): Likewise.
44589         * lib/fwriteerror.c [TEST]: Likewise.
44590         * tests/test-areadlink.h (test_areadlink): Likewise.
44591         * tests/test-areadlinkat-with-size.c (main): Likewise.
44592         * tests/test-areadlinkat.c (main): Likewise.
44593         * tests/test-canonicalize-lgpl.c (main): Likewise.
44594         * tests/test-canonicalize.c (main): Likewise.
44595         * tests/test-fstatat.c (main): Likewise.
44596         * tests/test-linkat.c (main): Likewise.
44597         * tests/test-lstat.h (test_lstat_func): Likewise.
44598         * tests/test-mkdir.h (test_mkdir): Likewise.
44599         * tests/test-readlink.h (test_readlink): Likewise.
44600         * tests/test-remove.c (main): Likewise.
44601         * tests/test-rename.h (test_rename): Likewise.
44602         * tests/test-renameat.c (main): Likewise.
44603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44604         * tests/test-symlink.h (test_symlink): Likewise.
44605         * tests/test-symlinkat.c (main): Likewise.
44606         * tests/test-unlink.h (test_unlink_func): Likewise.
44607         * tests/test-unlinkat.c (main): Likewise.
44608
44609         maint: make realtime library usage explicit
44610         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44611         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44612         * modules/settime (Link): Likewise.
44613         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44614
44615         test-stat-time: speed up execution
44616         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44617         warning on mingw.
44618         (nap): New helper function.
44619         (prepare_test): Use it to reduce sleep time.
44620         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44621         execution.
44622         * modules/stat-time-tests (configure.ac): Check for usleep.
44623
44624 2009-10-09  Jim Meyering  <meyering@redhat.com>
44625
44626         selinux-h: always use getfilecon wrappers
44627         * lib/getfilecon.c: New file.
44628         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44629         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44630         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44631         (fgetfilecon): Provide a stub.
44632         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44633         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44634         file unconditionally.
44635         When <selinux/selinux.h> is found, arrange to use wrappers.
44636         * modules/selinux-h (Files): Add getfilecon.c.
44637         (Makefile.am): Substitute include-next-related bits
44638         into the now-always-generated selinux/selinux.h file.
44639         * doc/glibc-functions/lgetfilecon.texi: New file.
44640         * doc/glibc-functions/fgetfilecon.texi: New file.
44641         * doc/glibc-functions/getfilecon.texi: New file.
44642         * doc/glibc-functions/getfilecon-desc.texi: New file.
44643         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44644         which to pull in the new files.
44645         * MODULES.html.sh (Misc): Add selinux-h.
44646
44647 2009-10-08  Jim Meyering  <meyering@redhat.com>
44648
44649         unistd: fix comment typo
44650         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44651
44652 2009-10-08  Eric Blake  <ebb9@byu.net>
44653
44654         areadlink: use SIZE_MAX consistently
44655         * modules/areadlink (Depends-on): Add stdint.
44656         * modules/areadlink-with-size (Depends-on): Likewise.
44657         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44658         gives NULL; drop sys/types, since unistd gives size_t; and add
44659         stdint for SIZE_MAX.
44660         (SIZE_MAX): Rely on headers.
44661         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44662         and add stdint.
44663         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44664         (SIZE_MAX): Likewise.
44665         (INITIAL_BUF_SIZE): Turn into enum.
44666         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44667
44668 2009-10-08  Jim Meyering  <meyering@redhat.com>
44669
44670         areadlinkat: avoid compilation failure
44671         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44672         Fix typo in comment.
44673
44674 2009-10-07  Eric Blake  <ebb9@byu.net>
44675
44676         areadlinkat-with-size: new module
44677         * modules/areadlinkat-with-size: New module.
44678         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44679         * lib/areadlink.h (areadlinkat): Declare it.
44680         * MODULES.html.sh (File system functions): Mention it.
44681         * modules/areadlinkat-with-size-tests: New test.
44682         * tests/test-areadlinkat-with-size.c: New file.
44683
44684         xreadlinkat: new module
44685         * modules/xreadlinkat: New module.
44686         * lib/xreadlinkat.c (xreadlinkat): New file.
44687         * lib/xreadlink.h (xreadlinkat): Declare it.
44688         * MODULES.html.sh (File system functions): Mention it.
44689
44690         areadlinkat: new module
44691         * lib/at-func.c (FUNC_FAIL): New define.
44692         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44693         * modules/areadlinkat: New module.
44694         * lib/linkat.c (areadlinkat): Move...
44695         * lib/areadlinkat.c (areadlinkat): ...to new file.
44696         * lib/areadlink.h (areadlinkat): Declare it.
44697         * modules/linkat (Depends-on): Add areadlinkat.
44698         * MODULES.html.sh (File system functions): Mention it.
44699         * modules/areadlinkat-tests: New test.
44700         * tests/test-areadlinkat.c: New file.
44701
44702         areadlink, areadlink-with-size: add tests
44703         * modules/areadlink-tests: New test.
44704         * modules/areadlink-with-size-tests: Likewise.
44705         * tests/test-areadlink.h: New file.
44706         * tests/test-areadlink.c: Likewise.
44707         * tests/test-areadlink-with-size.c: Likewise.
44708
44709         maint: minor cleanups
44710         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44711         _UNUSED_PARAMETER_ instead.
44712         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44713         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44714         * modules/linkat-tests (Files): Distribute test-link.h.
44715
44716         openat, utimens: whitespace cleanup
44717         * lib/openat.c: Prefer space throughout, rather than mix of 8
44718         spaces vs. tabs.
44719         * lib/at-func.c: Likewise.
44720         * lib/utimens.c: Likewise.
44721
44722         openat: avoid using wrong fd
44723         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44724         working directory chooses same fd.
44725         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44726
44727         mkdir, mkdirat: fix cygwin 1.5.x bug
44728         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44729         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44730         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44731         bug.
44732         (gl_PREREQ_MKDIR): Delete unused macro.
44733         * modules/mkdir (Files): Track file rename.
44734         (configure.ac): Update macro name.
44735         * modules/openat (Depends-on): Add mkdir.
44736         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44737
44738         mkdir, mkdirat: add tests
44739         * modules/mkdir-tests: New test.
44740         * tests/test-mkdir.h: New file.
44741         * tests/test-mkdir.c: Likewise.
44742         * tests/test-mkdirat.c: Likewise.
44743         * modules/openat-tests (Files): Add new files.
44744         (Makefile.am): Run new test.
44745
44746 2009-10-06  Eric Blake  <ebb9@byu.net>
44747
44748         doc: tweak *at function documentation
44749         * doc/posix-functions/faccessat.texi (faccessat): Mention
44750         known issue with replacement.
44751         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44752         * doc/posix-functions/linkat.texi (linkat): Likewise.
44753         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44754         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44755         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44756         * doc/posix-functions/renameat.texi (renameat): Likewise.
44757         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44758
44759         openat: fix GNU/Hurd bug in unlinkat
44760         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44761         broken.
44762         * doc/posix-functions/unlink.texi (unlink): Document this.
44763         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44764
44765         fdopendir: fix GNU/Hurd bug
44766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44767         allowing non-directory fds.
44768         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44770         * modules/dirent (Makefile.am): Substitute it.
44771         * lib/dirent.in.h (fdopendir): Declare replacement.
44772         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44773         * tests/test-fdopendir.c (main): Test something other than
44774         /dev/null, since on Hurd that behaves like a directory.
44775
44776         test-symlink: port to GNU/Hurd
44777         * tests/test-symlink.h (test_symlink): Relax expected errno.
44778
44779         doc: tweak more cygwin information
44780         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44781         now compatible with glibc.
44782         * doc/posix-functions/getopt.texi (getopt): Likewise.
44783
44784         getopt-gnu: add another test
44785         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44786         guarantee behavior relied on by m4.
44787         * tests/test-getopt.c (main): Use it.
44788         * modules/getopt-posix-tests (Depends-on): Add setenv.
44789         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44790
44791         getopt: fix compilation on darwin
44792         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44793         include.
44794         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44795         Reported by Ludovic Courtès.
44796
44797 2009-10-06  Bruno Haible  <bruno@clisp.org>
44798
44799         * modules/size_max (Description): Discourage its use.
44800         Reported by Simon Josefsson.
44801
44802 2009-10-06  Jim Meyering  <meyering@redhat.com>
44803
44804         linkat: avoid compilation failure
44805         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44806
44807 2009-10-05  Eric Blake  <ebb9@byu.net>
44808
44809         linkat: support Linux 2.6.17
44810         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44811         linkat on Linux, but allow cache variable override.
44812         * lib/linkat.c (rpl_linkat): Define override.
44813         * modules/linkat (Depends-on): Add symlinkat.
44814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44815         * modules/unistd (Makefile.am): Substitute it.
44816         * lib/unistd.in.h (linkat): Declare replacement.
44817         Reported by Pádraig Brady.
44818
44819         quotearg: port test to systems with C.UTF-8 locale
44820         * tests/test-quotearg.c (struct result_strings): Add another
44821         member, differentiating between C.ASCII and C.UTF-8 handling.
44822         (compare_strings): Add parameter.
44823         (main): Adjust all callers.
44824
44825         getopt: avoid clash with FreeBSD _getopt_internal
44826         * lib/getopt.in.h (_getopt_internal): Override the name.
44827         * lib/getopt_int.h (includes): Pick up any overrides.
44828         Reported by Reuben Thomas.
44829
44830         hash: allow C89 compilation
44831         * lib/hash.c (check_tuning): Move declaration before statement.
44832         Reported by Reuben Thomas.
44833
44834 2009-10-05  Karl Berry  <karl@gnu.org>
44835
44836         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44837
44838 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44839             Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/uname.c (uname): Use a table-driven algorithm to compute
44842         Windows NT versions.
44843
44844 2009-10-04  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44847         program_invocation_short_name.
44848         * modules/progname (configure.ac): Test for presence of
44849         program_invocation_short_name.
44850         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44851
44852 2009-10-04  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/progname.c (set_program_name): Fix comment.
44855         Reported by Jim Meyering.
44856
44857 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44858             Bruno Haible  <bruno@clisp.org>
44859
44860         * lib/uname.c: Include <string.h>.
44861         (uname): Do only one call to GetVersionEx in the common case.
44862
44863 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44864             Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44867         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44868         (uname): Add support for Windows CE and various non-x86 CPU types.
44869
44870 2009-10-03  Bruno Haible  <bruno@clisp.org>
44871
44872         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44873         invocation to tests/configure.ac.
44874         Reported by Ian Beckwith <ianb@erislabs.net>.
44875
44876 2009-10-02  Eric Blake  <ebb9@byu.net>
44877
44878         fchdir: avoid compiler warning
44879         * lib/fchdir.c (canonicalize_file_name)
44880         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44881
44882         test-open: support mingw errno values
44883         * tests/test-open.h (test_open): Relax test.
44884         * tests/test-fopen.h (test_fopen): Likewise.
44885         * tests/test-openat-safer.c (main): Likewise.
44886
44887         open: fix opening directory on mingw
44888         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44889
44890         test-open: on GNU/Hurd, /dev/null is a directory
44891         * tests/test-fopen.h (main): Rename...
44892         (test_fopen): ...to this.  Use a guaranteed non-directory when
44893         confirming open behavior on trailing slash.
44894         * tests/test-openat-safer.c (main): Likewise.
44895         * tests/test-open.h (main): Likewise....
44896         (test_open): ...to this.
44897         * tests/test-fopen.c (main): Adjust caller.
44898         * tests/test-fopen-safer.c (main): Likewise.
44899         * tests/test-open.c (main): Likewise.
44900         * tests/test-fcntl-safer.c (main): Likewise.
44901         Reported by Samuel Thibault.
44902
44903         rename, fchdir: don't ignore chdir failure
44904         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44905         * lib/rename.c (rpl_rename) [W32]: Likewise.
44906         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44907         an empty destination directory if source cannot be renamed,
44908         although there is still possibility for failure.
44909         * doc/posix-functions/rename.texi (rename): Document the race.
44910         Reported by Jim Meyering.
44911
44912         maint: cleanup whitespace in recent commits
44913         * lib/rename.c (rpl_rename): Remove tabs.
44914         * tests/test-link.h (test_link): Likewise.
44915         * lib/fchdir.c (get_name): Likewise.
44916         Reported by Jim Meyering.
44917
44918 2009-10-02  Ben Pfaff  <blp@gnu.org>
44919
44920         relocatable-prog-wrapper: Add missing dependency on
44921         double-slash-root.
44922         * modules/relocatable-prog-wrapper: Add dependency.
44923         Reported by Ian Beckwith <ianb@erislabs.net>.
44924
44925 2009-10-02  Eric Blake  <ebb9@byu.net>
44926
44927         renameat: fix Solaris bugs
44928         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44929         needed fixing.
44930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44931         * modules/stdio (Makefile.am): Substitute it.
44932         * lib/stdio.in.h (renameat): Declare replacement.
44933         * lib/renameat.c (rpl_renameat): Implement fix.
44934
44935         renameat: new module
44936         * modules/renameat: New file.
44937         * lib/renameat.c (renameat): Likewise.
44938         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44940         * modules/stdio (Makefile.am): Substitute them.
44941         * lib/stdio.in.h (renameat): Declare it.
44942         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44943         * doc/posix-functions/renameat.texi (renameat): Likewise.
44944         * modules/renameat-tests: New test.
44945         * tests/test-renameat.c: Likewise.
44946
44947         rename: fix mingw bugs
44948         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44949         directory overwrite bugs.
44950
44951         rename: fix another cygwin 1.5 bug
44952         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44953         checks.
44954         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44955         unnecessary cygwin workarounds.  Also work around bug with moving
44956         full directory onto an empty one.
44957         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44958
44959         rename-dest-slash: merge into rename module
44960         * modules/rename-dest-slash (Status): Mark obsolete.
44961         (Depends-on): Add rename.
44962         (Files): Let rename do it all.
44963         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44964         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44965         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44966         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44967         * lib/rename.c (rpl_rename): Update comments.
44968
44969         rename: fix cygwin 1.5.x bugs
44970         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44971         * lib/rename.c (rpl_rename): Work around them.
44972         * modules/rename (Depends-on): Add same-inode.
44973
44974         rename: fix Solaris 10 bug
44975         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44976         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44977         was the only bug.
44978
44979         rename: fix Solaris 9 bug
44980         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44981         on non-directory.  Avoid calling exit.
44982         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44983         strdup.
44984         * modules/rename-tests (Depends-on): Drop lstat.
44985         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44986         (gl_PREREQ_RENAME): Delete unused macro.
44987
44988         rename-dest-slash: fix NetBSD bug
44989         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44990         links.
44991         * modules/rename-dest-slash (Depends-on): Add same-inode.
44992
44993         rename-tests: new test, exposes several platform bugs
44994         * modules/rename-tests: New file.
44995         * tests/test-rename.h: Likewise.
44996         * tests/test-rename.c: Likewise.
44997         * doc/posix-functions/rename.texi (rename): Improve documentation,
44998         including bugs that will eventually be fixed in gnulib.
44999
45000 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45001
45002         * lib/uname.c: Include <stdlib.h>
45003         (uname): Assume version info is available.
45004
45005 2009-10-02  Jim Meyering  <meyering@redhat.com>
45006
45007         gnu-web-doc-update: correct --help output
45008         * build-aux/gnu-web-doc-update: Make --help output relevant.
45009
45010         gnu-web-doc-update: add standard options
45011         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45012
45013         gnu-web-doc-update: New module.
45014         Use this script to automatically update the on-line web documentation
45015         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45016         * modules/gnu-web-doc-update: New file, from coreutils.
45017         * build-aux/gnu-web-doc-update: New script.
45018
45019 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45020
45021         link: LoadLibrary is not needed.
45022         * lib/link.c: Use GetModuleHandle.
45023
45024 2009-10-01  Eric Blake  <ebb9@byu.net>
45025
45026         getopt: bump serial number
45027         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45028         change.
45029
45030         tests: tighten link, rmdir, and remove tests
45031         * tests/test-link.h (includes): No need to use <config.h> here.
45032         Clean up if directory hard link was created, otherwise test for
45033         trailing '.'.
45034         * tests/test-linkat.c (main): Simplify.
45035         * tests/test-remove.c (main): Enhance test for trailing '.'.
45036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45037
45038 2009-10-01  Jim Meyering  <meyering@redhat.com>
45039
45040         maint.mk: requiring "make major" was annoying, for a "minor" release.
45041         What is intended is "stable", to contrast with alpha and beta,
45042         so require "make stable", not "make major".
45043         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45044         (get_tool_versions): Likewise.
45045         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45046
45047 2009-09-30  Ben Pfaff  <blp@gnu.org>
45048
45049         Fix broken build of replacement for Windows tmpfile().
45050         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45051         flags argument added along with the 'mkostemp' module.
45052
45053 2009-09-28  Bruno Haible  <bruno@clisp.org>
45054
45055         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45056         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45057         to 'remove_elt'.
45058         (gl_list_remove): Update.
45059         * lib/gl_list.c (gl_list_remove): Update.
45060         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45061         to 'remove_elt'.
45062         (gl_oset_remove): Update.
45063         * lib/gl_list.c (gl_oset_remove): Update.
45064         Reported by Eric Blake.
45065
45066 2009-09-28  Eric Blake  <ebb9@byu.net>
45067
45068         doc: mention yet more cygwin 1.7 status
45069         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45070         cygwin.
45071         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45072         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45073
45074         argp: fix test failure
45075         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45076         that are not upper-case.  Pass correct range to tolower.
45077
45078 2009-09-27  Jim Meyering  <meyering@redhat.com>
45079
45080         test-yesno: work around sparc-dash here-document infelicity
45081         Without this change, the literal \177 byte in a here document
45082         would make dash 0.5.5.1-3 access uninitialized memory.
45083         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45084         Instead, use a marker, "@", and filter through tr to create the desired
45085         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45086
45087 2009-09-27  Bruno Haible  <bruno@clisp.org>
45088
45089         Disable untested support for new flavours of ACLs on AIX.
45090         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45091         progress.
45092         * lib/set-mode-acl.c (qset_acl): Likewise.
45093
45094 2008-12-07  Bruno Haible  <bruno@clisp.org>
45095
45096         Add support for new flavours of ACLs on AIX. (Untested.)
45097         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45098         (file_has_acl): Add support for newer AIX.
45099         * lib/set-mode-acl.c (qset_acl): Likewise.
45100         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45101         Rainer Tammer <tammer@tammer.net>.
45102
45103 2009-09-26  Eric Blake  <ebb9@byu.net>
45104
45105         argp: fix compilation of getopt
45106         * lib/getopt.in.h (includes): Use different guard than glibc.
45107         Reported by Sergey Poznyakoff.
45108
45109         doc: mention more cygwin 1.7 status
45110         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45111         bug.
45112         * doc/posix-functions/execl.texi (execl): Likewise.
45113         * doc/posix-functions/execle.texi (execle): Likewise.
45114         * doc/posix-functions/execlp.texi (execlp): Likewise.
45115         * doc/posix-functions/execv.texi (execv): Likewise.
45116         * doc/posix-functions/execve.texi (execve): Likewise.
45117         * doc/posix-functions/execvp.texi (execvp): Likewise.
45118         * doc/glibc-functions/canonicalize_file_name.texi
45119         (canonicalize_file_name): Cygwin 1.7 now provides this.
45120         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45121         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45122         on AT_SYMLINK_NOFOLLOW.
45123
45124 2009-09-24  Eric Blake  <ebb9@byu.net>
45125
45126         test-linkat: make test more robust
45127         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45128
45129         getopt: fix inclusion guards for cygwin
45130         * modules/getopt-posix (Depends-on): Add include-next.
45131         (Makefile.am): Substitute more items in replacement header.
45132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45133         <getopt.h>.
45134         * lib/getopt.in.h (includes): Use split inclusion guard, and
45135         prefer <getopt.h> over include <unistd.h> when one is present.
45136         (option): Also override name of 'struct option'.
45137
45138         same-inode: revert prior change; it is not yet ready
45139         * NEWS: Undo mention of this change.
45140         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45141         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45142         * lib/cycle-check.c (cycle_check): Likewise.
45143         * lib/same.c (same_name): Likewise.
45144         * lib/at-func2.c (at_func2): Likewise.
45145
45146 2009-09-23  Eric Blake  <ebb9@byu.net>
45147
45148         linkat: new module
45149         * modules/linkat: New file.
45150         * lib/at-func2.c (at_func2): Likewise.
45151         * lib/linkat.c (linkat): Likewise.
45152         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45153         * lib/openat-priv.h (at_func2): Add declaration.
45154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45155         * modules/unistd (Makefile.am): Substitute them.
45156         * lib/unistd.in.h (linkat): Declare it.
45157         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45158         * doc/posix-functions/linkat.texi (linkat): Likewise.
45159         * doc/posix-functions/link.texi (link): Tweak wording.
45160         * tests/test-link.c (main): Move guts...
45161         * tests/test-link.h (test_link): ...into new file.
45162         * modules/linkat-tests: New test.
45163         * tests/test-linkat.c: Likewise.
45164         * modules/link-tests (Files): Ship new file.
45165         (Depends-on): Add stdbool.
45166
45167         dirname: add library-safe mdir_name
45168         * lib/dirname.h (mdir_name): New prototype.
45169         * lib/dirname.c (dir_name): Move guts...
45170         (mdir_name): ...to new function that avoids xalloc_die.
45171
45172         fchdir: another mingw fix
45173         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45174         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45175         on mingw (where it has not yet been ported), and make it optional
45176         elsewhere.
45177         (_gl_register_fd): Use it.
45178
45179         same-inode: make SAME_INODE tri-state, to port to mingw
45180         * NEWS: Mention this change.
45181         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45182         st_ino always being 0.
45183         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45184         * lib/cycle-check.c (cycle_check): Likewise.
45185         * lib/same.c (same_name): Likewise.
45186
45187         lstat: avoid mingw compilation error
45188         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45189         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45190         lstat ourselves.
45191         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45192         was adequate.
45193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45194         the checks for lstat.
45195         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45196
45197         link: fix test failure on Solaris 9
45198         * lib/link.c (rpl_link): Don't assume link will catch bogus
45199         trailing slash on source.
45200
45201         test-symlinkat: enhance test
45202         * tests/test-readlink.c (main): Move guts...
45203         * tests/test-readlink.h (test_readlink): ...into new file.
45204         * tests/test-symlink.c (main): Move guts...
45205         * tests/test-symlink.h (test_symlink): ...into new file.
45206         * tests/test-symlinkat.c (main): Use new files for further
45207         coverage.
45208         (do_symlink, do_readlink): New helper functions.
45209         * modules/symlink-tests (Files): Ship new file.
45210         (Depends-on): Add stdbool.
45211         * modules/readlink-tests (Files): Ship new file.
45212         (Depends-on): Add stdbool.
45213         * modules/symlinkat-tests (Files): Use new files.
45214
45215 2009-09-23  Eric Blake  <ebb9@byu.net>
45216
45217         readlink: document portability issue with symlink length
45218         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45219         systems have bogus st_size on symlinks, and mention the
45220         areadlink-with-size module.
45221         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45222         * doc/posix-functions/readlink.texi (readlink): Mention the
45223         areadlink module, and ERANGE failure.
45224         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45225         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45226
45227         readlink: fix Solaris 9 bug with trailing slash
45228         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45229         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45230         * doc/posix-functions/readlink.texi (readlink): Document this.
45231         * modules/readlink-tests: New test.
45232         * tests/test-readlink.c: Likewise.
45233
45234         readlink: fix cygwin 1.5.x bug with return type
45235         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45236         * lib/unistd.in.h (readlink): Use ssize_t.
45237         * lib/readlink.c (readlink): Likewise.
45238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45239         * modules/unistd (Makefile.am): Substitute it.
45240         * lib/unistd.in.h (readlink): Declare replacement.
45241         * doc/posix-functions/readlink.texi (readlink): Document this.
45242
45243         symlink: use throughout gnulib
45244         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45245         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45246         symlink is not used.
45247         * modules/symlinkat (Depends-on): Add symlink.
45248         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45249         * modules/canonicalize-tests (Depends-on): Likewise.
45250         * modules/lstat-tests (Depends-on): Likewise.
45251         * modules/openat-tests (Depends-on): Likewise.
45252         * modules/remove-tests (Depends-on): Likewise.
45253         * modules/rmdir-tests (Depends-on): Likewise.
45254         * modules/unlink-tests (Depends-on): Likewise.
45255         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45256         * tests/test-canonicalize.c (symlink): Likewise.
45257         * tests/test-fstatat.c (symlink): Likewise.
45258         * tests/test-lstat.c (symlink): Likewise.
45259         * tests/test-remove.c (symlink): Likewise.
45260         * tests/test-rmdir.c (symlink): Likewise.
45261         * tests/test-unlink.c (symlink): Likewise.
45262         * tests/test-unlinkat.c (symlink): Likewise.
45263
45264         symlink: new module, for Solaris 9 bug
45265         * modules/symlink: New file.
45266         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45267         * lib/symlink.c: Likewise.
45268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45269         * modules/unistd (Makefile.am): Substitute them.
45270         * lib/unistd.in.h (symlink): Declare replacement.
45271         * MODULES.html.sh (File system functions): Mention it.
45272         * doc/posix-functions/symlink.texi (symlink): Likewise.
45273         * modules/symlink-tests: New test.
45274         * tests/test-symlink.c: Likewise.
45275
45276 2009-09-23  Bruno Haible  <bruno@clisp.org>
45277
45278         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45279         when needed.
45280         Test case: gnulib-tool --import --with-tests atexit inttypes.
45281         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45282
45283 2009-09-23  Bruno Haible  <bruno@clisp.org>
45284
45285         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45286         subcommand, not in a subshell.
45287
45288 2009-09-22  Eric Blake  <ebb9@byu.net>
45289
45290         unistd: sort replacement declarations
45291         * lib/unistd.in.h: Sort declarations.
45292
45293         open, openat: minor optimization
45294         * lib/open.c (open): If open succeeded, len is non-zero.
45295         * lib/openat.c (rpl_openat): Likewise.
45296
45297         link-follow: ensure correct result
45298         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45300         distinguish between possible failures.
45301
45302 2009-09-21  Eric Blake  <ebb9@byu.net>
45303
45304         fts: avoid compiler warning
45305         * lib/fts.c (dirent_inode_sort_may_be_useful)
45306         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45307
45308 2009-09-19  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/progreloc.c (canonicalize_file_name): New declaration.
45311
45312 2009-09-19  Eric Blake  <ebb9@byu.net>
45313
45314         link: fix quoting
45315         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45316
45317         openat: fix openat bugs on Solaris 9
45318         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45319         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45320         * modules/openat (Depends-on): Add open.
45321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45322         * modules/fcntl-h (Makefile.am): Substitute it.
45323         * lib/fcntl.in.h (openat): Declare replacement.
45324         * doc/posix-functions/openat.texi (openat): Document this.
45325
45326         openat: move fstatat and unlinkat into correct files
45327         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45328         compiled.
45329         * lib/openat.c (fstatat, unlinkat): Move...
45330         * lib/fstatat.c (fstatat): ...into correct files.
45331         * lib/unlinkat.c (unlinkat): Likewise.
45332
45333         openat: fix unlinkat bugs on Solaris 9
45334         * lib/unlinkat.c (unlinkat): New file.
45335         * modules/openat (Depends-on): Add unlink.
45336         (Files): Distribute it.
45337         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45338         trailing slash behavior is broken.
45339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45340         * modules/unistd (Makefile.am): Substitute it.
45341         * lib/unistd.in.h (unlinkat): Declare replacement.
45342         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45343
45344         openat: fix fstatat bugs on Solaris 9
45345         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45346         stat.
45347         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45348
45349         test-unlinkat: enhance test, to expose Solaris 9 bug
45350         * tests/test-unlink.c (main): Factor guts...
45351         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45352         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45353         * tests/test-rmdir.c (main): Adjust caller.
45354         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45355         (unlinker): New helper function.
45356         (rmdirat): Enhance check.
45357         * modules/rmdir-tests (Depends-on): Add stdbool.
45358         * modules/unlink-tests (Depends-on): Likewise.
45359         (Files): Add test-unlink.h.
45360         * modules/openat-tests (Files): Likewise.
45361         (Depends-on): Add unlinkdir.
45362
45363         test-fstatat: new test, to expose Solaris 9 bugs
45364         * tests/test-stat.c (main): Factor guts...
45365         * tests/test-stat.h (test_stat_func): ...into new file.
45366         * tests/test-lstat.c (main): Factor guts...
45367         * tests/test-lstat.h (test_lstat_func): ...into new file.
45368         * tests/test-fstatat.c: New file.
45369         * modules/stat-tests (Files): Add test-stat.h.
45370         * modules/lstat-tests (Files): Add test-lstat.h.
45371         (Depends-on): Add stdbool.
45372         * modules/openat-tests (Depends-on): Add pathmax.
45373         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45374         (Makefile.am): Run new test.
45375
45376         remove: new module, for mingw and Solaris 9 bugs
45377         * modules/remove: New file.
45378         * lib/remove.c: Likewise.
45379         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45381         * modules/stdio (Makefile.am): Use them.
45382         * lib/stdio.in.h (remove): Declare replacement.
45383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45384         * doc/posix-functions/remove.texi (remove): Likewise.
45385         * modules/remove-tests: New test.
45386         * tests/test-remove.c: Likewise.
45387
45388         unlink: new module, for Solaris 9 bug
45389         * modules/unlink: New file.
45390         * lib/unlink.c: Likewise.
45391         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45393         * modules/unistd (Makefile.am): Use them.
45394         * lib/unistd.in.h (stat): Declare replacement.
45395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45396         * doc/posix-functions/unlink.texi (unlink): Likewise.
45397         * modules/unlink-tests: New test.
45398         * tests/test-unlink.c: Likewise.
45399
45400         lstat: fix Solaris 9 bug
45401         * lib/lstat.c (lstat): Also check for trailing slash on
45402         non-symlink, non-directories.  Use stat module to simplify logic.
45403         * doc/posix-functions/lstat.texi (lstat): Document it.
45404         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45405         (configure.ac): Check for symlink.
45406         * tests/test-lstat.c (main): Add more tests.
45407
45408         stat: add as dependency to other modules
45409         * modules/chown (Depends-on): Add stat.
45410         * modules/euidaccess (Depends-on): Likewise.
45411         * modules/fchdir (Depends-on): Likewise.
45412         * modules/isdir (Depends-on): Likewise.
45413         * modules/link (Depends-on): Likewise.
45414         * modules/lstat (Depends-on): Likewise.
45415         * modules/mkdir-p (Depends-on): Likewise.
45416         * modules/modechange (Depends-on): Likewise.
45417         * modules/open (Depends-on): Likewise.
45418         * modules/readlink (Depends-on): Likewise.
45419         * modules/same (Depends-on): Likewise.
45420
45421         stat: fix Solaris 9 bug
45422         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45423         slash.
45424         * lib/stat.c (rpl_stat): Work around it.
45425         * doc/posix-functions/stat.texi (stat): Update documentation.
45426
45427         stat: new module, for mingw bug
45428         * modules/stat: New file.
45429         * lib/stat.c: Likewise.
45430         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45432         * modules/sys_stat (Makefile.am): Use them.
45433         * lib/sys_stat.in.h (stat): Declare replacement.
45434         * lib/openat.c (fstatat): Deal with lstat and stat being function
45435         macros.
45436         * modules/openat (Depends-on): Add inline.
45437         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45438         * doc/posix-functions/stat.texi (stat): Likewise.
45439         * modules/stat-tests: New test.
45440         * tests/test-stat.c: Likewise.
45441
45442 2009-09-19  Jim Meyering  <meyering@redhat.com>
45443
45444         syntax-check: detect unnecessary inclusion of canonicalize.h
45445         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45446
45447 2009-09-19  Eric Blake  <ebb9@byu.net>
45448
45449         canonicalize-lgpl: adjust clients to use correct header
45450         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45451         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45452         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45453         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45454         * lib/progreloc.c (includes): Likewise.
45455
45456 2009-09-19  Jim Meyering  <meyering@redhat.com>
45457
45458         test-posixtm.c: correct a comment
45459         * tests/test-posixtm.c: Correct first-line comment.
45460         Spotted by Eric Blake.
45461
45462 2009-09-16  Jim Meyering  <meyering@redhat.com>
45463
45464         posixtm-tests: make T const-correct; add a test case
45465         * tests/test-posixtm.c (T): Declare const.
45466         Add a test for -(2^31+1).
45467         Remove useless can-succeed-only-in-2002 test.
45468
45469         posixtm-tests: adjust the sole failing test
45470         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45471         expected output matches what mktime now produces.  Cross-checked via
45472         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45473
45474         posixtm: move #ifdef'd tests into a new module
45475         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45476         * tests/test-posixtm.c: ... this new file.
45477         * modules/posixtm-tests: New module.
45478
45479 2009-09-19  Eric Blake  <ebb9@byu.net>
45480
45481         openat: simplify use of at-func.c
45482         * lib/at-func.c (includes): Include prerequisites here, to
45483         simplify requirements on client files.
45484         * lib/openat-priv.h: Add double-inclusion guard.
45485         * lib/faccessat.c (includes): Simplify.
45486         * lib/fchmodat.c (includes): Likewise.
45487         * lib/fchownat.c (includes): Likewise.
45488         * lib/mkdirat.c (includes): Likewise.
45489         * lib/mkfifoat.c (includes): Likewise.
45490         * lib/symlinkat.c (includes): Likewise.
45491
45492         openat: allow return of fd 0
45493         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45494         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45495         unistd-safer.
45496         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45497         <fcntl.h>; this module does not leak fds.
45498         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45499         must be allowed to return 0, leaving openat_safer to add the
45500         safety.
45501         (openat_permissive): Avoid writing to just-opened fd 2 if
45502         restoring the current directory fails.
45503         * lib/openat-die.c (openat_restore_fail): Add comment.
45504         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45505         (save_cwd): Guarantee safe fd, but without use of open_safer.
45506         * tests/test-openat.c: New test.
45507         * modules/openat-tests (Files, Makefile.am): Distribute and build
45508         new file.
45509
45510         relocatable-prog-wrapper: fix build
45511         * modules/relocatable-prog-wrapper (Files): Update name of
45512         canonicalize m4 file, broken on 2009-09-17.
45513         Reported by emad hajjar <aleppos@hotmail.com>.
45514
45515 2009-09-19  Bruno Haible  <bruno@clisp.org>
45516
45517         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45518         * lib/safe-alloc.c: Likewise.
45519         Reported by Ian Beckwith <ianb@erislabs.net>.
45520
45521 2009-09-18  Bruno Haible  <bruno@clisp.org>
45522
45523         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45524         Reported by <erobles@sensacd.com.mx>.
45525
45526 2009-09-17  Eric Blake  <ebb9@byu.net>
45527
45528         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45529         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45530         slashes when checking if last component is missing.
45531         * tests/test-canonicalize.c (main): Test this.
45532
45533         canonicalize, canonicalize-lgpl: honor // if distinct from /
45534         * modules/canonicalize (Files): Add double-slash-root.m4.
45535         * modules/canonicalize-lgpl (Files): Likewise.
45536         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45537         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45538         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45539         fallback definition.
45540         (canonicalize_filename_mode): Use it to protect //.
45541         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45542         (__realpath): Likewise.
45543         * tests/test-canonicalize.c (main): Test this.
45544         * tests/test-canonicalize-lgpl.c (main): Likewise.
45545         * modules/canonicalize-tests (Depends-on): Add same-inode.
45546         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45547
45548         canonicalize-lgpl: fix glibc bug with trailing slash
45549         * m4/canonicalize-lgpl.m4: Move contents...
45550         * m4/canonicalize.m4: ...here.
45551         (gl_CANONICALIZE_LGPL): Factor realpath check...
45552         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45553         glibc 2.3.5 bug, fixed 2005-04-27.
45554         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45555         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45556         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45557         * modules/canonicalize-lgpl (Files): Manage file rename.
45558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45559         * modules/stdlib (Makefile.am): Substitute witness.
45560         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45561         is needed.
45562         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45563         replacement is required.
45564         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45565         * doc/glibc-functions/canonicalize_file_name.texi
45566         (canonicalize_file_name): Document this.
45567         * doc/posix-functions/realpath.texi (realpath): Likewise.
45568
45569         canonicalize-lgpl: reject non-directory with trailing slash
45570         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45571         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45572         catches failures in glibc 2.3.5.
45573         * tests/test-canonicalize.c (main): Likewise.
45574
45575         canonicalize-lgpl: use native realpath if it works
45576         * lib/canonicalize-lgpl.c (realpath): Guard with
45577         FUNC_REALPATH_WORKS.
45578         * lib/stdlib.in.h (realpath): Make declaration optional based on
45579         HAVE_REALPATH.
45580         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45581         native realpath works.
45582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45583         * modules/stdlib (Makefile.am): Substitute witness.
45584
45585         canonicalize, canonicalize-lgpl: use <stdlib.h>
45586         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45587         (Include): Mention <stdlib.h>.
45588         (configure.ac): Mention functions we provide.
45589         * modules/canonicalize (configure.ac): Likewise.
45590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45591         realpath if canonicalize_file_name is missing.
45592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45593         * modules/stdlib (Makefile.am): Substitute witnesses.
45594         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45595         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45596         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45597         * NEWS: Document this.
45598         * doc/glibc-functions/canonicalize_file_name.texi
45599         (canonicalize_file_name): Likewise.
45600         * doc/posix-functions/realpath.texi (realpath): Likewise.
45601         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45602
45603         test-canonicalize: consolidate into single C program
45604         * tests/test-canonicalize.sh: Delete; move setup into...
45605         * tests/test-canonicalize.c (main): ...the program, making it
45606         easier to run in debugger.  Add some tests.
45607         * modules/canonicalize-tests (Files): Remove unused file.
45608         (Depends-on): Add progname.
45609         (configure.ac, Makefile.am): Simplify.
45610
45611         test-canonicalize-lgpl: consolidate into single C program
45612         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45613         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45614         easier to run in debugger.  Add some tests.
45615         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45616         (configure.ac, Makefile.am): Simplify.
45617
45618         canonicalize: avoid resolvepath
45619         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45620         unnecessary checks.
45621         * lib/canonicalize.c (includes): Simplify.
45622         (canonicalize_file_name): Drop resolvepath implementation.
45623         * modules/canonicalize (Depends-on): Drop filenamecat.
45624
45625         canonicalize: don't lose errno
45626         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45627         over calls to free.
45628
45629         canonicalize: simplify errno handling
45630         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45631         assignment.
45632
45633         canonicalize, canonicalize-lgpl: update module dependencies
45634         * modules/canonicalize (Depends-on): Add extensions, lstat,
45635         pathmax, stdlib.
45636         (Files): Drop pathmax.h.
45637         (configure.ac): Adjust macro name.
45638         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45639         lstat, stdlib, sys_stat.
45640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45641         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45642         extensions.
45643         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45644         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45645         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45646         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45647         declaration, if available.
45648         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45649         we can rely on the readlink module.
45650         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45651         (includes): Use <unistd.h> unconditionally.
45652
45653 2009-09-17  Eric Blake  <ebb9@byu.net>
45654
45655         maint: make Include sections of modules consistent
45656         * modules/alloca: Use only header name; no need to list #include.
45657         * modules/alloca-opt: Likewise.
45658         * modules/arpa_inet: Likewise.
45659         * modules/canon-host: Likewise.
45660         * modules/configmake: Likewise.
45661         * modules/dirent: Likewise.
45662         * modules/eealloc: Likewise.
45663         * modules/environ: Likewise.
45664         * modules/fchdir: Likewise.
45665         * modules/fcntl: Likewise.
45666         * modules/fcntl-h: Likewise.
45667         * modules/gethrxtime: Likewise.
45668         * modules/gettime: Likewise.
45669         * modules/ignore-value: Likewise.
45670         * modules/inet_ntop: Likewise.
45671         * modules/inet_pton: Likewise.
45672         * modules/inttypes: Likewise.
45673         * modules/isnand-nolibm: Likewise.
45674         * modules/isnanf-nolibm: Likewise.
45675         * modules/mbchar: Likewise.
45676         * modules/mbfile: Likewise.
45677         * modules/mbiter: Likewise.
45678         * modules/mbuiter: Likewise.
45679         * modules/netdb: Likewise.
45680         * modules/netinet_in: Likewise.
45681         * modules/nproc: Likewise.
45682         * modules/pagealign_alloc: Likewise.
45683         * modules/poll: Likewise.
45684         * modules/printf-frexp: Likewise.
45685         * modules/pthread: Likewise.
45686         * modules/putenv: Likewise.
45687         * modules/random_r: Likewise.
45688         * modules/relocatable-prog: Likewise.
45689         * modules/search: Likewise.
45690         * modules/select: Likewise.
45691         * modules/selinux-h: Likewise.
45692         * modules/settime: Likewise.
45693         * modules/signal: Likewise.
45694         * modules/size_max: Likewise.
45695         * modules/socklen: Likewise.
45696         * modules/ssize_t: Likewise.
45697         * modules/stdarg: Likewise.
45698         * modules/stdbool: Likewise.
45699         * modules/stddef: Likewise.
45700         * modules/stdint: Likewise.
45701         * modules/stdio: Likewise.
45702         * modules/stdlib: Likewise.
45703         * modules/string: Likewise.
45704         * modules/strings: Likewise.
45705         * modules/sys_file: Likewise.
45706         * modules/sys_ioctl: Likewise.
45707         * modules/sys_select: Likewise.
45708         * modules/sys_socket: Likewise.
45709         * modules/sys_stat: Likewise.
45710         * modules/sys_time: Likewise.
45711         * modules/sys_times: Likewise.
45712         * modules/sys_utsname: Likewise.
45713         * modules/sys_wait: Likewise.
45714         * modules/sysexits: Likewise.
45715         * modules/time: Likewise.
45716         * modules/times: Likewise.
45717         * modules/tmpfile: Likewise.
45718         * modules/trim: Likewise.
45719         * modules/unistd: Likewise.
45720         * modules/wchar: Likewise.
45721         * modules/wctype: Likewise.
45722
45723 2009-09-17  Bruno Haible  <bruno@clisp.org>
45724
45725         Make getdate.y compile on QNX and NetBSD 5 / i386.
45726         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45727         TIME_T_FITS_IN_LONG_INT.
45728         * lib/getdate.y (long_time_t): New type.
45729         (relative_time): Change type of 'seconds' field to long_time_t.
45730         (get_date): Update types of local variables. Check against overflow
45731         during conversion from long_time_t to time_t.
45732         Reported by Matt Kraai <kraai@ftbfs.org>
45733         and Hasso Tepper <hasso@netbsd.org>.
45734
45735 2009-09-17  Bruno Haible  <bruno@clisp.org>
45736
45737         * modules/COPYING: Update copyright years.
45738         * modules/README: Likeiwse.
45739         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45740         Reported by Ian Beckwith <ianb@erislabs.net>.
45741
45742 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45743
45744         * users.txt: Update references for gnuit package.
45745
45746 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45747
45748         * m4/getdelim.m4: Fix typo in copyright line.
45749
45750 2009-09-17  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/atoll.c: Use the standard header with GPL copyright.
45753         * lib/argz.in.h: Likewise.
45754         * lib/glob.c: Likewise.
45755         * lib/glob-libc.h: Likewise.
45756         * lib/random_r.c: Likewise.
45757         * lib/siglist.h: Likewise.
45758         * lib/strsignal.c: Likewise.
45759         Reported by Ian Beckwith <ianb@erislabs.net>.
45760
45761 2009-09-17  Eric Blake  <ebb9@byu.net>
45762
45763         rmdir: ensure correct dependency order
45764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45765
45766 2009-09-17  Bruno Haible  <bruno@clisp.org>
45767
45768         Disable assertion that fails on NetBSD 5 / i386.
45769         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45770         Reported by Sam Steingold <sds@gnu.org>
45771         and Hasso Tepper <hasso@netbsd.org>.
45772
45773 2009-09-16  Eric Blake  <ebb9@byu.net>
45774
45775         unlinkdir: port to mingw
45776         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45777         on which no one can unlink a directory.
45778
45779         stdlib: sort witness names
45780         * modules/stdlib (Makefile.am): Sort replacements.
45781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45782         * lib/stdlib.in.h: Likewise.
45783
45784         parse-duration-tests: avoid link failure
45785         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45786         LIBINTL.
45787         Reported by Tom G. Christensen.
45788
45789         openat-tests: ensure unlinkat behaves like rmdir
45790         * tests/test-rmdir.c (main): Factor guts...
45791         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45792         * modules/rmdir-tests (Files): Ship new file.
45793         * modules/openat-tests: New test.
45794         * tests/test-unlinkat.c: Likewise.
45795
45796         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45797         * modules/rmdir-errno (Status, Notice): Now obsolete.
45798
45799         rmdir: work around cygwin 1.5.x and mingw bugs
45800         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45801         * lib/rmdir.c (rmdir): Work around it.
45802         * modules/rmdir (Status, Notice): No longer obsolete.
45803         (Files): Add dos.m4.
45804         (Depends-on): Add unistd.
45805         (configure.ac): Set witnesses.
45806         (License): Relax to LGPLv2+.
45807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45808         * modules/unistd (Makefile.am): Substitute witnesses.
45809         * lib/unistd.in.h (rmdir): Declare replacement.
45810         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45811         * modules/rmdir-tests: New tests.
45812         * tests/test-rmdir.c: Likewise.
45813
45814 2009-09-15  Eric Blake  <ebb9@byu.net>
45815
45816         fchdir: improve use of replacement functions
45817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45820         REPLACE_CLOSEDIR.
45821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45822         * modules/sys_stat (Makefile.am): Substitute correct witness.
45823         * modules/dirent (Makefile.am): Likewise.
45824         * modules/unistd (Makefile.am): Likewise.
45825         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45826         * lib/unistd.in.h (dup): Likewise.
45827         * lib/sys_stat.in.h (fstat): Likewise.
45828
45829         maint: ignore gnulib-tool temp files
45830         * .gitignore: Ignore files created during gnulib-tool --test.
45831
45832 2009-09-13  Jim Meyering  <meyering@redhat.com>
45833
45834         posixtm: don't reject a time that specify "60" as the number of seconds
45835         * lib/posixtm.c (posixtime): The code to reject invalid dates
45836         would also reject a time specified with the .60 suffix.
45837         But POSIX allows that, in order to accommodate leap seconds.
45838         So don't reject it.
45839         (main): Adjust tests accordingly.
45840         * modules/posixtm (Depends-on): Add stpcpy.
45841
45842 2009-09-11  Jim Meyering  <meyering@redhat.com>
45843
45844         announce-gen: include [$release_type] in emitted Subject:
45845         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45846         e.g., [stable] in the emitted Subject: line.
45847
45848 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45849
45850         Remove obsolete macros from several modules.
45851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45852         obsolete Autoconf macros with their modern counterparts.
45853         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45854         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45856         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45857         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45858         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45861         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45862         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45865         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45866         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45867         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45869         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45870         * m4/time_r.m4 (gl_TIME_R): Likewise.
45871         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45872         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45873         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45874
45875         Fix copyright header in build-aux scripts.
45876         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45877         recommendation.
45878         * build-aux/ncftpput-ftp: Likewise.
45879         * build-aux/update-copyright: Likewise.
45880
45881 2009-09-09  Eric Blake  <ebb9@byu.net>
45882
45883         test-link: allow Linux choice of errno
45884         * tests/test-link.c (main): Relax test for alternate error.
45885
45886         strndup: fix improper m4 caching
45887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45888         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45889         (gl_PREREQ_STRNDUP): Delete.
45890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45891         * modules/string (Makefile.am): Substitute it.
45892         * lib/string.in.h (strndup): Modernize prototype.
45893
45894         getcwd: port to mingw
45895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45896         different from the POSIX assumptions made throughout the getcwd
45897         module; fortunately, the mingw getcwd does not need replacement.
45898         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45899         * modules/getcwd-tests: New test.
45900         * tests/test-getcwd.c: Likewise.
45901
45902         link: fix platform bugs
45903         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45904         * lib/link.c (link): Work around them.  Fix related mingw bug.
45905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45906         * modules/unistd (Makefile.am): Substitute it.
45907         * lib/unistd.in.h (link): Declare replacement.
45908         * doc/posix-functions/link.texi (link): Document this.
45909         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45910
45911         test-link: consolidate into single C program, test more cases
45912         * tests/test-link.sh: Delete.
45913         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45914         at least Cygwin and Solaris.
45915         * modules/link-tests (Files): Remove unused file.
45916         (Depends-on): Add errno, sys_stat.
45917         (Makefile.am): Simplify.
45918
45919 2009-09-08  Bruno Haible  <bruno@clisp.org>
45920
45921         Work around towlower, towupper bug on mingw.
45922         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45923         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45924         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45925         * doc/posix-functions/towupper.texi: Likewise.
45926         Reported by Eric Blake.
45927
45928 2009-09-08  Jim Meyering  <meyering@redhat.com>
45929
45930         build: don't try to run autoheader if we don't use it
45931         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45932         is not used in configure.ac.
45933
45934 2009-09-08  Eric Blake  <ebb9@byu.net>
45935
45936         euidaccess: fix compilation error
45937         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45938
45939         rawmemchr: relax license
45940         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45941         okay.
45942         Reported by Jim Meyering.
45943
45944         mkfifoat: new module
45945         * modules/mkfifoat: New file.
45946         * lib/mkfifoat.c: Likewise.
45947         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45949         * modules/sys_stat (Makefile.am): Use them.
45950         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45951         * MODULES.html.sh (File system functions): Mention module.
45952         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45953         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45954         * modules/mkfifoat-tests: New test.
45955         * tests/test-mkfifoat.c: Likewise.
45956
45957         strchrnul: relax license
45958         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45959         okay.
45960         Reported by Jim Meyering.
45961
45962 2009-09-08  Eric Blake  <ebb9@byu.net>
45963
45964         fstatat: fix compilation on Solaris
45965         * lib/fstatat.c (includes): Add fcntl.h.
45966         Reported by Pádraig Brady.
45967
45968 2009-09-07  Eric Blake  <ebb9@byu.net>
45969
45970         rename: modernize replacement
45971         * modules/rename (Depends-on): Add stdio.
45972         (configure.ac): Declare witness.
45973         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45974         stdio take care of replacement.
45975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45976         * modules/stdio (Makefile.am): Substitute them.
45977         * lib/stdio.in.h (rename): Declare replacement.
45978         * lib/rename.c (includes): Allow cross-compilation to non-windows
45979         machines.
45980         * doc/posix-functions/rename.texi (rename): Improve
45981         documentation.
45982
45983         stdio: sort witness names
45984         * modules/stdio (Makefile.am): Sort replacements.
45985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45986         * lib/stdio.in.h: Likewise.
45987
45988         getcwd: minor cleanups
45989         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45990         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45991
45992         openat: provide more convenience names
45993         * modules/faccessat (configure.ac): Add C witness.
45994         * lib/unistd.in.h (readlinkat): Fix typo.
45995         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45996         convenience wrappers.
45997         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45998         wrappers in syntax checks.
45999
46000 2009-09-06  Eric Blake  <ebb9@byu.net>
46001
46002         doc: fix comments in recent patches
46003         * lib/faccessat.c: Mention correct function.
46004         * lib/fchmodat.c: Likewise.
46005         * lib/fchownat.c: Likewise.
46006         * lib/symlinkat.c: Likewise.
46007         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46008         constants.
46009
46010         faccessat, symlinkat: continue cleanup of previous patch
46011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46012         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46013         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46015         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46016         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46017         set.
46018
46019 2009-09-06  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46022         (fstatat): Declare if GNULIB_FSTATAT is set.
46023         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46024         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46025         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46026         * modules/fcntl-h (Files): Remove m4/openat.m4.
46027         * modules/sys_stat (Files): Remove m4/openat.m4.
46028         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46029         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46030         * modules/unistd (Files): Remove m4/openat.m4.
46031         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46032         GNULIB_OPENAT.
46033         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46034         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46036         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46037         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46038         gl_OPENAT_DEFAULTS.
46039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46040         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46041         Don't require gl_OPENAT_DEFAULTS.
46042         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46043         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46044         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46045         (gl_OPENAT_DEFAULTS): Remove macro.
46046
46047 2009-09-06  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/openat (configure.ac): Remove unneeded witness.
46050
46051 2009-09-06  Bruno Haible  <bruno@clisp.org>
46052
46053         Set errno to ENOSYS when a function is entirely unsupported.
46054         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46055         EOPNOTSUPP.
46056         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46057         * modules/chown (Depends-on): Remove errno.
46058
46059 2009-09-06  Bruno Haible  <bruno@clisp.org>
46060
46061         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46062
46063 2009-09-06  Bruno Haible  <bruno@clisp.org>
46064
46065         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46066
46067 2009-09-06  Ben Pfaff  <blp@gnu.org>
46068             Bruno Haible  <bruno@clisp.org>
46069
46070         Work around a glibc bug in strtok_r.
46071         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46072         Undefine if UNDEFINE_STRTOK_R is set.
46073         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46075         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46076         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46077         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46078         UNDEFINE_STRTOK_R.
46079         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46080
46081 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46082
46083         exclude: minor fix
46084         * lib/exclude.c: Include wctype.h
46085
46086 2009-09-06  Akim Demaille  <demaille@gostai.com>
46087
46088         bootstrap: improve error message
46089         * build-aux/bootstrap (find_tool): Upon failure, report the list
46090         of candidates.
46091         Honor the initial value of the envvar.
46092
46093 2009-09-05  Eric Blake  <ebb9@byu.net>
46094
46095         symlinkat: new module
46096         * modules/symlinkat: New file.
46097         * lib/symlinkat.c: Likewise.
46098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46100         * modules/unistd (Makefile.am): Use them.
46101         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46102         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46103         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46104         * MODULES.html.sh (File system functions): Mention module.
46105         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46106         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46107         * modules/symlinkat-tests: New test.
46108         * tests/test-symlinkat.c: Likewise.
46109
46110         test-openat-safer: add more checks
46111         * tests/test-openat-safer.c (main): Check more code paths.
46112
46113 2009-09-05  Jim Meyering  <meyering@redhat.com>
46114
46115         syntax-check: detect unnecessary inclusion of openat.h
46116         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46117
46118 2009-09-05  Bruno Haible  <bruno@clisp.org>
46119
46120         Support towlower, towupper.
46121         * doc/posix-functions/towlower.texi: Mention module wctype.
46122         * doc/posix-functions/towupper.texi: Likewise.
46123         * lib/wctype.in.h (towlower, towupper): New functions.
46124         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46125         (ASSERT): New macro.
46126         (e): New variable.
46127         (main): Test also towlower, towupper. Test WEOF argument.
46128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46129
46130 2009-09-05  Bruno Haible  <bruno@clisp.org>
46131
46132         Fix conversion behaviour when the input is invalid.
46133         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46134         mark occurring in first pass of indirect conversion.
46135         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46136         input.
46137         Found by clang's static analyzer.
46138
46139 2009-09-05  Bruno Haible  <bruno@clisp.org>
46140
46141         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46142         where direct conversion is possible.
46143
46144 2009-09-04  Eric Blake  <ebb9@byu.net>
46145
46146         openat: fail with ENOENT on empty name
46147         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46148         buffer.
46149
46150         link-follow: fix logic bug in prior patch
46151         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46152         reversed sense of yes and no in prior patch.  Avoid confusing
46153         compilation failure with desired semantics.
46154
46155         link-follow: accommodate mingw and cross-compilation
46156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46157         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46158         cross-compilation results to -1, to make linkat easier to
46159         implement when cross-compiling.  Trivially support mingw.
46160         * modules/link-follow (configure.ac): Call new name.
46161         * NEWS: Mention this.
46162
46163 2009-09-03  Eric Blake  <ebb9@byu.net>
46164
46165         faccessat: compile replacement
46166         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46167         needed.
46168
46169         fts: fix compilation error
46170         * lib/fts.c (includes): Re-add "openat.h", for
46171         openat_needs_fchdir.
46172
46173         faccessat: new module
46174         * modules/faccessat: New file.
46175         * lib/faccessat.c: Likewise.
46176         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46178         * modules/unistd (Makefile.am): Use it.
46179         * lib/unistd.in.h (faccessat): Declare it.
46180         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46181         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46182         * MODULES.html.sh (File system functions): Mention it.
46183         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46184         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46185
46186         euidaccess: prefer POSIX over non-standard implementation
46187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46188         * lib/euidaccess.c (euidaccess): Use it if available.
46189
46190         openat: make template easier to use
46191         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46192         AT_FUNC_F2 to be undefined.
46193         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46194         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46195         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46196         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46197         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46198         Likewise.
46199         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46200         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46201         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46202         Likewise.
46203
46204         openat: declare in POSIX headers
46205         * NEWS: Mention this.
46206         * modules/openat (configure.ac): Declare witnesses.
46207         (Depends-on): Add fcntl-h, sys_stat, unistd.
46208         (Include): Mention correct headers.
46209         * modules/fcntl-h (Depends-on): Add link-warning.
46210         (Files): Add openat.m4.
46211         (Makefile.am): Substitute witnesses.
46212         * modules/sys_stat (Files, Makefile.am): Likewise.
46213         * modules/unistd (Files, Makefile.am): Likewise.
46214         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46215         (gl_OPENAT_DEFAULTS): New macro.
46216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46219         (SYS_STAT_H): Remove unused variable.
46220         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46221         * lib/fcntl--.h (includes): Remove unneeded header.
46222         * lib/openat-safer.c (includes): Likewise.
46223         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46224         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46225         appropriate headers.
46226         (__OPENAT_PREFIX): Delete.
46227         * lib/fcntl.in.h (openat): Provide declaration.
46228         (AT_FDCWD): Fix Solaris bug.
46229         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46230         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46231         * lib/fchmodat.c (includes):  Adjust to find declaration.
46232         * lib/fchownat.c (includes): Likewise.
46233         * lib/mkdirat.c (includes): Likewise.
46234         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46235         still visible.
46236
46237 2009-09-02  Eric Blake  <ebb9@byu.net>
46238
46239         errno: use consistently
46240         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46241         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46242         * lib/canonicalize.c (ELOOP): Likewise.
46243         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46244         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46245         * lib/lchown.c (EOPNOTSUPP): Likewise.
46246         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46247         * lib/savewd.c (ESTALE): Likewise.
46248         * lib/settime.c (ENOSYS): Likewise.
46249         * lib/utimens.c (ENOSYS): Likewise.
46250         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46251         * lib/chdir-safer.c (ELOOP): Likewise.
46252         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46253         * modules/c-stack (Depends-on): Add errno.
46254         * modules/canonicalize (Depends-on): Likewise.
46255         * modules/chdir-safer (Depends-on): Likewise.
46256         * modules/fdopendir (Depends-on): Likewise.
46257         * modules/inet_ntop (Depends-on): Likewise.
46258         * modules/inet_pton (Depends-on): Likewise.
46259         * modules/lchown (Depends-on): Likewise.
46260         * modules/openat (Depends-on): Likewise.
46261         * modules/savewd (Depends-on): Likewise.
46262         * modules/settime (Depends-on): Likewise.
46263         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46264
46265         fts: avoid leaking fds
46266         * modules/fts (Depends-on): Add cloexec.
46267         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46268         flag.
46269
46270         fts: make directory fds more robust
46271         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46272         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46273
46274         backupfile, chdir-long, fts, savedir: make safer
46275         * lib/backupfile.c (includes): Use "dirent--.h", since
46276         numbered_backup can write to stderr during readdir.
46277         * lib/savedir.c (includes): Likewise.
46278         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46279         emulation can write to stderr on failure.
46280         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46281         * lib/getcwd.c: Document why opendir_safer is unused.
46282         * lib/glob.c: Likewise.
46283         * lib/scandir.c: Likewise.
46284         * lib/openat-proc.c: Likewise, for open_safer.
46285         * modules/backupfile (Depends-on): Add dirent-safer.
46286         * modules/savedir (Depends-on): Likewise.
46287         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46288         * modules/chdir-long (Depends-on): Add openat-safer.
46289
46290         openat-safer: new module
46291         * modules/openat-safer: New file.
46292         * lib/openat-safer.c: Likewise.
46293         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46294         * lib/fcntl-safer.h (openat_safer): Declare.
46295         * lib/fcntl--.h (openat): Override.
46296         * MODULES.html.sh (File descriptor based I/O): Mention it.
46297         * lib/openat.h: Add double-inclusion guards.
46298         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46299         "fcntl--.h", so we can implement openat.
46300         * modules/openat-safer-tests: New test.
46301         * tests/test-openat-safer.c: New file.
46302
46303         dirent-safer: new module
46304         * modules/dirent-safer: New file.
46305         * lib/dirent--.h: Likewise.
46306         * lib/dirent-safer.h: Likewise.
46307         * lib/opendir-safer.c: Likewise.
46308         * m4/dirent-safer.m4: Likewise.
46309         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46310         * modules/dirent-safer-tests: New test.
46311         * tests/test-dirent-safer.c: New file.
46312         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46313
46314         fdopendir: optimize on mingw
46315         * lib/unistd.in.h (_gl_directory_name): New prototype.
46316         * lib/fchdir.c (_gl_directory_name): Implement it.
46317         (fchdir): Use it to simplify implementation.
46318         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46319         fchdir, when available, to avoid calling [f]chdir().
46320
46321         fdopendir: split into its own module
46322         * lib/openat.c (fdopendir): Move...
46323         * lib/fdopendir.c: ...into new file.
46324         * modules/fdopendir: New module.
46325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46326         * modules/openat (Depends-on): Add fdopendir.
46327         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46328         fdopendir here.
46329         * modules/savedir (Depends-on): Only need fdopendir, not full
46330         openat.
46331         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46332         * lib/openat.h (fdopendir): Drop prototype.
46333         * lib/dirent.in.h (fdopendir): Provide prototype.
46334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46335         * modules/dirent (Makefile.am): Substitute them.
46336         * MODULES.html.sh (File system functions): Mention it.
46337         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46338         * modules/fdopendir-tests: New file.
46339         * tests/test-fdopendir.c: Likewise.
46340
46341         fchdir: use more consistent macro convention
46342         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46343         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46344         REPLACE_FCHDIR, rather than relying on config.h macros.
46345         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46346         inside a single make-time REPLACE_FCHDIR block, rather than using
46347         the config.h FCHDIR_REPLACEMENT.
46348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46349         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46350         Manage fstat replacement.
46351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46352         REPLACE_FCHDIR.
46353         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46354         (Makefile.am): Substitute REPLACE_FCHDIR.
46355         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46356         FCHDIR_REPLACEMENT.
46357         * lib/dup-safer.c (dup_safer): Likewise.
46358         * lib/dup2.c (rpl_dup2): Likewise.
46359         * lib/dup3.c (rpl_dup3): Likewise.
46360         * lib/open.c (rpl_open): Likewise.
46361
46362         fchdir: simplify error handling, and support dup3
46363         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46364         stdbool, malloc-posix, realloc-posix.
46365         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46366         (ensure_dirs_slot): Return false on allocation failure.
46367         (rpl_dup2): Delete.
46368         (_gl_register_dup): New function.
46369         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46370         (_gl_register_fd): Close fd on allocation failure.
46371         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46372         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46373         prototype.
46374         (rpl_dup2_fchdir): Delete prototype.
46375         * lib/open.c (open): Update caller.
46376         * lib/dup2.c (dup2): Track fchdir metadata.
46377         * lib/dup3.c (dup3): Likewise.
46378         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46380
46381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46382
46383         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46384         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46385         don't pass arguments to AC_OUTPUT.
46386
46387 2009-09-02  Bruno Haible  <bruno@clisp.org>
46388
46389         * modules/mkdtemp (License): Relicense under LGPLv2+.
46390         Reported by Paolo Bonzini.
46391
46392 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46393
46394         Replace uses of obsolete autoconf macros in Jim's modules.
46395         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46396         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46397         can evoke a warning from autoconf when run with -Wobsolete
46398         enabled.  They were declared obsolete for good reasons (see
46399         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46400         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46401         should not continue using the deprecated macros.
46402         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46403         obsolete Autoconf macros with modern counterparts.
46404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46405         * m4/dos.m4 (gl_AC_DOS): Likewise.
46406         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46408         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46409         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46412         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46413         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46414         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46415         Likewise.
46416         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46419         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46420         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46421         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46422
46423 2009-09-01  Eric Blake  <ebb9@byu.net>
46424
46425         fchdir: fix off-by-one bug in previous patch
46426         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46427         (_gl_unregister_fd): Delete useless if.
46428
46429 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46430
46431         maint.mk: sort the list of syntax-check rules
46432         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46433         easier to get a sense of progress when the rules are run sequentially
46434         and take a long time.
46435
46436 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46437
46438         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46439         * modules/netinet_in: Likewise.
46440         * modules/sys_file: Likewise.
46441         * modules/sys_ioctl: Likewise.
46442         * modules/sys_select: Likewise.
46443         * modules/sys_socket: Likewise.
46444         * modules/sys_stat: Likewise.
46445         * modules/sys_time: Likewise.
46446         * modules/sys_times: Likewise.
46447         * modules/sys_utsname: Likewise.
46448         * modules/sys_wait: Likewise.
46449
46450 2009-09-01  Jim Meyering  <meyering@redhat.com>
46451
46452         fts: help ensure that return values are not ignored
46453         * lib/fts_.h (__GNUC_PREREQ): Define.
46454         (__attribute_warn_unused_result__): Define.
46455         (fts_children, fts_close, fts_open, fts_read): Declare with
46456         __attribute_warn_unused_result__.
46457
46458         fts: fts_close now fails also when closing a dir file descriptor fails
46459         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46460         and propagate to caller, along with errno.
46461
46462         announce-gen: correct formatting in --help output
46463         * build-aux/announce-gen (usage): Move the one-line description in
46464         --help output "up", to where it belongs, just after Usage:.
46465
46466 2009-08-31  Eric Blake  <ebb9@byu.net>
46467
46468         fchdir: port to mingw
46469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46470         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46471         opened, then use a substitute.
46472         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46473         replacement.
46474         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46475         (_gl_register_fd): No need to check stat if open already filters
46476         all directories.
46477         (fchdir): Fix error condition to match POSIX.
46478         * modules/fchdir (Depends-on): Add sys_stat.
46479         * doc/posix-functions/open.texi (open): Document the limitation.
46480         * modules/fchdir-tests: New file.
46481         * tests/test-fchdir.c: Likewise.
46482
46483         canonicalize: allow cross-testing from cygwin to mingw
46484         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46485         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46486         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46487         Likewise.
46488         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46489         target does not support symlinks.
46490         * tests/test-canonicalize-lgpl.sh: Likewise.
46491
46492         chown: avoid compilation warning on mingw
46493         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46494         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46495         mingw.
46496         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46497         * modules/chown (Depends-on): Add errno.
46498
46499 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46500
46501         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46502         command.
46503
46504 2009-08-31  Jim Meyering  <meyering@redhat.com>
46505
46506         canonicalize: remove useless initialization
46507         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46508         initialization of local, "end".
46509
46510 2009-08-30  Bruno Haible  <bruno@clisp.org>
46511
46512         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46513         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46514         ENOSYS.
46515
46516 2009-08-30  Bruno Haible  <bruno@clisp.org>
46517
46518         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46519         /usr/xpg4/bin/tr when it exists.
46520         * tests/test-pipe-filter-gi1.sh: Likewise.
46521
46522 2009-08-30  Bruno Haible  <bruno@clisp.org>
46523
46524         Work around deficient /usr/bin/id program on Solaris.
46525         * tests/test-file-has-acl.sh (ID): New variable.
46526         * tests/test-set-mode-acl.sh (ID): Likewise.
46527         * tests/test-copy-acl.sh (ID): Likewise.
46528         * tests/test-copy-file.sh (ID): Likewise.
46529
46530 2009-08-30  Bruno Haible  <bruno@clisp.org>
46531
46532         New module 'xstriconveh'.
46533         * lib/xstriconveh.h: New file.
46534         * lib/xstriconveh.c: New file.
46535         * modules/xstriconveh: New file.
46536
46537 2009-08-30  Bruno Haible  <bruno@clisp.org>
46538
46539         Make it easier to use mem_cd_iconveh.
46540         * lib/striconveh.h (iconveh_t): New type.
46541         (iconveh_open, iconveh_close): New declarations.
46542         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46543         with a single 'const iconveh_t *' argument.
46544         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46545         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46546         with a single 'const iconveh_t *' argument.
46547         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46548         * tests/test-striconveh.c (main): Update.
46549         * NEWS: Mention the change.
46550
46551 2009-08-30  Bruno Haible  <bruno@clisp.org>
46552
46553         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46554         problem.
46555
46556 2009-08-30  Bruno Haible  <bruno@clisp.org>
46557
46558         Work around iconv_open problem on Solaris.
46559         * lib/iconv_open-solaris.gperf: New file.
46560         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46562         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46563         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46564         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46565         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46566
46567 2009-08-29  Jim Meyering  <meyering@redhat.com>
46568
46569         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46570         * top/maint.mk (cvs-check): Remove target; it was just an alias
46571         to the better-named vc-diff-check.
46572         (maintainer-distcheck): Remove rule.  It was used only from
46573         the (alpha/beta/major) target, and all of its commands but one
46574         were coreutils-specific.
46575         (vc-dist): Remove rule.
46576         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46577         Run vc-diff-check, not vc-dist.
46578         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46579
46580 2009-08-27  Bruno Haible  <bruno@clisp.org>
46581
46582         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46583         of 0.
46584
46585 2009-08-27  Bruno Haible  <bruno@clisp.org>
46586
46587         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46588         compilers.
46589         * doc/func.texi: Document the SunPRO C bug.
46590
46591 2009-08-27  Bruno Haible  <bruno@clisp.org>
46592
46593         Fix link error on Solaris.
46594         * tests/test-parse-duration.c (xstrdup): Remove function.
46595
46596 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46597
46598         ignore-value: handle pointer types, too
46599         * lib/ignore-value.h (__attribute__): Remove definition.
46600         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46601         of a more concise and more-often effective "(void) i" statement.
46602         (ignore_ptr): New function to suppress warnings from functions that
46603         return pointers, and to make it explicit that one function doesn't
46604         handle all cases.
46605
46606 2009-08-25  Bruno Haible  <bruno@clisp.org>
46607
46608         dup2: work around a Linux bug.
46609         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46610         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46611         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46612         Reported by Simon Josefsson.
46613
46614 2009-08-25  Jim Meyering  <meyering@redhat.com>
46615
46616         libguestfs uses gnulib
46617         * users.txt: Add libguestfs.
46618
46619 2009-08-24  Eric Blake  <ebb9@byu.net>
46620
46621         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46622         * lib/pipe2.c (includes): Add binary-io.h.
46623         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46624
46625 2009-08-24  Bruno Haible  <bruno@clisp.org>
46626
46627         Tolerate declared but missing accept4 syscall.
46628         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46629         available.
46630         * lib/sys_socket.in.h (accept4): If the function is already present,
46631         override it.
46632         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46633         * modules/accept4 (Makefile.am): Compile accept4.c always.
46634         Reported by Paolo Bonzini and Eric Blake.
46635
46636 2009-08-23  Bruno Haible  <bruno@clisp.org>
46637
46638         New module 'accept4'.
46639         * lib/sys_socket.in.h (accept4): New declaration.
46640         * lib/accept4.c: New file.
46641         * m4/accept4.m4: New file.
46642         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46643         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46644         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46645         HAVE_ACCEPT4.
46646         * modules/accept4: New file.
46647         * doc/glibc-functions/accept4.texi: Mention the new module.
46648
46649 2009-08-24  Jim Meyering  <meyering@redhat.com>
46650
46651         progname: also set global program_invocation_name, when possible
46652         Before this change, a libtool-enabled program that calls glibc's
46653         error function would report the program name as
46654         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46655         * modules/progname (configure.ac): Check for a declaration of
46656         program_invocation_name.
46657         * lib/progname.c:  Include <errno.h>.
46658         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46659         Set program_invocation_name.
46660
46661 2009-08-23  Bruno Haible  <bruno@clisp.org>
46662
46663         * lib/dup3.c: Include <string.h>.
46664
46665 2009-08-23  Bruno Haible  <bruno@clisp.org>
46666
46667         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46668         * lib/pipe2.c (pipe2): Likewise.
46669         Suggested by Eric Blake.
46670
46671 2009-08-23  Bruno Haible  <bruno@clisp.org>
46672
46673         Tolerate declared but missing dup3 syscall.
46674         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46675         * lib/unistd.in.h (dup3): If the function is already present,
46676         override it.
46677         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46678         * modules/dup3 (Makefile.am): Compile dup3.c always.
46679         Reported by Paolo Bonzini.
46680
46681 2009-08-23  Bruno Haible  <bruno@clisp.org>
46682
46683         Tolerate declared but missing pipe2 syscall.
46684         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46685         available.
46686         * lib/unistd.in.h (pipe2): If the function is already present,
46687         override it.
46688         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46689         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46690         Reported by Paolo Bonzini.
46691
46692 2009-08-23  Bruno Haible  <bruno@clisp.org>
46693
46694         * lib/pipe2.c (pipe2): Move #ifs inside function.
46695
46696 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46697
46698         quotearg: document limitations of quote_these_too
46699         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46700         those limitations are created.
46701         * lib/quotearg.h (set_char_quoting): Document that digits and
46702         letters that are special after backslash are not permitted.
46703         (quotearg_char): Cross-reference set_char_quoting documentation.
46704
46705 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46706
46707         quotearg: implement custom_quoting_style
46708         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46709         right_quote fields.
46710         (set_custom_quoting): New public function.
46711         (quotearg_buffer_restyled): Add left_quote and right_quote
46712         arguments, handle them very much like locale quoting, and update
46713         all uses.
46714         (quotearg_n_custom): New public function.
46715         (quotearg_n_custom_mem): New public function.
46716         (quotearg_custom): New public function.
46717         (quotearg_custom_mem): New public function.
46718         * lib/quotearg.h: Prototype and document new public functions.
46719         (enum quoting_style): For escape_quoting_style and
46720         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46721         ignored even though they're otherwise like c_quoting_style.
46722         Add custom_quoting_style member and document with comparison to
46723         clocale_quoting_style.
46724         * tests/test-quotearg.c (custom_quotes): New array.
46725         (custom_results): New array.
46726         (main): Extend to test custom quoting.
46727
46728 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46729
46730         quotearg: fix right quote escaping when it's in quote_these_too
46731         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46732         quote, be sure to prepend only one backslash.
46733         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46734         (main): Test it.
46735
46736 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46737
46738         quotearg-tests: test escaping of embedded locale quotes
46739         * tests/test-quotearg.c (struct result_strings): Add member for
46740         new input.
46741         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46742         (inputs): Add new input.
46743         (results_g): Add expected results.
46744         (flag_results): Likewise.
46745         (locale_results): Likewise.
46746         (compare_strings): Check those.
46747
46748 2009-08-23  Bruno Haible  <bruno@clisp.org>
46749
46750         Tests for module 'dup3'.
46751         * modules/dup3-tests: New file.
46752         * tests/test-dup3.c: New file.
46753
46754         New module 'dup3'.
46755         * lib/unistd.in.h (dup3): New declaration.
46756         * lib/dup3.c: New file.
46757         * m4/dup3.m4: New file.
46758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46759         HAVE_DUP3.
46760         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46761         * modules/dup3: New file.
46762         * doc/glibc-functions/dup3.texi: Mention the new module.
46763
46764 2009-08-23  Bruno Haible  <bruno@clisp.org>
46765
46766         Tweak the dup2 test.
46767         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46768         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46769         the test file is still empty. Fix argument order of lseek.
46770
46771 2009-08-23  Bruno Haible  <bruno@clisp.org>
46772
46773         Avoid test link errors when the modules getopt-gnu, gettext are used.
46774         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46776
46777 2009-08-23  Bruno Haible  <bruno@clisp.org>
46778
46779         Fix getdtablesize() on mingw.
46780         * lib/getdtablesize.c (getdtablesize): Implement differently.
46781         * lib/unistd.in.h (getdtablesize): Improve comment.
46782
46783 2009-08-23  Bruno Haible  <bruno@clisp.org>
46784
46785         New module 'mkostemp'.
46786         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46787         * lib/stdlib.in.h (mksotemp): New declaration.
46788         * lib/mkostemp.c: New file, from glibc with modifications.
46789         * lib/tempname.h (GT_FILE): Remove outdated comment.
46790         (gen_tempname): Add flags argument.
46791         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46792         (__GT_FILE): Map to 1.
46793         (small_open, large_open): Remove macros.
46794         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46795         * lib/mkstemp.c (mkstemp): Update.
46796         * lib/mkdtemp.c (mkdtemp): Likewise.
46797         * m4/mkostemp.m4: New file.
46798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46799         HAVE_MKOSTEMP.
46800         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46801         HAVE_MKOSTEMP.
46802         * modules/mkostemp: New file, based on modules/mkstemp.
46803         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46804         * NEWS: Mention the change.
46805
46806 2009-08-23  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46809         Reported by Eric Blake.
46810
46811 2009-08-23  Bruno Haible  <bruno@clisp.org>
46812
46813         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46814         Reported by Eric Blake.
46815
46816 2009-08-23  Bruno Haible  <bruno@clisp.org>
46817
46818         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46819         * modules/pipe2 (Depends-on): Likewise.
46820
46821 2009-08-23  Eric Blake  <ebb9@byu.net>
46822
46823         fcntl-h: add O_TTY_INIT support
46824         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46825         * tests/test-fcntl-h.c (o): Test it.
46826         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46827
46828         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46829         * modules/fcntl: Move <fcntl.h> header replacement...
46830         * modules/fcntl-h: ...to new name, so as not to collide with
46831         like-named function.
46832         * tests/test-fcntl.c: Rename...
46833         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46834         * modules/fcntl-tests: Rename...
46835         * modules/fcntl-h-tests: ...to this.  Update test file name.
46836         * modules/chdir-long (Depends-on): Update clients.
46837         * modules/chdir-safer (Depends-on): Likewise.
46838         * modules/fcntl-safer (Depends-on): Likewise.
46839         * modules/fts (Depends-on): Likewise.
46840         * modules/mkancesdirs (Depends-on): Likewise.
46841         * modules/mkdir-p (Depends-on): Likewise.
46842         * modules/open (Depends-on): Likewise.
46843         * modules/savewd (Depends-on): Likewise.
46844         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46846
46847 2009-08-22  Bruno Haible  <bruno@clisp.org>
46848
46849         * modules/binary-io (License): Relicense under LGPL.
46850         * modules/pipe2 (License): Likewise.
46851
46852 2009-08-22  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46855         return value.
46856         * lib/pipe-filter-gi.c (filter_init): Likewise.
46857         Reported by Eric Blake.
46858
46859 2009-08-22  Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46862         * modules/pipe (Depends-on): Add pipe2.
46863
46864 2009-08-22  Bruno Haible  <bruno@clisp.org>
46865
46866         Tests for module 'pipe2'.
46867         * modules/pipe2-tests: New file.
46868         * tests/test-pipe2.c: New file.
46869
46870         New module 'pipe2'.
46871         * lib/unistd.in.h (pipe2): New declaration.
46872         * lib/pipe2.c: New file.
46873         * m4/pipe2.m4: New file.
46874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46875         HAVE_PIPE2.
46876         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46877         * modules/pipe2: New file.
46878         * doc/glibc-functions/pipe2.texi: Mention the new module.
46879
46880 2009-08-22  Bruno Haible  <bruno@clisp.org>
46881
46882         Reference some new glibc functions.
46883         * doc/glibc-functions/accept4.texi: New file.
46884         * doc/glibc-functions/dup3.texi: New file.
46885         * doc/glibc-functions/mkostemp.texi: New file.
46886         * doc/glibc-functions/pipe2.texi: New file.
46887         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46888         (Glibc sys/socket.h): Refer to accept4.
46889         (Glibc unistd.h): Refer to dup3, pipe2.
46890         Reported by Eric Blake.
46891
46892 2009-08-22  Jim Meyering  <meyering@redhat.com>
46893             Bruno Haible  <bruno@clisp.org>
46894
46895         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46896         This makes it so packages using automake-1.11's silent-rules option
46897         can print e.g., a single "GEN    configmake.h" line, rather than
46898         the 30+ statements that perform the job.  If you want to see the
46899         actual commands, you can still run "make V=1".
46900         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46901         so that make output is abbreviated when those variables are defined
46902         appropriately.
46903         * modules/argz: Likewise.
46904         * modules/arpa_inet: Likewise.
46905         * modules/byteswap: Likewise.
46906         * modules/configmake: Likewise.
46907         * modules/dirent: Likewise.
46908         * modules/errno: Likewise.
46909         * modules/fcntl: Likewise.
46910         * modules/float: Likewise.
46911         * modules/fnmatch: Likewise.
46912         * modules/getopt-posix: Likewise.
46913         * modules/glob: Likewise.
46914         * modules/iconv_open: Likewise.
46915         * modules/inttypes: Likewise.
46916         * modules/localcharset: Likewise.
46917         * modules/locale: Likewise.
46918         * modules/math: Likewise.
46919         * modules/netdb: Likewise.
46920         * modules/netinet_in: Likewise.
46921         * modules/poll: Likewise.
46922         * modules/posix_spawnp-tests: Likewise.
46923         * modules/sched: Likewise.
46924         * modules/search: Likewise.
46925         * modules/selinux-h: Likewise.
46926         * modules/signal: Likewise.
46927         * modules/spawn: Likewise.
46928         * modules/stdarg: Likewise.
46929         * modules/stdbool: Likewise.
46930         * modules/stddef: Likewise.
46931         * modules/stdint: Likewise.
46932         * modules/stdio: Likewise.
46933         * modules/stdlib: Likewise.
46934         * modules/string: Likewise.
46935         * modules/strings: Likewise.
46936         * modules/sys_file: Likewise.
46937         * modules/sys_ioctl: Likewise.
46938         * modules/sys_select: Likewise.
46939         * modules/sys_socket: Likewise.
46940         * modules/sys_stat: Likewise.
46941         * modules/sys_time: Likewise.
46942         * modules/sys_times: Likewise.
46943         * modules/sys_utsname: Likewise.
46944         * modules/sys_wait: Likewise.
46945         * modules/sysexits: Likewise.
46946         * modules/time: Likewise.
46947         * modules/unistd: Likewise.
46948         * modules/wchar: Likewise.
46949         * modules/wctype: Likewise.
46950
46951 2009-08-22  Jim Meyering  <meyering@redhat.com>
46952
46953         announce-gen: detect write failure
46954         * build-aux/announce-gen: Add Coda at end.
46955         Remove equivalent-but-more-verbose block at top.
46956
46957 2009-08-19  Akim Demaille  <demaille@gostai.com>
46958
46959         bootstrap: --help to stdout.
46960         * bootstrap (usage): Don't send --help to stderr.
46961         Use a here doc instead of a long string.
46962
46963 2009-08-21  Eric Blake  <ebb9@byu.net>
46964
46965         test-popen-safer: split from test-popen
46966         * tests/test-popen.c (main): Move...
46967         * tests/test-popen.h: ...into new file.
46968         * tests/test-popen-safer2.c: New file.
46969         * modules/popen-tests (Files): Add test-popen.h.
46970         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46971         Suggested by Bruno Haible.
46972
46973         test-fcntl-safer: split from test-open
46974         * tests/test-open.c (main): Move...
46975         * tests/test-open.h: ...into new file.
46976         * tests/test-fcntl-safer.c: New file.
46977         * modules/open-tests (Files): Add test-open.h.
46978         * modules/fcntl-safer-tests: New file.
46979         Suggested by Bruno Haible.
46980
46981         test-fopen-safer: split from test-fopen
46982         * tests/test-fopen.c (main): Move...
46983         * tests/test-fopen.h: ...into new file.
46984         * tests/test-fopen-safer.c: New file.
46985         * modules/fopen-tests (Files): Add test-fopen.h.
46986         * modules/fopen-safer-tests: New file.
46987         Suggested by Bruno Haible.
46988
46989 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46990
46991         popen-safer: test O_CLOEXEC at run-time.
46992         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46993
46994 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46995
46996         fcntl: move more flags to the header
46997         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46998         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46999         * lib/fcntl.in.h: Do both things here.
47000
47001 2009-08-21  Jim Meyering  <meyering@redhat.com>
47002
47003         consistently remove $@-t before redirecting to it
47004         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47005         * modules/alloca-opt: Likewise.
47006         * modules/byteswap: Likewise.
47007         * modules/fnmatch: Likewise.
47008         * modules/getopt-posix: Likewise.
47009         * modules/glob: Likewise.
47010         * modules/poll: Likewise.
47011         * modules/posix_spawnp-tests: Likewise.
47012         * modules/sys_socket: Likewise.
47013         * modules/sysexits: Likewise.
47014
47015 2009-08-21  Eric Blake  <ebb9@byu.net>
47016
47017         popen: simplify access to original popen
47018         * lib/popen.c (rpl_popen): No need to worry about popen being a
47019         macro.
47020         Reported by Bruno Haible.
47021
47022 2009-08-20  Eric Blake  <ebb9@byu.net>
47023
47024         build: avoid some compiler warnings
47025         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47026         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47027         type.
47028         (new_exclude_segment, excluded_file_pattern_p)
47029         (excluded_file_name_p): Reduce scope.
47030         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47031         old-style declaration.
47032
47033 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47034
47035         * tests/test-exclude1.sh: Handle Windows EOL.
47036         * tests/test-exclude2.sh: Likewise.
47037         * tests/test-exclude3.sh: Likewise.
47038         * tests/test-exclude4.sh: Likewise.
47039         * tests/test-exclude5.sh: Likewise.
47040         * tests/test-exclude6.sh: Likewise.
47041         * tests/test-exclude7.sh: Likewise.
47042
47043 2009-08-19  Akim Demaille  <demaille@gostai.com>
47044
47045         bootstrap: find sha1sum when named gsha1sum.
47046         * bootstrap (find_tool): New.
47047         ($SHA1SUM): New.
47048         Use it.
47049
47050 2009-08-20  Jim Meyering  <meyering@redhat.com>
47051
47052         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47053         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47054         expression that converts "." in a file name to "\." in the resulting
47055         regexp.  Start with a dummy statement, so that prior shell variable
47056         definitions are expanded portably.  Reported by Simon Josefsson.
47057
47058 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47059
47060         Fix polling for writeability of a screen buffer.
47061         * lib/poll.c: Distinguish input and screen buffers for the
47062         Win32 implementation.
47063         * lib/select.c: Likewise.
47064
47065 2009-08-19  Eric Blake  <ebb9@byu.net>
47066
47067         popen-safer: prevent popen from clobbering std descriptors
47068         * modules/popen-safer: New file.
47069         * lib/popen-safer.c: Likewise.
47070         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47071         * lib/stdio--.h (popen): Provide override.
47072         * lib/stdio-safer.h (popen_safer): Provide declaration.
47073         * tests/test-popen.c (includes): Partially test this.
47074         * modules/popen-safer-tests: New file, for more tests.
47075         * tests/test-popen-safer.c: Likewise.
47076         * MODULES.html.sh (file stream based Input/Output): Mention it.
47077
47078         tests: test some of the *-safer modules
47079         * modules/fopen-safer (Depends-on): Add fopen.
47080         * modules/fcntl-safer (Depends-on): Add fcntl.
47081         * modules/stdlib-safer (Depends-on): Add stdlib.
47082         (configure.ac): Set indicator.
47083         * modules/unistd-safer (configure.ac): Likewise.
47084         * modules/tmpfile-safer (configure.ac): Likewise.
47085         (Depends-on): Add tmpfile.
47086         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47087         active.
47088         * tests/test-fopen.c (includes): Test safer versions when they are
47089         in use.
47090         * tests/test-open.c (includes): Likewise.
47091
47092         popen: fix cygwin 1.5 bug when stdin closed
47093         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47094         * modules/popen: New file.
47095         * modules/popen-tests: Likewise.
47096         * tests/test-popen.c: Likewise.
47097         * m4/popen.m4: Likewise.
47098         * lib/popen.c: Likewise.
47099         * lib/stdio.in.h (popen): New declaration.
47100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47101         * modules/stdio (Makefile.am): Likewise.
47102         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47103
47104 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47105
47106         maint.mk: give full control over update-copyright exclusions
47107         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47108         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47109         (update-copyright): Don't force inclusion of top-level
47110         ChangeLog.  Don't force exclusion of all COPYING files, but make
47111         them the default exclusion instead.
47112
47113 2009-08-16  Bruno Haible  <bruno@clisp.org>
47114
47115         Fix test failures on Solaris 10.
47116         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47117         tests when Solaris iconv() is used.
47118         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47119         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47120         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47121         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47123
47124 2009-08-16  Bruno Haible  <bruno@clisp.org>
47125
47126         Fix test failures on Solaris 10.
47127         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47128         'tr' program and pass it as first argument.
47129         * tests/test-pipe-filter-gi1.sh: Likewise.
47130         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47131         program as first argument.
47132         * tests/test-pipe-filter-gi1.c (main): Likewise.
47133
47134 2009-08-16  Eric Blake  <ebb9@byu.net>
47135
47136         fpurge: fix previous commits
47137         * modules/fpurge (Makefile.am): Make replacement conditional,
47138         partially reverting 2007-04-29 change; missed in previous
47139         attempt.
47140         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47141         is missing.
47142
47143 2009-08-16  Bruno Haible  <bruno@clisp.org>
47144
47145         Clarify fpurge's effect on the file position.
47146         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47147         * tests/test-fpurge.c (main): Make a second pass for checking the file
47148         position.
47149
47150 2009-08-16  Bruno Haible  <bruno@clisp.org>
47151
47152         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47153         declaration of fpurge is missing.
47154         * tests/test-fpurge.c (main): Check that the file has not more contents
47155         than expected. Close the file before removing it.
47156
47157 2009-08-15  Eric Blake  <ebb9@byu.net>
47158
47159         fpurge: don't wrap working cygwin implementation
47160         * lib/fpurge.c (fpurge): Fix comment typo.
47161         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47162         1.7 to avoid replacement.
47163         * tests/test-fpurge.c (main): Enhance test.
47164
47165 2009-08-15  Eric Blake  <ebb9@byu.net>
47166         and Jim Meyering  <meyering@redhat.com>
47167
47168         test-update-copyright: skip if perl is insufficient
47169         * tests/test-update-copyright.sh: Failure to run maintainer tool
47170         should not cause testsuite failure on cygwin 1.5.
47171
47172 2009-08-14  Eric Blake  <ebb9@byu.net>
47173
47174         doc: mention more functions added in cygwin 1.7.0
47175         * doc/posix-headers/limits.texi (limits.h): Update for recent
47176         cygwin additions.
47177         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47178         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47179         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47180         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47181         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47182
47183 2009-08-14  Eric Blake  <ebb9@byu.net>
47184
47185         maint.mk: simplify update-copyright rule
47186         * top/maint.mk (update-copyright-local): Delete, and document how
47187         to do it in cfg.mk instead.
47188         (update-copyright-exclude-regexp): Delete, and document how to do
47189         it in .x-update-copyright instead.
47190         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47191         exclude ChangeLog.
47192
47193 2009-08-14  Bruno Haible  <bruno@clisp.org>
47194
47195         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47196
47197 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47198
47199         maint.mk: support update-copyright-env
47200         * top/maint.mk (update-copyright-env): Define place-holder.
47201         (update-copyright): Expand $(update-copyright-env) before
47202         invoking update-copyright.
47203
47204 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47205
47206         update-copyright: implement forced reformatting
47207         * build-aux/update-copyright: Implement and document
47208         UPDATE_COPYRIGHT_FORCE.
47209         * tests/test-update-copyright.sh: Test it.
47210
47211 2009-08-14  Eric Blake  <ebb9@byu.net>
47212         and Bruno Haible  <bruno@clisp.org>
47213
47214         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47215         * tests/test-locale.c: Revert previous patch related to NULL.
47216         * tests/test-stdio.c: Likewise.
47217         * tests/test-stdlib.c: Likewise.
47218         * tests/test-string.c: Likewise.
47219         * tests/test-unistd.c: Likewise.
47220         * modules/time-tests (Depends-on): Add verify.
47221         * modules/wchar-tests (Depends-on): Likewise.
47222         * tests/test-time.c: Test for NULL compliance.
47223         * tests/test-wchar.c: Likewise.
47224         * modules/locale (Depends-on): Add stddef.
47225         * modules/stdio (Depends-on): Likewise.
47226         * modules/stdlib (Depends-on): Likewise.
47227         * modules/string (Depends-on): Likewise.
47228         * modules/time (Depends-on): Likewise.
47229         * modules/unistd (Depends-on): Likewise.
47230         * modules/wchar (Depends-on): Likewise.
47231         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47232         * lib/stdlib.in.h (includes): Likewise.
47233         * lib/string.in.h (includes): Likewise.
47234         * lib/time.in.h (includes): Likewise.
47235         * lib/unistd.in.h (includes): Likewise.
47236         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47237         replaced.
47238         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47239         * m4/stddef_h.m4: New file.
47240         * modules/stddef: Likewise.
47241         * lib/stddef.in.h: Likewise.
47242         * modules/stddef-tests: Likewise.
47243         * tests/test-stddef.c: Likewise.
47244         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47245         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47246         * doc/posix-headers/locale.texi (locale.h): Likewise.
47247         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47248         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47249         * doc/posix-headers/string.texi (string.h): Likewise.
47250         * doc/posix-headers/time.texi (time.h): Likewise.
47251         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47252         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47253
47254 2009-08-14  Eric Blake  <ebb9@byu.net>
47255
47256         doc: improve git diff of texinfo files
47257         * .gitattributes: Add rule for *.texi files, with hint on how to
47258         use it.
47259         Copied from m4, and based on a report by Bruno Haible.
47260
47261 2009-08-14  Bruno Haible  <bruno@clisp.org>
47262
47263         Disable multithread support by default on Cygwin 1.5.x for real.
47264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47265
47266 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47267
47268         update-copyright: much ado about intervals
47269         * build-aux/update-copyright: Implement and document
47270         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47271         of copyright year intervals.
47272         Also, document UPDATE_COPYRIGHT_YEAR.
47273         * tests/test-update-copyright.sh: Test it.
47274
47275         update-copyright: convert 2-digit to 4-digit years
47276         * build-aux/update-copyright: Implement and document.
47277         * tests/test-update-copyright.sh: Update.
47278
47279 2009-08-14  Jim Meyering  <meyering@redhat.com>
47280
47281         test-exclude: avoid coreutils "make check" failure
47282         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47283         just as in test-argmatch.c.
47284
47285 2009-08-13  Eric Blake  <ebb9@byu.net>
47286
47287         test-dup2: fix bad assumption
47288         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47289         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47290
47291         test-version-etc: fix CRLF portability issue
47292         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47293         recognize \r.
47294         * tests/test-argp-version-etc-1.sh: Likewise.
47295
47296         getopt: update client modules
47297         * modules/argp (Depends-on): Use getopt-gnu.
47298         * modules/git-merge-changelog (Depends-on): Likewise.
47299         * modules/long-options (Depends-on): Likewise.
47300         * modules/xstrtol (Depends-on): Likewise.
47301
47302 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47303
47304         * tests/test-version-etc.sh: Don't fail on different
47305         project/version.  Don't fail on CRLF differences.  Rewrite to use
47306         multiple -e instead of multiple sed forks, suggested by Eric Blake
47307         <ebb9@byu.net>.
47308         * tests/test-argp-version-etc-1.sh: Likewise.
47309
47310 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47311
47312         * tests/test-version-etc.sh: Don't fail on different
47313         project/version.
47314
47315 2009-08-12  Bruno Haible  <bruno@clisp.org>
47316
47317         Tests for modules 'getopt-posix', 'getopt-gnu'.
47318         * modules/getopt-posix-tests: New file.
47319         * tests/test-getopt.c: New file.
47320         * tests/test-getopt.h: New file.
47321         * tests/test-getopt_long.h: New file.
47322
47323         New modules 'getopt-posix', 'getopt-gnu'.
47324         * modules/getopt-gnu: New file, renamed from modules/getopt.
47325         * modules/getopt-posix: New file.
47326         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47327         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47328         (gl_GETOPT): Remove macro.
47329         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47330         Disable the test against BSD systems that declare optreset. Test
47331         against mingw bug. Test against lack of support of optional arguments
47332         on many platforms.
47333         * doc/glibc-headers/getopt.texi: Update module name and list of
47334         relevant platforms.
47335         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47336         'getopt-gnu' and more portability problems.
47337         * NEWS: Mention the changes.
47338
47339 2009-08-12  Bruno Haible  <bruno@clisp.org>
47340
47341         Ensure that optarg etc. get declared by <unistd.h>.
47342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47343         AC_USE_SYSTEM_EXTENSIONS.
47344         * modules/getopt (Depends-on): Add 'extensions'.
47345
47346 2009-08-12  Bruno Haible  <bruno@clisp.org>
47347
47348         Avoid test link errors.
47349         * modules/pipe-filter-ii-tests (Makefile.am): Define
47350         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47351         * modules/pipe-filter-gi-tests (Makefile.am): Define
47352         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47354
47355 2009-08-12  Bruno Haible  <bruno@clisp.org>
47356
47357         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47358         gl_GETOPT_SUBSTITUTE before.
47359         (gl_GETOPT): Use it.
47360         * m4/argp.m4 (gl_ARGP): Update.
47361         Reported by Sergey Poznyakoff.
47362
47363         * m4/getopt.m4: Reorder macros.
47364         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47365         (gl_GETOPT_SUBSTITUTE): Remove macro.
47366
47367 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47368
47369         Minor improvement in gitlog-to-changelog
47370
47371         * build-aux/gitlog-to-changelog: New option `--format' makes
47372         output format string configurable.
47373
47374 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47375
47376         Optimize exclude: use hash tables for non-wildcard patterns.
47377
47378         * lib/exclude.c: Include hash.h and mbuiter.h
47379         (struct exclude_pattern, exclude_segment): New data types.
47380         (struct exclude): Rewrite.
47381         (fnmatch_pattern_has_wildcards): New function.
47382         (new_exclude_segment, free_exclude_segment): New functions.
47383         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47384         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47385         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47386         * modules/exclude: Depend on hash and mbuiter.
47387
47388         * modules/exclude-tests: New file.
47389         * tests/test-exclude.c: New file.
47390         * tests/test-exclude1.sh: New file.
47391         * tests/test-exclude2.sh: New file.
47392         * tests/test-exclude3.sh: New file.
47393         * tests/test-exclude4.sh: New file.
47394         * tests/test-exclude5.sh: New file.
47395         * tests/test-exclude6.sh: New file.
47396         * tests/test-exclude7.sh: New file.
47397
47398 2009-08-12  Bruno Haible  <bruno@clisp.org>
47399
47400         Ensure that getopt() gets declared by <unistd.h>.
47401         * lib/unistd.in.h: Conditionally include getopt.h.
47402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47403         Set GNULIB_UNISTD_H_GETOPT.
47404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47405         GNULIB_UNISTD_H_GETOPT.
47406         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47407
47408 2009-08-12  Bruno Haible  <bruno@clisp.org>
47409
47410         Clarify logic.
47411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47412         gl_replace_getopt instead of GETOPT_H.
47413
47414 2009-08-12  Bruno Haible  <bruno@clisp.org>
47415
47416         * m4/getopt.m4: Add comments.
47417
47418 2009-08-12  Bruno Haible  <bruno@clisp.org>
47419
47420         Disable multithread support by default on Cygwin 1.5.x.
47421         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47422         set gl_use_threads=no if not specified otherwise.
47423
47424 2009-08-11  Bruno Haible  <bruno@clisp.org>
47425
47426         Avoid compilation error on NetBSD 5.0.
47427         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47428         * tests/test-stdio.c: Likewise.
47429         * tests/test-stdlib.c: Likewise.
47430         * tests/test-string.c: Likewise.
47431         * tests/test-unistd.c: Likewise.
47432         Reported by Greg Troxel <gdt@ir.bbn.com>
47433         at <https://savannah.gnu.org/support/?106973>.
47434
47435 2009-08-11  Bruno Haible  <bruno@clisp.org>
47436
47437         * modules/dup2-tests (Depends-on): Remove close.
47438
47439         Undo 2009-07-19 commit.
47440         * modules/acl-tests (Depends-on): Remove close.
47441         * modules/binary-io-tests (Depends-on): Likewise.
47442         * modules/closein-tests (Depends-on): Likewise.
47443         * modules/flock-tests (Depends-on): Likewise.
47444         * modules/fsync-tests (Depends-on): Likewise.
47445         * modules/lseek-tests (Depends-on): Likewise.
47446         * modules/pipe-tests (Depends-on): Likewise.
47447         * modules/posix_spawn-tests (Depends-on): Likewise.
47448         * modules/posix_spawnp-tests (Depends-on): Likewise.
47449         * modules/stat-time-tests (Depends-on): Likewise.
47450         * modules/yesno-tests (Depends-on): Likewise.
47451
47452 2009-08-10  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47455
47456 2009-08-10  Bruno Haible  <bruno@clisp.org>
47457
47458         Fix a gcc warning.
47459         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47460
47461 2009-08-10  Bruno Haible  <bruno@clisp.org>
47462
47463         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47464         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47465         not only the first time.
47466         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47467         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47468         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47469         is 1, not only the the first time.
47470
47471 2009-08-10  Bruno Haible  <bruno@clisp.org>
47472
47473         Make it possible to use module 'gethostname' without module 'close'.
47474         * lib/unistd.in.h (close): Evoke a link error only if
47475         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47477         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47478         * modules/unistd (Makefile.am): Substitute
47479         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47480         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47481         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47483         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47484         * modules/sys_ioctl (Makefile.am): Substitute
47485         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47486         * modules/socket (configure.ac): On native Windows, set
47487         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47489         Reported by Sam Steingold <sds@gnu.org>.
47490
47491 2009-08-10  Bruno Haible  <bruno@clisp.org>
47492
47493         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47494         * modules/ioctl (configure.ac): Likewise.
47495
47496 2009-08-10  Bruno Haible  <bruno@clisp.org>
47497
47498         Avoid collision between gnulib wrapper and libintl wrapper.
47499         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47500         already defined in intl/printf.c.
47501         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47502         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47503
47504 2009-08-09  Bruno Haible  <bruno@clisp.org>
47505
47506         Make <sys/select.h> really self-contained, also on Solaris 10.
47507         * lib/sys_select.in.h: Include <string.h>.
47508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47509         Solaris 10 problem.
47510         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47511         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47512         Reported by Jim Meyering.
47513
47514 2009-08-09  Bruno Haible  <bruno@clisp.org>
47515
47516         Avoid warnings from 'aclocal' that are due to a use of macro name
47517         AM_XGETTEXT_OPTION that is not defined in automake.
47518         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47519         automake.
47520         * modules/error (configure.ac): Likewise.
47521         * modules/propername (configure.ac): Likewise.
47522         * modules/vasprintf (configure.ac): Likewise.
47523         * modules/verror (configure.ac): Likewise.
47524         * modules/xprintf (configure.ac): Likewise.
47525         * modules/xvasprintf (configure.ac): Likewise.
47526
47527 2009-08-08  Bruno Haible  <bruno@clisp.org>
47528
47529         Avoid compilation error in C++ mode.
47530         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47531         Reported by Sam Steingold <sds@gnu.org>.
47532
47533 2009-08-08  Bruno Haible  <bruno@clisp.org>
47534
47535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47536         for the various Unix platforms.
47537         * doc/posix-headers/limits.texi: Update platforms list regarding
47538         HOST_NAME_MAX.
47539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47540
47541 2009-08-07  Jim Meyering  <meyering@redhat.com>
47542
47543         selinux-at: fix typo in a comment
47544         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47545         Spotted by Paolo Bonzini.
47546
47547         selinux-at: remove redundant m4 code, add documentation
47548         * modules/selinux-at (configure.ac): Remove redundant code.
47549         LIB_SELINUX is already set via the dependent module, selinux-h.
47550         (Include): Add quotes around selinux-at.h.
47551         * lib/selinux-at.h: Add documentation.
47552         Reported by Bruno Haible in
47553         http://marc.info/?l=gnulib-bug&m=124958988300749
47554
47555 2009-08-07  Bruno Haible  <bruno@clisp.org>
47556
47557         Avoid link error on MacOS X 10.3 and 10.4.
47558         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47559         on non-ELF systems.
47560         * lib/argp-pv.c (argp_program_version): Likewise.
47561         Reported by Simon Josefsson.
47562
47563 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47564
47565         * tests/test-version-etc.sh: Use $EXEEXT.
47566
47567 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47568
47569         update-copyright: update documentation to point to maint.mk
47570         * build-aux/update-copyright: Here.
47571
47572 2009-08-06  Jim Meyering  <meyering@redhat.com>
47573
47574         maint.mk: support update-copyright-local
47575         * top/maint.mk (update-copyright-local): Define place-holder.
47576         (update-copyright): Depend on $(update-copyright-local).
47577
47578 2009-08-06  Jim Meyering  <meyering@redhat.com>
47579
47580         selinux-at: new module
47581         Initially written for coreutils, this module will soon be
47582         used by findutils, too.
47583         * MODULES.html.sh [Misc]: Add selinux-at.
47584         * lib/selinux-at.h: New file, from coreutils.
47585         * lib/selinux-at.c: Likewise.
47586         * modules/selinux-at: Likewise.
47587         (License): Change from LGPL to GPL, since it depends
47588         on the GPL'd openat module.
47589
47590         doc: update README
47591         * README: Remove references to cogito.
47592         Remove cvs-repo-updating instructions from 2007.
47593         Don't imply that CVS is better if you have limited disk space.
47594
47595 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47596
47597         update-copyright: support C-style comments
47598         * build-aux/update-copyright: Implement and document.
47599         * tests/test-update-copyright.sh: Test.
47600
47601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47602
47603         update-copyright: support omitted "(C)"
47604         * build-aux/update-copyright: Implement and document.  Also,
47605         allow variable whitespace before "(C)".
47606         * tests/test-update-copyright.sh: Test.
47607
47608 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47609
47610         update-copyright: don't trip on non-FSF copyright statements
47611         * build-aux/update-copyright: Fix so that the first correctly
47612         formatted FSF copyright statement is recognized no matter what
47613         appears before it.  Update documentation.
47614         * tests/test-update-copyright.sh: Test that.
47615
47616 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47617
47618         update-copyright: clean up code a little
47619         * build-aux/update-copyright: Append "_re" to the name of any
47620         variable holding a regular expression.
47621         Replace "old" and "new" with "stmt" in variable names.
47622         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47623         handled correctly.
47624         Format code more consistently.
47625
47626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47627
47628         update-copyright-tests: improve portability
47629         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47630         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47631
47632 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47633
47634         update-copyright: support @copyright{} and &copy;
47635         * build-aux/update-copyright: Implement and document.
47636         * tests/test-update-copyright.sh: Test.
47637
47638 2009-08-04  Jim Meyering  <meyering@redhat.com>
47639
47640         update-copyright-tests: correctly test EOL=\r\n handling
47641         * tests/test-update-copyright.sh: Put \r at the end of some lines
47642         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47643
47644         maint.mk: make update-copyright exclusion list more configurable
47645         * top/maint.mk (update-copyright): Default to excluding COPYING,
47646         but allow an override, in case someone does want to update that file.
47647
47648         maint.mk: don't update copyright date in COPYING
47649         * top/maint.mk (update-copyright): Exclude COPYING.
47650
47651         maint.mk: add a copyright-updating rule
47652         * top/maint.mk (update-copyright): New rule.
47653         Derived from coreutils/Makefile.am.
47654
47655         update-copyright: rename some variables
47656         * build-aux/update-copyright: Rename a few variables for clarity.
47657         Tweak syntax.  List Joel E. Denny as coauthor.
47658
47659 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47660
47661         update-copyright: fix bug for 2-digit last year and add tests
47662         * build-aux/update-copyright: Fix bug.
47663         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47664         specified.
47665         * modules/update-copyright-tests: New
47666         * tests/test-update-copyright.sh: New.
47667
47668 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47669
47670         update-copyright: handle leading tabs in line prefix
47671         * build-aux/update-copyright: Count leading tabs as 8 spaces
47672         when computing margin.  This helps with the formatting of
47673         ChangeLogs, for example.
47674         Fix documentation a little.
47675
47676 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47677
47678         update-copyright: support EOL=\r\n
47679         * build-aux/update-copyright: Implement that.
47680
47681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47682
47683         update-copyright: automatically format copyright statements
47684         * build-aux/update-copyright: Implement that.
47685         Also, be a little more predictable and safer by always failing
47686         when the full copyright format is not perfectly recognized as an
47687         unbroken whole.  Discussed at
47688         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47689         Rewrite documentation.
47690
47691 2009-08-03  Bruno Haible  <bruno@clisp.org>
47692
47693         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47694
47695 2009-08-02  Bruno Haible  <bruno@clisp.org>
47696
47697         Tests for module 'uname'.
47698         * modules/uname-tests: New file.
47699         * tests/test-uname.c: New file.
47700
47701         New module 'uname'.
47702         * lib/uname.c: New file.
47703         * m4/uname.m4: New file.
47704         * modules/uname: New file.
47705         * doc/posix-functions/uname.texi: Mention the new module.
47706
47707 2009-08-02  Bruno Haible  <bruno@clisp.org>
47708
47709         Tests for module 'sys_utsname'.
47710         * modules/sys_utsname-tests: New file.
47711         * tests/test-sys_utsname.c: New file.
47712
47713         New module 'sys_utsname'.
47714         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47715         * m4/sys_utsname_h.m4: New file.
47716         * modules/sys_utsname: New file.
47717         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47718
47719 2009-08-02  Bruno Haible  <bruno@clisp.org>
47720
47721         Implicitly initialize the sockets library.
47722         * lib/gethostname.c: Include sockets.h.
47723         (rpl_gethostname): Invoke gl_sockets_startup.
47724         * lib/socket.c: Include sockets.h.
47725         (rpl_socket): Invoke gl_sockets_startup.
47726         * modules/gethostname (Depends-on): Add sockets.
47727         * modules/socket (Depends-on): Likewise.
47728         * tests/test-poll.c: Don't include sockets.h.
47729         (main): Don't invoke gl_sockets_startup.
47730         * tests/test-select.c: Don't include sockets.h.
47731         (main): Don't invoke gl_sockets_startup.
47732
47733 2009-08-02  Bruno Haible  <bruno@clisp.org>
47734
47735         Allow multiple calls to gl_sockets_startup.
47736         * lib/sockets.c (initialized_sockets_version): New variable.
47737         (gl_sockets_startup): Do nothing if already called for this or a higher
47738         version.
47739         (gl_sockets_cleanup): Reset initialized_sockets_version.
47740
47741 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47742
47743         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47744         different project/version.
47745
47746 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47747             Bruno Haible  <bruno@clisp.org>
47748
47749         Tests for module 'pipe-filter-gi'.
47750         * modules/pipe-filter-gi-tests: New file.
47751         * tests/test-pipe-filter-gi1.sh: New file.
47752         * tests/test-pipe-filter-gi1.c: New file.
47753         * tests/test-pipe-filter-gi2.sh: New file.
47754         * tests/test-pipe-filter-gi2-main.c: New file.
47755         * tests/test-pipe-filter-gi2-child.c: New file.
47756
47757         New module 'pipe-filter-gi'.
47758         * lib/pipe-filter-gi.c: New file.
47759         * modules/pipe-filter-gi: New file.
47760
47761 2009-08-02  Bruno Haible  <bruno@clisp.org>
47762             Paolo Bonzini  <bonzini@gnu.org>
47763
47764         Tests for module 'pipe-filter-ii'.
47765         * modules/pipe-filter-ii-tests: New file.
47766         * tests/test-pipe-filter-ii1.sh: New file.
47767         * tests/test-pipe-filter-ii1.c: New file.
47768         * tests/test-pipe-filter-ii2.sh: New file.
47769         * tests/test-pipe-filter-ii2-main.c: New file.
47770         * tests/test-pipe-filter-ii2-child.c: New file.
47771
47772         New module 'pipe-filter-ii'.
47773         * lib/pipe-filter.h: New file.
47774         * lib/pipe-filter-ii.c: New file.
47775         * lib/pipe-filter-aux.h: New file.
47776         * modules/pipe-filter-ii: New file.
47777
47778 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47779
47780         * lib/gc-libgcrypt.c: Change copyright to FSF.
47781         * lib/gc-gnulib.c: Likewise.
47782
47783 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47784
47785         * lib/gethostname.c: Include limits.h.
47786
47787 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47788             Bruno Haible  <bruno@clisp.org>
47789
47790         Ensure HOST_NAME_MAX as part of the gethostname module.
47791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47792         define also HOST_NAME_MAX.
47793         * tests/test-gethostname.c: Include <limits.h>.
47794         (main): Check also HOST_NAME_MAX.
47795         * doc/posix-headers/limits.texi: Document the mingw problem.
47796
47797 2009-08-02  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47800         Add comments.
47801
47802 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47803
47804         * lib/gethostname.c: Add Windows wrapper.
47805         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47806         * modules/gethostname: Depend on sys_socket & errno, for also
47807         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47808         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47809
47810 2009-07-31  Jim Meyering  <meyering@redhat.com>
47811
47812         getloadavg: fix symbol name in comment
47813         * lib/getloadavg.c: Correct a typo I introduced when adding
47814         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47815         Matt Kraai spotted the problem.
47816
47817 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47818
47819         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47820         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47821         code also if ! defined N_NAME_POINTER.
47822         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47823         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47824         but the n_name member is a 12-byte array.
47825
47826 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47827
47828         update-copyright: generalize comment handling
47829         * build-aux/update-copyright: Handle copyright statements
47830         within more comment styles.
47831         Document usage.
47832         Report any file with an external copyright holder or parse failure.
47833
47834 2009-07-29  Jim Meyering  <meyering@redhat.com>
47835
47836         mktime: correct setting of REPLACE_MKTIME
47837         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47838
47839         update-copyright: new module
47840         * modules/update-copyright: New file.
47841         * build-aux/update-copyright: New file.
47842         * MODULES.html.sh (maint+release support): Add update-copyright.
47843
47844 2009-07-27  Bruno Haible  <bruno@clisp.org>
47845
47846         Fix compilation error when <ctime> is used and mktime is replaced.
47847         * lib/time.in.h (mktime): New declaration.
47848         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47849         REPLACE_MKTIME instead of defining mktime in config.h.
47850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47851         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47852         Reported by Ross McFarland <rwmcfa1@neces.com>.
47853
47854 2009-07-27  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47857         Reported by Matt Kraai <mkraai@beckman.com>.
47858
47859 2009-07-25  Jim Meyering  <meyering@redhat.com>
47860
47861         maint.mk: avoid warnings about missing files
47862         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47863         diagnostic when .prev-version does not exist.
47864         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47865         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47866         nonexistent cfg.mk.
47867         Suggestions from Simon Josefsson.
47868
47869 2009-07-25  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47872         defined as macros. Needed on QNX 6.4.1.
47873         Reported by Matt Kraai <mkraai@beckman.com>.
47874
47875 2009-07-23  Jim Meyering  <meyering@redhat.com>
47876
47877         maint.mk: invoke "make dist" with a working value of XZ_OPT
47878         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47879
47880 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47881
47882         Make fseeko.c compile on QNX.
47883         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47884
47885 2009-07-22  Peter Simons  <simons@cryp.to>
47886
47887         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47888         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47889         * lib/md4.h: Likewise.
47890         * lib/md5.h: Likewise.
47891         * lib/sha1.h: Likewise.
47892         * lib/sha256.h: Likewise.
47893         * lib/sha512.h: Likewise.
47894
47895         tests-sha1: don't assign literal string to 'char *' variable
47896         * tests/test-sha1.c (main): Declare locals with "const" to match
47897         attributes of the right hand side.
47898
47899 2009-07-21  Eric Blake  <ebb9@byu.net>
47900
47901         dup2: fix more mingw problems
47902         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47903         fd to itself.
47904         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47905         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47906         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47907         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47908         care of mingw bugs.
47909
47910 2009-07-21  Jim Meyering  <meyering@redhat.com>
47911
47912         vc-list-files: avoid failure when /bin/sh is dash
47913         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47914         On some Debian based systems, /bin/sh is a symlink to dash, and running
47915         this command would omit the "/" following each 'tests' prefix:
47916           dash -x build-aux/vc-list-files -C . tests
47917         That is because bash and dash work differently:
47918           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47919           bash ok
47920           dash odd
47921
47922 2009-07-21  Eric Blake  <ebb9@byu.net>
47923
47924         dup2-tests: test previous patch
47925         * modules/dup2-tests: New file.
47926         * tests/test-dup2.c: Likewise.
47927         * tests/test-open.c (main): Avoid unspecified behavior.
47928         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47929         test.
47930
47931         dup2: work around mingw and cygwin 1.5 bug
47932         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47934         * modules/unistd (Makefile.am): Substitute it.
47935         * lib/unistd.in.h (dup2): Declare the replacement.
47936         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47937         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47938         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47939         * modules/execute (Depends-on): Add dup2.
47940         * modules/fseterr (Depends-on): Likewise.
47941         * modules/pipe (Depends-on): Likewise.
47942         * modules/posix_spawn-internal (Depends-on): Likewise.
47943
47944 2009-07-21  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/.gitattributes: New file.
47947
47948 2009-07-20  Bruno Haible  <bruno@clisp.org>
47949
47950         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47951         (main): Use it.
47952
47953 2009-07-20  Eric Blake  <ebb9@byu.net>
47954
47955         test-pipe: make a bit more robust.
47956         * tests/test-pipe.c (myerr): Allow error messages regardless of
47957         what we do to stderr.
47958         (test_pipe): Rearrange to avoid deadlock.
47959         (child_main): Try a larger read, to ensure we avoided deadlock.
47960         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47961         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47962         if misused.
47963
47964 2009-07-19  Jim Meyering  <meyering@redhat.com>
47965
47966         fts: avoid false-positive cycle-detection
47967         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47968         for each new command line argument.
47969
47970 2009-07-19  Bruno Haible  <bruno@clisp.org>
47971
47972         Fix build error on mingw with the modules sys_select and unistd.
47973         * modules/acl-tests (Depends-on): Add close.
47974         * modules/binary-io-tests (Depends-on): Likewise.
47975         * modules/closein-tests (Depends-on): Likewise.
47976         * modules/flock-tests (Depends-on): Likewise.
47977         * modules/fsync-tests (Depends-on): Likewise.
47978         * modules/lseek-tests (Depends-on): Likewise.
47979         * modules/pipe-tests (Depends-on): Likewise.
47980         * modules/posix_spawn-tests (Depends-on): Likewise.
47981         * modules/posix_spawnp-tests (Depends-on): Likewise.
47982         * modules/stat-time-tests (Depends-on): Likewise.
47983         * modules/yesno-tests (Depends-on): Likewise.
47984
47985 2009-07-19  Bruno Haible  <bruno@clisp.org>
47986
47987         Unify conditionals.
47988         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47989         macros, not at the compiler macros.
47990         * lib/pipe.c: Likewise.
47991         * lib/execute.c: Likewise.
47992         * lib/spawni.c: Likewise.
47993
47994 2009-07-19  Bruno Haible  <bruno@clisp.org>
47995
47996         Fix handling of closed stdin/stdout/stderr on mingw.
47997         * lib/w32spawn.h: Include unistd.h.
47998         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47999         file descriptor with O_NOINHERIT flag.
48000         (fd_safer_noinherit): New function, based on fd-safer.c.
48001         (dup_safer_noinherit): New function, based on dup-safer.c.
48002         (undup_safer_noinherit): New function.
48003         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48004         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48005         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48006         instead of fd_safer.
48007         * tests/test-pipe.c: Include <windows.h>.
48008         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48009         result.
48010
48011         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48012         from main.
48013         (test_pipe): Pass an extra argument for disambiguation.
48014         (main): Invoke parent_main or child_main.
48015
48016         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48017         consistently.
48018
48019 2009-07-18  Eric Blake  <ebb9@byu.net>
48020
48021         test-pipe: fix mingw build
48022         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48023
48024 2009-07-18  Bruno Haible  <bruno@clisp.org>
48025
48026         * modules/pipe-tests (Makefile.am): Fix typo.
48027
48028 2009-07-18  Eric Blake  <ebb9@byu.net>
48029
48030         error: fix mingw build
48031         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48032         Reported by Bruno Haible.
48033
48034         error: avoid undefined use of stdout
48035         * lib/error.c (error, error_at_line): Check that fd 1 is open
48036         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48037         is handling faults and the close_stdout module wants to report the
48038         detection of closed stdout as an error.
48039
48040 2009-07-17  Eric Blake  <ebb9@byu.net>
48041
48042         pipe: be robust in face of closed fds
48043         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48044         should cause child to misbehave.
48045         * modules/pipe-tests: New module.
48046         * tests/test-pipe.c: New file.
48047         * tests/test-pipe.sh: New file.
48048         Reported by Akim Demaille.
48049
48050 2009-07-14  Bruno Haible  <bruno@clisp.org>
48051
48052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48053         Reported by anonymous kc.
48054
48055 2009-07-07  Jim Meyering  <meyering@redhat.com>
48056
48057         maint.mk: don't look for translatable strings in *.m4 or *.mk
48058         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48059         when searching for translatable strings.
48060
48061 2009-07-05  Jim Meyering  <meyering@redhat.com>
48062
48063         remove superfluous parentheses in STREQ definition
48064         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48065         * lib/getugroups.c (STREQ): Likewise.
48066         * lib/fnmatch.c (STREQ): Likewise.
48067         Spotted by Bruno Haible.
48068
48069 2009-07-04  Jim Meyering  <meyering@redhat.com>
48070
48071         argv-iter: new module
48072         * MODULES.html.sh: Add argv-iter.
48073         * lib/argv-iter.c, lib/argv-iter.h: New files.
48074         * modules/argv-iter: New file.
48075         * modules/argv-iter-tests: New file.
48076         * tests/test-argv-iter.c: Test it.
48077
48078 2009-07-04  Bruno Haible  <bruno@clisp.org>
48079
48080         Fix assertion.
48081         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48082         contains more exact copies of a given entry than file2, leave the extra
48083         copies unpaired rather than aborting.
48084         Reported by Eric Blake.
48085
48086 2009-07-02  Bruno Haible  <bruno@clisp.org>
48087
48088         Speedup git-merge-changelog for git cherry-pick.
48089         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48090         (entries_mapping_get): New function, extracted from compute_mapping.
48091         (entries_mapping_reverse_get): New function.
48092         (compute_mapping): Add a 'full' argument. Return the result in a
48093         'struct entries_mapping'.
48094         (main): Update. Access the mappings through entries_mapping_get.
48095         Reported by Eric Blake.
48096
48097 2009-07-02  Bruno Haible  <bruno@clisp.org>
48098
48099         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48100         best_i.
48101
48102 2009-07-02  Bruno Haible  <bruno@clisp.org>
48103
48104         Speed up approximate search for matching ChangeLog entries.
48105         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48106         argument. Call fstrcmp_bounded instead of fstrcmp.
48107         (compute_mapping, try_split_merged_entry, main): Update callers.
48108
48109 2009-07-02  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48112
48113 2009-06-30  Bruno Haible  <bruno@clisp.org>
48114
48115         Reduce the number of uc_is_cased calls.
48116         * lib/unicase.h (casing_suffix_context_t): Add
48117         'first_char_except_ignorable' field.
48118         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48119         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48120         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48121         Update initializer.
48122         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48123         case-ignorable characters.
48124         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48125         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48126         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48127         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48128         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48129
48130 2009-06-30  Bruno Haible  <bruno@clisp.org>
48131
48132         Tests for module 'unicase/ignorable'.
48133         * modules/unicase/ignorable-tests: New file.
48134         * tests/unicase/test-ignorable.c: New file, generated by
48135         gen-uni-tables.
48136
48137         Tests for module 'unicase/cased'.
48138         * modules/unicase/cased-tests: New file.
48139         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48140         * tests/unicase/test-predicate-part1.h: New file, derived from
48141         tests/unictype/test-predicate-part1.h.
48142         * tests/unicase/test-predicate-part2.h: New file, same as
48143         tests/unictype/test-predicate-part2.h.
48144
48145         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48146         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48147         (output_casing_properties): New function.
48148         (main): Call it.
48149         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48150         * lib/unicase/cased.c: Include unictype/bitmap.h.
48151         (uc_is_cased): Define through a bitmap lookup.
48152         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48153         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48154         (uc_is_case_ignorable): Define through a bitmap lookup.
48155         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48156         lib/unictype/bitmap.h.
48157         (Depends-on): Add inline. Clean up.
48158         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48159         lib/unictype/bitmap.h.
48160         (Depends-on): Add inline. Clean up.
48161         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48162         recognition.
48163         * tests/unicase/test-u16-tolower.c (main): Likewise.
48164         * tests/unicase/test-u32-tolower.c (main): Likewise.
48165
48166 2009-06-30  Bruno Haible  <bruno@clisp.org>
48167
48168         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48169         * lib/unicase/u16-casemap.c: Likewise.
48170         * lib/unicase/u32-casemap.c: Likewise.
48171
48172 2009-06-29  Bruno Haible  <bruno@clisp.org>
48173
48174         Define u32_casefold as a wrapper around u32_ct_casefold.
48175         * lib/unicase/u32-casefold.c: Update.
48176         * modules/unicase/u32-casefold (Depends-on): Add
48177         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48178         unicase/empty-suffix-context. Clean up.
48179
48180         Define u16_casefold as a wrapper around u16_ct_casefold.
48181         * lib/unicase/u16-casefold.c: Update.
48182         * modules/unicase/u16-casefold (Depends-on): Add
48183         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48184         unicase/empty-suffix-context. Clean up.
48185
48186         Define u8_casefold as a wrapper around u8_ct_casefold.
48187         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48188         * lib/unicase/u8-casefold.c: Update.
48189         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48190         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48191
48192         Define u32_totitle as a wrapper around u32_ct_totitle.
48193         * lib/unicase/u32-totitle.c: Update.
48194         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48196
48197         Define u16_totitle as a wrapper around u16_ct_totitle.
48198         * lib/unicase/u16-totitle.c: Update.
48199         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48201
48202         Define u8_totitle as a wrapper around u8_ct_totitle.
48203         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48204         functions.
48205         (FUNC): Delegate to U_CT_TOTITLE.
48206         * lib/unicase/u8-totitle.c: Update.
48207         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48209
48210         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48211         invocation.
48212         * modules/unicase/u32-tolower (Depends-on): Add
48213         unicase/empty-prefix-context, unicase/empty-suffix-context.
48214
48215         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48216         invocation.
48217         * modules/unicase/u16-tolower (Depends-on): Add
48218         unicase/empty-prefix-context, unicase/empty-suffix-context.
48219
48220         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48221         * modules/unicase/u8-tolower (Depends-on): Add
48222         unicase/empty-prefix-context, unicase/empty-suffix-context.
48223
48224         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48225         invocation.
48226         * modules/unicase/u32-toupper (Depends-on): Add
48227         unicase/empty-prefix-context, unicase/empty-suffix-context.
48228
48229         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48230         invocation.
48231         * modules/unicase/u16-toupper (Depends-on): Add
48232         unicase/empty-prefix-context, unicase/empty-suffix-context.
48233
48234         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48235         * modules/unicase/u8-toupper (Depends-on): Add
48236         unicase/empty-prefix-context, unicase/empty-suffix-context.
48237
48238         New module 'unicase/u32-ct-casefold'.
48239         * lib/unicase/u32-ct-casefold.c: New file.
48240         * modules/unicase/u32-ct-casefold: New file.
48241
48242         New module 'unicase/u16-ct-casefold'.
48243         * lib/unicase/u16-ct-casefold.c: New file.
48244         * modules/unicase/u16-ct-casefold: New file.
48245
48246         New module 'unicase/u8-ct-casefold'.
48247         * lib/unicase/u8-ct-casefold.c: New file.
48248         * lib/unicase/u-ct-casefold.h: New file, derived from
48249         lib/unicase/u-casefold.h.
48250         * modules/unicase/u8-ct-casefold: New file.
48251
48252         New module 'unicase/u32-ct-totitle'.
48253         * lib/unicase/u32-ct-totitle.c: New file.
48254         * modules/unicase/u32-ct-totitle: New file.
48255
48256         New module 'unicase/u16-ct-totitle'.
48257         * lib/unicase/u16-ct-totitle.c: New file.
48258         * modules/unicase/u16-ct-totitle: New file.
48259
48260         New module 'unicase/u8-ct-totitle'.
48261         * lib/unicase/u8-ct-totitle.c: New file.
48262         * lib/unicase/u-ct-totitle.h: New file, derived from
48263         lib/unicase/u-totitle.h.
48264         * modules/unicase/u8-ct-totitle: New file.
48265
48266         New module 'unicase/u32-ct-tolower'.
48267         * lib/unicase/u32-ct-tolower.c: New file.
48268         * modules/unicase/u32-ct-tolower: New file.
48269
48270         New module 'unicase/u16-ct-tolower'.
48271         * lib/unicase/u16-ct-tolower.c: New file.
48272         * modules/unicase/u16-ct-tolower: New file.
48273
48274         New module 'unicase/u8-ct-tolower'.
48275         * lib/unicase/u8-ct-tolower.c: New file.
48276         * modules/unicase/u8-ct-tolower: New file.
48277
48278         New module 'unicase/u32-ct-toupper'.
48279         * lib/unicase/u32-ct-toupper.c: New file.
48280         * modules/unicase/u32-ct-toupper: New file.
48281
48282         New module 'unicase/u16-ct-toupper'.
48283         * lib/unicase/u16-ct-toupper.c: New file.
48284         * modules/unicase/u16-ct-toupper: New file.
48285
48286         New module 'unicase/u8-ct-toupper'.
48287         * lib/unicase/u8-ct-toupper.c: New file.
48288         * modules/unicase/u8-ct-toupper: New file.
48289
48290         Add context arguments to u*_casemap functions.
48291         * lib/unicase/unicasemap.h: Include unicase.h.
48292         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48293         suffix_context arguments.
48294         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48295         functions.
48296         (FUNC): Add prefix_context and suffix_context arguments. Use
48297         uc_is_cased and uc_is_case_ignorable.
48298         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48299         * lib/unicase/u16-casemap.c: Likewise.
48300         * lib/unicase/u32-casemap.c: Likewise.
48301         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48302         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48303         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48304         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48305         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48306         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48307
48308         New module 'unicase/u32-suffix-context'.
48309         * lib/unicase/u32-suffix-context.c: New file.
48310         * modules/unicase/u32-suffix-context: New file.
48311
48312         New module 'unicase/u16-suffix-context'.
48313         * lib/unicase/u16-suffix-context.c: New file.
48314         * modules/unicase/u16-suffix-context: New file.
48315
48316         New module 'unicase/u8-suffix-context'.
48317         * lib/unicase/u8-suffix-context.c: New file.
48318         * lib/unicase/u-suffix-context.h: New file.
48319         * modules/unicase/u8-suffix-context: New file.
48320
48321         New module 'unicase/empty-suffix-context'.
48322         * lib/unicase/empty-suffix-context.c: New file.
48323         * modules/unicase/empty-suffix-context: New file.
48324
48325         New module 'unicase/u32-prefix-context'.
48326         * lib/unicase/u32-prefix-context.c: New file.
48327         * modules/unicase/u32-prefix-context: New file.
48328
48329         New module 'unicase/u16-prefix-context'.
48330         * lib/unicase/u16-prefix-context.c: New file.
48331         * modules/unicase/u16-prefix-context: New file.
48332
48333         New module 'unicase/u8-prefix-context'.
48334         * lib/unicase/u8-prefix-context.c: New file.
48335         * lib/unicase/u-prefix-context.h: New file.
48336         * lib/unicase/context.h: New file.
48337         * modules/unicase/u8-prefix-context: New file.
48338
48339         New module 'unicase/empty-prefix-context'.
48340         * lib/unicase/empty-prefix-context.c: New file.
48341         * modules/unicase/empty-prefix-context: New file.
48342
48343         New module 'unicase/ignorable'.
48344         * lib/unicase/ignorable.c: New file.
48345         * modules/unicase/ignorable: New file.
48346
48347         New module 'unicase/cased'.
48348         * lib/unicase/caseprop.h: New file.
48349         * lib/unicase/cased.c: New file.
48350         * modules/unicase/cased: New file.
48351
48352         New functions for case mapping of substrings.
48353         * lib/unicase.h (casing_prefix_context_t): New type.
48354         (unicase_empty_prefix_context): New variable.
48355         (u8_casing_prefix_context, u16_casing_prefix_context,
48356         u32_casing_prefix_context, u8_casing_prefixes_context,
48357         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48358         declarations.
48359         (casing_suffix_context_t): New type.
48360         (unicase_empty_suffix_context): New variable.
48361         (u8_casing_suffix_context, u16_casing_suffix_context,
48362         u32_casing_suffix_context, u8_casing_suffixes_context,
48363         u16_casing_suffixes_context, u32_casing_suffixes_context,
48364         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48365         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48366         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48367         declarations.
48368
48369 2009-06-28  Jim Meyering  <meyering@redhat.com>
48370
48371         boostrap: indent only with spaces
48372         * build-aux/bootstrap: Indent only with spaces, never TABs.
48373
48374         bootstrap: split long lines
48375         * build-aux/bootstrap: Keep line length < 80.
48376
48377         bootstrap: sync from coreutils
48378         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48379         just as autoreconf does.  Verify a list of prerequisite
48380         package-name,version-number pairs if defined in bootstrap.conf.
48381         Refer to README-prereq, if prerequisites are not satisfied.
48382
48383 2009-06-27  Eric Blake  <ebb9@byu.net>
48384
48385         tests: add test for bogus NULL definition
48386         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48387         * tests/test-stdlib.c: Likewise.
48388         * tests/test-string.c: Likewise.
48389         * tests/test-locale.c: Likewise.
48390         * tests/test-unistd.c: Likewise.
48391         * modules/stdio-tests (Depends-on): Add verify.
48392         * modules/stdlib-tests (Depends-on): Likewise.
48393         * modules/string-tests (Depends-on): Likewise.
48394         * modules/locale-tests (Depends-on): Likewise.
48395         * modules/unistd-tests (Depends-on): Likewise.
48396
48397 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48398
48399         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48400         self-explaining comment.
48401         * m4/selinux-selinux-h: Update serial.
48402         (gl_LIBSELINUX): New macro, adding a warning for missing development
48403         packages to code extracted from...
48404         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48405         Add warning for missing development packages here, too.
48406
48407 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48408
48409         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48410
48411 2009-06-25  Eric Blake  <ebb9@byu.net>
48412
48413         version-etc: fix regression
48414         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48415         gcc.
48416         (version_etc): Use it, to catch bugs with trailing NULL.
48417         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48418         (version_etc_va): Fix logic bug.
48419         * modules/version-etc-tests: Add test.
48420         * tests/test-version-etc.c: New file.
48421         * tests/test-version-etc.sh: Likewise.
48422
48423 2009-06-25  Sam Steingold  <sds@gnu.org>
48424
48425         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48426         mbtowc declaration.
48427
48428 2009-06-25  Eric Blake  <ebb9@byu.net>
48429
48430         fpurge: migrate into <stdio.h>
48431         * lib/fpurge.h: Delete...
48432         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48433         * lib/fpurge.c (fpurge): Change declaring header.
48434         * modules/fpurge (Files): Drop deleted file.
48435         (Depends-on): Add stdio.
48436         (configure.ac): Set witness.
48437         * modules/stdio (Makefile.am): Support fpurge macros.
48438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48440         * lib/fflush.c: Update client.
48441         * tests/test-fpurge.c: Likewise.
48442         * NEWS: Mention the change.
48443
48444 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48445
48446         * lib/argp-version-etc.c (program_authors): Add const
48447         qualifier.
48448         * lib/version-etc.c: Fix typos in the comments.
48449         * modules/argp-version-etc: Depends on version-etc.
48450
48451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48452
48453         argp-version-etc: new module.
48454
48455         * lib/argp-version-etc.c: New file.
48456         * lib/argp-version-etc.h: New file.
48457         * modules/argp-version-etc: New file.
48458         * modules/argp-version-etc-tests: New file.
48459         * tests/test-argp-version-etc.c: New test.
48460         * tests/test-argp-version-etc-1.sh: New test.
48461
48462 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48463
48464         Provide additional interfaces and documentation for version-etc
48465         module.
48466
48467         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48468         interfaces.
48469         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48470         prototypes.
48471
48472 2009-06-24  Bruno Haible  <bruno@clisp.org>
48473
48474         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48475         HAVE_LIB${NAME} macro.
48476         Reported by Sam Steingold <sds@gnu.org>.
48477
48478 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48479
48480         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48481         needed.
48482
48483 2009-06-21  Bruno Haible  <bruno@clisp.org>
48484
48485         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48486         work.
48487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48488         together with LIB${NAME}, LTLIB${NAME}.
48489         Reported by Sam Steingold <sds@gnu.org>.
48490
48491 2009-06-20  Jim Meyering  <meyering@redhat.com>
48492
48493         tests: make sc_require_test_exit_idiom more generic
48494         * top/maint.mk (Exit_witness_file): New overridable variable.
48495         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48496         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48497
48498 2009-06-19  Jim Meyering  <meyering@redhat.com>
48499
48500         hash: reverse order of src/dst parameters in an internal interface
48501         * lib/hash.c (transfer_entries): Reverse order of parameters to
48502         put DST before SRC.  Adjust callers.
48503
48504         tests: test-hash: avoid wholesale duplication
48505         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48506         Instead, use a loop and add a single conditional.
48507
48508         tests: test-hash: allow seed selection via a command line argument
48509         * tests/test-hash.c (get_seed): New function.
48510         (main): Use it.
48511
48512 2009-06-19  Eric Blake  <ebb9@byu.net>
48513
48514         hash: avoid memory leak on allocation failure
48515         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48516         failure.  Factor repeated algorithm...
48517         (transfer_entries): ...into new helper routine.
48518         (hash_delete): React to hash_rehash return value.
48519
48520         hash: reduce memory pressure in hash_rehash no-op case
48521         * lib/hash.c (next_prime): Avoid overflow.
48522         (hash_initialize): Factor bucket size computation...
48523         (compute_bucket_size): ...into new helper function.
48524         (hash_rehash): Use new function and open coding to reduce memory
48525         pressure, and avoid a memory leak in USE_OBSTACK code.
48526         Reported by Jim Meyering.
48527
48528 2009-06-18  Eric Blake  <ebb9@byu.net>
48529
48530         hash: make rotation more obvious
48531         * modules/hash (Depends-on): Add bitrotate and stdint.
48532         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48533         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48534         (SIZE_MAX): Rely on headers for definition.
48535         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48536         (raw_hasher): Use rotr_sz.
48537         Suggested by Jim Meyering.
48538
48539         hash: fix memory leak in last patch
48540         * lib/hash.c (hash_rehash): Avoid memory leak.
48541
48542         hash: avoid no-op rehashing
48543         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48544
48545         hash: provide default callback functions
48546         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48547         (hash_initialize): Use them as defaults.
48548         * tests/test-hash.c (main): Test this.
48549
48550         hash: minor optimization
48551         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48552         when possible.
48553         (hash_initialize): Document this promise.
48554         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48555         * tests/test-hash.c (hash_compare_strings): Test this.
48556
48557 2009-06-18  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48560         going to be replaced anyway.
48561
48562 2009-06-18  Bruno Haible  <bruno@clisp.org>
48563
48564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48565         in one place.
48566         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48567         be replaced anyway.
48568
48569 2009-06-18  Eric Blake  <ebb9@byu.net>
48570
48571         hash: check for resize before insertion
48572         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48573         threshold before insertion, so that a pathological hash_rehash
48574         that fills every bucket can still trigger another rehash.
48575
48576 2009-06-18  Jim Meyering  <meyering@redhat.com>
48577
48578         hash-tests: add a loop around the small tests
48579         * tests/test-hash.c (main): Repeat small tests with selected
48580         small initial table sizes.
48581
48582 2009-06-17  Eric Blake  <ebb9@byu.net>
48583
48584         hash: minor cleanups
48585         * lib/hash.h (hash_entry): Make opaque, by moving...
48586         * lib/hash.c (hash_entry): ...here.
48587         (hash_insert): Clarify restrictions on what can be inserted.
48588         (hash_get_next): Clarify when it is safe to remove an element
48589         during traversal.
48590         (check_tuning): Skip verification when tuning is known safe.
48591         (hash_initialize): Clarify restrictions on tuning.
48592
48593 2009-06-17  Jim Meyering  <jim@meyering.net>
48594         and Eric Blake  <ebb9@byu.net>
48595
48596         hash-tests: new module
48597         * modules/hash-tests: New file.
48598         * tests/test-hash.c: New file.
48599
48600 2009-06-17  Eric Blake  <ebb9@byu.net>
48601
48602         strstr-simple: document new module
48603         * MODULES.html.sh: Document new module.
48604
48605         strstr, strcasestr: replace on platforms with broken memchr
48606         * modules/strstr: Split into...
48607         * modules/strstr-simple: ...new module that does not care about
48608         performance, but does care about glibc bug.
48609         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48610         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48611         if platform memchr is broken, per Debian bug 521737.
48612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48613         memchr.
48614         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48615         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48616         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48617         * modules/mountlist (Depends-on): Add strstr-simple.
48618         * modules/gen-uni-tables (Depends-on): Likewise.
48619         * modules/argz (Depends-on): Add strstr.
48620
48621 2009-06-17  Bruno Haible  <bruno@clisp.org>
48622
48623         * modules/posix_spawn-internal (Depends-on): Add errno.
48624
48625 2009-06-17  Bruno Haible  <bruno@clisp.org>
48626
48627         Define missing ESTALE on Interix 3.5.
48628         * lib/errno.in.h (ESTALE): Assign a value if missing.
48629         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48631         missing.
48632         * doc/posix-headers/errno.texi: Mention the Interix bug.
48633         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48634
48635 2009-06-15  Eric Blake  <ebb9@byu.net>
48636
48637         memchr, memchr2: add valgrind exception
48638         * lib/memchr.valgrind: New file.
48639         * lib/memchr2.valgrind: New file.
48640         * modules/memchr (Files): Distribute valgrind file.
48641         * modules/memchr2 (Files): Likewise.
48642
48643         docs: memchr is no longer obsolete
48644         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48645         * lib/string.in.h (memchr): Simplify logic.
48646
48647 2009-06-14  Jim Meyering  <meyering@redhat.com>
48648
48649         link-follow: fix the "checking..." message to not mention trailing slash
48650         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48651         never considered trailing slashes.
48652
48653 2009-06-14  Bruno Haible  <bruno@clisp.org>
48654
48655         * m4/memchr.m4: Mention also the bug on IA-64.
48656         * doc/posix-functions/memchr.texi: Likewise.
48657
48658 2009-06-12  Eric Blake  <ebb9@byu.net>
48659
48660         memchr: detect broken x86_64 and alpha implementations
48661         * modules/memchr-tests (Depends-on): Move mmap detection...
48662         * modules/memchr (Depends-on): ...here.
48663         (configure.ac): Set indicator.
48664         * lib/string.in.h (memchr): Declare replacement.
48665         * modules/string (Makefile.am): Trigger replacement.
48666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48668         bugs.
48669         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48670         * modules/getpagesize (License): Relax license.
48671
48672 2009-06-11  Bruno Haible  <bruno@clisp.org>
48673
48674         * lib/idpriv.h: Add more references.
48675
48676 2009-06-08  Bruno Haible  <bruno@clisp.org>
48677
48678         Tests for module 'idpriv-droptemp'.
48679         * modules/idpriv-droptemp-tests: New file.
48680         * tests/test-idpriv-droptemp.sh: New file.
48681         * tests/test-idpriv-droptemp.su.sh: New file.
48682         * tests/test-idpriv-droptemp.c: New file.
48683
48684         New module 'idpriv-droptemp'.
48685         * lib/idpriv-droptemp.c: New file.
48686         * modules/idpriv-droptemp: New file.
48687
48688 2009-06-08  Bruno Haible  <bruno@clisp.org>
48689
48690         Tests for module 'idpriv-drop'.
48691         * modules/idpriv-drop-tests: New file.
48692         * tests/test-idpriv-drop.sh: New file.
48693         * tests/test-idpriv-drop.su.sh: New file.
48694         * tests/test-idpriv-drop.c: New file.
48695
48696         New module 'idpriv-drop'.
48697         * lib/idpriv.h: New file.
48698         * lib-idpriv-drop.c: New file.
48699         * m4/idpriv.m4: New file.
48700         * modules/idpriv-drop: New file.
48701
48702 2009-06-08  Bruno Haible  <bruno@clisp.org>
48703
48704         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48711
48712 2009-06-08  Eric Blake  <ebb9@byu.net>
48713
48714         test-strstr: use memory fence, when possible
48715         * tests/test-strstr.c (main): Use memory fence, in order to be
48716         more likely to trigger Debian bug 521737.
48717         * modules/strstr-tests (Files): Pull in additional files.
48718
48719         memchr: no longer obsolete, for wider field testing
48720         * modules/memchr (Status, Notice): Delete, this module is no
48721         longer obsolete.
48722         * modules/vasnprintf (Depends-on): Add memchr.
48723
48724 2009-06-07  Jim Meyering  <meyering@redhat.com>
48725
48726         hash: declare some functions with the warn_unused_result attribute
48727         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48728
48729 2009-06-07  Bruno Haible  <bruno@clisp.org>
48730
48731         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48732         Reported by Eric Blake.
48733
48734 2009-06-06  Eric Blake  <ebb9@byu.net>
48735
48736         test-alignof: fix typo with long double
48737         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48738         compiler error.
48739
48740 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48741
48742         Escape non-texinfo { and }s.
48743         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48744         markup error.
48745
48746 2009-06-04  Jim Meyering  <meyering@redhat.com>
48747
48748         gitlog-to-changelog: don't infloop on an empty commit log
48749         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48750         Reported by Boris Petersen <transacid@centerim.org>.
48751
48752 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48753
48754         version-etc: extend for packagers
48755         Add three new configure options, intended for packagers:
48756           --with-packager="packager name"
48757           --with-packager-version="packager-specific version"
48758           --with-packager-bug-reports="packager bug reporting"
48759         An example with coreutils:
48760           $ ./configure \
48761             --with-packager=Gentoo \
48762             --with-packager-bug-report=http://bugs.gentoo.org/ \
48763             --with-packager-version="patchset 1.6"
48764           $ ./src/ls --version | head -n2
48765           ls (GNU coreutils) 7.1-dirty
48766           Packaged by Gentoo (patchset 1.6)
48767         Note that the bug reporting info via --help doesn't show up because
48768         coreutils uses its own custom emit_bug_reporting_address() implementation
48769         in src/system.h.  If it didn't, it'd look like:
48770           $ ./src/ls --help | tail -n4
48771           Report bugs to <bug-coreutils@gnu.org>.
48772           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48773           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48774           General help using GNU software: <http://www.gnu.org/gethelp/>.
48775         * lib/version-etc.c: Print new information, if provided.
48776         * m4/version-etc.m4: New file.
48777         * modules/version-etc (Files): Add m4/version-etc.m4.
48778         (configure.ac): Add gl_VERSION_ETC.
48779
48780 2009-05-31  Bruno Haible  <bruno@clisp.org>
48781
48782         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48783         and 'int64_t'.
48784         * modules/alignof-tests (Dependencies): Add stdint.
48785         Reported by Eric Blake.
48786
48787 2009-05-31  Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48790         restriction due to compiler bugs.
48791         Reported by Eric Blake.
48792
48793 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48794             Bruno Haible  <bruno@clisp.org>
48795
48796         Fix test-alignof failure.
48797         * lib/alignof.h (alignof_slot): New macro.
48798         (alignof_type): New macro, with the same semantics as the previous
48799         'alignof'.
48800         (alignof): Alias to alignof_slot.
48801         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48802         check that the results are usable as constant expressions.
48803
48804 2009-05-31  Bruno Haible  <bruno@clisp.org>
48805
48806         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48807         * tests/test-memchr.c (main): Check that memchr does not read past the
48808         first occurrence of the byte.
48809         * tests/test-strstr.c (main): Update comment.
48810         Suggested by Eric Blake.
48811
48812 2009-05-30  Bruno Haible  <bruno@clisp.org>
48813
48814         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48815         detail how to use dumpbin.
48816         Reported by David Byron <dbyron@dbyron.com>.
48817
48818 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48819
48820         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48821
48822 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48823
48824         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48825
48826 2009-05-28  Bruno Haible  <bruno@clisp.org>
48827
48828         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48829         build-aux/ files.
48830
48831 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48832
48833         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48834
48835 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48836
48837         * gnulib-tool (sed_transform_main_lib_file)
48838         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48839         regexps.
48840
48841 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48842
48843         * tests/test-strstr.c: Add another self-test.
48844         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48845         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48846
48847 2009-05-23  Bruno Haible  <bruno@clisp.org>
48848
48849         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48850         change.
48851
48852 2009-05-21  Bruno Haible  <bruno@clisp.org>
48853
48854         Simplify use of mode_t varargs.
48855         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48856         uses 'mode_t' or 'int'.
48857         * lib/openat.c (openat): Likewise.
48858         * lib/open-safer.c (open_safer): Likewise.
48859         * m4/mode_t.m4: New file.
48860         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48861         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48862         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48863         * modules/open (Files): Add m4/mode_t.m4.
48864         * modules/openat (Files): Likewise.
48865         * modules/fcntl-safer (Files): Likewise.
48866         Suggested by Eric Blake.
48867
48868 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48869
48870         * doc/glibc-functions/fallocate.texi: New file.
48871         * doc/gnulib.texi: Include it.
48872
48873 2009-05-21  Eric Blake  <ebb9@byu.net>
48874             Bruno Haible  <bruno@clisp.org>
48875
48876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48877         invocations.
48878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48879
48880 2009-05-21  Eric Blake  <ebb9@byu.net>
48881             Bruno Haible  <bruno@clisp.org>
48882
48883         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48884         include_next. Fix of 2008-11-20 commit.
48885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48886         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48887         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48888         NEXT_MATH_H.
48889         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48890         instead of NEXT_MATH_H.
48891
48892 2009-05-21  Bruno Haible  <bruno@clisp.org>
48893
48894         Avoid redefinition warnings for SIZE_MAX.
48895         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48896         Reported by Simon Josefsson.
48897
48898 2009-05-21  Bruno Haible  <bruno@clisp.org>
48899
48900         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48901         AC_CACHE_VAL.
48902
48903 2009-05-20  Bruno Haible  <bruno@clisp.org>
48904
48905         Make zeroptr.h work on mingw.
48906         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48907         mprotect.
48908         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48909         * modules/memchr2-tests (configure.ac): Likewise.
48910         * modules/memcmp-tests (configure.ac): Likewise.
48911         * modules/memmem-tests (configure.ac): Likewise.
48912         * modules/memrchr-tests (configure.ac): Likewise.
48913         Reported by Simon Josefsson.
48914
48915 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48916
48917         * tests/test-glob.c: Include string.h for strcmp prototype.
48918
48919 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48920
48921         * modules/getdelim (Depends-on): Add explicit stdint, although it
48922         was implicitly already pulled in via realloc-posix.
48923         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48924
48925 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48926
48927         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48928         G. Christensen" <tgc@jupiterrise.com>.
48929         * m4/sys_socket_h.m4: Check for sa_family_t.
48930         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48931         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48932         * tests/test-sys_socket.c: Check that sa_family_t works.
48933
48934 2009-05-18  Eric Blake  <ebb9@byu.net>
48935
48936         maint.mk: allow gnulib_dir in VPATH build
48937         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48938
48939 2009-05-15  Jim Meyering  <meyering@redhat.com>
48940
48941         maint.mk: Give gnulib_dir a default definition.
48942         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48943         Thus, most packages no longer need to specify this variable in cfg.mk
48944
48945 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48946
48947         rename.m4: fix typos that would make non-mingw cross-configure fail
48948         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48949
48950 2009-05-13  Eric Blake  <ebb9@byu.net>
48951
48952         mmap-anon: avoid out-of-order autoconf expansion
48953         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48954         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48955         * modules/memchr-tests (Depends-on): Add extensions.
48956         * modules/memchr2-tests (Depends-on): Add extensions.
48957         * modules/memcmp-tests (Depends-on): Add extensions.
48958         * modules/memmem-tests (Depends-on): Add extensions.
48959         * modules/memrchr-tests (Depends-on): Add extensions.
48960
48961 2009-05-13  Bruno Haible  <bruno@clisp.org>
48962
48963         Make some tests ISO C 99 compliant.
48964         * tests/zerosize-ptr.h: New file.
48965         * tests/test-memchr.c: Include zerosize-ptr.h.
48966         (main): Use a zero-size object pointer instead of NULL.
48967         * tests/test-memchr2.c: Include zerosize-ptr.h.
48968         (main): Use a zero-size object pointer instead of NULL.
48969         * tests/test-memcmp.c: Include zerosize-ptr.h.
48970         (main): Use a zero-size object pointer instead of NULL.
48971         * tests/test-memmem.c: Include zerosize-ptr.h.
48972         (main): Use a zero-size object pointer instead of NULL.
48973         * tests/test-memrchr.c: Include zerosize-ptr.h.
48974         (main): Use a zero-size object pointer instead of NULL.
48975         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48976         m4/mmap-anon.m4.
48977         (Depends-on): Add getpagesize.
48978         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48979         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48980         m4/mmap-anon.m4.
48981         (Depends-on): Add getpagesize.
48982         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48983         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48984         m4/mmap-anon.m4.
48985         (Depends-on): Add getpagesize.
48986         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48987         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48988         m4/mmap-anon.m4.
48989         (Depends-on): Add getpagesize.
48990         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48991         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48992         m4/mmap-anon.m4.
48993         (Depends-on): Add getpagesize.
48994         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48995
48996 2009-05-12  Bruno Haible  <bruno@clisp.org>
48997
48998         Tests for module 'alignof'.
48999         * modules/alignof-tests: New file.
49000         * tests/test-alignof.c: New file.
49001
49002 2009-05-12  Bruno Haible  <bruno@clisp.org>
49003
49004         Fix alignof macro.
49005         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49006         vendor compilers that are always correct.
49007
49008 2009-05-12  Bruno Haible  <bruno@clisp.org>
49009
49010         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49012         not whether its fully works.
49013
49014 2009-05-12  Bruno Haible  <bruno@clisp.org>
49015
49016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49017
49018 2009-05-12  Jim Meyering  <meyering@redhat.com>
49019
49020         * top/maint.mk: Adjust backslash alignment.
49021
49022 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49023
49024         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49025
49026 2009-05-11  Eric Blake  <ebb9@byu.net>
49027
49028         argp: avoid undefined behavior
49029         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49030         macros.
49031
49032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49033
49034         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49035         user.name to prevent git commit from complaining.
49036
49037 2009-05-10  Bruno Haible  <bruno@clisp.org>
49038
49039         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49040         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49041         it rewrites every file name only once.
49042         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49043
49044 2009-05-08  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49047         instead of 'max'.
49048
49049 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49050
49051         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49052         sockaddr_storage test.
49053
49054 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49055
49056         * modules/sys_socket (Makefile.am): Substitute
49057         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49058         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49059         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49060         * tests/test-sys_socket.c: Check sockaddr_storage.
49061
49062 2009-05-08  Bruno Haible  <bruno@clisp.org>
49063
49064         New module 'alignof'.
49065         * lib/alignof.h: New file.
49066         * modules/alignof: New file.
49067
49068 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49069             Bruno Haible  <bruno@clisp.org>
49070
49071         Fix test-file-has-acl on FreeBSD.
49072         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49073         mask is implicitly added.
49074         * tests/test-file-has-acl.c: Include <signal.h>.
49075         (main): Terminate the test after 5 seconds.
49076         * modules/acl-tests (configure.ac): Check for alarm function.
49077
49078 2009-05-04  Bruno Haible  <bruno@clisp.org>
49079
49080         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49082         * modules/errno (configure.ac): Drop AC_REQUIRE.
49083         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49084         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49085
49086 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49087
49088         * modules/glob-tests: New module.
49089         * tests/test-glob.c: Add.
49090
49091 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49092
49093         * modules/fnmatch-tests: New module.
49094         * tests/test-fnmatch.c: Add.
49095
49096 2009-05-04  Eric Blake  <ebb9@byu.net>
49097
49098         maint: make the new no-submodule-changes rule VPATH-safe
49099         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49100
49101 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49102             Bruno Haible  <bruno@clisp.org>
49103
49104         acl: Fix infinite loop on FreeBSD.
49105         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49106         of return value from acl_get_entry.
49107         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49108         Likewise.
49109
49110 2009-05-03  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/acl-internal.h (acl_entries): Clarify return value.
49113         * lib/acl_entries.c (acl_entries): Likewise.
49114
49115 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49116
49117         Bug fix in acl module.
49118         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49119
49120 2009-05-03  Bruno Haible  <bruno@clisp.org>
49121
49122         Create gperf-generated file in the source dir, not in the build dir.
49123         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49124         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49125         * modules/unicase/locale-language (unicase/locale-languages.h):
49126         Likewise.
49127         * modules/unicase/special-casing (unicase/special-casing-table.h):
49128         Likewise.
49129         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49130         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49131         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49132         Reported by Ralf Wildenhues.
49133
49134 2009-05-03  Bruno Haible  <bruno@clisp.org>
49135
49136         * modules/fnmatch (Description, configure.ac): Taken from
49137         fnmatch-posix.
49138         * modules/fnmatch-posix: Turn into a symbolic reference to the
49139         'fnmatch' module, and deprecate.
49140         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49141
49142 2009-05-03  Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49145         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49146         Reported by Ralf Wildenhues.
49147
49148 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49149
49150         * m4/fnmatch.m4: Fix fnmatch re-define.
49151
49152 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49153
49154         priv-set: new module and tests; adapt write-any-file
49155         * lib/priv-set.c: New file.
49156         * lib/priv-set.h: New file.
49157         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49158         * lib/write-any-file.c: Simplify by using priv-set module.
49159         * m4/priv-set.m4: New file.
49160         * modules/priv-set: New file.
49161         * modules/unlinkdir: Add dependency on priv-set module.
49162         * modules/write-any-file: Likewise.
49163
49164         Tests for module 'priv-set'.
49165         * modules/priv-set-tests: New file.
49166         * tests/test-priv-set.c: New file.
49167
49168 2009-05-03  Jim Meyering  <meyering@redhat.com>
49169             Bruno Haible  <bruno@clisp.org>
49170
49171         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49172         use the converted UTF-8 variant of the name instead.
49173
49174 2009-05-03  Jim Meyering  <meyering@redhat.com>
49175
49176         tests: tighten some getdate tests
49177         * tests/test-getdate.c (main): Tighten tests: require equality,
49178         not just greater than.  Set TZ envvar to UTC0.
49179
49180 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49181
49182         getdate: correctly interpret "next monday" when run on a Monday
49183         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49184         that e.g., "next tues" (when run on a tuesday) results in a date
49185         that is one week in the future, and not today's date.
49186         I.e., add a week when the wday is the same as the current one.
49187         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49188         and earlier by Martin Bernreuther and Jan Minář.
49189         * tests/test-getdate.c (main): Check that "next DAY" is always in
49190         the future and that "last DAY" is always in the past.
49191
49192 2009-05-02  Jim Meyering  <meyering@redhat.com>
49193
49194         build: ensure that a release build fails when a submodule is unclean
49195         * top/maint.mk (no-submodule-changes): New rule.
49196         (alpha beta major): Depend on it.
49197
49198 2009-05-02  Bruno Haible  <bruno@clisp.org>
49199
49200         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49202         shell variable gl_fnmatch_required to detect which variant is
49203         requested.
49204         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49205         gl_FUNC_FNMATCH_POSIX.
49206         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49207         exclude fnmatch-posix.
49208
49209 2009-05-02  Bruno Haible  <bruno@clisp.org>
49210
49211         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49212         * modules/mbsrtowcs (License): Change to LGPLv2+.
49213         * modules/strnlen1 (License): Likewise.
49214         Reported by Simon Josefsson.
49215
49216 2009-05-02  Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49219         "cross".
49220         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49221         gnulib-tool was called with option --source-base=lib.
49222
49223 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49224
49225         Use automake *-local hooks without commands, for extensibility.
49226         * modules/localcharset (Makefile.am): Rename install-exec-local
49227         rule to install-exec-localcharset, and make it a prerequisite of
49228         install-exec-local.  Likewise, rename the uninstall-local rule to
49229         uninstall-localcharset, and make it a prerequisite of the former.
49230
49231 2009-05-01  Bruno Haible  <bruno@clisp.org>
49232
49233         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49234         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49235         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49237         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49238         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49239         m4/locale-zh.m4, m4/codeset.m4.
49240
49241         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49242         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49243         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49244         m4/locale-zh.m4.
49245
49246         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49247         REPLACE_WCRTOMB if mbstate_t must be replaced.
49248         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49249         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49250
49251 2009-05-01  Bruno Haible  <bruno@clisp.org>
49252
49253         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49254         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49255         dngettext, dcngettext, textdomain, bindtextdomain,
49256         bind_textdomain_codeset): Undefine before redefining.
49257
49258 2009-04-30  Bruno Haible  <bruno@clisp.org>
49259
49260         Fix bug introduced on 2009-04-25.
49261         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49262         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49263         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49264         is defined.
49265         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49266         is defined.
49267         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49268         is defined.
49269         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49270
49271 2009-04-28  Bruno Haible  <bruno@clisp.org>
49272
49273         Comment tweaks.
49274         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49275         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49276         * lib/unicase.h (u*_casexfrm): Likewise.
49277         Reported by Paolo Bonzini.
49278
49279 2009-04-28  Bruno Haible  <bruno@clisp.org>
49280
49281         Fix a compilation error.
49282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49284         Reported by Jim Meyering.
49285
49286 2009-04-27  Bruno Haible  <bruno@clisp.org>
49287
49288         New module 'libunistring'.
49289         * modules/libunistring: New file.
49290         * m4/libunistring.m4: New file.
49291         * MODULES.html.sh (Unicode string functions): Add it.
49292
49293 2009-04-27  Eric Blake  <ebb9@byu.net>
49294
49295         maint.mk: allow package-specific header to provide <config.h>
49296         * top/maint.mk (sc_require_config_h): New variable.
49297         (sc_require_config_h, sc_require_config_h_first): Use it.
49298
49299 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49300
49301         * top/maint.mk (sc_avoid_if_before_free): Except
49302         useless-if-before-free script.
49303
49304 2009-04-27  Eric Blake  <ebb9@byu.net>
49305
49306         maintainer-makefile: depend on all required helper scripts
49307         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49308         useless-if-before-free.
49309         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49310         version, rather than assuming gnulib checkout is available.
49311         Reported by Simen Josefsson.
49312
49313 2009-04-26  Bruno Haible  <bruno@clisp.org>
49314
49315         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49317         "../" or "..".
49318
49319 2009-04-26  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49322         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49323         AC_LIB_HAVE_LINKFLAGS.
49324
49325 2009-04-26  Bruno Haible  <bruno@clisp.org>
49326
49327         Simplify calling convention of u*_conv_from_encoding.
49328         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49329         u32_conv_from_encoding): Expect a resultbuf argument and return the
49330         result directly as a pointer.
49331         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49332         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49333         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49334         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49335         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49336         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49337         Update.
49338         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49339         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49340         * lib/vasnprintf.c (VASNPRINTF): Update.
49341         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49342         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49343         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49344         * NEWS: Mention the change.
49345
49346 2009-04-26  Bruno Haible  <bruno@clisp.org>
49347
49348         Simplify calling convention of u*_conv_to_encoding.
49349         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49350         u32_conv_to_encoding): Expect a resultbuf argument and return the
49351         result directly as a pointer.
49352         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49353         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49354         freeing scaled_offsets if mem_iconveha failed.
49355         * lib/unicase/u-casexfrm.h (FUNC): Update.
49356         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49357         * lib/vasnprintf.c (VASNPRINTF): Update.
49358         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49359         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49360         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49361         * NEWS: Mention the change.
49362
49363 2009-04-26  Bruno Haible  <bruno@clisp.org>
49364
49365         Avoid test failures on AIX and OSF/1.
49366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49367         malloc(0).
49368         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49369         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49370         Likewise.
49371         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49372         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49373         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49374         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49375         * doc/posix-functions/malloc.texi: Document the portability problem
49376         related to malloc(0).
49377
49378 2009-04-26  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49381         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49382         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49383
49384 2009-04-25  Bruno Haible  <bruno@clisp.org>
49385
49386         Avoid link error when creating a namespace clean library.
49387         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49388         as macro with arguments if already defined as an alias.
49389         * lib/signbitf.c (gl_signbitf): Don't undefine.
49390         * lib/signbitd.c (gl_signbitd): Don't undefine.
49391         * lib/signbitl.c (gl_signbitl): Don't undefine.
49392
49393 2009-04-25  Jim Meyering  <meyering@redhat.com>
49394
49395         vc-list-files: fix another quoting bug
49396         * build-aux/vc-list-files: Avoid sed backslash expansion
49397         of pathological directory names.
49398
49399 2009-04-25  Eric Blake  <ebb9@byu.net>
49400
49401         vc-list-files: fix shell quoting error
49402         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49403         timestamp.
49404
49405 2009-04-25  Jim Meyering  <meyering@redhat.com>
49406
49407         vc-list-files: restore lost functionality with subdir argument
49408         * build-aux/vc-list-files: When given a non-"." sub-directory
49409         argument, substitute the $dir/ prefix back onto each resulting name.
49410         Otherwise, coreutils' root_tests check would fail.
49411
49412 2009-04-24  Eric Blake  <ebb9@byu.net>
49413
49414         vc-list-files: ignore git symlinks
49415         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49416         than ls-files, to ignore git symlinks.
49417
49418         maint.mk: import improvements from m4
49419         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49420         (move_if_change): Delete unused macro.
49421         (news-date-check, vc-diff-check): Support VPATH builds.
49422         (announcement): Likewise.  Split --bootstrap-tools list...
49423         (boostrap-tools): ...into separate list, which can be overridden
49424         in cfg.mk.
49425         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49426         requiring dependency on useless-if-before-free module.
49427         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49428         Support VPATH builds.
49429
49430 2009-04-24  Jim Meyering  <meyering@redhat.com>
49431
49432         maint.mk: remove coreutils-specific rules and variables
49433         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49434         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49435         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49436
49437         maint.mk: remove obsolete rule
49438         * top/maint.mk (rel-check): Remove rule.
49439         (WGET, WGETFLAGS): Remove now-unused variables.
49440
49441 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49442
49443         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49444         consistency.
49445
49446         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49447         '$(PATH_SEPARATOR)' instead of ':'.
49448
49449 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49450
49451         * lib/getopt1.c (main): Use 'const' for static array.
49452
49453 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49454
49455         * top/maint.mk: Sync with coreutils.
49456         * NEWS: Explain incompatibilities.
49457
49458 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49459             Bruno Haible  <bruno@clisp.org>
49460
49461         Fix cross-compilation results.
49462         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49463         statement, as third argument of AC_TRY_RUN.
49464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49466         Likewise.
49467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49469         Likewise.
49470         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49472         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49473
49474 2009-04-20  Bruno Haible  <bruno@clisp.org>
49475
49476         Avoid test failure on mingw.
49477         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49478
49479 2009-04-20  Bruno Haible  <bruno@clisp.org>
49480
49481         Avoid compilation error on mingw.
49482         * modules/localename-tests (Depends-on): Add locale.
49483
49484 2009-04-19  Bruno Haible  <bruno@clisp.org>
49485
49486         Support for building a shared library on Windows platforms.
49487         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49488         (main): Test the presence of UNINORM_NFC here.
49489         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49490         (main): Test the presence of UNINORM_NFD here.
49491         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49492         (main): Test the presence of UNINORM_NFKC here.
49493         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49494         (main): Test the presence of UNINORM_NFKD here.
49495
49496 2009-04-19  Bruno Haible  <bruno@clisp.org>
49497
49498         Avoid a compiler warning.
49499         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49500         Change type of variable 'sequence'.
49501
49502 2009-04-19  Bruno Haible  <bruno@clisp.org>
49503
49504         * modules/configmake (Makefile.am): When the contents of configmake.h
49505         does not change, arrange to preserve its modification time.
49506
49507 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49508
49509         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49510         gettext domain.
49511
49512 2009-04-16  Jim Meyering  <meyering@redhat.com>
49513
49514         useless-if-before-free: improve conversion code
49515         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49516         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49517
49518 2009-04-14  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/fcntl (Depends-on): Add extensions.
49521         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49522
49523 2009-04-12  Ben Pfaff  <blp@gnu.org>
49524
49525         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49526         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49527
49528 2009-03-20  Ben Pfaff  <blp@gnu.org>
49529
49530         Make rename replace existing destinations on Windows.
49531         * m4/rename.m4: Add test for Mingw.
49532         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49533         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49534         * doc/posix-functions/rename.texi: Document.
49535
49536 2009-04-10  Bruno Haible  <bruno@clisp.org>
49537
49538         New include file "iconveh.h".
49539         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49540         * lib/striconveh.h: Include it.
49541         (enum iconv_ilseq_handler): Remove definition.
49542         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49543         striconveh.h.
49544         * lib/striconveha.c: Include striconveh.h.
49545         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49546         * modules/striconveh (Files): Add lib/iconveh.h.
49547         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49548         lib/striconveh.h.
49549
49550 2009-04-10  Bruno Haible  <bruno@clisp.org>
49551
49552         * lib/uniconv.h: Update comment.
49553
49554 2009-04-10  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49557         always.
49558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49559         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49560         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49561         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49562         "unistring-notinline.h", so that the function gets defined always.
49563         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49564         * lib/unistr/u8-uctomb.c: Likewise.
49565         * lib/unistr/u16-mbtouc.c: Likewise.
49566         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49567         * lib/unistr/u16-uctomb.c: Likewise.
49568         * lib/unistr/u32-mbtouc.c: Likewise.
49569         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49570         * lib/unistr/u32-uctomb.c: Likewise.
49571
49572 2009-04-10  Bruno Haible  <bruno@clisp.org>
49573
49574         Mark 'utime' obsolete.
49575         * modules/utime (Status, Notice): New sections.
49576         Suggested by Jim Meyering.
49577
49578         Fix cross-compile guess for utime test.
49579         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49580         autoconf.
49581         * doc/posix-functions/utime.texi: Give more precisions.
49582         Reported by Jan <ipif@ymail.com>.
49583
49584 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49585
49586         filevercmp: correct today's change
49587         * lib/filevercmp.c: Also handle coreutils' test inputs.
49588         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49589
49590         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49591         for reporting it.
49592         * lib/filevercmp.c: Special handle for "", "." and "..".
49593         * tests/test-filevercmp.c: Enlarge the set suite.
49594
49595 2009-04-07  Jim Meyering  <meyering@redhat.com>
49596
49597         useless-if-before-free: show how to remove braced useless free, too
49598         * build-aux/useless-if-before-free: still only in a comment, though.
49599
49600 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49601
49602         maint.mk: import changes to syntax-check macros from coreutils
49603         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49604         Use them in the relevant macros.
49605
49606 2009-04-06  Bruno Haible  <bruno@clisp.org>
49607
49608         Fix unportable use of bit-fields.
49609         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49610         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49611         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49612
49613 2009-04-06  Bruno Haible  <bruno@clisp.org>
49614
49615         Avoid test failures on AIX and OSF/1.
49616         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49617         that malloc(0) = NULL.
49618         * tests/unicase/test-u8-tolower.c (check): Likewise.
49619         * tests/unicase/test-u8-totitle.c (check): Likewise.
49620         * tests/unicase/test-u8-toupper.c (check): Likewise.
49621         * tests/unicase/test-u16-casefold.c (check): Likewise.
49622         * tests/unicase/test-u16-tolower.c (check): Likewise.
49623         * tests/unicase/test-u16-totitle.c (check): Likewise.
49624         * tests/unicase/test-u16-toupper.c (check): Likewise.
49625         * tests/unicase/test-u32-casefold.c (check): Likewise.
49626         * tests/unicase/test-u32-tolower.c (check): Likewise.
49627         * tests/unicase/test-u32-totitle.c (check): Likewise.
49628         * tests/unicase/test-u32-toupper.c (check): Likewise.
49629         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49630         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49631         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49632         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49633         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49634         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49635         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49636         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49637         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49638         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49639         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49640         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49641
49642 2009-04-05  Bruno Haible  <bruno@clisp.org>
49643
49644         Work around an autoconf limitation.
49645         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49646         comment line if it would be longer than 3 KB.
49647
49648 2009-04-05  Bruno Haible  <bruno@clisp.org>
49649
49650         Avoid test failure with libiconv-1.13.
49651         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49652         of the expected test results.
49653
49654 2009-04-05  Bruno Haible  <bruno@clisp.org>
49655
49656         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49657         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49658         that it should be installed.
49659
49660 2009-04-05  Bruno Haible  <bruno@clisp.org>
49661
49662         * gnulib-tool: New option --copy-file.
49663         (func_usage): Document it.
49664         (func_dest_tmpfilename): Moved out of func_import.
49665         (func_add_file, func_update_file): New functions, extracted from
49666         func_import.
49667         (func_import): Update.
49668
49669 2009-04-05  Karl Berry  <karl@gnu.org>
49670
49671         * README: prominently mention gnulib-tool.
49672         Rearrange sections so getting the code is near the top.
49673
49674 2009-04-05  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/unicase.h: Mention u*_cmp2.
49677         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49678         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49679         * lib/unicase/ulc-casecmp.c: Likewise.
49680         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49681         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49682         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49683         unistr/u8-cmp.
49684         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49685         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49686         unistr/u16-cmp.
49687         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49688         unistr/u32-cmp.
49689
49690         * lib/uninorm.h: Mention u*_cmp2.
49691         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49692         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49693         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49694         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49695         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49696         unistr/u8-cmp.
49697         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49698         unistr/u16-cmp.
49699         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49700         unistr/u32-cmp.
49701
49702         New module 'unistr/u32-cmp2'.
49703         * lib/unistr/u32-cmp2.c: New file.
49704         * modules/unistr/u32-cmp2: New file.
49705
49706         New module 'unistr/u16-cmp2'.
49707         * lib/unistr/u16-cmp2.c: New file.
49708         * modules/unistr/u16-cmp2: New file.
49709
49710         New module 'unistr/u8-cmp2'.
49711         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49712         * lib/unistr/u8-cmp2.c: New file.
49713         * lib/unistr/u-cmp2.h: New file.
49714         * modules/unistr/u8-cmp2: New file.
49715
49716 2009-04-05  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/unictype.h (uc_property_is_valid): New macro.
49719         * tests/unictype/test-pr_byname.c (main): Use it.
49720
49721         * lib/unistr.h: Doc fixes.
49722         * lib/uniconv.h: Doc fixes.
49723         * lib/unictype.h: Doc fixes.
49724
49725 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49726
49727         Port coreutils 7.2 to Solaris 8.
49728
49729         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49730         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49731         for Solaris 8.  This is a bit of a hack, as it means it's the
49732         caller's responsibility to add -lnsl if needed, but most likely it
49733         won't be needed since only getaddrinfo uses this and getaddrinfo
49734         isn't needed on Solaris 8.
49735
49736         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49737         problem to Solaris 8 encountered with coreutils 7.2, which
49738         resulted in a message "fnmatch.c:292: warning: passing argument 4
49739         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49740         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49741
49742 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49743
49744         * m4/ld-version-script.m4: Add FIXME comment.
49745
49746 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49747
49748         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49749         SOVERSION variable.
49750
49751 2009-04-02  Bruno Haible  <bruno@clisp.org>
49752
49753         * Makefile (info, html, dvi, pdf): Combine the rules.
49754         Suggested by Jim Meyering.
49755
49756 2009-04-01  Bruno Haible  <bruno@clisp.org>
49757
49758         * Makefile (info, html, dvi, pdf): New targets.
49759         Reported by Reuben Thomas <rrt@sc3d.org>.
49760
49761 2009-04-01  Bruno Haible  <bruno@clisp.org>
49762
49763         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49764         can be put into PATH.
49765         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49766
49767 2009-04-01  Bruno Haible  <bruno@clisp.org>
49768
49769         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49770
49771 2009-04-01  Bruno Haible  <bruno@clisp.org>
49772
49773         Rename module 'visibility'.
49774         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49775         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49776         * doc/gnulib.texi: Update.
49777         * MODULES.html.sh (Misc): Update.
49778         * NEWS: Mention the change.
49779
49780 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49781
49782         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49783         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49784         Eric Blake <ebb9@byu.net> for review.
49785         * MODULES.html.sh: Add lib-msvc-compat.
49786         * doc/gnulib.texi: Link to new section.
49787         * m4/ld-output-def.m4: New file.
49788         * doc/ld-output-def.texi: New file.
49789
49790 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49791
49792         Rename ld-version-script to lib-symbol-versions.  Suggested by
49793         Bruno Haible <bruno@clisp.org>.
49794         * modules/ld-version-script: Renamed to lib-symbol-versions.
49795         * doc/ld-version-script.texi: Fix module name.
49796         * MODULES.html.sh: Add lib-symbol-versions.
49797
49798 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49799
49800         * modules/u64-tests: New file.
49801         * tests/test-u64.c: New file.
49802
49803 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49804
49805         * MODULES.html.sh: Mention u64.
49806         * modules/u64: New module.
49807         * modules/crypto/sha512: Depend on u64 module instead of providing
49808         u64.h.
49809
49810 2009-03-27  Eric Blake  <ebb9@byu.net>
49811
49812         test-strerror: make debugging EAI_SYSTEM easier
49813         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49814         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49815         failure was EAI_SYSTEM.
49816
49817 2009-03-25  Bruno Haible  <bruno@clisp.org>
49818
49819         Fix a problem with --enable-relocatable on Solaris 7.
49820         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49821         since 2008-02-24.
49822
49823 2009-03-25  Eric Blake  <ebb9@byu.net>
49824
49825         test-sockets: avoid gcc warning
49826         * tests/test-sockets.c (main): Silence compiler warning.
49827
49828 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49829
49830         New modules nproc, pthread, contributed by Glen Lenker.
49831
49832         * MODULES.html.sh: Add pthread, nproc.
49833         * lib/nproc.c: New file.
49834         * lib/nproc.h: New file.
49835         * lib/pthread.in.h: New file.
49836         * m4/pthread.m4: New file.
49837         * modules/nproc: New file.
49838         * modules/pthread: New file.
49839
49840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49841
49842         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49843         New variable.
49844
49845 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49846
49847         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49848         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49849         * tests/test-filevercmp.c: Add tests for backup suffixes.
49850
49851 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49852
49853         * modules/stdlib (Depends-on): Add stdint, needed when defining
49854         struct random_data on, for example, HP-UX 10.20.  Reported by
49855         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49856
49857 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49858
49859         * lib/readline.c (readline): Call fflush on stdout after printing
49860         prompt.
49861
49862 2009-03-20  Bruno Haible  <bruno@clisp.org>
49863
49864         Remove dependency from 'close' module to -lws2_32 on native Windows.
49865         * lib/close-hook.h: New file.
49866         * lib/close-hook.c: New file.
49867         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49868         w32sock.h.
49869         (_gl_close_fd_maybe_socket): Remove function.
49870         (rpl_close): Invoke execute_all_close_hooks instead of
49871         _gl_close_fd_maybe_socket.
49872         * lib/sockets.c: Include close-hook.h, w32sock.h.
49873         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49874         (close_sockets_hook): New variable.
49875         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49876         (gl_sockets_cleanup): Unregister it.
49877         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49878         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49879         * modules/close-hook: New file.
49880         * modules/close (Files): Remove lib/w32sock.h.
49881         (Depends-on): Add close-hook.
49882         (Link): Remove section.
49883         * modules/sockets (Files): Add lib/w32sock.h.
49884         (Depends-on): Add close-hook.
49885         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49886         invocation.
49887         * NEWS: Mention that LIB_CLOSE is gone.
49888
49889 2009-03-23  Eric Blake  <ebb9@byu.net>
49890
49891         signal-tests: test previous patch
49892         * tests/test-signal.c: New file.
49893         * modules/signal-tests: Likewise.
49894
49895         signal.h: always support 'volatile sig_atomic_t'
49896         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49897         (gl_SIGNAL_H_DEFAULTS): Add a default.
49898         * modules/signal (Makefile.am): Substitute if needed.
49899         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49900         users can blindly add volatile.
49901         * doc/posix-headers/signal.texi (signal.h): Document it.
49902         Reported by Matthew Woehlke.
49903
49904 2009-03-23  Jim Meyering  <meyering@redhat.com>
49905
49906         pathmax: PATH_MAX: use pathconf only when available
49907         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49908         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49909         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49910         This avoids a link failure in a PSP cross-compilation environment
49911         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49912
49913         * lib/vasnprintf.c (divide): Fix typo in comment.
49914
49915 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49916
49917         * gnulib-tool (func_filter_filelist): Fix comment.
49918
49919 2009-03-20  Bruno Haible  <bruno@clisp.org>
49920
49921         Make sockets.h self-contained.
49922         * lib/sockets.c: Include sockets.h first.
49923         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49924
49925 2009-03-19  Eric Blake  <ebb9@byu.net>
49926
49927         doc: mention more functions added in cygwin 1.7.0
49928         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49929         addition.
49930         * doc/posix-functions/log2f.texi: Likewise.
49931
49932 2009-03-19  Jim Meyering  <meyering@redhat.com>
49933
49934         fsusage: avoid syntax error due to statement-before-declaration
49935         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49936         after all declarations.  Reported by Matthew Woehlke in
49937         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49938
49939 2009-03-18  Eric Blake  <ebb9@byu.net>
49940
49941         build-aux/compile: sync from automake
49942         * build-aux/compile: New file, from automake.
49943         * config/srclist.txt: Mention build-aux/compile.
49944
49945 2009-03-17  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/git-merge-changelog.c: Fix typo in comment.
49948         Reported by Reuben Thomas <rrt@sc3d.org>.
49949
49950 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49951
49952         * m4/regex.m4: update and improve help for
49953         --without-included-regex.
49954
49955 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49956
49957         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49958         failure on missing include files.
49959
49960 2009-03-17  Eric Blake  <ebb9@byu.net>
49961
49962         doc: mention more functions added in cygwin 1.7.0
49963         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49964         addition.
49965         * doc/posix-functions/fwscanf.texi: Likewise.
49966         * doc/posix-functions/swprintf.texi: Likewise.
49967         * doc/posix-functions/swscanf.texi: Likewise.
49968         * doc/posix-functions/vfwprintf.texi: Likewise.
49969         * doc/posix-functions/vfwscanf.texi: Likewise.
49970         * doc/posix-functions/vswprintf.texi: Likewise.
49971         * doc/posix-functions/vswscanf.texi: Likewise.
49972         * doc/posix-functions/vwprintf.texi: Likewise.
49973         * doc/posix-functions/vwscanf.texi: Likewise.
49974         * doc/posix-functions/wcscasecmp.texi: Likewise.
49975         * doc/posix-functions/wcsdup.texi: Likewise.
49976         * doc/posix-functions/wcsftime.texi: Likewise.
49977         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49978         * doc/posix-functions/wprintf.texi: Likewise.
49979         * doc/posix-functions/wscanf.texi: Likewise.
49980         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49981
49982 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49983
49984         maint.mk: really add $(AM_MAKEFLAGS)
49985         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49986         was inadvertently omitted in the last commit.
49987         Spotted by Bruno Haible.
49988
49989         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49990         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49991         $(AM_MAKEFLAGS)' rather than plain `make'.
49992
49993         gnulib-tool: execute $MAKE not make
49994         * gnulib-tool: Default $MAKE to 'make'.
49995         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49996         than make.  Initialize $MAKE in the do-autobuild script.
49997
49998         gnulib-tool: use $MAKE not make in generated files
49999         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50000         make, in generated files.  Initialize $MAKE in the do-autobuild
50001         script.
50002
50003         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50004
50005         GNUmakefile: disable parallelism only for multiple, recursive targets
50006         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50007         additions in the Makefile.
50008         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50009         by Automake.
50010         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50011         are listed on the command line and at least one of them is
50012         listed in $(ALL_RECURSIVE_TARGETS).
50013
50014 2009-03-14  Bruno Haible  <bruno@clisp.org>
50015
50016         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50017         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50018         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50019         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50020         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50021         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50022         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50023         unistr/u8-uctomb.
50024         * modules/unistr/u8-strchr (Depends-on): Likewise.
50025         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50026         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50027         unistr/u16-uctomb.
50028         * modules/unistr/u16-strchr (Depends-on): Likewise.
50029         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50030
50031 2009-03-12  Bruno Haible  <bruno@clisp.org>
50032
50033         Work around select() bug on Interix 3.5.
50034         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50035         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50036         * m4/select.m4: New file.
50037         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50038         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50039         * modules/select (Files): Add m4/select.m4.
50040         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50041         * modules/nanosleep (Depends-on): Add select.
50042         * modules/poll (Depends-on): Likewise.
50043         * doc/posix-functions/select.texi: Mention the Interix bug.
50044         Reported by Markus Duft <mduft@gentoo.org>.
50045
50046         * lib/select.c: Renamed from lib/winsock-select.c.
50047         * modules/select (Files): Add lib/select.c, remove
50048         lib/winsock-select.c.
50049         (configure.ac): Update.
50050
50051 2009-03-12  Jim Meyering  <meyering@redhat.com>
50052
50053         avoid gcc warnings about unused macro definitions
50054         * lib/readtokens.c (STREQ): Remove unused definition.
50055         * lib/xmalloc.c (SIZE_MAX): Likewise.
50056         * lib/openat-die.c (N_): Likewise.
50057         * lib/mountlist.c (SIZE_MAX): Remove definition.
50058         Instead, include <stdint.h>.
50059         * lib/readutmp.c: Likewise.
50060         * modules/readutmp (Depends-on): Add stdint.
50061         * modules/mountlist (Depends-on): Add stdint.
50062         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50063
50064 2009-03-10  Bruno Haible  <bruno@clisp.org>
50065
50066         Tests for module 'mbmemcasecoll'.
50067         * modules/mbmemcasecoll-tests: New file.
50068         * tests/test-mbmemcasecoll1.sh: New file.
50069         * tests/test-mbmemcasecoll2.sh: New file.
50070         * tests/test-mbmemcasecoll3.sh: New file.
50071         * tests/test-mbmemcasecoll.c: New file.
50072
50073         New module 'mbmemcasecoll'.
50074         * lib/mbmemcasecoll.h: New file.
50075         * lib/mbmemcasecoll.c: New file.
50076         * modules/mbmemcasecoll: New file.
50077
50078         * tests/test-mbmemcasecmp.h: New file, extracted from
50079         tests/test-mbmemcasecmp.c.
50080         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50081         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50082         (main): Update.
50083         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50084
50085 2009-03-09  Bruno Haible  <bruno@clisp.org>
50086
50087         Tests for module 'mbmemcasecmp'.
50088         * modules/mbmemcasecmp-tests: New file.
50089         * tests/test-mbmemcasecmp1.sh: New file.
50090         * tests/test-mbmemcasecmp2.sh: New file.
50091         * tests/test-mbmemcasecmp3.sh: New file.
50092         * tests/test-mbmemcasecmp.c: New file.
50093
50094         New module 'mbmemcasecmp'.
50095         * lib/mbmemcasecmp.h: New file.
50096         * lib/mbmemcasecmp.c: New file.
50097         * modules/mbmemcasecmp: New file.
50098
50099 2009-03-09  Bruno Haible  <bruno@clisp.org>
50100
50101         Tests for module 'unicase/ulc-casecoll'.
50102         * modules/unicase/ulc-casecoll-tests: New file.
50103         * tests/unicase/test-ulc-casecoll1.sh: New file.
50104         * tests/unicase/test-ulc-casecoll2.sh: New file.
50105         * tests/unicase/test-ulc-casecoll.c: New file.
50106
50107         New module 'unicase/ulc-casecoll'.
50108         * lib/unicase.h (ulc_casecoll): New declaration.
50109         * lib/unicase/ulc-casecoll.c: New file.
50110         * modules/unicase/ulc-casecoll: New file.
50111
50112         New module 'unicase/ulc-casexfrm'.
50113         * lib/unicase.h (ulc_casexfrm): New declaration.
50114         * lib/unicase/ulc-casexfrm.c: New file.
50115         * modules/unicase/ulc-casexfrm: New file.
50116
50117 2009-03-09  Bruno Haible  <bruno@clisp.org>
50118
50119         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50120         invocations.
50121
50122         * m4/mbscasecmp.m4: Remove file.
50123         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50124         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50125
50126         * m4/mbscasestr.m4: Remove file.
50127         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50128         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50129
50130         * m4/mbschr.m4: Remove file.
50131         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50132         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50133
50134         * m4/mbscspn.m4: Remove file.
50135         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50136         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50137
50138         * m4/mbslen.m4: Remove file.
50139         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50140         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50141
50142         * m4/mbsncasecmp.m4: Remove file.
50143         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50144         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50145
50146         * m4/mbsnlen.m4: Remove file.
50147         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50148         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50149
50150         * m4/mbspbrk.m4: Remove file.
50151         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50152         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50153
50154         * m4/mbspcasecmp.m4: Remove file.
50155         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50156         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50157
50158         * m4/mbsrchr.m4: Remove file.
50159         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50160         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50161
50162         * m4/mbssep.m4: Remove file.
50163         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50164         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50165
50166         * m4/mbsspn.m4: Remove file.
50167         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50168         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50169
50170         * m4/mbsstr.m4: Remove file.
50171         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50172         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50173
50174         * m4/mbstok_r.m4: Remove file.
50175         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50176         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50177
50178         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50179
50180         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50181         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50182
50183         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50184
50185 2009-03-08  Bruno Haible  <bruno@clisp.org>
50186
50187         Tests for module 'unicase/ulc-casecmp'.
50188         * modules/unicase/ulc-casecmp-tests: New file.
50189         * tests/unicase/test-ulc-casecmp1.sh: New file.
50190         * tests/unicase/test-ulc-casecmp2.sh: New file.
50191         * tests/unicase/test-ulc-casecmp.c: New file.
50192
50193         New module 'unicase/ulc-casecmp'.
50194         * lib/unicase.h (ulc_casecmp): New declaration.
50195         * lib/unicase/ulc-casecmp.c: New file.
50196         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50197         'const SRC_UNIT *'.
50198         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50199         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50200         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50201         * modules/unicase/ulc-casecmp: New file.
50202
50203         Tests for module 'unicase/u32-is-cased'.
50204         * modules/unicase/u32-is-cased-tests: New file.
50205         * tests/unicase/test-u32-is-cased.c: New file.
50206
50207         Tests for module 'unicase/u16-is-cased'.
50208         * modules/unicase/u16-is-cased-tests: New file.
50209         * tests/unicase/test-u16-is-cased.c: New file.
50210
50211         Tests for module 'unicase/u8-is-cased'.
50212         * modules/unicase/u8-is-cased-tests: New file.
50213         * tests/unicase/test-u8-is-cased.c: New file.
50214         * tests/unicase/test-is-cased.h: New file.
50215
50216         New module 'unicase/u32-is-cased'.
50217         * lib/unicase/u32-is-cased.c: New file.
50218         * modules/unicase/u32-is-cased: New file.
50219
50220         New module 'unicase/u16-is-cased'.
50221         * lib/unicase/u16-is-cased.c: New file.
50222         * modules/unicase/u16-is-cased: New file.
50223
50224         New module 'unicase/u8-is-cased'.
50225         * lib/unicase/u8-is-cased.c: New file.
50226         * lib/unicase/u-is-cased.h: New file.
50227         * modules/unicase/u8-is-cased: New file.
50228
50229         Tests for module 'unicase/u32-is-casefolded'.
50230         * modules/unicase/u32-is-casefolded-tests: New file.
50231         * tests/unicase/test-u32-is-casefolded.c: New file.
50232
50233         Tests for module 'unicase/u16-is-casefolded'.
50234         * modules/unicase/u16-is-casefolded-tests: New file.
50235         * tests/unicase/test-u16-is-casefolded.c: New file.
50236
50237         Tests for module 'unicase/u8-is-casefolded'.
50238         * modules/unicase/u8-is-casefolded-tests: New file.
50239         * tests/unicase/test-u8-is-casefolded.c: New file.
50240         * tests/unicase/test-is-casefolded.h: New file.
50241
50242         New module 'unicase/u32-is-casefolded'.
50243         * lib/unicase/u32-is-casefolded.c: New file.
50244         * modules/unicase/u32-is-casefolded: New file.
50245
50246         New module 'unicase/u16-is-casefolded'.
50247         * lib/unicase/u16-is-casefolded.c: New file.
50248         * modules/unicase/u16-is-casefolded: New file.
50249
50250         New module 'unicase/u8-is-casefolded'.
50251         * lib/unicase/u8-is-casefolded.c: New file.
50252         * modules/unicase/u8-is-casefolded: New file.
50253
50254         Tests for module 'unicase/u32-is-titlecase'.
50255         * modules/unicase/u32-is-titlecase-tests: New file.
50256         * tests/unicase/test-u32-is-titlecase.c: New file.
50257
50258         Tests for module 'unicase/u16-is-titlecase'.
50259         * modules/unicase/u16-is-titlecase-tests: New file.
50260         * tests/unicase/test-u16-is-titlecase.c: New file.
50261
50262         Tests for module 'unicase/u8-is-titlecase'.
50263         * modules/unicase/u8-is-titlecase-tests: New file.
50264         * tests/unicase/test-u8-is-titlecase.c: New file.
50265         * tests/unicase/test-is-titlecase.h: New file.
50266
50267         New module 'unicase/u32-is-titlecase'.
50268         * lib/unicase/u32-is-titlecase.c: New file.
50269         * modules/unicase/u32-is-titlecase: New file.
50270
50271         New module 'unicase/u16-is-titlecase'.
50272         * lib/unicase/u16-is-titlecase.c: New file.
50273         * modules/unicase/u16-is-titlecase: New file.
50274
50275         New module 'unicase/u8-is-titlecase'.
50276         * lib/unicase/u8-is-titlecase.c: New file.
50277         * modules/unicase/u8-is-titlecase: New file.
50278
50279         Tests for module 'unicase/u32-is-lowercase'.
50280         * modules/unicase/u32-is-lowercase-tests: New file.
50281         * tests/unicase/test-u32-is-lowercase.c: New file.
50282
50283         Tests for module 'unicase/u16-is-lowercase'.
50284         * modules/unicase/u16-is-lowercase-tests: New file.
50285         * tests/unicase/test-u16-is-lowercase.c: New file.
50286
50287         Tests for module 'unicase/u8-is-lowercase'.
50288         * modules/unicase/u8-is-lowercase-tests: New file.
50289         * tests/unicase/test-u8-is-lowercase.c: New file.
50290         * tests/unicase/test-is-lowercase.h: New file.
50291
50292         New module 'unicase/u32-is-lowercase'.
50293         * lib/unicase/u32-is-lowercase.c: New file.
50294         * modules/unicase/u32-is-lowercase: New file.
50295
50296         New module 'unicase/u16-is-lowercase'.
50297         * lib/unicase/u16-is-lowercase.c: New file.
50298         * modules/unicase/u16-is-lowercase: New file.
50299
50300         New module 'unicase/u8-is-lowercase'.
50301         * lib/unicase/u8-is-lowercase.c: New file.
50302         * modules/unicase/u8-is-lowercase: New file.
50303
50304         Tests for module 'unicase/u32-is-uppercase'.
50305         * modules/unicase/u32-is-uppercase-tests: New file.
50306         * tests/unicase/test-u32-is-uppercase.c: New file.
50307
50308         Tests for module 'unicase/u16-is-uppercase'.
50309         * modules/unicase/u16-is-uppercase-tests: New file.
50310         * tests/unicase/test-u16-is-uppercase.c: New file.
50311
50312         Tests for module 'unicase/u8-is-uppercase'.
50313         * modules/unicase/u8-is-uppercase-tests: New file.
50314         * tests/unicase/test-u8-is-uppercase.c: New file.
50315         * tests/unicase/test-is-uppercase.h: New file.
50316
50317         New module 'unicase/u32-is-uppercase'.
50318         * lib/unicase/u32-is-uppercase.c: New file.
50319         * modules/unicase/u32-is-uppercase: New file.
50320
50321         New module 'unicase/u16-is-uppercase'.
50322         * lib/unicase/u16-is-uppercase.c: New file.
50323         * modules/unicase/u16-is-uppercase: New file.
50324
50325         New module 'unicase/u8-is-uppercase'.
50326         * lib/unicase/u8-is-uppercase.c: New file.
50327         * modules/unicase/u8-is-uppercase: New file.
50328
50329         New module 'unicase/u32-is-invariant'.
50330         * lib/unicase/u32-is-invariant.c: New file.
50331         * modules/unicase/u32-is-invariant: New file.
50332
50333         New module 'unicase/u16-is-invariant'.
50334         * lib/unicase/u16-is-invariant.c: New file.
50335         * modules/unicase/u16-is-invariant: New file.
50336
50337         New module 'unicase/u8-is-invariant'.
50338         * lib/unicase/u8-is-invariant.c: New file.
50339         * lib/unicase/invariant.h: New file.
50340         * lib/unicase/u-is-invariant.h: New file.
50341         * modules/unicase/u8-is-invariant: New file.
50342
50343         Tests for module 'unicase/u32-casecoll'.
50344         * modules/unicase/u32-casecoll-tests: New file.
50345         * tests/unicase/test-u32-casecoll.c: New file.
50346
50347         Tests for module 'unicase/u16-casecoll'.
50348         * modules/unicase/u16-casecoll-tests: New file.
50349         * tests/unicase/test-u16-casecoll.c: New file.
50350
50351         Tests for module 'unicase/u8-casecoll'.
50352         * modules/unicase/u8-casecoll-tests: New file.
50353         * tests/unicase/test-u8-casecoll.c: New file.
50354
50355         New module 'unicase/u32-casecoll'.
50356         * lib/unicase/u32-casecoll.c: New file.
50357         * modules/unicase/u32-casecoll: New file.
50358
50359         New module 'unicase/u16-casecoll'.
50360         * lib/unicase/u16-casecoll.c: New file.
50361         * modules/unicase/u16-casecoll: New file.
50362
50363         New module 'unicase/u8-casecoll'.
50364         * lib/unicase/u8-casecoll.c: New file.
50365         * lib/unicase/u-casecoll.h: New file.
50366         * modules/unicase/u8-casecoll: New file.
50367
50368         New module 'unicase/u32-casexfrm'.
50369         * lib/unicase/u32-casexfrm.c: New file.
50370         * modules/unicase/u32-casexfrm: New file.
50371
50372         New module 'unicase/u16-casexfrm'.
50373         * lib/unicase/u16-casexfrm.c: New file.
50374         * modules/unicase/u16-casexfrm: New file.
50375
50376         New module 'unicase/u8-casexfrm'.
50377         * lib/unicase/u8-casexfrm.c: New file.
50378         * lib/unicase/u-casexfrm.h: New file.
50379         * modules/unicase/u8-casexfrm: New file.
50380
50381         Tests for module 'unicase/u32-casecmp'.
50382         * modules/unicase/u32-casecmp-tests: New file.
50383         * tests/unicase/test-u32-casecmp.c: New file.
50384
50385         Tests for module 'unicase/u16-casecmp'.
50386         * modules/unicase/u16-casecmp-tests: New file.
50387         * tests/unicase/test-u16-casecmp.c: New file.
50388
50389         Tests for module 'unicase/u8-casecmp'.
50390         * modules/unicase/u8-casecmp-tests: New file.
50391         * tests/unicase/test-u8-casecmp.c: New file.
50392         * tests/unicase/test-casecmp.h: New file.
50393
50394         New module 'unicase/u32-casecmp'.
50395         * lib/unicase/u32-casecmp.c: New file.
50396         * modules/unicase/u32-casecmp: New file.
50397
50398         New module 'unicase/u16-casecmp'.
50399         * lib/unicase/u16-casecmp.c: New file.
50400         * modules/unicase/u16-casecmp: New file.
50401
50402         New module 'unicase/u8-casecmp'.
50403         * lib/unicase/u8-casecmp.c: New file.
50404         * lib/unicase/u-casecmp.h: New file.
50405         * modules/unicase/u8-casecmp: New file.
50406
50407         Tests for module 'unicase/u32-casefold'.
50408         * modules/unicase/u32-casefold-tests: New file.
50409         * tests/unicase/test-u32-casefold.c: New file.
50410
50411         Tests for module 'unicase/u16-casefold'.
50412         * modules/unicase/u16-casefold-tests: New file.
50413         * tests/unicase/test-u16-casefold.c: New file.
50414
50415         Tests for module 'unicase/u8-casefold'.
50416         * modules/unicase/u8-casefold-tests: New file.
50417         * tests/unicase/test-u8-casefold.c: New file.
50418
50419         New module 'unicase/u32-casefold'.
50420         * lib/unicase/u32-casefold.c: New file.
50421         * modules/unicase/u32-casefold: New file.
50422
50423         New module 'unicase/u16-casefold'.
50424         * lib/unicase/u16-casefold.c: New file.
50425         * modules/unicase/u16-casefold: New file.
50426
50427         New module 'unicase/u8-casefold'.
50428         * lib/unicase/u8-casefold.c: New file.
50429         * lib/unicase/u-casefold.h: New file.
50430         * modules/unicase/u8-casefold: New file.
50431
50432         New module 'unicase/tocasefold'.
50433         * lib/unicase/casefold.h: New file.
50434         * lib/unicase/tocasefold.c: New file.
50435         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50436         * modules/unicase/tocasefold: New file.
50437
50438         Tests for module 'unicase/u32-totitle'.
50439         * modules/unicase/u32-totitle-tests: New file.
50440         * tests/unicase/test-u32-totitle.c: New file.
50441
50442         Tests for module 'unicase/u16-totitle'.
50443         * modules/unicase/u16-totitle-tests: New file.
50444         * tests/unicase/test-u16-totitle.c: New file.
50445
50446         Tests for module 'unicase/u8-totitle'.
50447         * modules/unicase/u8-totitle-tests: New file.
50448         * tests/unicase/test-u8-totitle.c: New file.
50449
50450         New module 'unicase/u32-totitle'.
50451         * lib/unicase/u32-totitle.c: New file.
50452         * modules/unicase/u32-totitle: New file.
50453
50454         New module 'unicase/u16-totitle'.
50455         * lib/unicase/u16-totitle.c: New file.
50456         * modules/unicase/u16-totitle: New file.
50457
50458         New module 'unicase/u8-totitle'.
50459         * lib/unicase/u8-totitle.c: New file.
50460         * lib/unicase/u-totitle.h: New file.
50461         * modules/unicase/u8-totitle: New file.
50462
50463         Tests for module 'unicase/u32-tolower'.
50464         * modules/unicase/u32-tolower-tests: New file.
50465         * tests/unicase/test-u32-tolower.c: New file.
50466
50467         Tests for module 'unicase/u16-tolower'.
50468         * modules/unicase/u16-tolower-tests: New file.
50469         * tests/unicase/test-u16-tolower.c: New file.
50470
50471         Tests for module 'unicase/u8-tolower'.
50472         * modules/unicase/u8-tolower-tests: New file.
50473         * tests/unicase/test-u8-tolower.c: New file.
50474
50475         New module 'unicase/u32-tolower'.
50476         * lib/unicase/u32-tolower.c: New file.
50477         * modules/unicase/u32-tolower: New file.
50478
50479         New module 'unicase/u16-tolower'.
50480         * lib/unicase/u16-tolower.c: New file.
50481         * modules/unicase/u16-tolower: New file.
50482
50483         New module 'unicase/u8-tolower'.
50484         * lib/unicase/u8-tolower.c: New file.
50485         * modules/unicase/u8-tolower: New file.
50486
50487         Tests for module 'unicase/u32-toupper'.
50488         * modules/unicase/u32-toupper-tests: New file.
50489         * tests/unicase/test-u32-toupper.c: New file.
50490
50491         Tests for module 'unicase/u16-toupper'.
50492         * modules/unicase/u16-toupper-tests: New file.
50493         * tests/unicase/test-u16-toupper.c: New file.
50494
50495         Tests for module 'unicase/u8-toupper'.
50496         * modules/unicase/u8-toupper-tests: New file.
50497         * tests/unicase/test-u8-toupper.c: New file.
50498
50499         New module 'unicase/u32-toupper'.
50500         * lib/unicase/u32-toupper.c: New file.
50501         * modules/unicase/u32-toupper: New file.
50502
50503         New module 'unicase/u16-toupper'.
50504         * lib/unicase/u16-toupper.c: New file.
50505         * modules/unicase/u16-toupper: New file.
50506
50507         New module 'unicase/u8-toupper'.
50508         * lib/unicase/u8-toupper.c: New file.
50509         * modules/unicase/u8-toupper: New file.
50510
50511         New module 'unicase/u32-casemap'.
50512         * lib/unicase/u32-casemap.c: New file.
50513         * modules/unicase/u32-casemap: New file.
50514
50515         New module 'unicase/u16-casemap'.
50516         * lib/unicase/u16-casemap.c: New file.
50517         * modules/unicase/u16-casemap: New file.
50518
50519         New module 'unicase/u8-casemap'.
50520         * lib/unicase/unicasemap.h: New file.
50521         * lib/unicase/u8-casemap.c: New file.
50522         * lib/unicase/u-casemap.h: New file.
50523         * modules/unicase/u8-casemap: New file.
50524
50525         New module 'unicase/special-casing'.
50526         * lib/unicase/special-casing.h: New file.
50527         * lib/unicase/special-casing.c: New file.
50528         * lib/unicase/special-casing-table.gperf: New file, generated by
50529         gen-uni-tables.c.
50530         * modules/unicase/special-casing: New file.
50531
50532         Tests for module 'unicase/locale-language'.
50533         * modules/unicase/locale-language-tests: New file.
50534         * tests/unicase/test-locale-language.sh: New file.
50535         * tests/unicase/test-locale-language.c: New file.
50536
50537         New module 'unicase/locale-language'.
50538         * lib/unicase/locale-language.c: New file.
50539         * lib/unicase/locale-languages.gperf: New file.
50540         * modules/unicase/locale-language: New file.
50541
50542         Generate more tables for case conversion and case folding.
50543         * lib/gen-uni-tables.c (SCC_*): New enum items.
50544         (struct special_casing_rule): New type.
50545         (casing_rules, num_casing_rules, allocated_casing_rules): New
50546         variables.
50547         (add_casing_rule, fill_casing_rules): New functions.
50548         (struct casefold_rule): New type.
50549         (casefolding_rules, num_casefolding_rules,
50550         allocated_casefolding_rules): New variables.
50551         (fill_casefolding_rules): New function.
50552         (unicode_casefold): New variable.
50553         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50554         sort_casing_rules, output_casing_rules): New functions.
50555         (main): Accept to more arguments: SpecialCasing.txt and
50556         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50557         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50558         Output mapping for casefolding.
50559
50560         * lib/unicase.h: Include stdbool.h, uninorm.h.
50561         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50562         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50563         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50564         arguments.
50565         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50566         resultp arguments.
50567         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50568         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50569         resultp arguments.
50570         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50571         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50572         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50573         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50574         declarations.
50575         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50576
50577 2009-03-08  Bruno Haible  <bruno@clisp.org>
50578
50579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50580         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50581         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50582         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50583
50584 2009-03-07  Bruno Haible  <bruno@clisp.org>
50585
50586         Adjust u*_normcmp, u*_normcoll API.
50587         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50588         u16_normcoll, u32_normcoll): Change failure conventions.
50589         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50590         errno and return -1.
50591         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50592
50593 2009-03-07  Bruno Haible  <bruno@clisp.org>
50594
50595         Tests for module 'uninorm/u32-normcoll'.
50596         * modules/uninorm/u32-normcoll-tests: New file.
50597         * tests/uninorm/test-u32-normcoll.c: New file.
50598
50599         Tests for module 'uninorm/u16-normcoll'.
50600         * modules/uninorm/u16-normcoll-tests: New file.
50601         * tests/uninorm/test-u16-normcoll.c: New file.
50602
50603         Tests for module 'uninorm/u8-normcoll'.
50604         * modules/uninorm/u8-normcoll-tests: New file.
50605         * tests/uninorm/test-u8-normcoll.c: New file.
50606
50607 2009-03-07  Bruno Haible  <bruno@clisp.org>
50608
50609         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50610         tests/uninorm/test-u32-normcmp.c.
50611         * tests/uninorm/test-u32-normcmp.c: Include it.
50612         (test_nonascii): New function, extracted from main. Add some more
50613         tests.
50614         (main): Invoke test_ascii and test_nonascii.
50615         * modules/uninorm/u32-normcmp-tests (Files): Add
50616         tests/uninorm/test-u32-normcmp.h.
50617         (Depends-on): Remove uninorm/u32-normcmp.
50618
50619         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50620         tests/uninorm/test-u16-normcmp.c.
50621         * tests/uninorm/test-u16-normcmp.c: Include it.
50622         (test_nonascii): New function, extracted from main. Add some more
50623         tests.
50624         (main): Invoke test_ascii and test_nonascii.
50625         * modules/uninorm/u16-normcmp-tests (Files): Add
50626         tests/uninorm/test-u16-normcmp.h.
50627         (Depends-on): Remove uninorm/u16-normcmp.
50628
50629         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50630         tests/uninorm/test-u8-normcmp.c.
50631         * tests/uninorm/test-u8-normcmp.c: Include it.
50632         (test_nonascii): New function, extracted from main. Add some more
50633         tests.
50634         (main): Invoke test_ascii and test_nonascii.
50635         * modules/uninorm/u8-normcmp-tests (Files): Add
50636         tests/uninorm/test-u8-normcmp.h.
50637         (Depends-on): Remove uninorm/u8-normcmp.
50638
50639 2009-03-07  Bruno Haible  <bruno@clisp.org>
50640
50641         New module 'uninorm/u32-normcoll'.
50642         * lib/uninorm/u32-normcoll.c: New file.
50643         * modules/uninorm/u32-normcoll: New file.
50644
50645         New module 'uninorm/u16-normcoll'.
50646         * lib/uninorm/u16-normcoll.c: New file.
50647         * modules/uninorm/u16-normcoll: New file.
50648
50649         New module 'uninorm/u8-normcoll'.
50650         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50651         declarations.
50652         * lib/uninorm/u8-normcoll.c: New file.
50653         * lib/uninorm/u-normcoll.h: New file.
50654         * modules/uninorm/u8-normcoll: New file.
50655
50656         New module 'uninorm/u32-normxfrm'.
50657         * lib/uninorm/u32-normxfrm.c: New file.
50658         * modules/uninorm/u32-normxfrm: New file.
50659
50660         New module 'uninorm/u16-normxfrm'.
50661         * lib/uninorm/u16-normxfrm.c: New file.
50662         * modules/uninorm/u16-normxfrm: New file.
50663
50664         New module 'uninorm/u8-normxfrm'.
50665         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50666         declarations.
50667         * lib/uninorm/u8-normxfrm.c: New file.
50668         * lib/uninorm/u-normxfrm.h: New file.
50669         * modules/uninorm/u8-normxfrm: New file.
50670
50671 2009-03-07  Bruno Haible  <bruno@clisp.org>
50672
50673         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50674         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50675         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50676
50677 2009-03-07  Bruno Haible  <bruno@clisp.org>
50678
50679         New module 'memxfrm'.
50680         * lib/memxfrm.h: New file.
50681         * lib/memxfrm.c: New file.
50682         * modules/memxfrm: New file.
50683
50684 2009-03-07  Bruno Haible  <bruno@clisp.org>
50685
50686         New module 'memcmp2'.
50687         * lib/memcmp2.h: New file.
50688         * lib/memcmp2.c: New file.
50689         * modules/memcmp2: New file.
50690
50691 2009-03-07  Bruno Haible  <bruno@clisp.org>
50692
50693         Tests for module 'uninorm/decomposing-form'.
50694         * modules/uninorm/decomposing-form-tests: New file.
50695         * tests/uninorm/test-decomposing-form.c: New file.
50696
50697         New module 'uninorm/decomposing-form'.
50698         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50699         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50700         Add 'decomposing_variant' field.
50701         * lib/uninorm/decomposing-form.c: New file.
50702         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50703         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50704         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50705         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50706         * modules/uninorm/decomposing-form: New file.
50707         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50708         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50709
50710 2009-03-07  Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50713         strings.
50714
50715 2009-03-06  Bruno Haible  <bruno@clisp.org>
50716
50717         Tests for module 'uninorm/u32-normcmp'.
50718         * tests/uninorm/test-u32-normcmp.c: New file.
50719         * modules/uninorm/u32-normcmp-tests: New file.
50720
50721         Tests for module 'uninorm/u16-normcmp'.
50722         * tests/uninorm/test-u16-normcmp.c: New file.
50723         * modules/uninorm/u16-normcmp-tests: New file.
50724
50725         Tests for module 'uninorm/u8-normcmp'.
50726         * tests/uninorm/test-u8-normcmp.c: New file.
50727         * modules/uninorm/u8-normcmp-tests: New file.
50728
50729         New module 'uninorm/u32-normcmp'.
50730         * lib/uninorm/u32-normcmp.c: New file.
50731         * modules/uninorm/u32-normcmp: New file.
50732
50733         New module 'uninorm/u16-normcmp'.
50734         * lib/uninorm/u16-normcmp.c: New file.
50735         * modules/uninorm/u16-normcmp: New file.
50736
50737         New module 'uninorm/u8-normcmp'.
50738         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50739         declarations.
50740         * lib/uninorm/u8-normcmp.c: New file.
50741         * lib/uninorm/u-normcmp.h: New file.
50742         * modules/uninorm/u8-normcmp: New file.
50743
50744 2009-03-06  Bruno Haible  <bruno@clisp.org>
50745
50746         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50747         Reported by Eric Blake.
50748
50749 2009-03-06  Eric Blake  <ebb9@byu.net>
50750             Bruno Haible  <bruno@clisp.org>
50751
50752         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50753         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50754         condition.
50755         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50756         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50757         condition.
50758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50759
50760 2009-03-06  Eric Blake  <ebb9@byu.net>
50761
50762         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50763         to avoid compiler warnings.
50764         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50765
50766 2009-03-05  Bruno Haible  <bruno@clisp.org>
50767
50768         * tests/test-ftell.c (main): Disable test beyond end of file on
50769         FreeMiNT.
50770         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50771
50772 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50773
50774         * lib/filevercmp.c: Move hidden files up in ordering.
50775         * tests/test-filevercmp.c: Add tests for hidden files.
50776
50777 2009-03-04  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50780         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50781         AM_CFLAGS.
50782         Reported by Simon Josefsson.
50783
50784 2009-03-03  Bruno Haible  <bruno@clisp.org>
50785
50786         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50787         Reported by Simon Josefsson.
50788
50789         * doc/ld-version-script.texi: Update node reference.
50790
50791 2009-03-03  Bruno Haible  <bruno@clisp.org>
50792
50793         * modules/visibility (License): Change to 'unlimited'.
50794         Suggested by Simon Josefsson.
50795
50796 2009-03-03  Jim Meyering  <meyering@redhat.com>
50797
50798         unlinkdir: cannot_unlink_dir may modify process state
50799         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50800         it's neither thread-safe nor appropriate for use in a library.
50801
50802 2009-03-03  Eric Blake  <ebb9@byu.net>
50803
50804         test-closein: silence test under Darwin
50805         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50806         care if it dies from EPIPE or EBADF.
50807
50808 2009-03-03  Bruno Haible  <bruno@clisp.org>
50809
50810         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50811         earlier.
50812         * doc/visibility.texi: Fix @node and @section.
50813
50814 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50815
50816         * doc/gnulib.texi: Link to sections for ld version script and
50817         visibility.
50818         * doc/visibility.texi: Add @node and @section.
50819         * modules/ld-version-script: New module.
50820         * m4/ld-version-script.m4: New file.
50821         * doc/ld-version-script.texi: New file.
50822
50823 2009-03-02  David Lutterkort  <lutter@redhat.com>
50824
50825         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50827
50828 2009-03-02  Bruno Haible  <bruno@clisp.org>
50829
50830         * doc/visibility.texi: Mention libtool's -export-symbols option.
50831
50832 2009-03-02  Jim Meyering  <meyering@redhat.com>
50833
50834         announce-gen: new option: --no-print-checksums
50835         * build-aux/announce-gen (usage): Describe it.
50836         (print_checksums): Print a newline here, not in the [*] footnote.
50837         (main): Honor it.
50838
50839 2009-03-01  Bruno Haible  <bruno@clisp.org>
50840
50841         Use socklen_t in the native Windows replacements prototypes.
50842         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50843         instead of 'int'.
50844         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50845         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50846         * modules/getsockopt (Depends-on): Add socklen.
50847         * modules/setsockopt (Depends-on): Add socklen.
50848
50849 2009-03-01  Bruno Haible  <bruno@clisp.org>
50850
50851         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50852         least 4.2.
50853
50854 2009-03-01  Eric Blake  <ebb9@byu.net>
50855             Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50858         error messages.
50859         * lib/wait-process.c (wait_subprocess): Omit error message about
50860         deadly signal sent to the child of termsigp != NULL.
50861
50862 2009-03-01  Eric Blake  <ebb9@byu.net>
50863
50864         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50865
50866 2009-03-01  Bruno Haible  <bruno@clisp.org>
50867
50868         Avoid a gcc warning.
50869         * tests/test-sched.c (b): Make global.
50870         Reported by Eric Blake.
50871
50872 2009-01-19  Martin Lambers  <marlam@marlam.de>
50873
50874         Provide POSIX semantics for socket timeout options on W32.
50875         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50876         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50877         * modules/setsockopt: Depend on sys_time module for struct timeval.
50878         * modules/getsockopt: Depend on sys_time module for struct timeval.
50879
50880 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50881
50882         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50883         __USE_GNU, for consistency with netdb.in.h.
50884         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50885
50886 2009-03-01  Bruno Haible  <bruno@clisp.org>
50887
50888         More support for FreeMiNT.
50889         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50890         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50891
50892 2009-03-01  Bruno Haible  <bruno@clisp.org>
50893
50894         More support for FreeMiNT.
50895         * lib/fpurge.c (fpurge): Correct last commit.
50896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50897
50898 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50899
50900         Fix unportable awk script in vc-list-files.
50901         * build-aux/vc-list-files: In the replacement awk script, use
50902         substr with a second argument of 1, not zero.
50903         Report by Simon Josefsson.
50904
50905 2009-02-28  Bruno Haible  <bruno@clisp.org>
50906
50907         More support for FreeMiNT.
50908         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50909         to FreeMiNT today.
50910         * lib/fwriting.c (fwriting): Likewise.
50911         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50912
50913 2009-02-28  Bruno Haible  <bruno@clisp.org>
50914
50915         * tests/test-freadseek.c (main): Disable test beyond end of file on
50916         FreeMiNT.
50917         * tests/test-ftello.c (main): Likewise.
50918         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50919
50920 2009-02-28  Bruno Haible  <bruno@clisp.org>
50921
50922         Add tentative support for FreeMiNT.
50923         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50924         * lib/fpurge.c (fpurge): Likewise.
50925         * lib/freadable.c (freadable): Likewise.
50926         * lib/freading.c (freading): Likewise.
50927         * lib/freadptr.c (freadptr): Likewise.
50928         * lib/freadseek.c (freadptrinc): Likewise.
50929         * lib/fseeko.c (rpl_fseeko): Likewise.
50930         * lib/fseterr.c (fseterr): Likewise.
50931         * lib/fwritable.c (fwritable): Likewise.
50932         * lib/fwriting.c (fwriting): Likewise.
50933         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50934         Hourihane.
50935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50936
50937 2009-02-28  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50940         SIGCHLD.
50941         Reported by Jim Meyering.
50942
50943 2009-02-28  Bruno Haible  <bruno@clisp.org>
50944
50945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50946         Mention the results of these tests on various platforms.
50947         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50948         order.
50949         * doc/posix-functions/printf.texi: Likewise.
50950         * doc/posix-functions/snprintf.texi: Likewise.
50951         * doc/posix-functions/sprintf.texi: Likewise.
50952         * doc/posix-functions/vfprintf.texi: Likewise.
50953         * doc/posix-functions/vprintf.texi: Likewise.
50954         * doc/posix-functions/vsnprintf.texi: Likewise.
50955         * doc/posix-functions/vsprintf.texi: Likewise.
50956         * doc/glibc-functions/obstack_printf.texi: Likewise.
50957         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50958
50959 2009-02-28  Bruno Haible  <bruno@clisp.org>
50960
50961         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50962         Reported by Loïc Minier <lool@dooz.org>.
50963
50964 2009-02-27  Bruno Haible  <bruno@clisp.org>
50965
50966         * gnulib-tool (func_import): Make the sed expression used to create the
50967         sed script for updating the .gitignore file POSIX compliant.
50968         Reported by Eric Blake.
50969
50970 2009-02-27  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool (sed): Don't alias as "sed --posix".
50973         Reported by Eric Blake.
50974
50975 2009-02-27  Bruno Haible  <bruno@clisp.org>
50976
50977         Avoid test link errors.
50978         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50979         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50980         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50981         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50983
50984 2009-02-27  Bruno Haible  <bruno@clisp.org>
50985
50986         Avoid spurious "(cached)" in configure output.
50987         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50988         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50991         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50992         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50994         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50995         Reported by Eric Blake.
50996
50997 2009-02-27  Eric Blake  <ebb9@byu.net>
50998
50999         printf: fix regression in previous patch
51000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51001
51002 2009-02-27  Bruno Haible  <bruno@clisp.org>
51003
51004         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51005         value.
51006         * lib/stdint.in.h: Likewise.
51007         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51008
51009 2009-02-27  Eric Blake  <ebb9@byu.net>
51010
51011         doc: mention more functions added in cygwin 1.7.0
51012         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51013         addition.
51014         * doc/posix-functions/open_wmemstream.texi: Likewise.
51015         * doc/posix-functions/wcsnlen.texi: Likewise.
51016         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51017         * doc/posix-functions/wcstod.texi: Likewise.
51018         * doc/posix-functions/wcstof.texi: Likewise.
51019         * doc/posix-functions/wcstoimax.texi: Likewise.
51020         * doc/posix-functions/wcstok.texi: Likewise.
51021         * doc/posix-functions/wcstoumax.texi: Likewise.
51022
51023         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51025         * doc/posix-functions/fprintf.texi: Update.
51026         * doc/posix-functions/printf.texi: Update.
51027         * doc/posix-functions/snprintf.texi: Update.
51028         * doc/posix-functions/sprintf.texi: Update.
51029         * doc/posix-functions/vfprintf.texi: Update.
51030         * doc/posix-functions/vprintf.texi: Update.
51031         * doc/posix-functions/vsnprintf.texi: Update.
51032         * doc/posix-functions/vsprintf.texi: Update.
51033         * doc/glibc-functions/obstack_printf.texi: Update.
51034         * doc/glibc-functions/obstack_vprintf.texi: Update.
51035
51036 2009-02-26  Eric Blake  <ebb9@byu.net>
51037
51038         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51039         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51040         compilation bug by using runtime conversion.
51041         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51042         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51043         * modules/ceill-tests (Files): Use nan.h.
51044         * modules/floorl-tests (Files): Likewise.
51045         * modules/frexpl-tests (Files): Likewise.
51046         * modules/isnanl-tests (Files): Likewise.
51047         * modules/ldexpl-tests (Files): Likewise.
51048         * modules/roundl-tests (Files): Likewise.
51049         * modules/truncl-tests (Files): Likewise.
51050         * tests/test-ceill.c (main): Use a working NaN.
51051         * tests/test-floorl.c (main): Likewise.
51052         * tests/test-frexpl.c (main): Likewise.
51053         * tests/test-isnan.c (test_long_double): Likewise.
51054         * tests/test-isnanl.h (main): Likewise.
51055         * tests/test-ldexpl.h (main): Likewise.
51056         * tests/test-roundl.h (main): Likewise.
51057         * tests/test-truncl.h (main): Likewise.
51058         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51059
51060 2009-02-26  Eric Blake  <ebb9@byu.net>
51061             Bruno Haible  <bruno@clisp.org>
51062
51063         Work around a *printf bug with %ls on Solaris.
51064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51065         precision is specified, sprintf stops converting the wide string
51066         argument when the number of bytes that have been produced by this
51067         conversion equals or exceeds the precision.
51068         * doc/posix-functions/fprintf.texi: Update.
51069         * doc/posix-functions/printf.texi: Update.
51070         * doc/posix-functions/snprintf.texi: Update.
51071         * doc/posix-functions/sprintf.texi: Update.
51072         * doc/posix-functions/vfprintf.texi: Update.
51073         * doc/posix-functions/vprintf.texi: Update.
51074         * doc/posix-functions/vsnprintf.texi: Update.
51075         * doc/posix-functions/vsprintf.texi: Update.
51076         * doc/glibc-functions/obstack_printf.texi: Update.
51077         * doc/glibc-functions/obstack_vprintf.texi: Update.
51078
51079 2009-02-26  Eric Blake  <ebb9@byu.net>
51080
51081         stdlib: favor compiler check of random.h
51082         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51083         to avoid an ObjC random.h installed by Swarm.
51084
51085 2009-02-26  Bruno Haible  <bruno@clisp.org>
51086
51087         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51088         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51089         Reported by Gary V. Vaughan <gary@gnu.org>.
51090
51091 2009-02-26  Bruno Haible  <bruno@clisp.org>
51092
51093         Fix *printf behaviour regarding the %ls directive.
51094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51095         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51096         NEED_PRINTF_DIRECTIVE_LS.
51097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51100         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51101         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51102         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51103         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51108         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51112         * doc/posix-functions/fprintf.texi: Update.
51113         * doc/posix-functions/printf.texi: Update.
51114         * doc/posix-functions/snprintf.texi: Update.
51115         * doc/posix-functions/sprintf.texi: Update.
51116         * doc/posix-functions/vfprintf.texi: Update.
51117         * doc/posix-functions/vprintf.texi: Update.
51118         * doc/posix-functions/vsnprintf.texi: Update.
51119         * doc/posix-functions/vsprintf.texi: Update.
51120         * doc/glibc-functions/obstack_printf.texi: Update.
51121         * doc/glibc-functions/obstack_vprintf.texi: Update.
51122         Reported by Eric Blake.
51123
51124 2009-02-25  Bruno Haible  <bruno@clisp.org>
51125
51126         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51127         with known value.
51128         Reported by Gary V. Vaughan <gary@gnu.org>.
51129
51130 2009-02-25  Bruno Haible  <bruno@clisp.org>
51131
51132         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51133         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51134         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51135         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51136         Reported by Gary V. Vaughan <gary@gnu.org>.
51137
51138 2009-02-25  Bruno Haible  <bruno@clisp.org>
51139
51140         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51141         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51142         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51143         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51144         Reported by Gary V. Vaughan <gary@gnu.org>.
51145
51146 2009-02-25  Eric Blake  <ebb9@byu.net>
51147
51148         tests: skip fseek/ftell tests if ungetc is broken
51149         * m4/ungetc.m4: New file.
51150         * modules/fseek-tests: Split test, so ungetc dependency is
51151         separate from rest of test.
51152         * modules/fseeko-tests: Likewise.
51153         * modules/ftell-tests: Likewise.
51154         * modules/ftello-tests: Likewise.
51155         * tests/test-fseek.c (main): Isolate ungetc dependency.
51156         * tests/test-fseeko.c (main): Likewise.
51157         * tests/test-ftell.c (main): Likewise.
51158         * tests/test-ftello.c (main): Likewise.
51159         * tests/test-fseek2.sh: New file.
51160         * tests/test-fseeko2.sh: Likewise.
51161         * tests/test-ftell2.sh: Likewise.
51162         * tests/test-ftello2.sh: Likewise.
51163
51164 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51165
51166         test-getaddrinfo: fix usage of skip return code 77
51167         * tests/test-gettaddrinfo.c: Return skip code 77 only
51168         for first occurrence of skip (4x77 is not 77)
51169
51170 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51171
51172         strtod: avoid C99 decl-after-statement
51173         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51174
51175 2009-02-24  Eric Blake  <ebb9@byu.net>
51176
51177         strtod: detect HP-UX 11.31 bug
51178         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51179         Reported by Gary V. Vaughan.
51180
51181 2009-02-23  Bruno Haible  <bruno@clisp.org>
51182
51183         Fix invalid read past end of memory block.
51184         * lib/vasnprintf.c (DCHAR_SET): Define.
51185         (local_wcslen): Define only when needed.
51186         (local_strnlen, local_wcsnlen): New functions.
51187         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51188         directives that involve a conversion ourselves.
51189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51190         wcsnlen, mbrtowc, wcrtomb.
51191         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51192         * tests/test-vasprintf-posix.c (test_function): Likewise.
51193         * tests/test-snprintf-posix.h (test_function): Likewise.
51194         * tests/test-sprintf-posix.h (test_function): Likewise.
51195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51196
51197 2009-02-22  Bruno Haible  <bruno@clisp.org>
51198
51199         Implement new clarified decomposition of Hangul syllables.
51200         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51201         of type LTV, return only a pairwise decomposition.
51202         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51203         Likewise.
51204         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51205         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51206         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51207
51208 2009-02-22  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51211         zero-length results and shrink excess allocated memory.
51212         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51213         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51214         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51215         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51216         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51217         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51218         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51219         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51220         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51221         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51222         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51223         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51224
51225 2009-02-21  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51228         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51229         spaces after a period. Put a space between a macro name and its
51230         argument list. Trivial rewordings.
51231         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51232         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51233         (main): Return 0 explicitly.
51234
51235 2009-02-21  Bruno Haible  <bruno@clisp.org>
51236
51237         Tests for module 'uninorm/filter'.
51238         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51239         * modules/uninorm/filter-tests: New file.
51240
51241         New module 'uninorm/filter'.
51242         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51243         uninorm_filter_flush, uninorm_filter_free): New declarations.
51244         * lib/uninorm/uninorm-filter.c: New file.
51245         * modules/uninorm/filter: New file.
51246
51247 2009-02-21  Bruno Haible  <bruno@clisp.org>
51248
51249         Tests for module 'uninorm/nfkc'.
51250         * tests/uninorm/test-nfkc.c: New file.
51251         * tests/uninorm/test-u8-nfkc.c: New file.
51252         * tests/uninorm/test-u16-nfkc.c: New file.
51253         * tests/uninorm/test-u32-nfkc.c: New file.
51254         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51255         * tests/uninorm/test-u32-nfkc-big.c: New file.
51256         * modules/uninorm/nfkc-tests: New file.
51257
51258         New module 'uninorm/nfkc'.
51259         * lib/uninorm/nfkc.c: New file.
51260         * modules/uninorm/nfkc: New file.
51261
51262         Tests for module 'uninorm/nfkd'.
51263         * tests/uninorm/test-nfkd.c: New file.
51264         * tests/uninorm/test-u8-nfkd.c: New file.
51265         * tests/uninorm/test-u16-nfkd.c: New file.
51266         * tests/uninorm/test-u32-nfkd.c: New file.
51267         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51268         * tests/uninorm/test-u32-nfkd-big.c: New file.
51269         * modules/uninorm/nfkd-tests: New file.
51270
51271         New module 'uninorm/nfkd'.
51272         * lib/uninorm/nfkd.c: New file.
51273         * modules/uninorm/nfkd: New file.
51274
51275         Tests for module 'uninorm/nfc'.
51276         * tests/uninorm/test-nfc.c: New file.
51277         * tests/uninorm/test-u8-nfc.c: New file.
51278         * tests/uninorm/test-u16-nfc.c: New file.
51279         * tests/uninorm/test-u32-nfc.c: New file.
51280         * tests/uninorm/test-u32-nfc-big.sh: New file.
51281         * tests/uninorm/test-u32-nfc-big.c: New file.
51282         * modules/uninorm/nfc-tests: New file.
51283
51284         New module 'uninorm/nfc'.
51285         * lib/uninorm/nfc.c: New file.
51286         * modules/uninorm/nfc: New file.
51287
51288         Tests for module 'uninorm/nfd'.
51289         * tests/uninorm/test-nfd.c: New file.
51290         * tests/uninorm/test-u8-nfd.c: New file.
51291         * tests/uninorm/test-u16-nfd.c: New file.
51292         * tests/uninorm/test-u32-nfd.c: New file.
51293         * tests/uninorm/test-u32-nfd-big.sh: New file.
51294         * tests/uninorm/test-u32-nfd-big.c: New file.
51295         * tests/uninorm/test-u32-normalize-big.h: New file.
51296         * tests/uninorm/test-u32-normalize-big.c: New file.
51297         * tests/uninorm/NormalizationTest.txt: New file, created from
51298         Unicode 5.1.0 NormalizationTest.txt.
51299         * modules/uninorm/nfd-tests: New file.
51300
51301         New module 'uninorm/nfd'.
51302         * lib/uninorm/nfd.c: New file.
51303         * modules/uninorm/nfd: New file.
51304
51305         New module 'uninorm/u32-normalize'.
51306         * lib/uninorm/u32-normalize.c: New file.
51307         * modules/uninorm/u32-normalize: New file.
51308
51309         New module 'uninorm/u16-normalize'.
51310         * lib/uninorm/u16-normalize.c: New file.
51311         * modules/uninorm/u16-normalize: New file.
51312
51313         New module 'uninorm/u8-normalize'.
51314         * lib/uninorm/u8-normalize.c: New file.
51315         * lib/uninorm/normalize-internal.h: New file.
51316         * lib/uninorm/u-normalize-internal.h: New file.
51317         * modules/uninorm/u8-normalize: New file.
51318
51319         New module 'uninorm/decompose-internal'.
51320         * lib/uninorm/decompose-internal.c: New file.
51321         * modules/uninorm/decompose-internal: New file.
51322
51323         Tests for module 'uninorm/composition'.
51324         * tests/uninorm/test-composition.c: New file.
51325         * modules/uninorm/composition-tests: New file.
51326
51327         New module 'uninorm/composition'.
51328         * lib/uninorm/composition.c: New file.
51329         * lib/uninorm/composition-table.gperf: New file, generated by
51330         gen-uni-tables.
51331         * modules/uninorm/composition: New file.
51332
51333         Tests for module 'uninorm/compat-decomposition'.
51334         * tests/uninorm/test-compat-decomposition.c: New file.
51335         * modules/uninorm/compat-decomposition-tests: New file.
51336
51337         New module 'uninorm/compat-decomposition'.
51338         * lib/uninorm/decompose-internal.h: New file.
51339         * lib/uninorm/compat-decomposition.c: New file.
51340         * modules/uninorm/compat-decomposition: New file.
51341
51342         Tests for module 'uninorm/canonical-decomposition'.
51343         * tests/uninorm/test-canonical-decomposition.c: New file.
51344         * modules/uninorm/canonical-decomposition-tests: New file.
51345
51346         New module 'uninorm/canonical-decomposition'.
51347         * lib/uninorm/canonical-decomposition.c: New file.
51348         * modules/uninorm/canonical-decomposition: New file.
51349
51350         Tests for module 'uninorm/decomposition'.
51351         * tests/uninorm/test-decomposition.c: New file.
51352         * modules/uninorm/decomposition-tests: New file.
51353
51354         New module 'uninorm/decomposition'.
51355         * lib/uninorm/decomposition.c: New file.
51356         * modules/uninorm/decomposition: New file.
51357
51358         New module 'uninorm/decomposition-table'.
51359         * lib/uninorm/decomposition-table.h: New file.
51360         * lib/uninorm/decomposition-table.c: New file.
51361         * lib/uninorm/decomposition-table1.h: New file, generated by
51362         gen-uni-tables.
51363         * lib/uninorm/decomposition-table2.h: New file, generated by
51364         gen-uni-tables.
51365         * modules/uninorm/decomposition-table: New file.
51366
51367         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51368         (UC_DECOMP_*): New enumeration items.
51369         (get_decomposition): New function.
51370         (struct decomp_table): New type.
51371         (output_decomposition, output_decomposition_tables): New functions.
51372         (unicode_composition_exclusions): New variable.
51373         (fill_composition_exclusions, debug_output_composition_tables): New
51374         functions.
51375         (main): Accept one more argument. Invoke fill_composition_exclusions.
51376         Output decomposition and composition tables.
51377
51378         New module 'uninorm/base'.
51379         * lib/uninorm.h: New file.
51380         * lib/unictype.h: Update comment.
51381         * modules/uninorm/base: New file.
51382
51383 2009-02-21  David Lutterkort  <lutter@redhat.com>
51384
51385         Tests for module 'safe-alloc'.
51386         * tests/test-safe-alloc.c: New file.
51387         * modules/safe-alloc-tests: New file.
51388
51389         New module 'safe-alloc'.
51390         * lib/safe-alloc.h: New file.
51391         * lib/safe-alloc.c: New file.
51392         * m4/safe-alloc.m4: New file.
51393         * modules/safe-alloc: New file.
51394         * doc/safe-alloc.texi: New file.
51395         * doc/gnulib.texi: Include it.
51396         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51397         safe-alloc.
51398
51399 2009-02-18  Bruno Haible  <bruno@clisp.org>
51400
51401         Fix link error on non-glibc systems.
51402         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51403         variable.
51404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51405
51406 2009-02-18  Jim Meyering  <meyering@redhat.com>
51407
51408         fts: avoid used-uninitialized error due to recent change
51409         * lib/fts.c (fts_read): Guard uses of the new member,
51410         parent->fts_n_dirs_remaining, since it's not relevant for
51411         the parent of a directory specified on the command-line.
51412
51413 2009-02-17  James Youngman  <jay@gnu.org>
51414             Bruno Haible  <bruno@clisp.org>
51415
51416         * m4/include_next.m4: Reformulate comment.
51417
51418 2009-02-16  Jim Meyering  <meyering@redhat.com>
51419
51420         fts: add #if guards so that the fts_lgpl module still builds
51421         * lib/fts.c: Guard just-added hash-table-using parts with
51422         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51423         Reported by Simon Josefsson.
51424
51425 2009-02-15  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/array-mergesort-tests: New file.
51428         * tests/test-array-mergesort.c: New file.
51429
51430         New module 'array-mergesort'.
51431         * modules/array-mergesort: New file.
51432         * lib/array-mergesort.h: New file.
51433
51434 2009-02-15  Bruno Haible  <bruno@clisp.org>
51435
51436         Fix 2009-02-07 commit.
51437         * lib/gen-uni-tables.c (output_predicate, output_category,
51438         output_combclass, output_bidi_category, output_decimal_digit,
51439         output_digit, output_numeric, output_mirror, output_scripts,
51440         output_ident_category, output_simple_mapping): Fix format directives.
51441         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51442
51443 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51444
51445         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51446         fixes are available from IBM.
51447
51448 2009-02-13  Jim Meyering  <meyering@redhat.com>
51449
51450         fts: arrange not to stat non-directories in more cases
51451         This makes GNU find (when it doesn't need to stat each file)
51452         *much* more efficient at traversing reiserfs file systems.
51453         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51454         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51455         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51456         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51457         (leaf_optimization_applies): New function.
51458         (LCO_hash, LCO_compare): New helper functions.
51459         (link_count_optimize_ok): New function.
51460         (fts_stat): Initialize new member (if dir).
51461         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51462         we've just stat'ed a directory.  Skip the stat call when possible.
51463         ---
51464         Note this AFS-related exchange:
51465         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51466         and note find's pioctl call in find/fstype.c.
51467         But that is necessary only if you want to enable the
51468         optimization for AFS, and for now, I don't.
51469
51470         fts: move a function definition "up" (no semantic change)
51471         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51472         "up" to precede upcoming use of a related function.
51473
51474 2009-02-11  Jim Meyering  <meyering@redhat.com>
51475
51476         fts: correct internal computation of nlinks (optimization-related)
51477         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51478         whether the current entry is a directory, so don't test it.
51479
51480 2009-02-10  Bruno Haible  <bruno@clisp.org>
51481
51482         Tests for module 'uniwbrk/ulc-wordbreaks'.
51483         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51484         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51485         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51486
51487         Tests for module 'uniwbrk/u32-wordbreaks'.
51488         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51489         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51490
51491         Tests for module 'uniwbrk/u16-wordbreaks'.
51492         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51493         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51494
51495         Tests for module 'uniwbrk/u8-wordbreaks'.
51496         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51497         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51498
51499 2009-02-10  Bruno Haible  <bruno@clisp.org>
51500
51501         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51502         property.
51503         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51504         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51505         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51506
51507 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51508
51509         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51510         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51511
51512 2009-02-10  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51515         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51516         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51517         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51518         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51519         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51520
51521 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51522
51523         * lib/sockets.h (gl_fd_to_handle): New function.
51524
51525         * tests/test-sockets.c: Call gl_fd_to_handle.
51526
51527 2009-02-09  Bruno Haible  <bruno@clisp.org>
51528
51529         * doc/havelib.texi: Document the conventions on bi-arch systems.
51530
51531 2009-02-08  Bruno Haible  <bruno@clisp.org>
51532
51533         Document the AC_LIB_LINKFLAGS macro.
51534         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51535         * doc/gnulib.texi: Include it.
51536
51537 2009-02-08  Bruno Haible  <bruno@clisp.org>
51538
51539         Fix wrong order of sections, compared to TOC.
51540         * doc/gnulib.texi: Include relocatable-maint.texi after the
51541         "Regular expressions" node, not before.
51542
51543 2009-02-08  Bruno Haible  <bruno@clisp.org>
51544
51545         Tests for module 'unicase/totitle'.
51546         * modules/unicase/totitle-tests: New file.
51547
51548         Tests for module 'unicase/tolower'.
51549         * modules/unicase/tolower-tests: New file.
51550
51551         Tests for module 'unicase/toupper'.
51552         * modules/unicase/toupper-tests: New file.
51553         * tests/unicase/test-mapping-part1.h: New file.
51554         * tests/unicase/test-mapping-part2.h: New file.
51555
51556         New module 'unicase/totitle'.
51557         * modules/unicase/totitle: New file.
51558         * lib/unicase/totitle.c: New file.
51559
51560         New module 'unicase/tolower'.
51561         * modules/unicase/tolower: New file.
51562         * lib/unicase/tolower.c: New file.
51563
51564         New module 'unicase/toupper'.
51565         * modules/unicase/toupper: New file.
51566         * lib/unicase/toupper.c: New file.
51567         * lib/unicase/simple-mapping.h: New file.
51568
51569         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51570         (mapping_table): New structure.
51571         (output_simple_mapping): New function.
51572         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51573         * modules/gen-uni-tables (Description): Update.
51574         * lib/unicase/toupper.h: New file, automatically generated by
51575         gen-uni-tables.
51576         * lib/unicase/tolower.h: New file, automatically generated by
51577         gen-uni-tables.
51578         * lib/unicase/totitle.h: New file, automatically generated by
51579         gen-uni-tables.
51580         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51581         gen-uni-tables.
51582         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51583         gen-uni-tables.
51584         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51585         gen-uni-tables.
51586
51587         New module 'unicase/base'.
51588         * modules/unicase/base: New file.
51589         * lib/unicase.h: New file.
51590
51591 2009-02-08  Bruno Haible  <bruno@clisp.org>
51592
51593         New module 'uniwbrk/ulc-wordbreaks'.
51594         * modules/uniwbrk/ulc-wordbreaks: New file.
51595         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51596
51597         New module 'uniwbrk/u32-wordbreaks'.
51598         * modules/uniwbrk/u32-wordbreaks: New file.
51599         * lib/uniwbrk/u32-wordbreaks.c: New file.
51600
51601         New module 'uniwbrk/u16-wordbreaks'.
51602         * modules/uniwbrk/u16-wordbreaks: New file.
51603         * lib/uniwbrk/u16-wordbreaks.c: New file.
51604
51605         New module 'uniwbrk/u8-wordbreaks'.
51606         * modules/uniwbrk/u8-wordbreaks: New file.
51607         * lib/uniwbrk/u8-wordbreaks.c: New file.
51608         * lib/uniwbrk/u-wordbreaks.h: New file.
51609
51610         New module 'uniwbrk/table'.
51611         * modules/uniwbrk/table: New file.
51612         * lib/uniwbrk/wbrktable.h: New file.
51613         * lib/uniwbrk/wbrktable.c: New file.
51614
51615         New module 'uniwbrk/wordbreak-property'.
51616         * modules/uniwbrk/wordbreak-property: New file.
51617         * lib/uniwbrk/wordbreak-property.c: New file.
51618
51619         * lib/gen-uni-tables.c (WBP_*): New enum items.
51620         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51621         (unicode_org_wbp): New variable.
51622         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51623         New functions.
51624         (wbp_table): New structure.
51625         (output_wbp, output_wbrk_tables): New functions.
51626         (main): Accept additional argument. Invoke fill_org_wbp,
51627         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51628         output_wbrk_tables.
51629         * modules/gen-uni-tables (Description): Update.
51630         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51631         gen-uni-tables.
51632
51633         New module 'uniwbrk/base'.
51634         * modules/uniwbrk/base: New file.
51635         * lib/uniwbrk.h: New file.
51636
51637 2009-02-08  Bruno Haible  <bruno@clisp.org>
51638
51639         Update to Unicode 5.1.0.
51640         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51641         U+2185..U+2188.
51642         (is_property_default_ignorable_code_point): Don't include characters
51643         of category Cc or Cs and not-a-characters.
51644         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51645         U+0D79, U+109E, U+109F, U+A60C.
51646         * lib/unictype/bidi_of.h: Regenerated.
51647         * lib/unictype/blocks.h: Regenerated.
51648         * lib/unictype/categ_C.h: Regenerated.
51649         * lib/unictype/categ_Cf.h: Regenerated.
51650         * lib/unictype/categ_Cn.h: Regenerated.
51651         * lib/unictype/categ_L.h: Regenerated.
51652         * lib/unictype/categ_Ll.h: Regenerated.
51653         * lib/unictype/categ_Lm.h: Regenerated.
51654         * lib/unictype/categ_Lo.h: Regenerated.
51655         * lib/unictype/categ_Lu.h: Regenerated.
51656         * lib/unictype/categ_M.h: Regenerated.
51657         * lib/unictype/categ_Mc.h: Regenerated.
51658         * lib/unictype/categ_Me.h: Regenerated.
51659         * lib/unictype/categ_Mn.h: Regenerated.
51660         * lib/unictype/categ_N.h: Regenerated.
51661         * lib/unictype/categ_Nd.h: Regenerated.
51662         * lib/unictype/categ_Nl.h: Regenerated.
51663         * lib/unictype/categ_No.h: Regenerated.
51664         * lib/unictype/categ_P.h: Regenerated.
51665         * lib/unictype/categ_Pd.h: Regenerated.
51666         * lib/unictype/categ_Pe.h: Regenerated.
51667         * lib/unictype/categ_Pf.h: Regenerated.
51668         * lib/unictype/categ_Pi.h: Regenerated.
51669         * lib/unictype/categ_Po.h: Regenerated.
51670         * lib/unictype/categ_Ps.h: Regenerated.
51671         * lib/unictype/categ_S.h: Regenerated.
51672         * lib/unictype/categ_Sk.h: Regenerated.
51673         * lib/unictype/categ_Sm.h: Regenerated.
51674         * lib/unictype/categ_So.h: Regenerated.
51675         * lib/unictype/categ_of.h: Regenerated.
51676         * lib/unictype/combining.h: Regenerated.
51677         * lib/unictype/ctype_alnum.h: Regenerated.
51678         * lib/unictype/ctype_alpha.h: Regenerated.
51679         * lib/unictype/ctype_graph.h: Regenerated.
51680         * lib/unictype/ctype_lower.h: Regenerated.
51681         * lib/unictype/ctype_print.h: Regenerated.
51682         * lib/unictype/ctype_punct.h: Regenerated.
51683         * lib/unictype/ctype_upper.h: Regenerated.
51684         * lib/unictype/decdigit.h: Regenerated.
51685         * lib/unictype/digit.h: Regenerated.
51686         * lib/unictype/mirror.h: Regenerated.
51687         * lib/unictype/numeric.h: Regenerated.
51688         * lib/unictype/pr_alphabetic.h: Regenerated.
51689         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51691         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51692         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51693         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51694         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51695         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51696         * lib/unictype/pr_combining.h: Regenerated.
51697         * lib/unictype/pr_dash.h: Regenerated.
51698         * lib/unictype/pr_decimal_digit.h: Regenerated.
51699         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51700         * lib/unictype/pr_deprecated.h: Regenerated.
51701         * lib/unictype/pr_diacritic.h: Regenerated.
51702         * lib/unictype/pr_extender.h: Regenerated.
51703         * lib/unictype/pr_format_control.h: Regenerated.
51704         * lib/unictype/pr_grapheme_base.h: Regenerated.
51705         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51706         * lib/unictype/pr_grapheme_link.h: Regenerated.
51707         * lib/unictype/pr_id_continue.h: Regenerated.
51708         * lib/unictype/pr_id_start.h: Regenerated.
51709         * lib/unictype/pr_ideographic.h: Regenerated.
51710         * lib/unictype/pr_ignorable_control.h: Regenerated.
51711         * lib/unictype/pr_lowercase.h: Regenerated.
51712         * lib/unictype/pr_math.h: Regenerated.
51713         * lib/unictype/pr_numeric.h: Regenerated.
51714         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51715         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51716         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51717         * lib/unictype/pr_other_id_continue.h: Regenerated.
51718         * lib/unictype/pr_other_lowercase.h: Regenerated.
51719         * lib/unictype/pr_other_math.h: Regenerated.
51720         * lib/unictype/pr_punctuation.h: Regenerated.
51721         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51722         * lib/unictype/pr_soft_dotted.h: Regenerated.
51723         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51724         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51725         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51726         * lib/unictype/pr_uppercase.h: Regenerated.
51727         * lib/unictype/pr_xid_continue.h: Regenerated.
51728         * lib/unictype/pr_xid_start.h: Regenerated.
51729         * lib/unictype/pr_zero_width.h: Regenerated.
51730         * lib/unictype/scripts.h: Regenerated.
51731         * lib/unictype/scripts_byname.gperf: Regenerated.
51732         * lib/unictype/sy_java_ident.h: Regenerated.
51733         * lib/unilbrk/lbrkprop1.h: Regenerated.
51734         * lib/unilbrk/lbrkprop2.h: Regenerated.
51735         * tests/unictype/test-categ_C.c: Regenerated.
51736         * tests/unictype/test-categ_Cf.c: Regenerated.
51737         * tests/unictype/test-categ_Cn.c: Regenerated.
51738         * tests/unictype/test-categ_L.c: Regenerated.
51739         * tests/unictype/test-categ_Ll.c: Regenerated.
51740         * tests/unictype/test-categ_Lm.c: Regenerated.
51741         * tests/unictype/test-categ_Lo.c: Regenerated.
51742         * tests/unictype/test-categ_Lu.c: Regenerated.
51743         * tests/unictype/test-categ_M.c: Regenerated.
51744         * tests/unictype/test-categ_Mc.c: Regenerated.
51745         * tests/unictype/test-categ_Me.c: Regenerated.
51746         * tests/unictype/test-categ_Mn.c: Regenerated.
51747         * tests/unictype/test-categ_N.c: Regenerated.
51748         * tests/unictype/test-categ_Nd.c: Regenerated.
51749         * tests/unictype/test-categ_Nl.c: Regenerated.
51750         * tests/unictype/test-categ_No.c: Regenerated.
51751         * tests/unictype/test-categ_P.c: Regenerated.
51752         * tests/unictype/test-categ_Pd.c: Regenerated.
51753         * tests/unictype/test-categ_Pe.c: Regenerated.
51754         * tests/unictype/test-categ_Pf.c: Regenerated.
51755         * tests/unictype/test-categ_Pi.c: Regenerated.
51756         * tests/unictype/test-categ_Po.c: Regenerated.
51757         * tests/unictype/test-categ_Ps.c: Regenerated.
51758         * tests/unictype/test-categ_S.c: Regenerated.
51759         * tests/unictype/test-categ_Sk.c: Regenerated.
51760         * tests/unictype/test-categ_Sm.c: Regenerated.
51761         * tests/unictype/test-categ_So.c: Regenerated.
51762         * tests/unictype/test-ctype_alnum.c: Regenerated.
51763         * tests/unictype/test-ctype_alpha.c: Regenerated.
51764         * tests/unictype/test-ctype_graph.c: Regenerated.
51765         * tests/unictype/test-ctype_lower.c: Regenerated.
51766         * tests/unictype/test-ctype_print.c: Regenerated.
51767         * tests/unictype/test-ctype_punct.c: Regenerated.
51768         * tests/unictype/test-ctype_upper.c: Regenerated.
51769         * tests/unictype/test-decdigit.h: Regenerated.
51770         * tests/unictype/test-digit.h: Regenerated.
51771         * tests/unictype/test-numeric.h: Regenerated.
51772         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51773         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51775         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51777         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51779         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51780         * tests/unictype/test-pr_combining.c: Regenerated.
51781         * tests/unictype/test-pr_dash.c: Regenerated.
51782         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51783         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51784         * tests/unictype/test-pr_deprecated.c: Regenerated.
51785         * tests/unictype/test-pr_diacritic.c: Regenerated.
51786         * tests/unictype/test-pr_extender.c: Regenerated.
51787         * tests/unictype/test-pr_format_control.c: Regenerated.
51788         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51789         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51790         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51791         * tests/unictype/test-pr_id_continue.c: Regenerated.
51792         * tests/unictype/test-pr_id_start.c: Regenerated.
51793         * tests/unictype/test-pr_ideographic.c: Regenerated.
51794         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51795         * tests/unictype/test-pr_lowercase.c: Regenerated.
51796         * tests/unictype/test-pr_math.c: Regenerated.
51797         * tests/unictype/test-pr_numeric.c: Regenerated.
51798         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51799         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51800         Regenerated.
51801         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51802         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51803         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51804         * tests/unictype/test-pr_other_math.c: Regenerated.
51805         * tests/unictype/test-pr_punctuation.c: Regenerated.
51806         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51807         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51808         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51809         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51810         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51811         * tests/unictype/test-pr_uppercase.c: Regenerated.
51812         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51813         * tests/unictype/test-pr_xid_start.c: Regenerated.
51814         * tests/unictype/test-pr_zero_width.c: Regenerated.
51815
51816         Update to Unicode 5.1.0.
51817         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51818         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51819         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51820         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51821         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51822         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51823         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51824         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51825         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51826         (nonspacing_table_ind): Update.
51827         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51828
51829         Update to Unicode 5.1.0.
51830         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51831         code transform.
51832         * lib/uniname/uniname.c (unicode_character_name,
51833         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51834         * lib/uniname/uninames.h: Regenerated.
51835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51836
51837 2009-02-07  Bruno Haible  <bruno@clisp.org>
51838
51839         Merge gen-ctype and gen-lbrk into a single program.
51840         * lib/gen-uni-tables.c: New file, incorporating
51841         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51842         Add directory prefixes to the names of the generated files.
51843         * lib/unictype/gen-ctype.c: Remove file.
51844         * lib/unilbrk/gen-lbrk.c: Remove file.
51845         * modules/gen-uni-tables: New file.
51846         * modules/unictype/gen-ctype: Remove file.
51847         * modules/unilbrk/gen-lbrk: Remove file.
51848
51849 2009-02-07  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51852
51853         New module 'unistr/u32-strcoll'.
51854         * modules/unistr/u32-strcoll: New file.
51855         * lib/unistr/u32-strcoll.c: New file.
51856
51857         New module 'unistr/u16-strcoll'.
51858         * modules/unistr/u16-strcoll: New file.
51859         * lib/unistr/u16-strcoll.c: New file.
51860
51861         New module 'unistr/u8-strcoll'.
51862         * modules/unistr/u8-strcoll: New file.
51863         * lib/unistr/u8-strcoll.c: New file.
51864         * lib/unistr/u-strcoll.h: New file.
51865
51866 2009-02-07  Bruno Haible  <bruno@clisp.org>
51867
51868         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51869         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51870         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51871         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51872         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51873         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51874
51875 2009-02-07  Bruno Haible  <bruno@clisp.org>
51876
51877         Make 64-bit clean.
51878         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51879         output_combclass, output_bidi_category, output_decimal_digit,
51880         output_digit, output_numeric, output_mirror, output_scripts,
51881         output_ident_category): Use proper width specifier in format strings.
51882
51883 2009-02-07  Bruno Haible  <bruno@clisp.org>
51884
51885         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51886         failure behaviour.
51887
51888 2009-02-07  Jim Meyering  <meyering@redhat.com>
51889
51890         regex: avoid compilation failure with upcoming gcc-4.4
51891         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51892         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51893         "... error: integer overflow in preprocessor expression".
51894
51895 2009-02-05  Ben Pfaff  <blp@gnu.org>
51896
51897         Fix link errors on Windows when close module is used.
51898         * modules/close: Add $(LIB_CLOSE) to Link section.
51899         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51900         $(LIB_CLOSE) on Windows.
51901
51902 2009-02-05  Jim Meyering  <meyering@redhat.com>
51903
51904         still avoid unused-parameter warnings, but do it cleanly
51905         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51906         (get_fs_usage): Cast to void instead.
51907         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51908         (dev_from_mount_options, read_file_system_list): Cast to void.
51909         Prompted by Bruno Haible.
51910
51911 2009-02-04  Jim Meyering  <meyering@redhat.com>
51912
51913         fsusage.c: correct copyright year
51914         * lib/fsusage.c: Reflect year in which the change is pushed into
51915
51916         avoid misc. warnings
51917         * lib/fsusage.c (UNUSED_PARAM): Define.
51918         (get_fs_usage): Mark parameter "disk" as unused.
51919         * lib/getugroups.c (getgrent): Use "void" in prototype.
51920         * lib/mountlist.c: Mark unused parameters.
51921         (read_file_system_list): Declare a local with "const".
51922         * lib/nanosleep.c (getnow): Declare static.
51923         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51924
51925         dirfd: set errno upon failure
51926         * lib/dirfd.c: Include <errno.h>.
51927         Set errno to ENOTSUP when returning -1.
51928         * modules/dirfd (Depends-on): Add errno.
51929         Suggested by John Kodis <kodis@comcast.net>.
51930
51931 2009-02-01  Bruno Haible  <bruno@clisp.org>
51932
51933         Don't assume sizeof (long) >= sizeof (void *).
51934         * lib/memcmp.c: Include stdint.h.
51935         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51936         srcp2 to 'const byte *'.
51937         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51938         types to uintptr_t.
51939         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51940         * modules/memcmp (Depends-on): Add stdint.
51941         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51942
51943 2009-01-30  Eric Blake  <ebb9@byu.net>
51944
51945         fix more require-before-expand issues
51946         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51947         expand, AC_PROG_AWK.
51948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51949
51950 2009-01-28  Eric Blake  <ebb9@byu.net>
51951
51952         version-etc: use consistent URL formatting
51953         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51954         Improve formatting.  Use fputs for string without %.
51955
51956 2009-01-28  Jim Meyering  <meyering@redhat.com>
51957
51958         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51959         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51960         "underquoted definition of NAME" from autoconf-2.59.
51961
51962 2009-01-28  Bruno Haible  <bruno@clisp.org>
51963
51964         * doc/gnulib.texi: Add "Obsolete modules" to index.
51965
51966 2009-01-28  Jim Meyering  <meyering@redhat.com>
51967
51968         useless-if-before-free: recognize more variants
51969         * build-aux/useless-if-before-free: Also recognize e.g.,
51970         if (NULL != p) free (p);
51971
51972 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51973
51974         test-getaddrinfo: skip (don't fail) this test when there's no network
51975         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51976         on the presumption that it means you lack network access.
51977
51978 2009-01-26  Jim Meyering  <meyering@redhat.com>
51979
51980         fflush: avoid warnings on modern systems
51981         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51982         pos and result, into scopes where they're used.
51983
51984 2009-01-26  Eric Blake  <ebb9@byu.net>
51985
51986         Silence warning reintroduced by recent extensions patch.
51987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51988         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51989         autoconf.
51990
51991         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51992         * m4/00gnulib.m4: New file.
51993         * gnulib-tool (func_get_filelist): Always use it.
51994         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51995         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51996
51997 2009-01-25  Bruno Haible  <bruno@clisp.org>
51998
51999         Make test-quotearg work on MacOS X and AIX.
52000         * tests/test-quotearg.sh: New file.
52001         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52002         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52003         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52004         include <libintl.h>.
52005         (fake_locale): Remove variable.
52006         (gettext, dgettext, dcgettext): Remove functions.
52007         (main): Instead of setting a fake locale, set a real locale. Call
52008         textdomain and bindtextdomain.
52009         * modules/quotearg-tests (Files): Add the new files.
52010         (Depends-on): Add gettext, setenv, unsetenv.
52011         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52012         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52013         Augment TESTS_ENVIRONMENT.
52014
52015 2009-01-25  Bruno Haible  <bruno@clisp.org>
52016
52017         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52018         fr_FR.ISO8859-1 locale on MacOS X.
52019         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52020         ja_JP.eucJP locale on MacOS X.
52021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52022         zh_CN.GB18030 locale on MacOS X.
52023
52024 2009-01-25  Bruno Haible  <bruno@clisp.org>
52025
52026         Avoid link errors on MacOS X 10.3.
52027         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52028         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52029
52030 2009-01-25  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52033         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52034         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52035         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52036         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52037         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52038         posix_spawnattr_init, posix_spawnattr_setsigmask,
52039         posix_spawnattr_setflags, posix_spawnattr_destroy.
52040
52041         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52042         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52043         * modules/execute (Files): Remove m4/posix_spawn.m4.
52044         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52045         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52046         posix_spawnattr_init, posix_spawnattr_setsigmask,
52047         posix_spawnattr_setflags, posix_spawnattr_destroy.
52048
52049 2009-01-25  Bruno Haible  <bruno@clisp.org>
52050
52051         * lib/glthread/threadlib.c: Include <stdlib.h>.
52052
52053 2009-01-25  Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/glthread/threadlib.c (dummy): New declaration.
52056
52057 2009-01-25  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52060         multibyte characters also for the GB18030 encoding. Don't crash when
52061         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52062
52063 2009-01-25  Bruno Haible  <bruno@clisp.org>
52064
52065         Avoid redefining 'struct random_data' on OSF/1 5.1.
52066         * lib/stdlib.in.h: Include <random.h> if it exists.
52067         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52068         HAVE_RANDOM_H. Include <random.h> when testing whether
52069         'struct random_data' exists.
52070         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52071
52072 2009-01-25  Bruno Haible  <bruno@clisp.org>
52073
52074         Don't install charset.alias on MacOS X >= 10.3.
52075         * lib/localcharset.c (DARWIN7): New macro.
52076         (get_charset_aliases): Hardcode the result for Darwin7.
52077         * modules/localcharset (install-exec-local): Don't install
52078         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52079
52080 2009-01-25  Bruno Haible  <bruno@clisp.org>
52081
52082         Don't install charset.alias on mingw and Cygwin.
52083         * modules/localcharset (install-exec-local): Don't install
52084         charset.alias on mingw and Cygwin, if the file does not yet exist.
52085         The result for these platforms is hardcoded in localcharset.c.
52086
52087 2009-01-25  Bruno Haible  <bruno@clisp.org>
52088
52089         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52091         before requiring AC_USE_SYSTEM_EXTENSIONS.
52092
52093 2009-01-25  Jim Meyering  <meyering@redhat.com>
52094
52095         c-strtod: avoid warnings
52096         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52097         "assignment discards qualifiers from pointer target type" warnings.
52098
52099 2009-01-24  Bruno Haible  <bruno@clisp.org>
52100
52101         Add support for non-UTF-8 locales on MacOS X.
52102         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52103         canonical encodings. For Darwin 7 and newer, don't map traditional
52104         encodings to UTF-8.
52105         Reported by Vincent Lefevre <vincent@vinc17.org>
52106         at <http://savannah.gnu.org/bugs/?25235>.
52107
52108 2009-01-24  Bruno Haible  <bruno@clisp.org>
52109
52110         * doc/gnulib.texi (Obsolete modules): New section.
52111         Reported by Mike Frysinger <vapier@gentoo.org>.
52112
52113 2009-01-24  Bruno Haible  <bruno@clisp.org>
52114
52115         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52116         (%.dvi): New rule.
52117
52118 2009-01-24  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52121         Reported by Eric Blake.
52122
52123 2009-01-24  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52126         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52127         Reported by Gary V. Vaughan <gary@gnu.org>.
52128
52129 2009-01-24  Bruno Haible  <bruno@clisp.org>
52130
52131         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52132
52133 2009-01-23  Bruno Haible  <bruno@clisp.org>
52134
52135         Make c-strtod, c-strtold usable in libraries.
52136         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52137         (C_STRTOD): Call strdup instead of xstrdup.
52138         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52139         * modules/c-strtold (Depends-on): Likewise.
52140         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52141         * NEWS: Mention the change.
52142         Reported by Michael Gold <mgold@ncf.ca>.
52143
52144 2009-01-23  Jim Meyering  <meyering@redhat.com>
52145
52146         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52147         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52148         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52149
52150 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52151
52152         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52153         GNU CoreUtils.
52154         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52155         * modules/version-etc (Description): Update.
52156
52157 2009-01-22  Bruno Haible  <bruno@clisp.org>
52158
52159         Cache the C locale object.
52160         * lib/c-strtod.c (c_locale_cache): New variable.
52161         (c_locale): New function.
52162         (C_STRTOD): Use it, and don't call freelocale.
52163         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52164         Suggested by Paolo Bonzini.
52165
52166 2009-01-21  Bruno Haible  <bruno@clisp.org>
52167
52168         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52169         conditions other than overflow.
52170
52171 2009-01-21  Bruno Haible  <bruno@clisp.org>
52172
52173         * lib/c-strtod.c: Include errno.h.
52174         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52175         value from STRTOD_L and STRTOD.
52176
52177 2009-01-21  Bruno Haible  <bruno@clisp.org>
52178         and Jim Meyering  <meyering@redhat.com>
52179
52180         nanosleep: skip configure test (fail it) for apple universal builds
52181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52182         universal builds, assume that nanosleep does not work.
52183         * modules/nanosleep (Depends-on): Add multiarch.
52184
52185         mktime: skip configure test (fail it) for apple universal builds
52186         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52187         universal builds, assume that mktime does not work.
52188         * modules/mktime (Depends-on): Add multiarch.
52189
52190 2009-01-21  Eric Blake  <ebb9@byu.net>
52191
52192         multiarch: avoid expand-before-require warning
52193         * modules/multiarch (configure.ac): Require, rather than expand,
52194         gl_MULTIARCH.
52195         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52196         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52197         enforce that all clients require it.  Partial reversion of
52198         2008-12-29 patch.
52199
52200         error: avoid expand-before-require warning
52201         * modules/errno (configure.ac): Require, rather than expand,
52202         gl_HEADER_ERRNO_H.
52203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52204         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52205         enforce that all clients require it.
52206
52207         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52208         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52209         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52210         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52211
52212 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52213
52214         Revert:
52215         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52216
52217         regex: do not depend on obsolete modules.
52218         * modules/regex: Remove memcmp and memmove.
52219
52220 2009-01-20  Bruno Haible  <bruno@clisp.org>
52221
52222         Make the 'link' module link on Windows NT 4.
52223         * lib/link.c (_WIN32_WINNT): Don't define.
52224         (CreateHardLinkFuncType): New type.
52225         (CreateHardLinkFunc, initialized): New variables.
52226         (initialize): New function.
52227         (link): Invoke CreateHardLink indirectly through the function pointer.
52228
52229 2009-01-20  Bruno Haible  <bruno@clisp.org>
52230
52231         Fix compilation failure on mingw.
52232         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52233
52234 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52235
52236         * doc/c-strtod.texi: Mention a couple of restrictions.
52237
52238 2009-01-20  Jim Meyering  <meyering@redhat.com>
52239
52240         gettimeofday: move more declarations out of functions
52241         * lib/gettimeofday.c: Move extern declarations of tzset and
52242         gmtime out of containing functions.  Prompted by Bruno Haible.
52243
52244 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52245
52246         regex: do not depend on obsolete modules.
52247         * modules/regex: Remove memcmp and memmove.
52248
52249 2009-01-19  Bruno Haible  <bruno@clisp.org>
52250
52251         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52252         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52253         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52254         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52255         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52256
52257 2009-01-19  Bruno Haible  <bruno@clisp.org>
52258
52259         * tests/test-link.c: Include <errno.h>.
52260         (main): Exit with code 77 when a hard link cannot be created due to
52261         the file system.
52262         * tests/test-link.sh: Skip test when a hard link cannot be created due
52263         to the file system.
52264         Suggested by Eric Blake.
52265
52266 2009-01-19  Martin Lambers  <marlam@marlam.de>
52267
52268         * modules/link-tests: New file.
52269         * tests/test-link.sh: New file.
52270         * tests/test-link.c: New file.
52271
52272 2009-01-19  Eric Blake  <ebb9@byu.net>
52273
52274         doc: mention another function added in cygwin 1.7.0
52275         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52276         Another new function in cygwin 1.7.
52277
52278 2009-01-19  Bruno Haible  <bruno@clisp.org>
52279
52280         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52281         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52282         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52283         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52285         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52287         * m4/md4.m4 (gl_MD4): Likewise.
52288         * m4/md5.m4 (gl_MD5): Likewise.
52289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52290         * m4/sha1.m4 (gl_SHA1): Likewise.
52291         * m4/sha256.m4 (gl_SHA256): Likewise.
52292         * m4/sha512.m4 (gl_SHA512): Likewise.
52293
52294 2009-01-19  Bruno Haible  <bruno@clisp.org>
52295
52296         * modules/uniname/uniname-tests (Depends-on): Add progname.
52297         * tests/uniname/test-uninames.c: Include progname.h.
52298         (main): Call set_program_name.
52299
52300         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52301         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52302         (main): Call set_program_name.
52303
52304         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52305         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52306         (main): Call set_program_name.
52307
52308         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52309         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52310         (main): Call set_program_name.
52311
52312         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52313         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52314         (main): Call set_program_name.
52315
52316         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52317         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52318         (main): Call set_program_name.
52319
52320         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52321         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52322         (main): Call set_program_name.
52323
52324         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52325         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52326         (main): Call set_program_name.
52327
52328         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52329         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52330         (main): Call set_program_name.
52331
52332 2009-01-19  Eric Blake  <ebb9@byu.net>
52333
52334         test-unistd: test previous patch
52335         * tests/test-unistd.c: Test *_FILENO macros.
52336
52337         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52338         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52339         Guarantee a definition.
52340         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52341         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52342         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52343         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52344         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52345         Likewise.
52346         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52347         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52348         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52349         Likewise.
52350         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52351         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52352         (STDERR_FILENO): Likewise.
52353         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52354         (STDERR_FILENO): Likewise.
52355         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52356         (STDERR_FILENO): Likewise.
52357         Reported by Elbert Pol.
52358
52359 2009-01-19  Eric Blake  <ebb9@byu.net>
52360
52361         doc: mention more functions added in cygwin 1.7.0
52362         * doc/posix-functions/abort.texi (abort): Update wording related
52363         to cygwin.
52364         * doc/posix-functions/daylight.texi (daylight): Likewise.
52365         * doc/posix-functions/optarg.texi (optarg): Likewise.
52366         * doc/posix-functions/optarg.texi (opterr): Likewise.
52367         * doc/posix-functions/optarg.texi (optind): Likewise.
52368         * doc/posix-functions/optarg.texi (optopt): Likewise.
52369         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52370         worked in 1.5.x, and was withdrawn in 1.7.
52371         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52372         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52373         cygwin versions.
52374         * doc/posix-functions/perror.texi (perror): Likewise.
52375         * doc/posix-functions/printf.texi (printf): Likewise.
52376         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52377         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52378         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52379         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52381         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52382         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52383         Likewise.
52384         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52385         Likewise.
52386         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52387         this function.
52388         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52389         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52390         Likewise.
52391         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52392         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52393         * doc/posix-functions/confstr.texi (confstr): Likewise.
52394         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52395         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52396         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52397         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52398         * doc/posix-functions/fputws.texi (fputws): Likewise.
52399         * doc/posix-functions/fwide.texi (fwide): Likewise.
52400         * doc/posix-functions/getwc.texi (getwc): Likewise.
52401         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52402         * doc/posix-functions/putwc.texi (putwc): Likewise.
52403         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52404         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52405         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52406         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52407         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52408         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52409         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52410         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52411         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52412         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52413         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52414
52415 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52416
52417         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52418         * lib/ioctl.c: Include <sys/ioctl.h>.
52419
52420 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52421
52422         * modules/getdate-tests (Depends-on): Add progname.
52423         * tests/test-getdate.c: Use progname module, to avoid link errors
52424         on non-glibc systems.
52425
52426 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52427
52428         * modules/filenamecat-tests (Depends-on): Add progname.
52429         * modules/fstrcmp-tests (Depends-on): Likewise.
52430
52431         * tests/test-filenamecat.c: Use progname module, to avoid link
52432         errors on non-glibc systems.
52433         * tests/test-fstrcmp.c: Likewise.
52434
52435 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52436
52437         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52438         * lib/gettimeofday.c: Move extern declaration out of function.
52439
52440 2009-01-18  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52443         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52444         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52445
52446 2009-01-18  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/strftime.c (MEMPCPY): Remove unused macro.
52449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52450
52451 2009-01-18  Martin Lambers  <marlam@marlam.de>
52452
52453         New module 'link'.
52454         * lib/unistd.in.h (link): New declaration.
52455         * lib/link.c: New file.
52456         * m4/link.m4: New file.
52457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52458         HAVE_LINK.
52459         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52460         * modules/link: New file.
52461         * doc/posix-functions/link.texi: Mention the new module.
52462
52463 2009-01-18  Bruno Haible  <bruno@clisp.org>
52464
52465         * tests/test-avltree_list.c (main): Call set_program_name.
52466         * tests/test-avltree_oset.c (main): Likewise.
52467         * tests/test-obstack-printf.c: Include progname.h.
52468         (main): Call set_program_name.
52469         * tests/test-quotearg.c: Include progname.h.
52470         (main): Call set_program_name.
52471         * tests/test-xmemdup0.c: Include progname.h.
52472         (main): Call set_program_name.
52473
52474 2009-01-18  Bruno Haible  <bruno@clisp.org>
52475
52476         New module 'alphasort'.
52477         * lib/dirent.in.h (alphasort): New declaration.
52478         * lib/alphasort.c: New file, from glibc with modifications.
52479         * m4/alphasort.m4: New file.
52480         * modules/alphasort: New file.
52481         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52482         HAVE_ALPHASORT.
52483         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52484         HAVE_ALPHASORT.
52485         * doc/posix-functions/alphasort.texi: Mention the new module and the
52486         portability problems.
52487
52488 2009-01-18  Bruno Haible  <bruno@clisp.org>
52489
52490         New module 'scandir'.
52491         * lib/dirent.in.h (scandir): New declaration.
52492         * lib/scandir.c: New file, from glibc with modifications.
52493         * m4/scandir.m4: New file.
52494         * modules/scandir: New file.
52495         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52496         HAVE_SCANDIR.
52497         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52498         HAVE_SCANDIR.
52499         * doc/posix-functions/scandir.texi: Mention the new module and the
52500         portability problems.
52501
52502 2009-01-17  Bruno Haible  <bruno@clisp.org>
52503
52504         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52505         Update documentation.
52506         (func_remove_suffix): Escape all dots in the suffix. Update
52507         documentation.
52508         (func_filter_filelist): Update documentation.
52509         Reported by Ralf Wildenhues.
52510
52511 2009-01-17  Bruno Haible  <bruno@clisp.org>
52512
52513         * modules/dprintf-posix-tests: New file.
52514         * tests/test-dprintf-posix.sh: New file.
52515         * tests/test-dprintf-posix.c: New file.
52516
52517         New modules 'dprintf', 'dprintf-posix'.
52518         * lib/stdio.in.h (dprintf): New declaration.
52519         * lib/dprintf.c: New file.
52520         * m4/dprintf.m4: New file.
52521         * m4/dprintf-posix.m4: New file.
52522         * modules/dprintf: New file.
52523         * modules/dprintf-posix: New file.
52524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52525         HAVE_DPRINTF, REPLACE_DPRINTF.
52526         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52527         HAVE_DPRINTF, REPLACE_DPRINTF.
52528         * doc/posix-functions/dprintf.texi: Mention the new modules.
52529
52530 2009-01-17  Bruno Haible  <bruno@clisp.org>
52531
52532         * modules/vdprintf-posix-tests: New file.
52533         * tests/test-vdprintf-posix.sh: New file.
52534         * tests/test-vdprintf-posix.c: New file.
52535
52536         New modules 'vdprintf', 'vdprintf-posix'.
52537         * lib/stdio.in.h (vdprintf): New declaration.
52538         * lib/vdprintf.c: New file.
52539         * m4/vdprintf.m4: New file.
52540         * m4/vdprintf-posix.m4: New file.
52541         * modules/vdprintf: New file.
52542         * modules/vdprintf-posix: New file.
52543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52544         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52545         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52546         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52547         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52548
52549 2009-01-17  Bruno Haible  <bruno@clisp.org>
52550
52551         Fix replacement of fopen on mingw.
52552         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52553         mingw.
52554
52555 2009-01-17  Bruno Haible  <bruno@clisp.org>
52556
52557         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52558         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52559
52560 2009-01-17  Bruno Haible  <bruno@clisp.org>
52561
52562         Avoid test-fflush2.sh failure on mingw.
52563         * tests/test-fflush2.c: Include binary-io.h.
52564         (main): Put standard input into binary mode.
52565         * modules/fflush-tests (Depends-on): Add binary-io.
52566
52567 2009-01-17  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/wchar.in.h: In another particular situation, include only the
52570         system's <wchar.h> file.
52571         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52572         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52573         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52574
52575 2009-01-17  Bruno Haible  <bruno@clisp.org>
52576
52577         Support for stripping executables in --enable-relocatable.
52578         * build-aux/install-reloc: Expect one more argument, or an environment
52579         variable RELOC_STRIP_PROG. If set, strip the destination program and
52580         its wrapper.
52581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52582         RELOC_STRIP_PROG.
52583         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52584         to set RELOCATABLE_STRIP.
52585         * NEWS: Mention the new Makefile requirement.
52586
52587 2009-01-17  Bruno Haible  <bruno@clisp.org>
52588
52589         * build-aux/install-reloc: Remove debugging information left over by
52590         C compiler on MacOS X.
52591
52592 2009-01-17  Bruno Haible  <bruno@clisp.org>
52593
52594         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52595         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52596         _NSGetExecutablePath.
52597
52598 2009-01-16  Jim Meyering  <meyering@redhat.com>
52599
52600         strerror: avoid warnings about discarding "const"
52601         * lib/strerror.c (rpl_strerror): Instead of returning a const
52602         string from each and every "case", use a variable, and add a single
52603         cast after the switch.
52604
52605 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52606
52607         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52608
52609 2009-01-16  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52612         array initializer syntax that also works in C++ mode.
52613         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52614
52615 2009-01-16  Jim Meyering  <meyering@redhat.com>
52616
52617         poll: suppress a warning
52618         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52619         to ignore "...unsigned expression < 0 is always false" warnings.
52620
52621 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52622
52623         poll: remove declarations of unused variables
52624         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52625         sockbuf and optlen.
52626
52627 2009-01-15  Bruno Haible  <bruno@clisp.org>
52628
52629         Make fflush-after-ungetc POSIX compliant on BSD systems.
52630         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52631         (clear_ungetc_buffer): Implement also for other systems.
52632         (rpl_fflush): On glibc systems, invoke
52633         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52634         clear_ungetc_buffer after fetching the stream's position, not before.
52635
52636 2009-01-15  Bruno Haible  <bruno@clisp.org>
52637
52638         Make fflush-after-ungetc POSIX compliant on glibc systems.
52639         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52640         after ungetc.
52641         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52642         (rpl_fflush): On glibc systems, simply call the system's fflush
52643         function after clearing the ungetc buffer.
52644         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52645         Instead, lseek only to the end of file, then use the system's fseeko
52646         for the rest. On glibc systems, reset the EOF indicator bit.
52647
52648 2009-01-15  Jim Meyering  <meyering@redhat.com>
52649
52650         openmp.m4: revert quote-adding change, for portability to older autoconf
52651         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52652         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52653         Simon Josefsson noticed the problem when using autoconf-2.61.
52654
52655 2009-01-15  Bruno Haible  <bruno@clisp.org>
52656
52657         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52658         * tests/test-fflush2.c (ASSERT): Always fail.
52659         (main): Add two tests for fflush() after ungetc(), taking into account
52660         the Austin Group's clarification.
52661         Suggested by Eric Blake.
52662
52663 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52664
52665         mktime.m4: remove K&R-style function prototypes
52666         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52667         for the Sun C++ compiler.
52668
52669 2009-01-14  Bruno Haible  <bruno@clisp.org>
52670
52671         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52672         while including <wchar.h>.
52673         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52674         the system's <wchar.h> file.
52675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52676
52677 2009-01-14  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/csharp.m4: Don't mention gettext on the serial number line.
52680         * m4/csharpexec.m4: Likewise.
52681         * m4/eaccess.m4: Likewise.
52682         * m4/javaexec.m4: Likewise.
52683         * m4/sig_atomic_t.m4: Likewise.
52684         * m4/tmpdir.m4: Likewise.
52685         * m4/intldir.m4: Bump gettext version.
52686         * m4/lib-ld.m4: Likewise.
52687
52688 2009-01-14  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/progname.c (set_program_name): Add more comments.
52691         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52692
52693 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52694
52695         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52696         were sys/stat.h does not define it.
52697
52698 2009-01-14  Jim Meyering  <meyering@redhat.com>
52699
52700         many *.m4 files: improve m4 quoting
52701         99% of this change was performed by running the following commands:
52702         git ls-files | grep '\.m4$' | xargs perl -pi \
52703           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52704           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52705           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52706           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52707         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52708         The remainder were to add Copyright dates, increment serial numbers,
52709         undo some changes in comments, exclude m4/intl.m4, and add quotes
52710         around the "1" in ",1" where the unusual spacing prohibited the
52711         above regexps from doing the job.  For more details, see
52712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52713         * m4/acl.m4: Modified.
52714         * m4/afs.m4: Likewise.
52715         * m4/alloca.m4: Likewise.
52716         * m4/argp.m4: Likewise.
52717         * m4/argz.m4: Likewise.
52718         * m4/atexit.m4: Likewise.
52719         * m4/bison-i18n.m4: Likewise.
52720         * m4/bison.m4: Likewise.
52721         * m4/byteswap.m4: Likewise.
52722         * m4/c-stack.m4: Likewise.
52723         * m4/c-strtod.m4: Likewise.
52724         * m4/calloc.m4: Likewise.
52725         * m4/canonicalize-lgpl.m4: Likewise.
52726         * m4/chown.m4: Likewise.
52727         * m4/clock_time.m4: Likewise.
52728         * m4/codeset.m4: Likewise.
52729         * m4/copy-file.m4: Likewise.
52730         * m4/csharp.m4: Likewise.
52731         * m4/csharpcomp.m4: Likewise.
52732         * m4/csharpexec.m4: Likewise.
52733         * m4/d-ino.m4: Likewise.
52734         * m4/d-type.m4: Likewise.
52735         * m4/dirfd.m4: Likewise.
52736         * m4/double-slash-root.m4: Likewise.
52737         * m4/eaccess.m4: Likewise.
52738         * m4/eealloc.m4: Likewise.
52739         * m4/environ.m4: Likewise.
52740         * m4/errno_h.m4: Likewise.
52741         * m4/euidaccess.m4: Likewise.
52742         * m4/execute.m4: Likewise.
52743         * m4/fatal-signal.m4: Likewise.
52744         * m4/fchdir.m4: Likewise.
52745         * m4/fcntl_h.m4: Likewise.
52746         * m4/fileblocks.m4: Likewise.
52747         * m4/filenamecat.m4: Likewise.
52748         * m4/findprog.m4: Likewise.
52749         * m4/flexmember.m4: Likewise.
52750         * m4/fnmatch.m4: Likewise.
52751         * m4/fopen.m4: Likewise.
52752         * m4/fpending.m4: Likewise.
52753         * m4/fprintf-posix.m4: Likewise.
52754         * m4/free.m4: Likewise.
52755         * m4/frexp.m4: Likewise.
52756         * m4/frexpl.m4: Likewise.
52757         * m4/fsusage.m4: Likewise.
52758         * m4/ftruncate.m4: Likewise.
52759         * m4/gc-camellia.m4: Likewise.
52760         * m4/gc-random.m4: Likewise.
52761         * m4/gc.m4: Likewise.
52762         * m4/getaddrinfo.m4: Likewise.
52763         * m4/getcwd-abort-bug.m4: Likewise.
52764         * m4/getcwd-path-max.m4: Likewise.
52765         * m4/getdate.m4: Likewise.
52766         * m4/getdomainname.m4: Likewise.
52767         * m4/getgroups.m4: Likewise.
52768         * m4/gethostname.m4: Likewise.
52769         * m4/gethrxtime.m4: Likewise.
52770         * m4/getline.m4: Likewise.
52771         * m4/getloadavg.m4: Likewise.
52772         * m4/getndelim2.m4: Likewise.
52773         * m4/getpass.m4: Likewise.
52774         * m4/gettext.m4: Likewise.
52775         * m4/gettime.m4: Likewise.
52776         * m4/gettimeofday.m4: Likewise.
52777         * m4/gnulib-common.m4: Likewise.
52778         * m4/group-member.m4: Likewise.
52779         * m4/host-os.m4: Likewise.
52780         * m4/iconv.m4: Likewise.
52781         * m4/iconv_open.m4: Likewise.
52782         * m4/inet_ntop.m4: Likewise.
52783         * m4/inet_pton.m4: Likewise.
52784         * m4/inline.m4: Likewise.
52785         * m4/intldir.m4: Likewise.
52786         * m4/intlmacosx.m4: Likewise.
52787         * m4/intmax.m4: Likewise.
52788         * m4/intmax_t.m4: Likewise.
52789         * m4/inttypes.m4: Likewise.
52790         * m4/inttypes_h.m4: Likewise.
52791         * m4/inttypes-pri.m4: Likewise.
52792         * m4/isapipe.m4: Likewise.
52793         * m4/isnand.m4: Likewise.
52794         * m4/isnanf.m4: Likewise.
52795         * m4/isnanl.m4: Likewise.
52796         * m4/javacomp.m4: Likewise.
52797         * m4/javaexec.m4: Likewise.
52798         * m4/jm-winsz1.m4: Likewise.
52799         * m4/jm-winsz2.m4: Likewise.
52800         * m4/lchown.m4: Likewise.
52801         * m4/lcmessage.m4: Likewise.
52802         * m4/ldexpl.m4: Likewise.
52803         * m4/lib-ld.m4: Likewise.
52804         * m4/lib-link.m4: Likewise.
52805         * m4/libsigsegv.m4: Likewise.
52806         * m4/link-follow.m4: Likewise.
52807         * m4/localcharset.m4: Likewise.
52808         * m4/locale-fr.m4: Likewise.
52809         * m4/locale-ja.m4: Likewise.
52810         * m4/locale-tr.m4: Likewise.
52811         * m4/locale-zh.m4: Likewise.
52812         * m4/lock.m4: Likewise.
52813         * m4/longlong.m4: Likewise.
52814         * m4/ls-mntd-fs.m4: Likewise.
52815         * m4/lstat.m4: Likewise.
52816         * m4/malloc.m4: Likewise.
52817         * m4/mathl.m4: Likewise.
52818         * m4/mbrtowc.m4: Likewise.
52819         * m4/mbstate_t.m4: Likewise.
52820         * m4/mbswidth.m4: Likewise.
52821         * m4/memchr.m4: Likewise.
52822         * m4/memcmp.m4: Likewise.
52823         * m4/memcpy.m4: Likewise.
52824         * m4/memmem.m4: Likewise.
52825         * m4/memmove.m4: Likewise.
52826         * m4/mempcpy.m4: Likewise.
52827         * m4/memrchr.m4: Likewise.
52828         * m4/memset.m4: Likewise.
52829         * m4/minmax.m4: Likewise.
52830         * m4/mkdir-slash.m4: Likewise.
52831         * m4/mkdtemp.m4: Likewise.
52832         * m4/mktime.m4: Likewise.
52833         * m4/mmap-anon.m4: Likewise.
52834         * m4/mountlist.m4: Likewise.
52835         * m4/nanosleep.m4: Likewise.
52836         * m4/nls.m4: Likewise.
52837         * m4/nocrash.m4: Likewise.
52838         * m4/open.m4: Likewise.
52839         * m4/openat.m4: Likewise.
52840         * m4/openmp.m4: Likewise.
52841         * m4/pathmax.m4: Likewise.
52842         * m4/perl.m4: Likewise.
52843         * m4/physmem.m4: Likewise.
52844         * m4/pipe.m4: Likewise.
52845         * m4/po.m4: Likewise.
52846         * m4/poll.m4: Likewise.
52847         * m4/posixtm.m4: Likewise.
52848         * m4/posixver.m4: Likewise.
52849         * m4/printf-frexp.m4: Likewise.
52850         * m4/printf-frexpl.m4: Likewise.
52851         * m4/printf-posix.m4: Likewise.
52852         * m4/printf-posix-rpl.m4: Likewise.
52853         * m4/printf.m4: Likewise.
52854         * m4/progtest.m4: Likewise.
52855         * m4/putenv.m4: Likewise.
52856         * m4/readline.m4: Likewise.
52857         * m4/readlink.m4: Likewise.
52858         * m4/readutmp.m4: Likewise.
52859         * m4/realloc.m4: Likewise.
52860         * m4/regex.m4: Likewise.
52861         * m4/relocatable.m4: Likewise.
52862         * m4/relocatable-lib.m4: Likewise.
52863         * m4/rename-dest-slash.m4: Likewise.
52864         * m4/rename.m4: Likewise.
52865         * m4/rmdir-errno.m4: Likewise.
52866         * m4/rmdir.m4: Likewise.
52867         * m4/roundf.m4: Likewise.
52868         * m4/roundl.m4: Likewise.
52869         * m4/rpmatch.m4: Likewise.
52870         * m4/save-cwd.m4: Likewise.
52871         * m4/selinux-selinux-h.m4: Likewise.
52872         * m4/setenv.m4: Likewise.
52873         * m4/settime.m4: Likewise.
52874         * m4/sig2str.m4: Likewise.
52875         * m4/sig_atomic_t.m4: Likewise.
52876         * m4/signalblocking.m4: Likewise.
52877         * m4/signbit.m4: Likewise.
52878         * m4/sigpipe.m4: Likewise.
52879         * m4/sockets.m4: Likewise.
52880         * m4/sockpfaf.m4: Likewise.
52881         * m4/st_dm_mode.m4: Likewise.
52882         * m4/stat-time.m4: Likewise.
52883         * m4/stdbool.m4: Likewise.
52884         * m4/stdint.m4: Likewise.
52885         * m4/stdint_h.m4: Likewise.
52886         * m4/stpcpy.m4: Likewise.
52887         * m4/stpncpy.m4: Likewise.
52888         * m4/strcase.m4: Likewise.
52889         * m4/strchrnul.m4: Likewise.
52890         * m4/strcspn.m4: Likewise.
52891         * m4/strdup.m4: Likewise.
52892         * m4/strftime.m4: Likewise.
52893         * m4/strndup.m4: Likewise.
52894         * m4/strnlen.m4: Likewise.
52895         * m4/strpbrk.m4: Likewise.
52896         * m4/strptime.m4: Likewise.
52897         * m4/strsep.m4: Likewise.
52898         * m4/strtod.m4: Likewise.
52899         * m4/strtoimax.m4: Likewise.
52900         * m4/strtok_r.m4: Likewise.
52901         * m4/strtol.m4: Likewise.
52902         * m4/strtoll.m4: Likewise.
52903         * m4/strtoul.m4: Likewise.
52904         * m4/strtoull.m4: Likewise.
52905         * m4/strtoumax.m4: Likewise.
52906         * m4/strverscmp.m4: Likewise.
52907         * m4/threadlib.m4: Likewise.
52908         * m4/timegm.m4: Likewise.
52909         * m4/tm_gmtoff.m4: Likewise.
52910         * m4/tmpdir.m4: Likewise.
52911         * m4/tmpfile.m4: Likewise.
52912         * m4/tzset.m4: Likewise.
52913         * m4/uintmax_t.m4: Likewise.
52914         * m4/unlinkdir.m4: Likewise.
52915         * m4/unlocked-io.m4: Likewise.
52916         * m4/uptime.m4: Likewise.
52917         * m4/userspec.m4: Likewise.
52918         * m4/utimbuf.m4: Likewise.
52919         * m4/utime.m4: Likewise.
52920         * m4/utimes-null.m4: Likewise.
52921         * m4/utimes.m4: Likewise.
52922         * m4/vararrays.m4: Likewise.
52923         * m4/vasnprintf.m4: Likewise.
52924         * m4/vfprintf-posix.m4: Likewise.
52925         * m4/vprintf-posix.m4: Likewise.
52926         * m4/wait-process.m4: Likewise.
52927         * m4/wchar_t.m4: Likewise.
52928         * m4/wint_t.m4: Likewise.
52929         * m4/write-any-file.m4: Likewise.
52930         * m4/yield.m4: Likewise.
52931
52932 2009-01-13  Bruno Haible  <bruno@clisp.org>
52933
52934         Avoid test-copy-file.sh failures when ACL support insufficient.
52935         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52936         TESTS_ENVIRONMENT.
52937         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52938         Reported by Jim Meyering.
52939
52940 2009-01-13  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52943         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52944         * modules/unistdio/u8-printf-parse (Files): Likewise.
52945         * modules/unistdio/u32-printf-parse (Files): Likewise.
52946         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52947
52948 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52949
52950         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52951         and m4/inttypes_h.m4 too.
52952
52953 2009-01-12  Eric Blake  <ebb9@byu.net>
52954
52955         tests: IRIX 6.2 cc can't compile -0.0 into .data
52956         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52957         rather than at compile-time.
52958         * tests/test-floorl.c (minus_zero): Likewise.
52959         * tests/test-frexpl.c (minus_zero): Likewise.
52960         * tests/test-isnan.c (minus_zerol): Likewise.
52961         * tests/test-isnanl.h (minus_zero): Likewise.
52962         * tests/test-ldexpl.c (minus_zero): Likewise.
52963         * tests/test-roundl.c (minus_zero): Likewise.
52964         * tests/test-signbit.c (minus_zerol): Likewise.
52965         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52966         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52967         * tests/test-truncl.c (minus_zero): Likewise.
52968         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52969         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52970         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52971
52972 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52973
52974         regex: fix glibc bug 9697
52975         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52976         handling.
52977
52978 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52979
52980         regex: fix glibc bug 697
52981         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52982         being NULL also if there are no backreferences.
52983
52984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52985
52986         regex: merge glibc changes
52987         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52988         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52989         re_string_skip_chars, re_string_reconstruct): Likewise.
52990         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52991
52992 2009-01-07  Jim Meyering  <meyering@redhat.com>
52993
52994         poll: filter through cppi
52995         * lib/poll.c: Indent cpp directives to reflect nesting.
52996
52997 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52998
52999         poll: don't return uninitialized
53000         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53001
53002 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53003
53004         avoid compile failure on AIX 6.1
53005         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53006         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53007
53008 2009-01-04  Jim Meyering  <meyering@redhat.com>
53009
53010         remove duplicate inclusion of <stdio.h>
53011         * tests/test-fprintf-posix.c: Likewise.
53012         * tests/test-printf-posix.c: Likewise.
53013         * tests/test-snprintf-posix.c: Likewise.
53014         * tests/test-sprintf-posix.c: Likewise.
53015         * tests/test-vasprintf-posix.c: Likewise.
53016         * tests/test-vfprintf-posix.c: Likewise.
53017         * tests/test-vprintf-posix.c: Likewise.
53018         * tests/test-vsnprintf-posix.c: Likewise.
53019         * tests/test-vsprintf-posix.c: Likewise.
53020
53021 2009-01-03  Jim Meyering  <meyering@redhat.com>
53022
53023         gnulib-tool: fix sed-based filtering
53024         * gnulib-tool (func_filter_filelist): Remove extra backslash
53025         in sed_fff_filter definition.
53026
53027 2009-01-02  Jim Meyering  <meyering@redhat.com>
53028
53029         strftime: avoid compilation failure on Solaris 2.6
53030         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53031         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53032         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53033         be available.  Reported by Tom G. Christensen.  Details in
53034         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53035
53036 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53037             Bruno Haible  <bruno@clisp.org>
53038
53039         Speed up gnulib-tool by doing more string processing through shell
53040         built-ins.
53041         * gnulib-tool (fast_func_append): New variable.
53042         (func_remove_prefix, func_remove_suffix): New functions.
53043         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53044         (func_filter_filelist): New function.
53045         (func_get_dependencies): Use func_remove_suffix instead of sed.
53046         (func_get_automake_snippet): Use func_filter_filelist instead of a
53047         subshell and sed invocation.
53048
53049 2009-01-01  Bruno Haible  <bruno@clisp.org>
53050
53051         Fix a security bug.
53052         * gnulib-tool (func_import, import, update): Don't allow the characters
53053         '"', '$', '`', '\' in macro arguments that become part of commands that
53054         are evaluated.
53055
53056 2009-01-01  Bruno Haible  <bruno@clisp.org>
53057
53058         * gnulib-tool (func_reset_sigpipe): Add more comments.
53059
53060 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53061
53062         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53063         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53064         already know the answer.
53065
53066 2009-01-01  Jim Meyering  <meyering@redhat.com>
53067
53068         * lib/version-etc.c (version_etc_va): Update copyright year.
53069
53070 2008-12-30  Bruno Haible  <bruno@clisp.org>
53071
53072         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53073         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53074         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53075
53076 2008-12-29  Eric Blake  <ebb9@byu.net>
53077
53078         multiarch: avoid autoconf AC_REQUIRE bug
53079         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53080         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53081         2.63 and older.
53082         Reported by Bruno Haible, and analyzed in
53083         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53084
53085 2008-12-29  Bruno Haible  <bruno@clisp.org>
53086
53087         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53088         files in subdirectories correctly.
53089         Reported by Ralf Wildenhues.
53090
53091 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53092
53093         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53094         rather than 'join FILE -', for Solaris join.
53095
53096 2008-12-29  Bruno Haible  <bruno@clisp.org>
53097
53098         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53099         quoting.
53100         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53101         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53102         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53103         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53104         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53105         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53106         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53107         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53108         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53109         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53110         * m4/nls.m4 (AM_NLS): Likewise.
53111         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53112         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53114         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53115         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53116         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53118         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53119         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53120         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53121         * m4/xsize.m4 (gl_XSIZE): Likewise.
53122         Suggested by Jim Meyering.
53123
53124 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53125
53126         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53127         * lib/parse-duration.c: use a switch instead of cascading if's.
53128
53129 2008-12-29  Eric Blake  <ebb9@byu.net>
53130
53131         wchar.h: supply WEOF on Irix 5.3
53132         * lib/wchar.in.h (wint_t): Also supply WEOF.
53133         * lib/wctype.in.h (wint_t): Likewise.
53134         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53135         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53136         Reported by Tom G. Christensen.
53137
53138 2008-12-26  Bruno Haible  <bruno@clisp.org>
53139
53140         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53141         i486, i586, i686.
53142
53143 2008-12-26  Bruno Haible  <bruno@clisp.org>
53144
53145         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53146
53147 2008-12-26  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53150         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53151         not __STDC_CONSTANT_MACROS.
53152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53153
53154 2008-12-25  Bruno Haible  <bruno@clisp.org>
53155
53156         Add support for universal builds to vasnprintf.
53157         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53158         universal builds, guess no.
53159         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53160         * modules/vasprintf-posix (Depends-on): Likewise.
53161         * modules/fprintf-posix (Depends-on): Likewise.
53162         * modules/vfprintf-posix (Depends-on): Likewise.
53163         * modules/snprintf-posix (Depends-on): Likewise.
53164         * modules/vsnprintf-posix (Depends-on): Likewise.
53165         * modules/sprintf-posix (Depends-on): Likewise.
53166         * modules/vsprintf-posix (Depends-on): Likewise.
53167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53174
53175         Add support for universal builds to <inttypes.h>.
53176         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53177         _SCNu64_PREFIX): In Apple
53178         universal builds, define directly, using _LP64.
53179         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53180         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53181         * modules/inttypes (Depends-on): Add multiarch.
53182         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53183
53184         Add support for universal builds to <stdint.h>.
53185         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53186         universal builds, define directly, using _LP64.
53187         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53188         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53189         and size_t.
53190         * modules/stdint (Depends-on): Add multiarch.
53191         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53192
53193         New module 'multiarch'.
53194         * modules/multiarch: New file.
53195         * m4/multiarch.m4: New file.
53196
53197 2008-12-25  Bruno Haible  <bruno@clisp.org>
53198
53199         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53200
53201 2008-12-25  Bruno Haible  <bruno@clisp.org>
53202
53203         * modules/btowc (License): Relicense under LGPLv2+.
53204         * modules/mbsinit (License): Likewise.
53205         * modules/mbrtowc (License): Likewise.
53206         * modules/wcrtomb (License): Likewise.
53207         * modules/streq (License): Likewise.
53208         Reported by David Lutterkort <lutter@redhat.com>.
53209
53210 2008-12-23  Bruno Haible  <bruno@clisp.org>
53211
53212         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53213
53214 2008-12-23  Bruno Haible  <bruno@clisp.org>
53215
53216         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53218         GETADDRINFO_LIB, not in LIBS.
53219         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53220         * modules/canon-host (Link): Likewise.
53221         * NEWS: Mention the change.
53222         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53223         GETADDRINFO_LIB.
53224
53225 2008-12-22  Bruno Haible  <bruno@clisp.org>
53226
53227         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53228         * doc/posix-functions/iswalpha_l.texi: Likewise.
53229         * doc/posix-functions/iswblank_l.texi: Likewise.
53230         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53231         * doc/posix-functions/iswctype_l.texi: Likewise.
53232         * doc/posix-functions/iswdigit_l.texi: Likewise.
53233         * doc/posix-functions/iswgraph_l.texi: Likewise.
53234         * doc/posix-functions/iswlower_l.texi: Likewise.
53235         * doc/posix-functions/iswprint_l.texi: Likewise.
53236         * doc/posix-functions/iswpunct_l.texi: Likewise.
53237         * doc/posix-functions/iswspace_l.texi: Likewise.
53238         * doc/posix-functions/iswupper_l.texi: Likewise.
53239         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53240         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53241         * doc/posix-functions/open_wmemstream.texi: Likewise.
53242         * doc/posix-functions/swscanf.texi: Likewise.
53243         * doc/posix-functions/towctrans_l.texi: Likewise.
53244         * doc/posix-functions/towlower.texi: Likewise.
53245         * doc/posix-functions/towlower_l.texi: Likewise.
53246         * doc/posix-functions/towupper.texi: Likewise.
53247         * doc/posix-functions/towupper_l.texi: Likewise.
53248         * doc/posix-functions/vfwprintf.texi: Likewise.
53249         * doc/posix-functions/vfwscanf.texi: Likewise.
53250         * doc/posix-functions/vswscanf.texi: Likewise.
53251         * doc/posix-functions/vwprintf.texi: Likewise.
53252         * doc/posix-functions/vwscanf.texi: Likewise.
53253         * doc/posix-functions/wcpcpy.texi: Likewise.
53254         * doc/posix-functions/wcpncpy.texi: Likewise.
53255         * doc/posix-functions/wcscasecmp.texi: Likewise.
53256         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53257         * doc/posix-functions/wcscoll_l.texi: Likewise.
53258         * doc/posix-functions/wcsdup.texi: Likewise.
53259         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53260         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53261         * doc/posix-functions/wcsnlen.texi: Likewise.
53262         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53263         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53264         * doc/posix-functions/wctrans_l.texi: Likewise.
53265         * doc/posix-functions/wctype_l.texi: Likewise.
53266         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53267         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53268         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53269         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53270         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53271         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53272         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53273         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53274         * doc/glibc-functions/wcschrnul.texi: Likewise.
53275         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53276         * doc/glibc-functions/wcstod_l.texi: Likewise.
53277         * doc/glibc-functions/wcstof_l.texi: Likewise.
53278         * doc/glibc-functions/wcstol_l.texi: Likewise.
53279         * doc/glibc-functions/wcstold_l.texi: Likewise.
53280         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53281         * doc/glibc-functions/wcstoq.texi: Likewise.
53282         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53283         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53284         * doc/glibc-functions/wcstouq.texi: Likewise.
53285         * doc/glibc-functions/wmempcpy.texi: Likewise.
53286
53287 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53288             Eric Blake  <ebb9@byu.net>
53289             Paolo Bonzini  <bonzini@gnu.org>
53290             Bruno Haible  <bruno@clisp.org>
53291
53292         Make c-stack work on Haiku.
53293         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53294         (c_stack_action): Use SA_ONSTACK flag.
53295
53296 2008-12-22  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53299
53300 2008-12-22  Bruno Haible  <bruno@clisp.org>
53301
53302         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53303         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53304         being overridden.
53305         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53306         New macros.
53307         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53309         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53310         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53311
53312 2008-12-22  Bruno Haible  <bruno@clisp.org>
53313
53314         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53315         from test code.
53316
53317 2008-12-22  Eric Blake  <ebb9@byu.net>
53318
53319         Avoid gcc warnings on cygwin.
53320         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53321         Avoid unused variable.
53322         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53323         Likewise.
53324
53325 2008-12-22  Bruno Haible  <bruno@clisp.org>
53326
53327         Remove HAVE_MBRTOWC conditionals.
53328         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53329         (mbscasecmp): Assume mbrtowc function.
53330         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53331         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53332         * lib/mbschr.c: Include mbuiter.h unconditionally.
53333         (mbschr): Assume mbrtowc function.
53334         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53335         (mbscspn): Assume mbrtowc function.
53336         * lib/mbslen.c: Include mbuiter.h unconditionally.
53337         (mbslen): Assume mbrtowc function.
53338         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53339         (mbsncasecmp): Assume mbrtowc function.
53340         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53341         (mbsnlen): Assume mbrtowc function.
53342         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53343         (mbspbrk): Assume mbrtowc function.
53344         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53345         (mbspcasecmp): Assume mbrtowc function.
53346         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53347         (mbsrchr): Assume mbrtowc function.
53348         * lib/mbssep.c: Include mbuiter.h unconditionally.
53349         (mbssep): Assume mbrtowc function.
53350         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53351         (mbsspn): Assume mbrtowc function.
53352         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53353         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53354         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53355         (mbstok_r): Assume mbrtowc function.
53356         * lib/propername.c: Include mbuiter.h unconditionally.
53357         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53358         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53359         (trim2): Assume mbrtowc function.
53360         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53361         (mbsnwidth): Assume mbrtowc function.
53362         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53363         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53364         fallback definitions.
53365         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53366
53367 2008-12-22  Bruno Haible  <bruno@clisp.org>
53368
53369         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53370
53371 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53372
53373         * modules/regex: Request emulations for the mb*/wc* functions we need.
53374         * m4/regex.m4: Don't look for those functions here.
53375         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53376
53377 2008-12-22  Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53380
53381 2008-12-21  Bruno Haible  <bruno@clisp.org>
53382
53383         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53384         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53385         (Include): Remove conditionalization.
53386         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53387         (Include): Remove conditionalization.
53388         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53389         (Include): Remove conditionalization.
53390         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53391         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53392         * NEWS: Mention the change.
53393         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53394         via Sergey Poznyakoff <gray@gnu.org.ua>.
53395
53396 2008-12-21  Bruno Haible  <bruno@clisp.org>
53397
53398         * MODULES.html.sh (Extended multibyte and wide character utilities
53399         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53400         wcrtomb, wcsrtombs.
53401         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53402         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53403         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53404         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53405
53406 2008-12-21  Bruno Haible  <bruno@clisp.org>
53407
53408         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53409
53410 2008-12-21  Bruno Haible  <bruno@clisp.org>
53411
53412         * modules/wcsnrtombs-tests: New file.
53413         * tests/test-wcsnrtombs1.sh: New file.
53414         * tests/test-wcsnrtombs2.sh: New file.
53415         * tests/test-wcsnrtombs3.sh: New file.
53416         * tests/test-wcsnrtombs4.sh: New file.
53417         * tests/test-wcsnrtombs.c: New file.
53418
53419         New module 'wcsnrtombs'.
53420         * lib/wchar.in.h (wcsnrtombs): New declaration.
53421         * lib/wcsnrtombs.c: New file.
53422         * lib/wcsrtombs-state.c: New file.
53423         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53424         (internal_state): Remove variable.
53425         * m4/wcsnrtombs.m4: New file.
53426         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53427         compilation units.
53428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53429         HAVE_WCSNRTOMBS.
53430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53431         HAVE_WCSNRTOMBS.
53432         * modules/wcsnrtombs: New file.
53433         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53434         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53435
53436 2008-12-21  Bruno Haible  <bruno@clisp.org>
53437
53438         * modules/wcsrtombs-tests: New file.
53439         * tests/test-wcsrtombs1.sh: New file.
53440         * tests/test-wcsrtombs2.sh: New file.
53441         * tests/test-wcsrtombs3.sh: New file.
53442         * tests/test-wcsrtombs4.sh: New file.
53443         * tests/test-wcsrtombs.c: New file.
53444
53445         New module 'wcsrtombs'.
53446         * lib/wchar.in.h (wcsrtombs): New declaration.
53447         * lib/wcsrtombs.c: New file.
53448         * m4/wcsrtombs.m4: New file.
53449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53450         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53452         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53453         * modules/wcsrtombs: New file.
53454         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53455         bugs.
53456
53457 2008-12-21  Bruno Haible  <bruno@clisp.org>
53458
53459         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53460         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53462         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53463         if not correct.
53464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53465         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53466         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53467         m4/locale-zh.m4, m4/codeset.m4.
53468         * doc/posix-functions/wcrtomb.texi: Document the bug.
53469
53470 2008-12-21  Bruno Haible  <bruno@clisp.org>
53471
53472         Work around a btowc() bug on IRIX 6.5.
53473         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53474         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53475         REPLACE_WTOBC if not.
53476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53477         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53478         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53479
53480 2008-12-21  Bruno Haible  <bruno@clisp.org>
53481
53482         * modules/wcrtomb-tests: New file.
53483         * tests/test-wcrtomb.sh: New file.
53484         * tests/test-wcrtomb.c: New file.
53485
53486         New module 'wcrtomb'.
53487         * lib/wchar.in.h (wcrtomb): New declaration.
53488         * lib/wcrtomb.c: New file.
53489         * m4/wcrtomb.m4: New file.
53490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53491         HAVE_WCRTOMB.
53492         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53493         HAVE_WCRTOMB.
53494         * modules/wcrtomb: New file.
53495         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53496
53497 2008-12-21  Bruno Haible  <bruno@clisp.org>
53498
53499         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53500         * modules/mbsrtowcs (Files): Likewise.
53501         * modules/wctob (Files): Likewise.
53502         * modules/c-strcase-tests (Files): Likewise.
53503         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53504         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53505         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53507         * modules/vasnprintf-posix-tests (Files): Likewise.
53508
53509 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53510
53511         gitlog-to-changelog: pass all command-line arguments to git-log
53512         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53513         it is sometimes convenient to filter the commits in various ways.
53514         gitlog-to-changelog only allows --since to specify a start date,
53515         but git-log itself supports many other filtering mechanisms.
53516         At the moment, I want to filter by branch name.  Rather than
53517         adding a --branch option to gitlog-to-changelog, it seems more
53518         flexible to simply pass all options directly to git-log and let
53519         git do the work.  Notice that this effectively makes --since a
53520         redundant option for gitlog-to-changelog, but removing it would
53521         require current usage to change since calls would then require
53522         an additional '--'.
53523
53524 2008-12-21  Bruno Haible  <bruno@clisp.org>
53525
53526         * modules/mbsnrtowcs-tests: New file.
53527         * tests/test-mbsnrtowcs1.sh: New file.
53528         * tests/test-mbsnrtowcs2.sh: New file.
53529         * tests/test-mbsnrtowcs3.sh: New file.
53530         * tests/test-mbsnrtowcs4.sh: New file.
53531         * tests/test-mbsnrtowcs.c: New file.
53532
53533         New module 'mbsnrtowcs'.
53534         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53535         * lib/mbsnrtowcs.c: New file.
53536         * lib/mbsrtowcs-state.c: New file.
53537         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53538         (internal_state): Remove variable.
53539         * m4/mbsnrtowcs.m4: New file.
53540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53541         compilation units.
53542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53543         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53544         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53545         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53546         * modules/mbsnrtowcs: New file.
53547         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53548         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53549         portability problem.
53550
53551 2008-12-21  Bruno Haible  <bruno@clisp.org>
53552
53553         Work around mbsrtowcs bug.
53554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53555         (gl_FUNC_MBSRTOWCS): Invoke it.
53556         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53557         m4/locale-zh.m4.
53558         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53559
53560 2008-12-21  Bruno Haible  <bruno@clisp.org>
53561
53562         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53563
53564 2008-12-21  Bruno Haible  <bruno@clisp.org>
53565
53566         Update doc for AIX.
53567         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53568         16-bit wchar_t type.
53569         * doc/posix-functions/btowc.texi: Likewise.
53570         * doc/posix-functions/fgetwc.texi: Likewise.
53571         * doc/posix-functions/fgetws.texi: Likewise.
53572         * doc/posix-functions/fputwc.texi: Likewise.
53573         * doc/posix-functions/fputws.texi: Likewise.
53574         * doc/posix-functions/fwide.texi: Likewise.
53575         * doc/posix-functions/fwprintf.texi: Likewise.
53576         * doc/posix-functions/fwscanf.texi: Likewise.
53577         * doc/posix-functions/getwchar.texi: Likewise.
53578         * doc/posix-functions/getwc.texi: Likewise.
53579         * doc/posix-functions/iswalnum.texi: Likewise.
53580         * doc/posix-functions/iswalpha.texi: Likewise.
53581         * doc/posix-functions/iswblank.texi: Likewise.
53582         * doc/posix-functions/iswcntrl.texi: Likewise.
53583         * doc/posix-functions/iswctype.texi: Likewise.
53584         * doc/posix-functions/iswdigit.texi: Likewise.
53585         * doc/posix-functions/iswgraph.texi: Likewise.
53586         * doc/posix-functions/iswlower.texi: Likewise.
53587         * doc/posix-functions/iswprint.texi: Likewise.
53588         * doc/posix-functions/iswpunct.texi: Likewise.
53589         * doc/posix-functions/iswspace.texi: Likewise.
53590         * doc/posix-functions/iswupper.texi: Likewise.
53591         * doc/posix-functions/iswxdigit.texi: Likewise.
53592         * doc/posix-functions/mbrtowc.texi: Likewise.
53593         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53594         * doc/posix-functions/mbstowcs.texi: Likewise.
53595         * doc/posix-functions/mbtowc.texi: Likewise.
53596         * doc/posix-functions/putwchar.texi: Likewise.
53597         * doc/posix-functions/putwc.texi: Likewise.
53598         * doc/posix-functions/swprintf.texi: Likewise.
53599         * doc/posix-functions/tolower.texi: Likewise.
53600         * doc/posix-functions/toupper.texi: Likewise.
53601         * doc/posix-functions/towctrans.texi: Likewise.
53602         * doc/posix-functions/ungetwc.texi: Likewise.
53603         * doc/posix-functions/vswprintf.texi: Likewise.
53604         * doc/posix-functions/wcrtomb.texi: Likewise.
53605         * doc/posix-functions/wcscat.texi: Likewise.
53606         * doc/posix-functions/wcschr.texi: Likewise.
53607         * doc/posix-functions/wcscmp.texi: Likewise.
53608         * doc/posix-functions/wcscoll.texi: Likewise.
53609         * doc/posix-functions/wcscpy.texi: Likewise.
53610         * doc/posix-functions/wcscspn.texi: Likewise.
53611         * doc/posix-functions/wcsftime.texi: Likewise.
53612         * doc/posix-functions/wcslen.texi: Likewise.
53613         * doc/posix-functions/wcsncat.texi: Likewise.
53614         * doc/posix-functions/wcsncmp.texi: Likewise.
53615         * doc/posix-functions/wcsncpy.texi: Likewise.
53616         * doc/posix-functions/wcspbrk.texi: Likewise.
53617         * doc/posix-functions/wcsrchr.texi: Likewise.
53618         * doc/posix-functions/wcsrtombs.texi: Likewise.
53619         * doc/posix-functions/wcsspn.texi: Likewise.
53620         * doc/posix-functions/wcsstr.texi: Likewise.
53621         * doc/posix-functions/wcstod.texi: Likewise.
53622         * doc/posix-functions/wcstof.texi: Likewise.
53623         * doc/posix-functions/wcstoimax.texi: Likewise.
53624         * doc/posix-functions/wcstok.texi: Likewise.
53625         * doc/posix-functions/wcstold.texi: Likewise.
53626         * doc/posix-functions/wcstoll.texi: Likewise.
53627         * doc/posix-functions/wcstol.texi: Likewise.
53628         * doc/posix-functions/wcstombs.texi: Likewise.
53629         * doc/posix-functions/wcstoull.texi: Likewise.
53630         * doc/posix-functions/wcstoul.texi: Likewise.
53631         * doc/posix-functions/wcstoumax.texi: Likewise.
53632         * doc/posix-functions/wcswidth.texi: Likewise.
53633         * doc/posix-functions/wcsxfrm.texi: Likewise.
53634         * doc/posix-functions/wctob.texi: Likewise.
53635         * doc/posix-functions/wctomb.texi: Likewise.
53636         * doc/posix-functions/wctrans.texi: Likewise.
53637         * doc/posix-functions/wctype.texi: Likewise.
53638         * doc/posix-functions/wcwidth.texi: Likewise.
53639         * doc/posix-functions/wmemchr.texi: Likewise.
53640         * doc/posix-functions/wmemcmp.texi: Likewise.
53641         * doc/posix-functions/wmemcpy.texi: Likewise.
53642         * doc/posix-functions/wmemmove.texi: Likewise.
53643         * doc/posix-functions/wmemset.texi: Likewise.
53644         * doc/posix-functions/wprintf.texi: Likewise.
53645         * doc/posix-functions/wscanf.texi: Likewise.
53646
53647 2008-12-21  Bruno Haible  <bruno@clisp.org>
53648
53649         Update doc for HP-UX 11.11.
53650         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53651         in HP-UX version 11.00, not in all versions of HP-UX 11.
53652         * doc/posix-functions/fwide.texi: Likewise.
53653         * doc/posix-functions/fwprintf.texi: Likewise.
53654         * doc/posix-functions/fwscanf.texi: Likewise.
53655         * doc/posix-functions/inet_ntop.texi: Likewise.
53656         * doc/posix-functions/inet_pton.texi: Likewise.
53657         * doc/posix-functions/mbrlen.texi: Likewise.
53658         * doc/posix-functions/mbrtowc.texi: Likewise.
53659         * doc/posix-functions/mbsinit.texi: Likewise.
53660         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53661         * doc/posix-functions/swprintf.texi: Likewise.
53662         * doc/posix-functions/swscanf.texi: Likewise.
53663         * doc/posix-functions/towctrans.texi: Likewise.
53664         * doc/posix-functions/vfwprintf.texi: Likewise.
53665         * doc/posix-functions/vswprintf.texi: Likewise.
53666         * doc/posix-functions/vwprintf.texi: Likewise.
53667         * doc/posix-functions/wcrtomb.texi: Likewise.
53668         * doc/posix-functions/wcsrtombs.texi: Likewise.
53669         * doc/posix-functions/wcsstr.texi: Likewise.
53670         * doc/posix-functions/wctob.texi: Likewise.
53671         * doc/posix-functions/wctrans.texi: Likewise.
53672         * doc/posix-functions/wmemchr.texi: Likewise.
53673         * doc/posix-functions/wmemcmp.texi: Likewise.
53674         * doc/posix-functions/wmemcpy.texi: Likewise.
53675         * doc/posix-functions/wmemmove.texi: Likewise.
53676         * doc/posix-functions/wmemset.texi: Likewise.
53677         * doc/posix-functions/wprintf.texi: Likewise.
53678         * doc/posix-functions/wscanf.texi: Likewise.
53679
53680 2008-12-21  Bruno Haible  <bruno@clisp.org>
53681
53682         Work around a portability problem.
53683         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53684         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53685
53686 2008-12-20  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53690         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53692         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53693
53694         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53695         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53696         set.
53697         (GNULIB_defined_mbstate_t): New macro.
53698         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53699         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53700         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53701         reuses the system's mbrtowc function but works around the bugs.
53702         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53704         macros.
53705         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53706         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53707         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53709         REPLACE_MBSINIT if mbsinit needs to be overridden.
53710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53711         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53712         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53713         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53714         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53715         m4/locale-zh.m4.
53716         (Depends): Add mbsinit.
53717         * modules/mbsinit (Depends): Add mbrtowc.
53718         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53719
53720 2008-12-20  Bruno Haible  <bruno@clisp.org>
53721
53722         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53723         so that there are no conversion errors on AIX.
53724         * tests/test-mbsrtowcs.c (main): LIkewise.
53725
53726 2008-12-20  Bruno Haible  <bruno@clisp.org>
53727
53728         Work around wctob bug on Solaris <= 9.
53729         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53730         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53732         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53733         * modules/wctob (Files): Add m4/locale-fr.m4.
53734         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53735
53736 2008-12-20  Bruno Haible  <bruno@clisp.org>
53737
53738         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53739         /dev/null.
53740         * tests/test-select-in.sh: Likewise.
53741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53742
53743 2008-12-20  Bruno Haible  <bruno@clisp.org>
53744
53745         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53746         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53747         Cygwin 1.5.x.
53748
53749 2008-12-20  Bruno Haible  <bruno@clisp.org>
53750
53751         Ensure mbstate_t is defined on HP-UX 11.11.
53752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53753         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53754         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53755         AC_USE_SYSTEM_EXTENSIONS.
53756         * modules/fnmatch (Depends-on): Add extensions.
53757         * modules/mbrlen (Depends-on): Likewise.
53758         * modules/mbrtowc (Depends-on): Likewise.
53759         * modules/mbsinit (Depends-on): Likewise.
53760         * modules/mbsrtowcs (Depends-on): Likewise.
53761         * modules/mbswidth (Depends-on): Likewise.
53762         * modules/quotearg (Depends-on): Likewise.
53763         * modules/strftime (Depends-on): Likewise.
53764
53765 2008-12-20  Bruno Haible  <bruno@clisp.org>
53766
53767         Ensure wctob is declared on IRIX 6.5.
53768         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53769         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53770         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53772         of HAVE_WCTOB.
53773         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53774         HAVE_WCTOB.
53775         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53776
53777 2008-12-19  Bruno Haible  <bruno@clisp.org>
53778
53779         * modules/mbsrtowcs-tests: New file.
53780         * tests/test-mbsrtowcs1.sh: New file.
53781         * tests/test-mbsrtowcs2.sh: New file.
53782         * tests/test-mbsrtowcs3.sh: New file.
53783         * tests/test-mbsrtowcs4.sh: New file.
53784         * tests/test-mbsrtowcs.c: New file.
53785
53786         New module 'mbsrtowcs'.
53787         * lib/wchar.in.h (mbsrtowcs): New declaration.
53788         * lib/mbsrtowcs.c: New file.
53789         * m4/mbsrtowcs.m4: New file.
53790         * modules/mbsrtowcs: New file.
53791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53792         HAVE_MBSRTOWCS.
53793         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53794         HAVE_MBSRTOWCS.
53795         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53796
53797 2008-12-19  Bruno Haible  <bruno@clisp.org>
53798
53799         New module 'mbrlen'.
53800         * lib/wchar.in.h (mbrlen): New declaration.
53801         * lib/mbrlen.c: New file.
53802         * m4/mbrlen.m4: New file.
53803         * modules/mbrlen: New file.
53804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53805         HAVE_MBRLEN.
53806         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53807         HAVE_MBRLEN.
53808         * doc/posix-functions/mbrlen.texi: Document the new module.
53809
53810 2008-12-19  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53813         * modules/mbrtowc (Depends-on): Add verify.
53814         Suggested by Paul Eggert.
53815
53816 2008-12-18  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/mbsinit-tests: New file.
53819         * tests/test-mbsinit.sh: New file.
53820         * tests/test-mbsinit.c: New file.
53821
53822 2008-12-18  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/mbrtowc-tests: New file.
53825         * tests/test-mbrtowc1.sh: New file.
53826         * tests/test-mbrtowc2.sh: New file.
53827         * tests/test-mbrtowc3.sh: New file.
53828         * tests/test-mbrtowc4.sh: New file.
53829         * tests/test-mbrtowc.c: New file.
53830
53831         New module 'mbrtowc'.
53832         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53833         mbsinit and mbrtowc.
53834         (mbrtowc): New declaration.
53835         * lib/mbrtowc.c: New file.
53836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53837         * modules/mbrtowc: New file.
53838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53839         HAVE_MBRTOWC.
53840         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53841         HAVE_MBRTOWC.
53842         * doc/posix-functions/mbrtowc.texi: Document the new module.
53843
53844 2008-12-18  Bruno Haible  <bruno@clisp.org>
53845
53846         New module 'wctob'.
53847         * lib/wchar.in.h (wctob): New declaration.
53848         * lib/wctob.c: New file.
53849         * m4/wctob.m4: New file.
53850         * modules/wctob: New file.
53851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53852         HAVE_WCTOB.
53853         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53854         * doc/posix-functions/wctob.texi: Document the new module.
53855
53856 2008-12-18  Bruno Haible  <bruno@clisp.org>
53857
53858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53859         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53860
53861 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53862
53863         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53864         G. Christensen" <tgc@jupiterrise.com>.
53865
53866         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53867         G. Christensen" <tgc@jupiterrise.com>.
53868
53869         * lib/flock.c: Need to include string.h.  Reported by "Tom
53870         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53871         <ebb9@byu.net>.
53872
53873 2008-12-18  Bruno Haible  <bruno@clisp.org>
53874
53875         * m4/locale-ja.m4: New file, from GNU gettext.
53876
53877 2008-12-17  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53880         Suggested by Eric Blake.
53881
53882 2008-12-17  Bruno Haible  <bruno@clisp.org>
53883
53884         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53885
53886 2008-12-17  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53889         * modules/mbsinit (Depends-on): Add verify.
53890         Suggested by Paul Eggert.
53891
53892 2008-12-17  Bruno Haible  <bruno@clisp.org>
53893
53894         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53895         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53896         gl_FUNC_MBRTOWC.
53897         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53898         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53899         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53900         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53901         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53902         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53903         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53904         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53905         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53906         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53907         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53908         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53909         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53910         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53911         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53912         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53913         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53914         * modules/trim (configure.ac): Likewise.
53915
53916 2008-12-17  Bruno Haible  <bruno@clisp.org>
53917
53918         * modules/btowc-tests: New file.
53919         * tests/test-btowc1.sh: New file.
53920         * tests/test-btowc2.sh: New file.
53921         * tests/test-btowc.c: New file.
53922
53923         New module 'btowc'.
53924         * lib/wchar.in.h (btowc): New declaration.
53925         * lib/btowc.c: New file.
53926         * m4/btowc.m4: New file.
53927         * modules/btowc: New file.
53928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53929         HAVE_BTOWC.
53930         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53931         * doc/posix-functions/btowc.texi: Document the new module.
53932
53933 2008-12-17  Bruno Haible  <bruno@clisp.org>
53934
53935         New module 'mbsinit'.
53936         * lib/wchar.in.h (mbsinit): New declaration.
53937         * lib/mbsinit.c: New file.
53938         * m4/mbsinit.m4: New file.
53939         * modules/mbsinit: New file.
53940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53941         HAVE_MBSINIT.
53942         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53943         HAVE_MBSINIT.
53944         * doc/posix-functions/mbsinit.texi: Document the new module.
53945
53946 2008-12-16  Bruno Haible  <bruno@clisp.org>
53947
53948         * lib/unistd.in.h: Add comment.
53949         * tests/test-environ.c: Don't include <stdlib.h>.
53950
53951 2008-12-16  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/parse-duration.h (parse_duration): Document return value
53954         convention.
53955         * lib/parse-duration.c: Include specification header first. Add
53956         comments.
53957         (_): Remove macro.
53958         (parse_year_month_day, parse_hour_minute_second): Move side effects
53959         outside of strchr call.
53960         (parse_non_iso8601): Move side effects outside of isspace call.
53961         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53962         call.
53963
53964 2008-12-16  Bruno Haible  <bruno@clisp.org>
53965
53966         * tests/test-parse-duration.sh: Produce no output when the test
53967         succeeds.
53968
53969 2008-12-16  Bruno Haible  <bruno@clisp.org>
53970
53971         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53972         expressions.
53973
53974 2008-12-15  Bruno Haible  <bruno@clisp.org>
53975
53976         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53977         * doc/glibc-functions/flistxattr.texi: Likewise.
53978         * doc/glibc-functions/fopencookie.texi: Likewise.
53979         * doc/glibc-functions/fremovexattr.texi: Likewise.
53980         * doc/glibc-functions/fsetxattr.texi: Likewise.
53981         * doc/glibc-functions/getxattr.texi: Likewise.
53982         * doc/glibc-functions/lgetxattr.texi: Likewise.
53983         * doc/glibc-functions/listxattr.texi: Likewise.
53984         * doc/glibc-functions/llistxattr.texi: Likewise.
53985         * doc/glibc-functions/lremovexattr.texi: Likewise.
53986         * doc/glibc-functions/lsetxattr.texi: Likewise.
53987         * doc/glibc-functions/removexattr.texi: Likewise.
53988         * doc/glibc-functions/setxattr.texi: Likewise.
53989         * doc/posix-functions/open_memstream.texi: Likewise.
53990
53991 2008-12-15  Eric Blake  <ebb9@byu.net>
53992
53993         Update doc for cygwin 1.7.
53994         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53995         functions.
53996         * doc/posix-functions/fchmodat.texi: Likewise.
53997         * doc/posix-functions/fchownat.texi: Likewise.
53998         * doc/posix-functions/fdopendir.texi: Likewise.
53999         * doc/posix-functions/fmemopen.texi: Likewise.
54000         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54001         * doc/posix-functions/fstatat.texi: Likewise.
54002         * doc/posix-functions/futimens.texi: Likewise.
54003         * doc/posix-functions/gai_strerror.texi: Likewise.
54004         * doc/posix-functions/getaddrinfo.texi: Likewise.
54005         * doc/posix-functions/getnameinfo.texi: Likewise.
54006         * doc/posix-functions/if_freenameindex.texi: Likewise.
54007         * doc/posix-functions/if_indextoname.texi: Likewise.
54008         * doc/posix-functions/if_nameindex.texi: Likewise.
54009         * doc/posix-functions/if_nametoindex.texi: Likewise.
54010         * doc/posix-functions/insque.texi: Likewise.
54011         * doc/posix-functions/linkat.texi: Likewise.
54012         * doc/posix-functions/llrint.texi: Likewise.
54013         * doc/posix-functions/llrintf.texi: Likewise.
54014         * doc/posix-functions/llrintl.texi: Likewise.
54015         * doc/posix-functions/lockf.texi: Likewise.
54016         * doc/posix-functions/lrintl.texi: Likewise.
54017         * doc/posix-functions/mkdirat.texi: Likewise.
54018         * doc/posix-functions/mkfifoat.texi: Likewise.
54019         * doc/posix-functions/mknodat.texi: Likewise.
54020         * doc/posix-functions/mq_close.texi: Likewise.
54021         * doc/posix-functions/mq_getattr.texi: Likewise.
54022         * doc/posix-functions/mq_notify.texi: Likewise.
54023         * doc/posix-functions/mq_open.texi: Likewise.
54024         * doc/posix-functions/mq_receive.texi: Likewise.
54025         * doc/posix-functions/mq_send.texi: Likewise.
54026         * doc/posix-functions/mq_setattr.texi: Likewise.
54027         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54028         * doc/posix-functions/mq_timedsend.texi: Likewise.
54029         * doc/posix-functions/mq_unlink.texi: Likewise.
54030         * doc/posix-functions/open_memstream.texi: Likewise.
54031         * doc/posix-functions/openat.texi: Likewise.
54032         * doc/posix-functions/posix_fadvise.texi: Likewise.
54033         * doc/posix-functions/posix_fallocate.texi: Likewise.
54034         * doc/posix-functions/posix_madvise.texi: Likewise.
54035         * doc/posix-functions/posix_memalign.texi: Likewise.
54036         * doc/posix-functions/posix_openpt.texi: Likewise.
54037         * doc/posix-functions/readlinkat.texi: Likewise.
54038         * doc/posix-functions/remque.texi: Likewise.
54039         * doc/posix-functions/renameat.texi: Likewise.
54040         * doc/posix-functions/rintl.texi: Likewise.
54041         * doc/posix-functions/sem_unlink.texi: Likewise.
54042         * doc/posix-functions/shm_open.texi: Likewise.
54043         * doc/posix-functions/shm_unlink.texi: Likewise.
54044         * doc/posix-functions/signgam.texi: Likewise.
54045         * doc/posix-functions/sigset.texi: Likewise.
54046         * doc/posix-functions/stpcpy.texi: Likewise.
54047         * doc/posix-functions/stpncpy.texi: Likewise.
54048         * doc/posix-functions/strerror.texi: Likewise.
54049         * doc/posix-functions/strtod.texi: Likewise.
54050         * doc/posix-functions/symlinkat.texi: Likewise.
54051         * doc/posix-functions/unlinkat.texi: Likewise.
54052         * doc/posix-functions/utimensat.texi: Likewise.
54053         * doc/glibc-functions/bindresvport.texi: Likewise.
54054         * doc/glibc-functions/dn_expand.texi: Likewise.
54055         * doc/glibc-functions/exp10.texi: Likewise.
54056         * doc/glibc-functions/exp10f.texi: Likewise.
54057         * doc/glibc-functions/fgetxattr.texi: Likewise.
54058         * doc/glibc-functions/flistxattr.texi: Likewise.
54059         * doc/glibc-functions/fopencookie.texi: Likewise.
54060         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54061         * doc/glibc-functions/fremovexattr.texi: Likewise.
54062         * doc/glibc-functions/fsetxattr.texi: Likewise.
54063         * doc/glibc-functions/getifaddrs.texi: Likewise.
54064         * doc/glibc-functions/getxattr.texi: Likewise.
54065         * doc/glibc-functions/lgetxattr.texi: Likewise.
54066         * doc/glibc-functions/listxattr.texi: Likewise.
54067         * doc/glibc-functions/llistxattr.texi: Likewise.
54068         * doc/glibc-functions/lremovexattr.texi: Likewise.
54069         * doc/glibc-functions/lsetxattr.texi: Likewise.
54070         * doc/glibc-functions/pow10.texi: Likewise.
54071         * doc/glibc-functions/pow10f.texi: Likewise.
54072         * doc/glibc-functions/rcmd_af.texi: Likewise.
54073         * doc/glibc-functions/removexattr.texi: Likewise.
54074         * doc/glibc-functions/res_init.texi: Likewise.
54075         * doc/glibc-functions/res_mkquery.texi: Likewise.
54076         * doc/glibc-functions/res_query.texi: Likewise.
54077         * doc/glibc-functions/res_querydomain.texi: Likewise.
54078         * doc/glibc-functions/res_send.texi: Likewise.
54079         * doc/glibc-functions/rresvport_af.texi: Likewise.
54080         * doc/glibc-functions/setxattr.texi: Likewise.
54081         * doc/glibc-functions/strcasestr.texi: Likewise.
54082
54083 2008-12-15  Bruno Haible  <bruno@clisp.org>
54084
54085         Fix compilation error on OSF/1 4.0.
54086         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54087         <sys/time.h>, simply delegate to the system header.
54088         Reported by Daniel Richard G. <oss@teragram.com>.
54089
54090 2008-12-15  Bruno Haible  <bruno@clisp.org>
54091
54092         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54093         * doc/posix-functions/fchmodat.texi: Likewise.
54094         * doc/posix-functions/fchownat.texi: Likewise.
54095         * doc/posix-functions/fdopendir.texi: Likewise.
54096         * doc/posix-functions/fstatat.texi: Likewise.
54097         * doc/posix-functions/mkdirat.texi: Likewise.
54098         * doc/posix-functions/unlinkat.texi: Likewise.
54099
54100 2008-12-14  Bruno Haible  <bruno@clisp.org>
54101
54102         Update doc for POSIX:2008.
54103         * doc/posix-functions/faccessat.texi: New file.
54104         * doc/posix-functions/fchmodat.texi: New file.
54105         * doc/posix-functions/fchownat.texi: New file.
54106         * doc/posix-functions/fdopendir.texi: New file.
54107         * doc/posix-functions/fstatat.texi: New file.
54108         * doc/posix-functions/futimens.texi: New file.
54109         * doc/posix-functions/linkat.texi: New file.
54110         * doc/posix-functions/mkdirat.texi: New file.
54111         * doc/posix-functions/mkfifoat.texi: New file.
54112         * doc/posix-functions/mknodat.texi: New file.
54113         * doc/posix-functions/open_wmemstream.texi: New file.
54114         * doc/posix-functions/openat.texi: New file.
54115         * doc/posix-functions/psiginfo.texi: New file.
54116         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54117         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54118         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54119         * doc/posix-functions/readlinkat.texi: New file.
54120         * doc/posix-functions/renameat.texi: New file.
54121         * doc/posix-functions/strerror_l.texi: New file.
54122         * doc/posix-functions/symlinkat.texi: New file.
54123         * doc/posix-functions/unlinkat.texi: New file.
54124         * doc/posix-functions/utimensat.texi: New file.
54125         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54126
54127 2008-12-14  Bruno Haible  <bruno@clisp.org>
54128
54129         Update doc for POSIX:2008.
54130         * doc/posix-functions/alphasort.texi: Renamed from
54131         doc/glibc-functions/alphasort.texi.
54132         * doc/posix-functions/dirfd.texi: Renamed from
54133         doc/glibc-functions/dirfd.texi.
54134         * doc/posix-functions/dprintf.texi: Renamed from
54135         doc/glibc-functions/dprintf.texi.
54136         * doc/posix-functions/duplocale.texi: Renamed from
54137         doc/glibc-functions/duplocale.texi.
54138         * doc/posix-functions/fexecve.texi: Renamed from
54139         doc/glibc-functions/fexecve.texi.
54140         * doc/posix-functions/fmemopen.texi: Renamed from
54141         doc/glibc-functions/fmemopen.texi.
54142         * doc/posix-functions/freelocale.texi: Renamed from
54143         doc/glibc-functions/freelocale.texi.
54144         * doc/posix-functions/getdate_err.texi: Renamed from
54145         doc/glibc-functions/getdate_err.texi.
54146         * doc/posix-functions/isalnum_l.texi: Renamed from
54147         doc/glibc-functions/isalnum_l.texi.
54148         * doc/posix-functions/isalpha_l.texi: Renamed from
54149         doc/glibc-functions/isalpha_l.texi.
54150         * doc/posix-functions/isblank_l.texi: Renamed from
54151         doc/glibc-functions/isblank_l.texi.
54152         * doc/posix-functions/iscntrl_l.texi: Renamed from
54153         doc/glibc-functions/iscntrl_l.texi.
54154         * doc/posix-functions/isdigit_l.texi: Renamed from
54155         doc/glibc-functions/isdigit_l.texi.
54156         * doc/posix-functions/isgraph_l.texi: Renamed from
54157         doc/glibc-functions/isgraph_l.texi.
54158         * doc/posix-functions/islower_l.texi: Renamed from
54159         doc/glibc-functions/islower_l.texi.
54160         * doc/posix-functions/isprint_l.texi: Renamed from
54161         doc/glibc-functions/isprint_l.texi.
54162         * doc/posix-functions/ispunct_l.texi: Renamed from
54163         doc/glibc-functions/ispunct_l.texi.
54164         * doc/posix-functions/isspace_l.texi: Renamed from
54165         doc/glibc-functions/isspace_l.texi.
54166         * doc/posix-functions/isupper_l.texi: Renamed from
54167         doc/glibc-functions/isupper_l.texi.
54168         * doc/posix-functions/iswalnum_l.texi: Renamed from
54169         doc/glibc-functions/iswalnum_l.texi.
54170         * doc/posix-functions/iswalpha_l.texi: Renamed from
54171         doc/glibc-functions/iswalpha_l.texi.
54172         * doc/posix-functions/iswblank_l.texi: Renamed from
54173         doc/glibc-functions/iswblank_l.texi.
54174         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54175         doc/glibc-functions/iswcntrl_l.texi.
54176         * doc/posix-functions/iswctype_l.texi: Renamed from
54177         doc/glibc-functions/iswctype_l.texi.
54178         * doc/posix-functions/iswdigit_l.texi: Renamed from
54179         doc/glibc-functions/iswdigit_l.texi.
54180         * doc/posix-functions/iswgraph_l.texi: Renamed from
54181         doc/glibc-functions/iswgraph_l.texi.
54182         * doc/posix-functions/iswlower_l.texi: Renamed from
54183         doc/glibc-functions/iswlower_l.texi.
54184         * doc/posix-functions/iswprint_l.texi: Renamed from
54185         doc/glibc-functions/iswprint_l.texi.
54186         * doc/posix-functions/iswpunct_l.texi: Renamed from
54187         doc/glibc-functions/iswpunct_l.texi.
54188         * doc/posix-functions/iswspace_l.texi: Renamed from
54189         doc/glibc-functions/iswspace_l.texi.
54190         * doc/posix-functions/iswupper_l.texi: Renamed from
54191         doc/glibc-functions/iswupper_l.texi.
54192         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54193         doc/glibc-functions/iswxdigit_l.texi.
54194         * doc/posix-functions/isxdigit_l.texi: Renamed from
54195         doc/glibc-functions/isxdigit_l.texi.
54196         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54197         doc/glibc-functions/mbsnrtowcs.texi.
54198         * doc/posix-functions/mkdtemp.texi: Renamed from
54199         doc/glibc-functions/mkdtemp.texi.
54200         * doc/posix-functions/newlocale.texi: Renamed from
54201         doc/glibc-functions/newlocale.texi.
54202         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54203         doc/glibc-functions/nl_langinfo_l.texi.
54204         * doc/posix-functions/open_memstream.texi: Renamed from
54205         doc/glibc-functions/open_memstream.texi.
54206         * doc/posix-functions/opterr.texi: Renamed from
54207         doc/glibc-functions/opterr.texi.
54208         * doc/posix-functions/optind.texi: Renamed from
54209         doc/glibc-functions/optind.texi.
54210         * doc/posix-functions/optopt.texi: Renamed from
54211         doc/glibc-functions/optopt.texi.
54212         * doc/posix-functions/psignal.texi: Renamed from
54213         doc/glibc-functions/psignal.texi.
54214         * doc/posix-functions/scandir.texi: Renamed from
54215         doc/glibc-functions/scandir.texi.
54216         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54217         doc/glibc-functions/sched_get_priority_min.texi.
54218         * doc/posix-functions/signgam.texi: Renamed from
54219         doc/glibc-functions/signgam.texi.
54220         * doc/posix-functions/stpcpy.texi: Renamed from
54221         doc/glibc-functions/stpcpy.texi.
54222         * doc/posix-functions/stpncpy.texi: Renamed from
54223         doc/glibc-functions/stpncpy.texi.
54224         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54225         doc/glibc-functions/strcasecmp_l.texi.
54226         * doc/posix-functions/strcoll_l.texi: Renamed from
54227         doc/glibc-functions/strcoll_l.texi.
54228         * doc/posix-functions/strfmon_l.texi: Renamed from
54229         doc/glibc-functions/strfmon_l.texi.
54230         * doc/posix-functions/strftime_l.texi: Renamed from
54231         doc/glibc-functions/strftime_l.texi.
54232         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54233         doc/glibc-functions/strncasecmp_l.texi.
54234         * doc/posix-functions/strndup.texi: Renamed from
54235         doc/glibc-functions/strndup.texi.
54236         * doc/posix-functions/strnlen.texi: Renamed from
54237         doc/glibc-functions/strnlen.texi.
54238         * doc/posix-functions/strsignal.texi: Renamed from
54239         doc/glibc-functions/strsignal.texi.
54240         * doc/posix-functions/strxfrm_l.texi: Renamed from
54241         doc/glibc-functions/strxfrm_l.texi.
54242         * doc/posix-functions/timer_gettime.texi: Renamed from
54243         doc/glibc-functions/timer_gettime.texi.
54244         * doc/posix-functions/tolower_l.texi: Renamed from
54245         doc/glibc-functions/tolower_l.texi.
54246         * doc/posix-functions/toupper_l.texi: Renamed from
54247         doc/glibc-functions/toupper_l.texi.
54248         * doc/posix-functions/towctrans_l.texi: Renamed from
54249         doc/glibc-functions/towctrans_l.texi.
54250         * doc/posix-functions/towlower_l.texi: Renamed from
54251         doc/glibc-functions/towlower_l.texi.
54252         * doc/posix-functions/towupper_l.texi: Renamed from
54253         doc/glibc-functions/towupper_l.texi.
54254         * doc/posix-functions/uselocale.texi: Renamed from
54255         doc/glibc-functions/uselocale.texi.
54256         * doc/posix-functions/vdprintf.texi: Renamed from
54257         doc/glibc-functions/vdprintf.texi.
54258         * doc/posix-functions/wcpcpy.texi:
54259         Renamed from doc/glibc-functions/wcpcpy.texi.
54260         * doc/posix-functions/wcpncpy.texi: Renamed from
54261         doc/glibc-functions/wcpncpy.texi.
54262         * doc/posix-functions/wcscasecmp.texi: Renamed from
54263         doc/glibc-functions/wcscasecmp.texi.
54264         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54265         doc/glibc-functions/wcscasecmp_l.texi.
54266         * doc/posix-functions/wcscoll_l.texi: Renamed from
54267         doc/glibc-functions/wcscoll_l.texi.
54268         * doc/posix-functions/wcsdup.texi: Renamed from
54269         doc/glibc-functions/wcsdup.texi.
54270         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54271         doc/glibc-functions/wcsncasecmp.texi.
54272         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54273         doc/glibc-functions/wcsncasecmp_l.texi.
54274         * doc/posix-functions/wcsnlen.texi: Renamed from
54275         doc/glibc-functions/wcsnlen.texi.
54276         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54277         doc/glibc-functions/wcsnrtombs.texi.
54278         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54279         doc/glibc-functions/wcsxfrm_l.texi.
54280         * doc/posix-functions/wctrans_l.texi: Renamed from
54281         doc/glibc-functions/wctrans_l.texi.
54282         * doc/posix-functions/wctype_l.texi: Renamed from
54283         doc/glibc-functions/wctype_l.texi.
54284         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54285         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54286         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54287         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54288         these subsections.
54289         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54290         Remove sections.
54291
54292 2008-12-14  Bruno Haible  <bruno@clisp.org>
54293
54294         Update doc for POSIX:2008.
54295         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54296
54297 2008-12-14  Bruno Haible  <bruno@clisp.org>
54298
54299         Update doc for POSIX:2008.
54300         * doc/pastposix-functions/bcmp.texi: Renamed from
54301         doc/posix-functions/bcmp.texi.
54302         * doc/pastposix-functions/bcopy.texi: Renamed from
54303         doc/posix-functions/bcopy.texi.
54304         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54305         doc/posix-functions/bsd_signal.texi.
54306         * doc/pastposix-functions/bzero.texi: Renamed from
54307         doc/posix-functions/bzero.texi.
54308         * doc/pastposix-functions/ecvt.texi: Renamed from
54309         doc/posix-functions/ecvt.texi.
54310         * doc/pastposix-functions/fcvt.texi: Renamed from
54311         doc/posix-functions/fcvt.texi.
54312         * doc/pastposix-functions/ftime.texi: Renamed from
54313         doc/posix-functions/ftime.texi.
54314         * doc/pastposix-functions/gcvt.texi: Renamed from
54315         doc/posix-functions/gcvt.texi.
54316         * doc/pastposix-functions/getcontext.texi: Renamed from
54317         doc/posix-functions/getcontext.texi.
54318         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54319         doc/posix-functions/gethostbyaddr.texi.
54320         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54321         doc/posix-functions/gethostbyname.texi.
54322         * doc/pastposix-functions/getwd.texi: Renamed from
54323         doc/posix-functions/getwd.texi.
54324         * doc/pastposix-functions/h_errno.texi: Renamed from
54325         doc/posix-functions/h_errno.texi.
54326         * doc/pastposix-functions/index.texi: Renamed from
54327         doc/posix-functions/index.texi.
54328         * doc/pastposix-functions/makecontext.texi: Renamed from
54329         doc/posix-functions/makecontext.texi.
54330         * doc/pastposix-functions/mktemp.texi: Renamed from
54331         doc/posix-functions/mktemp.texi.
54332         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54333         doc/posix-functions/pthread_attr_getstackaddr.texi.
54334         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54335         doc/posix-functions/pthread_attr_setstackaddr.texi.
54336         * doc/pastposix-functions/rindex.texi: Renamed from
54337         doc/posix-functions/rindex.texi.
54338         * doc/pastposix-functions/scalb.texi: Renamed from
54339         doc/posix-functions/scalb.texi.
54340         * doc/pastposix-functions/setcontext.texi: Renamed from
54341         doc/posix-functions/setcontext.texi.
54342         * doc/pastposix-functions/swapcontext.texi: Renamed from
54343         doc/posix-functions/swapcontext.texi.
54344         * doc/pastposix-functions/ualarm.texi: Renamed from
54345         doc/posix-functions/ualarm.texi.
54346         * doc/pastposix-functions/usleep.texi: Renamed from
54347         doc/posix-functions/usleep.texi.
54348         * doc/pastposix-functions/vfork.texi: Renamed from
54349         doc/posix-functions/vfork.texi.
54350         * doc/pastposix-functions/wcswcs.texi: Renamed from
54351         doc/posix-functions/wcswcs.texi.
54352         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54353         (Function Substitutes): Update.
54354
54355 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54356
54357         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54358         m4/strerror.m4.
54359
54360 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54361             Bruno Haible  <bruno@clisp.org>
54362
54363         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54364
54365 2008-12-13  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/strtoull (Depends-on): Remove unistd.
54368
54369 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54370
54371         * modules/strtoull (Depends-on): Add stdlib.
54372
54373 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54374
54375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54376
54377 2008-12-10  Jim Meyering  <meyering@redhat.com>
54378
54379         gl_ASSERT: don't say assertions are disabled when they're not
54380         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54381         "checking whether to enable assertions... no", when they are in
54382         fact enabled.  This is solely a bug in the output of configure.
54383         In spite of saying "no", NDEBUG was not defined in that case.
54384         Also, as noted by Eric Blake, leave assertions enabled upon
54385         --enable-assert=INVALID.
54386
54387 2008-12-10  Bruno Haible  <bruno@clisp.org>
54388
54389         Change MODULES.html to refer to POSIX:2008 where possible.
54390         * MODULES.html.sh (POSIX2008_URL): New variable.
54391         (posix_headers): Remove sys/timeb, ucontext.
54392         (posix2001_headers): New variable.
54393         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54394         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54395         index, makecontext, mktemp, pthread_attr_getstackaddr,
54396         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54397         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54398         (posix2001_functions): New variable.
54399         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54400         otherwise.
54401
54402 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54403
54404         add missing include to parse-duration.c
54405         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54406         * modules/parse-duration (Depends-on): Add xalloc.
54407
54408         fix sed script reading maint.mk
54409         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54410         (syntax-check-rules): Use it.
54411
54412 2008-12-09  Bruno Haible  <bruno@clisp.org>
54413
54414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54415         MacOS X 10.4/PowerPC.
54416         Reported by Simon Josefsson.
54417
54418 2008-12-08  Jim Meyering  <meyering@redhat.com>
54419
54420         work around mingw's lack of some S_IF definitions
54421         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54422         Reported by Simon Josefsson.
54423
54424 2008-12-08  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54427         applied to variables. Needed on MacOS X 10.4/PowerPC.
54428         Reported by Simon Josefsson.
54429
54430 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54431         and Eric Blake  <ebb9@byu.net>
54432
54433         assert: honor --enable-assert
54434         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54435         order to honor --enable-assert, rather than treating it as a
54436         synonym for --disable-assert.
54437
54438 2008-12-08  Jim Meyering  <meyering@redhat.com>
54439
54440         * lib/posixtm.c: Remove now-useless declaration of mktime.
54441
54442         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54443
54444 2008-12-07  Bruno Haible  <bruno@clisp.org>
54445
54446         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54447         test_once): Mark functions as static.
54448         * tests/test-tls.c (test_tls): Likewise.
54449
54450 2008-12-07  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54453         iconv_register_autodetect.
54454
54455 2008-12-07  Jim Meyering  <meyering@redhat.com>
54456
54457         posixtm.c: avoid a warning
54458         * lib/posixtm.c (posixtime): Don't initialize tm0.
54459         It's no longer needed to placate gcc4's -Wuninitialized,
54460         and the attempt to placate would elicit a new warning.
54461
54462         unicodeio.c: mark unused parameters
54463         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54464         (fallback_failure_callback): Likewise.
54465
54466 2008-12-07  Bruno Haible  <bruno@clisp.org>
54467
54468         * gnulib-tool (func_create_testdir): When building the tests
54469         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54470         Reported by Simon Josefsson.
54471
54472 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54473
54474         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54475
54476 2008-12-06  Bruno Haible  <bruno@clisp.org>
54477
54478         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54479         Suggested by Eric Blake.
54480
54481 2008-12-06  Bruno Haible  <bruno@clisp.org>
54482
54483         Fix a c-stack test failure on MacOS X.
54484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54485         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54486         handler for SIGBUS as well.
54487         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54488         install a signal handler for SIGBUS as well.
54489         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54490
54491 2008-12-06  Bruno Haible  <bruno@clisp.org>
54492
54493         Advocacy documentation.
54494         * doc/gnulib-intro.texi (Benefits): New section.
54495         * doc/gnulib.texi: Update.
54496
54497 2008-12-06  Bruno Haible  <bruno@clisp.org>
54498
54499         Document the 'manywarnings' module.
54500         * doc/manywarnings.texi: New file.
54501         * doc/gnulib.texi: Include it.
54502
54503 2008-12-05  Eric Blake  <ebb9@byu.net>
54504
54505         tests: silence some gcc warnings
54506         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54507         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54508         type mismatches.
54509
54510 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54511             Bruno Haible  <bruno@clisp.org>
54512
54513         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54514
54515 2008-11-29  Jim Meyering  <meyering@redhat.com>
54516
54517         unicodeio.c: mark unused parameters
54518         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54519         (fallback_failure_callback): Likewise.
54520
54521         fts: fix a thinko
54522         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54523         (set_stat_type): Return S_IF*-valued "type" directly.
54524         Prompted by James Youngman's spotting a related bug.
54525         Confirmed by further testing through find.
54526
54527         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54528         * lib/fts.c (D_TYPE): Define.
54529         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54530         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54531         (s_ifmt_shift_bits): New function.
54532         (set_stat_type): New function.
54533         (fts_build): When not calling fts_stat, call set_stat_type
54534         to propagate dirent.d_type info to fts_read caller.
54535         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54536         fts_statp->st_mode type information may be valid.
54537
54538 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54539
54540         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54541         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54542         <sds@gnu.org>.
54543
54544 2008-11-20  Bruno Haible  <bruno@clisp.org>
54545
54546         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54547         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54548         INCLUDE_NEXT.
54549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54550         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54551         * modules/math (Makefile.am): Substitute
54552         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54554
54555 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54556             Bruno Haible  <bruno@clisp.org>
54557
54558         * lib/stdint.in.h: Define all type macros so that their expansion is
54559         a single typedef'ed token. Fixes a compilation failure in Boost which
54560         does "using ::int8_t;".
54561
54562 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54563
54564         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54565         gl_MANYWARN_ALL_GCC.
54566         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54567         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54568         * modules/manywarnings: New file.
54569         * MODULES.html.sh: Mention manywarnings module.
54570
54571 2008-11-18  Bruno Haible  <bruno@clisp.org>
54572
54573         * doc/gnulib-tool.texi (Unit tests): New section.
54574
54575 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54576
54577         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54578         paths like 'lib/po/foo.po'.
54579
54580 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54581
54582         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54583         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54584
54585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54586
54587         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54588         parameter works.
54589
54590 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54591
54592         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54593
54594 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54595
54596         * modules/parse-duration-tests: New file.
54597         * tests/test-parse-duration.sh: New file.
54598         * tests/test-parse-duration.c: New file.
54599
54600         New module 'parse-duration'.
54601         * lib/parse-duration.h: New file.
54602         * lib/parse-duration.c: New file.
54603         * modules/parse-duration: New file.
54604
54605 2008-11-17  Bruno Haible  <bruno@clisp.org>
54606
54607         * tests/test-select-out.sh: Comment out the first pipe test.
54608         Reported by Simon Josefsson.
54609
54610 2008-11-17  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54614         gl_HOSTENT.
54615
54616 2008-11-17  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54619         -lnetwork and -lnet. Needed for Haiku and BeOS.
54620
54621 2008-11-16  Bruno Haible  <bruno@clisp.org>
54622
54623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54624
54625 2008-11-16  Bruno Haible  <bruno@clisp.org>
54626
54627         Avoid test failure on Haiku.
54628         * tests/test-fsync.c: Include <errno.h>.
54629         (main): Don't require that fsync (0) fails.
54630
54631 2008-11-15  Bruno Haible  <bruno@clisp.org>
54632
54633         New module 'hostent'.
54634         * modules/hostent: New file.
54635         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54636
54637 2008-11-15  Bruno Haible  <bruno@clisp.org>
54638
54639         New module 'servent'.
54640         * modules/servent: New file.
54641         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54642
54643 2008-11-15  Bruno Haible  <bruno@clisp.org>
54644
54645         Avoid generating same test program with two different rules.
54646         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54647         test-frexp to test-frexp-nolibm.
54648         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54649         test-frexpl to test-frexpl-nolibm.
54650
54651 2008-11-15  Bruno Haible  <bruno@clisp.org>
54652
54653         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54654         $(FREXPL_LIBM).
54655
54656 2008-11-15  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/netdb.in.h: Activate the definitions also when the system's
54659         <netdb.h> has 'struct addrinfo'.
54660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54661         EAI_OVERFLOW or AI_NUMERICSERV.
54662         * doc/posix-headers/netdb.texi: Document the problem.
54663
54664 2008-11-15  Bruno Haible  <bruno@clisp.org>
54665
54666         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54667
54668         Make the 'sched' module work on platforms where <sched.h> exists but
54669         is incomplete (such as Haiku).
54670         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54671         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54672         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54673         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54674         HAVE_STRUCT_SCHED_PARAM.
54675         * modules/sched (Depends-on): Add include_next.
54676         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54677         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54678         * doc/posix-headers/sched.texi: Document the issue.
54679
54680 2008-11-13  Jim Meyering  <meyering@redhat.com>
54681
54682         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54683         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54684         test would fail due to the difference in the Report bugs to ...
54685         line.  The expected address is empty, "<>", while the actual
54686         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54687
54688 2008-11-12  Bruno Haible  <bruno@clisp.org>
54689
54690         lstat: don't compile lstat.c on systems lacking lstat
54691         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54692         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54693         Reported by Daniel P. Berrange via Jim Meyering.
54694
54695 2008-11-12  Jim Meyering  <meyering@redhat.com>
54696
54697         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54698
54699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54700
54701         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54702         instead.
54703
54704 2008-11-12  Bruno Haible  <bruno@clisp.org>
54705
54706         * lib/unicodeio.c: Include unistr.h.
54707         (utf8_wctomb): Remove function.
54708         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54709
54710 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54711
54712         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54713         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54714         <bruno@clisp.org>.
54715         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54716
54717 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54718
54719         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54720         * doc/gnulib.texi: Add section for warnings.
54721
54722 2008-11-11  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/sockets.h: Add a comment.
54725
54726 2008-11-11  Karl Berry  <karl@gnu.org>
54727
54728         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54729
54730 2008-11-11  Eric Blake  <ebb9@byu.net>
54731
54732         fdl.texi: avoid git symlinks
54733         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54734
54735 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54736
54737         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54738
54739 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54740
54741         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54742         (gl_WARN_ADD): Substitute $2 if literal.
54743
54744 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54745
54746         * m4/warning.m4: Remove.
54747
54748 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54749
54750         * m4/warnings.m4: Almost complete rewrite. :-)
54751
54752 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54753
54754         * modules/warnings: New module.
54755         * m4/warnings.m4: New file.
54756         * MODULES.html.sh: Mention warnings module.
54757         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54758         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54759
54760 2008-11-10  Eric Blake  <ebb9@byu.net>
54761
54762         fdl.texi: make a symlink to the latest version
54763         * doc/standards.texi: Revert today's earlier change.
54764         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54765         * doc/fdl.texi: ...and replace this with a symlink to the newer
54766         fdl-1.3.texi.
54767
54768 2008-11-10  Bruno Haible  <bruno@clisp.org>
54769
54770         * tests/test-select-fd.c (main): Accept the result file name as fourth
54771         argument.
54772         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54773         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54774
54775 2008-11-10  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54778         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54779         as autoconf-substituted macros.
54780         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54782         gl_NETDB_H_DEFAULTS. Set these variables.
54783         * modules/netdb (Makefile.am): Substitute these variables.
54784
54785 2008-11-10  Eric Blake  <ebb9@byu.net>
54786
54787         standards.texi: include correct file for FDL 1.3
54788         * doc/standards.texi (GNU Free Documentation License): Change
54789         include file to pull in FDL 1.3, not 1.2.
54790
54791         fdl.texi: revert accidental change to license
54792         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54793
54794 2008-11-10  Bruno Haible  <bruno@clisp.org>
54795
54796         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54797         cross-compiling guesses also when the native compile gives no result.
54798
54799 2008-11-10  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/spawni.c (__spawni): Force variable into the stack.
54802
54803 2008-11-10  Bruno Haible  <bruno@clisp.org>
54804
54805         Add support for Haiku.
54806         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54807         glibc and BeOS, but also on Haiku.
54808         * lib/fpurge.c (fpurge): Likewise.
54809         * lib/freadable.c (freadable): Likewise.
54810         * lib/freadahead.c (freadahead): Likewise.
54811         * lib/freading.c (freading): Likewise.
54812         * lib/freadptr.c (freadptr): Likewise.
54813         * lib/freadseek.c (freadptrinc): Likewise.
54814         * lib/fseeko.c (rpl_fseeko): Likewise.
54815         * lib/fseterr.c (fseterr): Likewise.
54816         * lib/fwritable.c (fwritable): Likewise.
54817         * lib/fwriting.c (fwriting): Likewise.
54818         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54819
54820 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54821
54822         * lib/config.charset: Treat Haiku like BeOS.
54823
54824 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54825
54826         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54827         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54828
54829 2008-11-08  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54832         AC_CACHE_CHECK.
54833
54834 2008-11-08  Bruno Haible  <bruno@clisp.org>
54835
54836         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54837
54838 2008-11-08  Bruno Haible  <bruno@clisp.org>
54839
54840         * tests/test-select-fd.c: New file.
54841         * tests/test-select-in.sh: New file.
54842         * tests/test-select-out.sh: New file.
54843         * tests/test-select-stdin.c: New file.
54844         * modules/select-tests (Files): Add the new files.
54845         (Depends-on): Add gettimeofday.
54846         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54847         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54848         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54849
54850 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54851             Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54854
54855 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54856
54857         * build-aux/pmccabe2html: Added support for C++ source files.
54858
54859 2008-11-05  Ben Pfaff  <blp@gnu.org>
54860
54861         Fix lib/close.c build on Windows.
54862         * modules/close (Files): Add lib/w32sock.h.
54863
54864 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54865
54866         Accept Bison's NEWS format.
54867         * build-aux/announce-gen (print_news_deltas): Tweak
54868         $re_prefix.
54869
54870 2008-11-04  Bruno Haible  <bruno@clisp.org>
54871
54872         * modules/random_r (Maintainer): Add glibc.
54873
54874 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54875
54876         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54877         by karl@freefriends.org (Karl Berry).
54878         * doc/alloca.texi: Likewise.
54879         * doc/c-ctype.texi: Likewise.
54880         * doc/c-strcase.texi: Likewise.
54881         * doc/c-strcaseeq.texi: Likewise.
54882         * doc/c-strcasestr.texi: Likewise.
54883         * doc/c-strstr.texi: Likewise.
54884         * doc/c-strtod.texi: Likewise.
54885         * doc/c-strtold.texi: Likewise.
54886         * doc/ctime.texi: Likewise.
54887         * doc/error.texi: Likewise.
54888         * doc/fdl.texi: Likewise.
54889         * doc/gcd.texi: Likewise.
54890         * doc/getdate.texi: Likewise.
54891         * doc/gnulib-intro.texi: Likewise.
54892         * doc/gnulib-tool.texi: Likewise.
54893         * doc/gnulib.texi: Likewise.
54894         * doc/inet_ntoa.texi: Likewise.
54895         * doc/maintain.texi: Likewise.
54896         * doc/make-stds.texi: Likewise.
54897         * doc/quote.texi: Likewise.
54898         * doc/regexprops-generic.texi: Likewise.
54899         * doc/standards.texi: Likewise.
54900         * doc/verify.texi: Likewise.
54901         * doc/visibility.texi: Likewise.
54902         * doc/gnulib.texi (GNU Free Documentation License): Include
54903         fdl-1.3.texi instead of fdl.texi.
54904
54905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54906
54907         * doc/fdl-1.3.texi: New file, from
54908         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54909         * modules/fdl-1.3: Add.
54910         * MODULES.html.sh: Add fdl-1.3.
54911
54912 2008-11-03  Bruno Haible  <bruno@clisp.org>
54913
54914         Make determination of absolute name of header file work with AIX xlc.
54915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54916         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54917         preprocessing.
54918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54919         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54920
54921 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54922
54923         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54924         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54925         <ludo@gnu.org>.
54926
54927 2008-11-02  Bruno Haible  <bruno@clisp.org>
54928
54929         Mark 'strpbrk' obsolete.
54930         * modules/strpbrk (Status, Notice): New sections.
54931         * modules/strtok_r (Depends-on): Add strpbrk.
54932
54933 2008-11-02  Bruno Haible  <bruno@clisp.org>
54934
54935         Mark 'strdup' obsolete.
54936         * modules/strdup (Status, Notice): New sections.
54937         * modules/findprog (Depends-on): Add strdup.
54938         * modules/getaddrinfo (Depends-on): Likewise.
54939         * modules/localename (Depends-on): Likewise.
54940         * modules/relocatable-lib (Depends-on): Likewise.
54941         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54942         * modules/relocatable-prog (Depends-on): Likewise.
54943         * modules/trim (Depends-on): Likewise.
54944         * modules/unictype/gen-ctype (Depends-on): Likewise.
54945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54946
54947 2008-11-02  Bruno Haible  <bruno@clisp.org>
54948
54949         Mark 'strcspn' obsolete.
54950         * modules/strcspn (Status, Notice): New sections.
54951
54952 2008-11-02  Bruno Haible  <bruno@clisp.org>
54953
54954         Mark 'rmdir' obsolete.
54955         * modules/rmdir (Status, Notice): New sections.
54956         * modules/clean-temp (Depends-on): Add rmdir.
54957         * modules/openat (Depends-on): Likewise.
54958
54959 2008-11-02  Bruno Haible  <bruno@clisp.org>
54960
54961         Mark 'raise' obsolete.
54962         * modules/raise (Status, Notice): New sections.
54963         (Include): Specify <signal.h>.
54964         * modules/stdio (Depends-on): Add raise.
54965         * modules/write (Depends-on): Likewise.
54966
54967 2008-11-02  Bruno Haible  <bruno@clisp.org>
54968
54969         Mark 'memset' obsolete.
54970         * modules/memset (Status, Notice): New sections.
54971
54972 2008-11-02  Bruno Haible  <bruno@clisp.org>
54973
54974         Mark 'memmove' obsolete.
54975         * modules/memmove (Status, Notice): New sections.
54976         * modules/argp (Depends-on): Add memmove.
54977         * modules/argz (Depends-on): Likewise.
54978         * modules/canonicalize (Depends-on): Likewise.
54979         * modules/canonicalize-lgpl (Depends-on): Likewise.
54980         * modules/fts (Depends-on): Likewise.
54981         * modules/getcwd (Depends-on): Likewise.
54982         * modules/human (Depends-on): Likewise.
54983         * modules/regex (Depends-on): Likewise.
54984         * modules/striconveh (Depends-on): Likewise.
54985         * modules/trim (Depends-on): Likewise.
54986         * modules/unistr/u8-move (Depends-on): Likewise.
54987         * modules/unistr/u16-move (Depends-on): Likewise.
54988         * modules/unistr/u32-move (Depends-on): Likewise.
54989
54990 2008-11-02  Bruno Haible  <bruno@clisp.org>
54991
54992         Mark 'memcpy' obsolete.
54993         * modules/memcpy (Status, Notice): New sections.
54994
54995 2008-11-02  Bruno Haible  <bruno@clisp.org>
54996
54997         Mark 'memcmp' obsolete.
54998         * modules/memcmp (Status, Notice): New sections.
54999         * modules/argmatch (Depends-on): Add memchr.
55000         * modules/backupfile (Depends-on): Likewise.
55001         * modules/c-strcasestr (Depends-on): Likewise.
55002         * modules/crypto/des (Depends-on): Likewise.
55003         * modules/csharpcomp (Depends-on): Likewise.
55004         * modules/fnmatch (Depends-on): Likewise.
55005         * modules/git-merge-changelog (Depends-on): Likewise.
55006         * modules/isnand (Depends-on): Likewise.
55007         * modules/isnand-nolibm (Depends-on): Likewise.
55008         * modules/isnanf (Depends-on): Likewise.
55009         * modules/isnanf-nolibm (Depends-on): Likewise.
55010         * modules/isnanl (Depends-on): Likewise.
55011         * modules/isnanl-nolibm (Depends-on): Likewise.
55012         * modules/mbchar (Depends-on): Likewise.
55013         * modules/memcoll (Depends-on): Likewise.
55014         * modules/quotearg (Depends-on): Likewise.
55015         * modules/regex (Depends-on): Likewise.
55016         * modules/relocatable-prog (Depends-on): Likewise.
55017         * modules/same (Depends-on): Likewise.
55018         * modules/signbit (Depends-on): Likewise.
55019         * modules/strcasestr-simple (Depends-on): Likewise.
55020         * modules/unictype/gen-ctype (Depends-on): Likewise.
55021         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55022         * modules/uniname/uniname (Depends-on): Likewise.
55023         * modules/unistr/u8-cmp (Depends-on): Likewise.
55024
55025 2008-11-02  Bruno Haible  <bruno@clisp.org>
55026
55027         Mark 'memchr' obsolete.
55028         * modules/memchr (Status, Notice): New sections.
55029         * modules/argp (Depends-on): Add memchr.
55030         * modules/base64 (Depends-on): Likewise.
55031         * modules/c-strcasestr (Depends-on): Likewise.
55032         * modules/chdir-long (Depends-on): Likewise.
55033         * modules/fnmatch (Depends-on): Likewise.
55034         * modules/getsubopt (Depends-on): Likewise.
55035         * modules/git-merge-changelog (Depends-on): Likewise.
55036         * modules/glob (Depends-on): Likewise.
55037         * modules/strcasestr-simple (Depends-on): Likewise.
55038         * modules/strnlen (Depends-on): Likewise.
55039
55040 2008-11-02  Bruno Haible  <bruno@clisp.org>
55041
55042         Mark 'atexit' obsolete.
55043         * modules/atexit (Status, Notice): New sections.
55044         * modules/chdir-long (Depends-on): Add atexit.
55045         * modules/wait-process (Depends-on): Likewise.
55046
55047 2008-11-02  Bruno Haible  <bruno@clisp.org>
55048
55049         * gnulib-tool: New option --with-obsolete.
55050         (func_usage): Document it.
55051         (func_modules_transitive_closure): Drop obsolete dependencies if
55052         incobsolete is not true.
55053         (func_import): Read and save the incobsolete variable to the cache.
55054
55055 2008-11-02  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55058         * gnulib-tool: New option --extract-status.
55059         (func_usage): Document it.
55060         (sed_extract_prog): Recognize it.
55061         (func_get_status): New function.
55062
55063 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55064
55065         * modules/sockets (License): Change from LGPL to LGPLv2+.
55066
55067 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55068
55069         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55070
55071 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55072
55073         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55074         Mention times and sys_times.
55075         * modules/sys_times, modules/sys_times-tests: New modules.
55076         * modules/times, modules/times-tests: Likewise
55077         * m4/sys_times_h.m4: New file.
55078         * lib/sys_times.in.h: Likewise
55079         * lib/times.c: Likewise.
55080         * tests/test-sys_times.c: Likewise.
55081         * tests/test-times.c: Likewise.
55082         * doc/posix-headers/sys_times.texi: Update.
55083         * doc/posix-functions/times.texi: Update.
55084
55085 2008-10-28  Jim Meyering  <meyering@redhat.com>
55086
55087         * modules/tempname (Depends-on): Add lstat.
55088
55089         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55090
55091 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55092
55093         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55094         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55095         using idiom used elsewhere in gnulib.
55096
55097 2008-10-27  Jim Meyering  <meyering@redhat.com>
55098
55099         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55100
55101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55102
55103         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55104         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55105         programs.
55106         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55107
55108 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55109
55110         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55111
55112 2008-10-27  Bruno Haible  <bruno@clisp.org>
55113
55114         * tests/test-lstat.c: Include <stdio.h>.
55115
55116 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55117
55118         * modules/lstat-tests: New module.
55119         * tests/test-lstat.c: New file.
55120
55121 2008-10-26  Jim Meyering  <meyering@redhat.com>
55122
55123         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55124
55125 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55126             Bruno Haible  <bruno@clisp.org>
55127
55128         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55129         * modules/configmake (Include): Add a note that the include must come
55130         after all system headers.
55131         * lib/javaversion.c: Include configmake.h after all other includes.
55132
55133 2008-10-26  Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55136         HAVE_STRUCT_RANDOM_DATA to 1.
55137         (gl_STDLIB_H): Simplify.
55138
55139 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55140
55141         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55142         substitute HAVE_STRUCT_RANDOM_DATA.
55143         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55144         random_data.
55145         * modules/stdlib (Makefile.am): Substitute
55146         HAVE_STRUCT_RANDOM_DATA.
55147
55148 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55149
55150         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55151         * doc/gnulib-intro.texi (Copyright): Likewise.
55152
55153 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55154
55155         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55156         findings.
55157
55158 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55159             Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/unistd.in.h: Include <winsock2.h>.
55162         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55163         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55164         Provide dummy declarations.
55165         (gethostname): Override.
55166         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55168         gl_PREREQ_SYS_H_WINSOCK2.
55169         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55170         * doc/posix-functions/gethostname.texi: More details.
55171
55172 2008-10-25  Bruno Haible  <bruno@clisp.org>
55173
55174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55175         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55176         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55177
55178         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55179         here ...
55180         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55182         gl_UNISTD_H_DEFAULTS.
55183
55184 2008-10-25  Eric Blake  <ebb9@byu.net>
55185
55186         signbit: avoid spurious compiler failure
55187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55188         declarations inside function.
55189
55190 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55191             Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55194         * modules/random_r (Depends-on): Add stdint.
55195
55196 2008-10-24  Bruno Haible  <bruno@clisp.org>
55197
55198         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55199         Eggert.
55200         * modules/strerror (License): Likewise.
55201
55202 2008-10-24  Jim Meyering  <meyering@redhat.com>
55203
55204         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55205         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55206
55207 2008-10-24  Eric Blake  <ebb9@byu.net>
55208
55209         getgroups: fix compilation when getgroups is available
55210         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55211         but with <config.h> override of getgroups disabled.
55212
55213 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55214
55215         * doc/gnulib.texi (Header files): Add note about C++ problems.
55216         Explained by Bruno Haible <bruno@clisp.org>.
55217
55218 2008-10-23  Bruno Haible  <bruno@clisp.org>
55219
55220         Define a dummy SA_NODEFER macro on Interix.
55221         * lib/signal.in.h (SA_NODEFER): Define fallback.
55222         Reported by Aleksey Cheusov <cheusov@tut.by> via
55223         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55224
55225 2008-10-23  Bruno Haible  <bruno@clisp.org>
55226
55227         * modules/freadahead (License): Change to LGPLv2+.
55228         Suggested by Simon Josefsson.
55229
55230 2008-10-23  Jim Meyering  <meyering@redhat.com>
55231
55232         random_r: new module
55233         * modules/random_r: New file.
55234         * m4/random_r.m4: New file.
55235         * lib/random_r.c: New file, from glibc.
55236         * modules/random_r-tests: New file.
55237         * tests/test-random_r.c: New file.
55238         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55239          Declare.
55240         (RAND_MAX): Define.
55241         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55242         * modules/stdlib: Substitute them, too.
55243         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55244         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55245         * doc/glibc-functions/random_r.texi: Likewise.
55246         * doc/glibc-functions/setstate_r.texi: Likewise.
55247         * doc/glibc-functions/srandom_r.texi: Likewise.
55248         * config/srclist.txt: Mention it.
55249
55250 2008-10-23  David Lutterkort  <lutter@redhat.com>
55251
55252         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55253         link requirement
55254
55255 2008-10-23  Jim Meyering  <meyering@redhat.com>
55256
55257         selinux-h: mark parameters of stub functions as intentionally unused
55258         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55259         * lib/se-context.in.h: Likewise.
55260
55261 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55262
55263         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55264
55265 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55266
55267         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55268
55269 2008-10-22  Eric Blake  <ebb9@byu.net>
55270
55271         glthread/thread: avoid compiler warning
55272         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55273         Add unreachable abort to silence compiler.
55274
55275 2008-10-22  Eric Blake  <ebb9@byu.net>
55276
55277         netdb: also supply struct addrinfo for cygwin 1.5.x
55278         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55279         older cygwin.
55280         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55281         cygwin.
55282         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55283
55284 2008-10-22  Bruno Haible  <bruno@clisp.org>
55285
55286         * users.txt: Update entry about pspp.
55287
55288 2008-10-21  Bruno Haible  <bruno@clisp.org>
55289
55290         Simplification.
55291         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55292         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55293
55294         Simplification.
55295         * lib/ioctl.c (ioctl): Don't undefine.
55296         * lib/socket.c (socket): Don't undefine.
55297
55298         Remove unused module indicator macros.
55299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55300         GNULIB_$1 as a C macro.
55301
55302         * doc/posix-functions/close.texi: Undo last change.
55303         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55304         Windows platforms.
55305
55306 2008-10-21  Bruno Haible  <bruno@clisp.org>
55307
55308         Add gethostname() declaration to <unistd.h>.
55309         * lib/unistd.in.h (gethostname): New declaration.
55310         * lib/gethostname.c: Include <unistd.h>.
55311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55312         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55314         and HAVE_GETHOSTNAME.
55315         * modules/gethostname (Depends-on): Add unistd.
55316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55317         (Include): Specify <unistd.h>.
55318         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55319         HAVE_GETHOSTNAME.
55320         * tests/test-gethostname.c: Include <unistd.h> first.
55321
55322 2008-10-21  Bruno Haible  <bruno@clisp.org>
55323
55324         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55325         * modules/select-tests (Depends-on): Likewise.
55326         Reported by Simon Josefsson.
55327
55328 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55329
55330         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55331         * lib/accept.c: New file, based on winsock.c.
55332         * lib/bind.c: New file, based on winsock.c.
55333         * lib/connect.c: New file, based on winsock.c.
55334         * lib/getpeername.c: New file, based on winsock.c.
55335         * lib/getsockname.c: New file, based on winsock.c.
55336         * lib/getsockopt.c: New file, based on winsock.c.
55337         * lib/ioctl.c: New file, based on winsock.c.
55338         * lib/listen.c: New file, based on winsock.c.
55339         * lib/recv.c: New file, based on winsock.c.
55340         * lib/recvfrom.c: New file, based on winsock.c.
55341         * lib/send.c: New file, based on winsock.c.
55342         * lib/sendto.c: New file, based on winsock.c.
55343         * lib/setsockopt.c: New file, based on winsock.c.
55344         * lib/shutdown.c: New file, based on winsock.c.
55345         * lib/socket.c: New file, based on winsock.c.
55346         * lib/w32sock.h: New file, based on winsock.c.
55347         * lib/winsock.c: Remove file.
55348         * modules/accept: Likewise.
55349         * modules/bind: Likewise.
55350         * modules/connect: Likewise.
55351         * modules/getpeername: Likewise.
55352         * modules/getsockname: Likewise.
55353         * modules/getsockopt: Likewise.
55354         * modules/ioctl: Likewise.
55355         * modules/listen: Likewise.
55356         * modules/recv: Likewise.
55357         * modules/recvfrom: Likewise.
55358         * modules/send: Likewise.
55359         * modules/sendto: Likewise.
55360         * modules/setsockopt: Likewise.
55361         * modules/shutdown: Likewise.
55362         * modules/socket: Use socket.c instead of winsock.c.
55363         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55364         * doc/posix-functions/accept.texi: Doc fix.
55365         * doc/posix-functions/bind.texi: Doc fix.
55366         * doc/posix-functions/close.texi: Doc fix.
55367         * doc/posix-functions/connect.texi: Doc fix.
55368         * doc/posix-functions/getpeername.texi: Doc fix.
55369         * doc/posix-functions/getsockname.texi: Doc fix.
55370         * doc/posix-functions/getsockopt.texi: Doc fix.
55371         * doc/posix-functions/ioctl.texi: Doc fix.
55372         * doc/posix-functions/listen.texi: Doc fix.
55373         * doc/posix-functions/recv.texi: Doc fix.
55374         * doc/posix-functions/recvfrom.texi: Doc fix.
55375         * doc/posix-functions/send.texi: Doc fix.
55376         * doc/posix-functions/sendto.texi: Doc fix.
55377         * doc/posix-functions/setsockopt.texi: Doc fix.
55378         * doc/posix-functions/shutdown.texi: Doc fix.
55379         * doc/posix-functions/socket.texi: Doc fix.
55380
55381 2008-10-20  Bruno Haible  <bruno@clisp.org>
55382
55383         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55384         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55385         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55386         as an alias for SIGABRT.
55387         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55388         (sigaction): Map it to SIGABRT.
55389         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55390
55391 2008-10-20  Bruno Haible  <bruno@clisp.org>
55392
55393         * lib/fts.c: Don't include lstat.h.
55394         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55395
55396         Move the lstat() declaration to <sys/stat.h>.
55397         * lib/lstat.h: Remove file.
55398         * lib/sys_stat.in.h: Add special invocation convention.
55399         (lstat): New declaration.
55400         * lib/lstat.c (orig_lstat): New function.
55401         (rpl_lstat): Use orig_lstat instead of lstat.
55402         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55403         AC_C_INLINE. Set REPLACE_LSTAT.
55404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55405         and REPLACE_LSTAT.
55406         * modules/lstat (Files): Remove lib/lstat.h.
55407         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55408         (Include): Specify <sys/stat.h> instead of lstat.h.
55409         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55410         REPLACE_LSTAT.
55411         * NEWS: Mention the change.
55412
55413 2008-10-20  Bruno Haible  <bruno@clisp.org>
55414
55415         * modules/posix_spawn-tests: New file.
55416         * tests/test-posix_spawn3.c: New file.
55417
55418 2008-10-20  Bruno Haible  <bruno@clisp.org>
55419
55420         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55421         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55422         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55423         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55424         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55425
55426 2008-10-20  Bruno Haible  <bruno@clisp.org>
55427
55428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55429         of posix_spawn on AIX 5.3.
55430
55431 2008-10-20  Bruno Haible  <bruno@clisp.org>
55432
55433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55434
55435 2008-10-20  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55438         of AC_LANG_PROGRAM.
55439
55440 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55441
55442         * lib/netdb.in.h: Don't define GNU specific constants until they
55443         are supported or needed.  Reported by Bruno Haible
55444         <bruno@clisp.org>.
55445
55446 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55447
55448         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55449
55450 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55451
55452         * lib/getaddrinfo.h: Remove file.
55453         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55454         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55455         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55456         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55457         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55458         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55459         * tests/test-getaddrinfo.c: Likewise.
55460         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55461         * NEWS: Mention change.
55462
55463 2008-10-19  Bruno Haible  <bruno@clisp.org>
55464
55465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55466
55467 2008-10-19  Bruno Haible  <bruno@clisp.org>
55468
55469         * lib/wait-process.c: Include simply <sys/wait.h>.
55470         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55471         WIFSTOPPED): Remove fallback definitions.
55472         * modules/wait-process (Depends-on): Add sys_wait.
55473
55474         New module 'sys_wait'.
55475         * modules/sys_wait: New file.
55476         * lib/sys_wait.in.h: New file, partially copied from
55477         lib/wait-process.c.
55478         * m4/sys_wait_h.m4: New file.
55479         * doc/posix-headers/sys_wait.texi: Mention the new module.
55480
55481 2008-10-19  Bruno Haible  <bruno@clisp.org>
55482
55483         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55484
55485 2008-10-19  Bruno Haible  <bruno@clisp.org>
55486
55487         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55488         * lib/wait-process.c (WAIT_T): Remove type.
55489         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55490         (wait_subprocess): Update.
55491
55492 2008-10-19  Bruno Haible  <bruno@clisp.org>
55493
55494         New module 'atoll'.
55495         * modules/atoll: New file.
55496         * lib/stdlib.in.h (atoll): New declaration.
55497         * lib/atoll.c: New file, from glibc with modifications.
55498         * m4/atoll.m4: New file.
55499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55500         HAVE_ATOLL.
55501         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55502         * doc/posix-functions/atoll.texi: Mention the new module.
55503
55504 2008-10-19  Bruno Haible  <bruno@clisp.org>
55505
55506         Add strtoull() declaration to <stdlib.h>.
55507         * lib/stdlib.in.h (strtoull): New declaration.
55508         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55509         Set HAVE_STRTOULL.
55510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55511         HAVE_STRTOULL.
55512         * modules/strtoull (Depends-on): Add stdlib.
55513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55514         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55515         HAVE_STRTOULL.
55516
55517 2008-10-19  Bruno Haible  <bruno@clisp.org>
55518
55519         Add strtoll() declaration to <stdlib.h>.
55520         * lib/stdlib.in.h (strtoll): New declaration.
55521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55522         Set HAVE_STRTOLL.
55523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55524         HAVE_STRTOLL.
55525         * modules/strtoll (Depends-on): Add stdlib.
55526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55527         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55528
55529 2008-10-19  Bruno Haible  <bruno@clisp.org>
55530
55531         * modules/bcopy (Depends-on): Add strings.
55532         (Include): Specify <strings.h>.
55533
55534 2008-10-19  Bruno Haible  <bruno@clisp.org>
55535
55536         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55537
55538 2008-10-19  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55541         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55542         mingw.
55543
55544 2008-10-19  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/atanl.c: Don't include isnanl.h.
55547         * lib/cosl.c: Likewise.
55548         * lib/ldexpl.c: Likewise.
55549         * lib/logl.c: Likewise.
55550         * lib/sinl.c: Likewise.
55551         * lib/sqrtl.c: Likewise.
55552         * lib/tanl.c: Likewise.
55553
55554         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55555         * lib/isnanf.h: Remove file.
55556         * lib/isnand.h: Remove file.
55557         * lib/isnanl.h: Remove file.
55558         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55559         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55560         macros.
55561         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55562         HAVE_ISNANF, don't define it as a C macro.
55563         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55564         HAVE_ISNAND, don't define it as a C macro.
55565         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55566         HAVE_ISNANL, don't define it as a C macro.
55567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55568         HAVE_ISNAN[FDL].
55569         * modules/isnanf (Files): Remove lib/isnanf.h.
55570         (Depends-on): Add math.
55571         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55572         (Include): Specify <math.h> instead of isnanf.h.
55573         * modules/isnand (Files): Remove lib/isnand.h.
55574         (Depends-on): Add math.
55575         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55576         (Include): Specify <math.h> instead of isnand.h.
55577         * modules/isnanl (Files): Remove lib/isnanl.h.
55578         (Depends-on): Add math.
55579         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55580         (Include): Specify <math.h> instead of isnanl.h.
55581         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55582         HAVE_ISNAN[FDL].
55583         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55584         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55585         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55586         * NEWS: Mention the change.
55587
55588 2008-10-18  Bruno Haible  <bruno@clisp.org>
55589
55590         Add getusershell(), setusershell(), endusershell() declarations to
55591         <unistd.h>.
55592         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55593         declarations.
55594         * lib/getusershell.c: Include unistd.h.
55595         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55596         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55597         HAVE_GETUSERSHELL.
55598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55599         and HAVE_GETUSERSHELL.
55600         * modules/getusershell (Depends-on): Add unistd, extensions.
55601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55602         (Include): Specify <unistd.h>.
55603         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55604         HAVE_GETUSERSHELL.
55605
55606 2008-10-18  Bruno Haible  <bruno@clisp.org>
55607
55608         Add a getloadavg() declaration to <stdlib.h>.
55609         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55610         getloadavg declaration.
55611         (getloadavg): New declaration.
55612         * lib/getloadavg.c: Include <stdlib.h> first.
55613         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55614         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55615         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55617         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55618         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55620         (Include): Specify <stdlib.h>.
55621         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55622         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55623
55624 2008-10-18  Bruno Haible  <bruno@clisp.org>
55625
55626         * lib/dirchownmod.c: Don't include lchmod.h.
55627
55628         Move the lchmod() declaration to <sys/stat.h>.
55629         * lib/lchmod.h: Remove file.
55630         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55631         (lchmod): New declaration, moved here from lib/lchown.h.
55632         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55633         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55634         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55635         and HAVE_LCHMOD.
55636         * modules/lchmod (Files): Remove lib/lchmod.h.
55637         (Depends-on): Add sys_stat, extensions.
55638         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55639         (Include): Specify <sys/stat.h> instead of lchmod.h.
55640         * modules/sys_stat (Depends-on): Add link-warning.
55641         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55642         definition of GL_LINK_WARNING.
55643         * NEWS: Mention the change.
55644
55645 2008-10-18  Bruno Haible  <bruno@clisp.org>
55646
55647         * lib/fchdir.c: Don't include dirfd.h.
55648         * lib/fts.c: Likewise.
55649         * lib/getcwd.c: Likewise.
55650         * lib/glob.c: Likewise.
55651
55652         Move the dirfd() declaration to <dirent.h>.
55653         * lib/dirfd.h: Remove file.
55654         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55655         (dirfd): New declaration.
55656         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55658         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55659         HAVE_DECL_DIRFD.
55660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55661         HAVE_DECL_DIRFD.
55662         * modules/dirfd (Files): Remove lib/dirfd.h.
55663         (Depends-on): Add dirent, extensions.
55664         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55665         (Include): Specify <dirent.h> instead of dirfd.h.
55666         * modules/dirent (Depends-on): Add link-warning.
55667         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55668         definition of GL_LINK_WARNING.
55669         * NEWS: Mention the change.
55670
55671 2008-10-18  Bruno Haible  <bruno@clisp.org>
55672
55673         Move the euidaccess() declaration to <unistd.h>.
55674         * lib/euidaccess.h: Remove file.
55675         * lib/unistd.in.h (euidaccess): New declaration.
55676         * lib/euidaccess.c: Don't include euidaccess.h.
55677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55678         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55680         and HAVE_EUIDACCESS.
55681         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55682         (Depends-on): Add unistd.
55683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55684         (Include): Specify <unistd.h> instead of euidaccess.h.
55685         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55686         HAVE_EUIDACCESS.
55687         * NEWS: Mention the change.
55688
55689 2008-10-18  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55692
55693         Move the getdomainname() declaration to <unistd.h>.
55694         * lib/getdomainname.h: Remove file.
55695         * lib/unistd.in.h (getdomainname): New declaration.
55696         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55698         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55699         HAVE_GETDOMAINNAME.
55700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55701         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55702         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55703         (Depends-on): Add unistd, extensions.
55704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55705         (Includes): Specify <unistd.h> instead of getdomainname.h.
55706         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55707         HAVE_GETDOMAINNAME.
55708         * NEWS: Mention the change.
55709
55710 2008-10-18  Bruno Haible  <bruno@clisp.org>
55711
55712         * modules/dirent: New file.
55713         * m4/dirent_h.m4: New file.
55714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55715         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55716         * modules/fchdir (Files): Remove lib/dirent.in.h.
55717         (Depends-on): Add dirent.
55718         (Makefile.am): Move rules to modules/dirent.
55719         * doc/posix-headers/dirent.texi: Mention the new module.
55720
55721 2008-10-18  Bruno Haible  <bruno@clisp.org>
55722
55723         Avoid -Wunused-parameter warnings in public gnulib header files.
55724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55725         macro.
55726         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55727
55728 2008-10-18  Bruno Haible  <bruno@clisp.org>
55729
55730         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55731         * doc/glibc-functions/error.texi: Mention the module 'error'.
55732         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55733         * doc/glibc-functions/getdomainname.texi: Mention the module
55734         'getdomainname'.
55735         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55736         * doc/glibc-functions/getpagesize.texi: Mention the module
55737         'getpagesize'.
55738         * doc/glibc-functions/getusershell.texi: Mention the module
55739         'getusershell'.
55740         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55741         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55742         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55743         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55744         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55745         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55746         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55747         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55748         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55749         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55750         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55751         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55752         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55753         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55754
55755 2008-10-17  Bruno Haible  <bruno@clisp.org>
55756
55757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55758         HP-UX and IRIX, use -0.0L.
55759         * tests/test-ceill.c (minus_zero): Likewise.
55760         * tests/test-floorl.c (minus_zero): Likewise.
55761         * tests/test-frexpl.c (minus_zero): Likewise.
55762         * tests/test-isnan.c (minus_zerol): Likewise.
55763         * tests/test-isnanl.h (minus_zero): Likewise.
55764         * tests/test-ldexpl.c (minus_zero): Likewise.
55765         * tests/test-roundl.c (minus_zero): Likewise.
55766         * tests/test-signbit.c (minus_zerol): Likewise.
55767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55769         * tests/test-truncl.c (minus_zero): Likewise.
55770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55772         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55773         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55774
55775 2008-10-17  Bruno Haible  <bruno@clisp.org>
55776
55777         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55778         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55779         that it gets activated only for gcc >= 3.0.
55780         * lib/dirent.in.h: Likewise.
55781         * lib/errno.in.h: Likewise.
55782         * lib/fcntl.in.h: Likewise.
55783         * lib/float.in.h: Likewise.
55784         * lib/iconv.in.h: Likewise.
55785         * lib/inttypes.in.h: Likewise.
55786         * lib/locale.in.h: Likewise.
55787         * lib/math.in.h: Likewise.
55788         * lib/netdb.in.h: Likewise.
55789         * lib/netinet_in.in.h: Likewise.
55790         * lib/search.in.h: Likewise.
55791         * lib/signal.in.h: Likewise.
55792         * lib/spawn.in.h: Likewise.
55793         * lib/stdarg.in.h: Likewise.
55794         * lib/stdint.in.h: Likewise.
55795         * lib/stdio.in.h: Likewise.
55796         * lib/stdlib.in.h: Likewise.
55797         * lib/string.in.h: Likewise.
55798         * lib/strings.in.h: Likewise.
55799         * lib/sys_file.in.h: Likewise.
55800         * lib/sys_ioctl.in.h: Likewise.
55801         * lib/sys_select.in.h: Likewise.
55802         * lib/sys_socket.in.h: Likewise.
55803         * lib/sys_stat.in.h: Likewise.
55804         * lib/sys_time.in.h: Likewise.
55805         * lib/sysexits.in.h: Likewise.
55806         * lib/time.in.h: Likewise.
55807         * lib/unistd.in.h: Likewise.
55808         * lib/wchar.in.h: Likewise.
55809         * lib/wctype.in.h: Likewise.
55810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55811
55812 2008-10-17  Jim Meyering  <meyering@redhat.com>
55813
55814         ignore-value: don't depend on inline module
55815         * modules/ignore-value (Depends-on): Remove 'inline'.
55816         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55817         Suggestion from Bruno Haible.
55818
55819 2008-10-17  Bruno Haible  <bruno@clisp.org>
55820
55821         New implementation of condition variables for Win32.
55822         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55823         (gl_linked_waitqueue_t): New type.
55824         (gl_cond_t): Use it.
55825         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55826         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55827         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55828         (glthread_cond_init_func, glthread_cond_wait_func,
55829         glthread_cond_timedwait_func, glthread_cond_signal_func,
55830         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55831         Reimplemented on the basis of gl_linked_waitqueue_t.
55832         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55833         gl_waitqueue_t.
55834         (gl_rwlock_t): Update.
55835         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55836
55837 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55838
55839         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55840         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55841
55842 2008-10-17  Jim Meyering  <meyering@redhat.com>
55843
55844         ignore-value: new module
55845         * modules/ignore-value: New file.
55846         * lib/ignore-value.h: New file.
55847         * MODULES.html.sh (Compiler warning management): New section,
55848         just for this module.  More to come.
55849
55850 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55851
55852         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55853         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55854         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55855
55856 2008-10-16  Jim Meyering  <meyering@redhat.com>
55857
55858         openat-die.c: avoid 'no previous prototype' warning
55859         * lib/openat-die.c: Include "openat.h".
55860         Reported by Reuben Thomas <rrt@sc3d.org>.
55861
55862 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55863
55864         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55865         * lib/netdb.in.h: Fix typo.
55866         Reported by Bruno Haible  <bruno@clisp.org>
55867
55868         * lib/netdb.in.h: Include sys/socket.h for platforms without
55869         netdb.h, to get structures like hostent on MinGW.
55870         * modules/netdb (Depends-on): Add sys_socket.
55871
55872 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55873
55874         * modules/netdb, modules/netdb-tests: New file.
55875         * m4/netdb_h.m4: New file.
55876         * lib/netdb.in.h: Add, currently just an empty file pending
55877         definitions.
55878         * tests/test-netdb.c: New file.
55879         * doc/posix-headers/netdb.texi: Mention that we replace it if
55880         needed.
55881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55882         netdb.
55883
55884 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55885
55886         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55887         with code.
55888
55889 2008-10-13  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/glthread/cond.c (glthread_cond_wait_func,
55892         glthread_cond_timedwait_func): Add a comment.
55893
55894 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55895
55896         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55897         * tests/test-select.c: Likewise,
55898
55899 2008-10-13  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/glthread/cond.c (glthread_cond_wait_func,
55902         glthread_cond_timedwait_func): Fix variable name.
55903         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55904
55905 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55906
55907         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55909         struct sockaddr.sa_len.
55910         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55911
55912 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55913
55914         * build-aux/pmccabe2html: Add css and css_url parameters.
55915
55916 2008-10-12  Bruno Haible  <bruno@clisp.org>
55917
55918         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55919         calling aclx_get.
55920         Reported by Rainer Tammer <tammer@tammer.net>.
55921
55922 2008-10-12  Bruno Haible  <bruno@clisp.org>
55923
55924         Use msvcrt aware primitives for creation/termination of Win32 threads.
55925         * lib/glthread/thread.c: Include <process.h>.
55926         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55927         (wrapper_func): Update signature.
55928         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55929
55930 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55931             Bruno Haible  <bruno@clisp.org>
55932
55933         Provide a Win32 implementation of the 'cond' module.
55934         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55935         * lib/glthread/cond.c (glthread_cond_init_func,
55936         glthread_cond_wait_func, glthread_cond_timedwait_func,
55937         glthread_cond_signal_func, glthread_cond_broadcast_func,
55938         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55939         * modules/cond (Dependencies): Add gettimeofday.
55940
55941 2008-10-11  Bruno Haible  <bruno@clisp.org>
55942
55943         Make sleep work on older versions of mingw.
55944         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55945         only whether it exists.
55946         * doc/posix-functions/sleep.texi: Mention the problem with older
55947         versions of mingw.
55948
55949 2008-10-11  Bruno Haible  <bruno@clisp.org>
55950
55951         New module 'shutdown'.
55952         * modules/shutdown: New file.
55953         * lib/sys_socket.in.h (shutdown): New declaration.
55954         * lib/winsock.c (shutdown): New function.
55955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55956         GNULIB_SHUTDOWN.
55957         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55958         * doc/posix-functions/shutdown.texi: Document the new module.
55959
55960 2008-10-11  Jim Meyering  <meyering@redhat.com>
55961
55962         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55963
55964 2008-10-11  Bruno Haible  <bruno@clisp.org>
55965
55966         New module 'fclose'.
55967         * modules/fclose: New file.
55968         * lib/stdio.in.h (fclose): New declaration.
55969         * lib/fclose.c: New file.
55970         * m4/fclose.m4: New file.
55971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55972         REPLACE_FCLOSE.
55973         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55974         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55975         REPLACE_FCLOSE.
55976         * modules/close (Depends-on): fclose.
55977         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55978
55979 2008-10-11  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55982         set errno and don't call _close.
55983
55984 2008-10-10  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55987         ACL, not afterwards. Fixes test failure on Cygwin.
55988
55989 2008-10-09  Ben Pfaff  <blp@gnu.org>
55990
55991         * build-aux/announce-gen: Fix gnulib version related part of usage
55992         message.  Die with a useful error message if no tarballs are
55993         found.
55994
55995 2008-10-10  Jim Meyering  <meyering@redhat.com>
55996
55997         bootstrap: use git's --depth=N option only if it's supported
55998         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55999         recognize the --depth option.  Reported by Pádraig Brady.
56000
56001 2008-10-09  Bruno Haible  <bruno@clisp.org>
56002
56003         New module 'ioctl'.
56004         * modules/ioctl: New file.
56005         * lib/sys_socket.in.h (ioctl): Remove declaration.
56006         * lib/winsock.c: Include <sys/ioctl.h>.
56007         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56009         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56010         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56011         * doc/posix-functions/ioctl.texi: Mention the new module.
56012
56013 2008-10-09  Bruno Haible  <bruno@clisp.org>
56014
56015         New module 'sys_ioctl'.
56016         * lib/sys_ioctl.in.h: New file.
56017         * m4/sys_ioctl_h.m4: New file.
56018         * modules/sys_ioctl: New file.
56019         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56020
56021 2008-10-09  Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56024         * lib/winsock.c: Include <stdarg.h>.
56025         (rpl_ioctl): Change to second argument 'int' and then varargs.
56026
56027 2008-10-09  Bruno Haible  <bruno@clisp.org>
56028
56029         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56030         when the sys_socket module is present and the system has <winsock2.h>.
56031
56032 2008-10-09  Bruno Haible  <bruno@clisp.org>
56033
56034         * doc/posix-functions/close.texi: Mention module 'close' instead of
56035         module 'sys_socket'.
56036
56037 2008-10-09  Bruno Haible  <bruno@clisp.org>
56038
56039         * doc/glibc-headers/sys_ioctl.texi: New file.
56040         * doc/gnulib.texi: Include it.
56041
56042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56043             Bruno Haible  <bruno@clisp.org>
56044
56045         Combine the two replacements of 'close'.
56046         * lib/sys_socket.in.h (close): Define to a reminder to include
56047         <unistd.h>.
56048         (_gl_close_fd_maybe_socket): New declaration.
56049         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56050         * lib/winsock.c (close): Remove undefinition.
56051         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56052         needed for the gnulib module 'close'.
56053         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56054         define to an error symbol or to a warning, if suitable.
56055         * lib/close.c: Include <sys/socket.h>.
56056         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56058         UNISTD_H_HAVE_WINSOCK2_H.
56059         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56061         UNISTD_H_HAVE_WINSOCK2_H.
56062         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56063         (configure.ac): Set a module indicator.
56064         (Makefile.am): Substitute GNULIB_CLOSE.
56065         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56066         * modules/poll-tests (Depends-on): Add close.
56067         * modules/select-tests (Depends-on): Likewise.
56068
56069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56070             Bruno Haible  <bruno@clisp.org>
56071
56072         New module 'close'.
56073         * modules/close: New file.
56074         * lib/unistd.in.h (close): Move declaration out of the
56075         FCHDIR_REPLACEMENT scope.
56076         (_gl_unregister_fd): New declaration.
56077         * lib/close.c: New file.
56078         * lib/fchdir.c (rpl_close): Remove function.
56079         * m4/close.m4: New file.
56080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56081         close.
56082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56083         REPLACE_CLOSE.
56084         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56085         REPLACE_CLOSE.
56086         * modules/fchdir (Depends-on): Add close.
56087
56088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56089             Bruno Haible  <bruno@clisp.org>
56090
56091         * lib/fcntl.in.h (open): Simplify conditionals.
56092         (_gl_register_fd): New declaration.
56093         * lib/fchdir.c (rpl_open): Remove function.
56094         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56095         also.
56096         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56098         open.
56099
56100 2008-10-09  Jim Meyering  <meyering@redhat.com>
56101
56102         GNUmakefile: use the more name-space-friendly "_version"
56103         * top/GNUmakefile (_dummy): Update.
56104         (_version): Rename from "version".
56105
56106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56107             Bruno Haible  <bruno@clisp.org>
56108
56109         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56110         rpl_close.
56111         (_gl_register_fd): New function, extracted from rpl_open.
56112         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56113         (rpl_open, rpl_opendir): Use _gl_register_fd.
56114
56115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56116
56117         Fix organization of 'open' replacement.
56118         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56119         (gl_FUNC_OPEN): Use it.
56120         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56121
56122 2008-10-08  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56125
56126 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56127
56128         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56129         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56130         listen).
56131
56132 2008-10-08  Eric Blake  <ebb9@byu.net>
56133
56134         GNUmakefile: add 'make version' target
56135         * top/GNUmakefile (_curr-ver): Split version update rules...
56136         (version): ...into a target.
56137
56138 2008-10-07  Bruno Haible  <bruno@clisp.org>
56139
56140         Use a more portable replacement expression for -0.0L.
56141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56142         instead of -0.0L. Fix m4 quotation.
56143
56144         * tests/test-signbit.c: Include <float.h>.
56145         (minus_zero): New variable.
56146         (test_signbitl): Use minus_zero instead of -zero.
56147         * modules/signbit-tests (Depends-on): Add float.
56148
56149         * tests/test-ceill.c: Include <float.h>.
56150         (zero): Remove variable.
56151         (minus_zero): New variable.
56152         (main): Use minus_zero instead of -zero.
56153         * modules/ceill-tests (Depends-on): Add float.
56154
56155         * tests/test-floorl.c: Include <float.h>.
56156         (zero): Remove variable.
56157         (minus_zero): New variable.
56158         (main): Use minus_zero instead of -zero.
56159         * modules/floorl-tests (Depends-on): Add float.
56160
56161         * tests/test-roundl.c: Include <float.h>.
56162         (zero): Remove variable.
56163         (minus_zero): New variable.
56164         (main): Use minus_zero instead of -zero.
56165         * modules/roundl-tests (Depends-on): Add float.
56166
56167         * tests/test-truncl.c: Include <float.h>.
56168         (zero): Remove variable.
56169         (minus_zero): New variable.
56170         (main): Use minus_zero instead of -zero.
56171         * modules/truncl-tests (Depends-on): Add float.
56172
56173         * tests/test-frexpl.c (zero): Remove variable.
56174         (minus_zero): New variable.
56175         (main): Use minus_zero instead of -zero.
56176         * modules/frexpl-tests (Depends-on): Add float.
56177
56178         * tests/test-isnan.c (zerol): Remove variable.
56179         (minus_zerol): New variable.
56180         (test_long_double): Use minus_zerol instead of -zerol.
56181         * modules/isnan-tests (Depends-on): Add float.
56182
56183         * tests/test-isnanl.h (zero): Remove variable.
56184         (minus_zero): New variable.
56185         (main): Use minus_zero instead of -zero.
56186         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56187         * modules/isnanl-tests (Depends-on): Add float.
56188
56189         * tests/test-ldexpl.c (zero): Remove variable.
56190         (minus_zero): New variable.
56191         (main): Use minus_zero instead of -zero.
56192         * modules/ldexpl-tests (Depends-on): Add float.
56193
56194         * tests/test-snprintf-posix.h (zerol): Remove variable.
56195         (minus_zerol): New variable.
56196         (test_function): Use minus_zerol instead of -zerol.
56197         * modules/snprintf-posix-tests (Depends-on): Add float.
56198         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56199
56200         * tests/test-sprintf-posix.h (zerol): Remove variable.
56201         (minus_zerol): New variable.
56202         (test_function): Use minus_zerol instead of -zerol.
56203         * modules/sprintf-posix-tests (Depends-on): Add float.
56204         * modules/vsprintf-posix-tests (Depends-on): Add float.
56205
56206         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56207         (minus_zerol): New variable.
56208         (test_function): Use minus_zerol instead of -zerol.
56209         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56210
56211         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56212         (minus_zerol): New variable.
56213         (test_function): Use minus_zerol instead of -zerol.
56214         * modules/vasprintf-posix-tests (Depends-on): Add float.
56215
56216 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56217
56218         * MODULES.html.sh (Support for building documentation): Mention
56219         pmccabe2html.  Sort entries.
56220
56221         Add pmccabe2html module, from gnupdf.
56222         * build-aux/pmccabe.css: New file.
56223         * build-aux/pmccabe2html: New file.
56224         * m4/pmccabe2html.m4: New file.
56225         * modules/pmccabe2html: New file.
56226
56227 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56228
56229         flock: new module
56230         * MODULES.html.sh: Add to list of modules.
56231         * lib/flock.c: flock implementation for Windows and Unix systems
56232         which have fcntl.
56233         * doc/glibc-functions/flock.texi: Update documentation.
56234         * lib/sys_file.in.h: <sys/file.h> header file.
56235         * m4/flock.m4: M4 macros.
56236         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56237         * modules/flock: flock module.
56238         * modules/flock-tests: flock tests module.
56239         * modules/sys_file: sys/file.h module.
56240         * tests/test-flock.c: test suite for flock.
56241
56242 2008-10-06  Jim Meyering  <meyering@redhat.com>
56243
56244         bootstrap: check for LT_INIT more portably still ;-)
56245         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56246         Spotted by Bruno Haible.
56247
56248 2008-10-06  Eric Blake  <ebb9@byu.net>
56249
56250         test-signbit: avoid tripping Irix cc bug on -0.0L
56251         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56252         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56253         entire testsuite consistent and avoids an Irix 6.2 bug.
56254
56255 2008-10-05  Bruno Haible  <bruno@clisp.org>
56256             Jim Meyering  <jim@meyering.net>
56257
56258         Add an option for ignoring EPIPE during close_stdout.
56259         * lib/closeout.h: Include <stdbool.h>.
56260         (close_stdout_set_ignore_EPIPE): New declaration.
56261         * lib/closeout.c: Include <stdbool.h>.
56262         (ignore_EPIPE): New variable.
56263         (close_stdout_set_ignore_EPIPE): New function.
56264         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56265         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56266         failure.
56267         * modules/closeout (Depends-on): Add stdbool.
56268
56269 2008-10-05  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/accept: New file.
56272         * modules/bind: New file.
56273         * modules/connect: New file.
56274         * modules/getpeername: New file.
56275         * modules/getsockname: New file.
56276         * modules/getsockopt: New file.
56277         * modules/listen: New file.
56278         * modules/recv: New file.
56279         * modules/recvfrom: New file.
56280         * modules/send: New file.
56281         * modules/sendto: New file.
56282         * modules/setsockopt: New file.
56283         * modules/socket: New file.
56284         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56286         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56287         the particular module is requested. Add a link warning when the
56288         particular module is not requested.
56289         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56290         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56291         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56292         the particular module is requested.
56293         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56294         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56295         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56296         * modules/sys_socket (Depends-on): Add link-warning.
56297         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56298         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56299         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56300         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56301         GL_LINK_WARNING.
56302         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56303         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56304         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56305         * doc/posix-functions/getpeername.texi: Mention the new module
56306         'getpeername'.
56307         * doc/posix-functions/getsockname.texi: Mention the new module
56308         'getsockname'.
56309         * doc/posix-functions/getsockopt.texi: Mention the new module
56310         'getsockopt'.
56311         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56312         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56313         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56314         * doc/posix-functions/send.texi: Mention the new module 'send'.
56315         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56316         * doc/posix-functions/setsockopt.texi: Mention the new module
56317         'setsockopt'.
56318         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56319         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56320         listen, connect, accept.
56321         * modules/select-tests (Depends-on): Likewise.
56322
56323 2008-10-05  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/winsock.c (strerror): Remove unused #undef.
56326         (rpl_close): Remove unused local variable.
56327
56328         * modules/sys_socket (Depends-on); Add errno.
56329
56330 2008-10-05  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56333         (select): Add a link warning when the 'select' module is not used.
56334         * modules/sys_select (Depends-on): Add link-warning.
56335         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56336         Suggested by Paolo Bonzini.
56337
56338 2008-10-05  Jim Meyering  <meyering@redhat.com>
56339
56340         bootstrap: check for LT_INIT more portably
56341         * build-aux/bootstrap: Avoid using grep -E, since it's not
56342         portable enough.  Suggestion from Bruno Haible.
56343
56344 2008-10-05  Bruno Haible  <bruno@clisp.org>
56345
56346         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56347         as being fixed by gnulib.
56348
56349 2008-10-05  Bruno Haible  <bruno@clisp.org>
56350
56351         * modules/select-tests: New file, mostly copied from
56352         modules/sys_select-tests.
56353         * tests/test-select.c: New file, mostly copied from
56354         tests/test-sys_select.c.
56355         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56356         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56357         (Makefile.am): Remove test_sys_select_LDADD.
56358
56359         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56360         to an undefined symbol, for an error message.
56361         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56362         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56363         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56364         winsock-select.c here.
56365         * modules/sys_select (Files): Remove lib/winsock-select.c.
56366         (Depends-on): Remove alloca.
56367         (Makefile.am): Substitute GNULIB_SELECT.
56368         * modules/select: New file.
56369         * doc/posix-functions/select.texi: Update.
56370
56371 2008-10-05  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56374         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56375         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56376         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56377         getdtablesize.
56378         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56379         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56380
56381 2008-10-05  Bruno Haible  <bruno@clisp.org>
56382
56383         * modules/getdtablesize-tests: New file.
56384         * tests/test-getdtablesize.c: New file.
56385
56386         New module 'getdtablesize'.
56387         * lib/unistd.in.h (getdtablesize): New declaration.
56388         * lib/getdtablesize.c: New file.
56389         * m4/getdtablesize.m4: New file.
56390         * modules/getdtablesize: New file.
56391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56392         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56393         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56394         HAVE_GETDTABLESIZE.
56395         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56396
56397 2008-10-05  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/sched (Makefile.am): Fix typo.
56400         Reported by Simon Josefsson.
56401
56402 2008-10-05  Jim Meyering  <meyering@redhat.com>
56403
56404         bootstrap: check for LT_INIT, too
56405         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56406         are deprecated.  Suggestion from Ralf Wildenhues.
56407
56408 2008-10-05  Bruno Haible  <bruno@clisp.org>
56409
56410         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56411         overriding them by ours.
56412         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56413
56414 2008-10-05  Jim Meyering  <meyering@redhat.com>
56415
56416         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56417         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56418         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56419
56420 2008-10-04  Bruno Haible  <bruno@clisp.org>
56421
56422         * modules/dup2 (License): Change to LGPLv2+.
56423         * modules/sleep (License): Likewise.
56424         * modules/perror (License): Likewise.
56425         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56426         Blake.
56427         * modules/signal (License): Likewise.
56428         * modules/sigprocmask (License): Likewise.
56429         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56430         Meyering.
56431
56432 2008-10-04  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56435         Reported by Rainer Tammer <tammer@tammer.net>.
56436
56437 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56438             Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56441         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56442         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56443
56444 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56445
56446         filevercmp: new module
56447         * lib/filevercmp.h: New function filevercmp comparing version strings.
56448         * lib/filevercmp.c: Implementation of filevercmp function.
56449         * modules/filevercmp: Module metadata.
56450         * tests/test-filevercmp.c: Unit test for new module.
56451         * modules/filevercmp-tests: Unit test metadata.
56452         * MODULES.html.sh: Add filevercmp module.
56453
56454 2008-10-03  Bruno Haible  <bruno@clisp.org>
56455
56456         * lib/c-ctype.h: Add comment.
56457         Reported by Jim Meyering.
56458
56459 2008-10-02  Bruno Haible  <bruno@clisp.org>
56460
56461         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56462
56463 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56464
56465         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56466         name of bootstrap.conf accordingly.
56467
56468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56469
56470         * build-aux/bootstrap: Install git-merge-changelog configuration
56471         items into .gitconfig if needed.
56472
56473 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56474
56475         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56476         git repository, and initialize/update it accordingly.
56477
56478 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56479
56480         * modules/fsync-tests: New file.
56481         * tests/test-fsync.c: New file.
56482
56483         New module 'fsync'.
56484         * lib/fsync.c: New file.
56485         * m4/fsync.m4: New file.
56486         * modules/fsync: New file.
56487         * lib/unistd.in.h (fsync): New declaration.
56488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56489         GNULIB_FSYNC and HAVE_FSYNC.
56490         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56491         * MODULES.html.sh (posix_functions): Add fsync.
56492         * doc/posix-functions/fsync.texi: Mention the new module.
56493
56494 2008-10-02  Jim Meyering  <meyering@redhat.com>
56495
56496         fts.c: sync with similar code from coreutils' remove.c
56497         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56498         Guard also with "#if defined __linux__", since for now at least,
56499         this code is Linux-kernel-specific.
56500
56501 2008-10-02  Jim Meyering  <meyering@redhat.com>
56502
56503         fts: bug fixes
56504         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56505         Include <sys/vfs.h>, not <sys/statfs.h>.
56506
56507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56508         Include <sys/vfs.h>, not <sys/statfs.h>.
56509
56510 2008-10-01  Bruno Haible  <bruno@clisp.org>
56511
56512         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56514         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56515         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56516         * doc/posix-functions/posix_spawnp.texi: Likewise.
56517         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56518         whether posix_spawn actually works.
56519         * m4/pipe.m4 (gl_PIPE): Likewise.
56520         * modules/execute (Files): Add m4/posix_spawn.m4.
56521         * modules/pipe (Files): Add m4/posix_spawn.m4.
56522         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56523
56524 2008-10-01  Jim Meyering  <meyering@redhat.com>
56525
56526         remove trailing spaces
56527         * NEWS: Likewise.
56528         * lib/poll.c (poll): Likewise.
56529         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56530         * lib/winsock.c (rpl_close): Likewise.
56531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56532         * modules/yield: Likewise.
56533         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56534         * tests/test-sys_select.c (connect_to_socket): Likewise.
56535
56536         fts.c: adjust a new interface to be more generally useful
56537         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56538         (fts_build): Adjust caller.
56539
56540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56541
56542         * modules/cond-tests: New file.
56543         * tests/test-cond.c: New file.
56544
56545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56546             Bruno Haible  <bruno@clisp.org>
56547
56548         * modules/cond (Dependencies): Add errno, time.
56549         * lib/glthread/cond.h: Include <time.h>.
56550         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56551         across platforms.
56552
56553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56554             Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56557
56558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56559             Bruno Haible  <bruno@clisp.org>
56560
56561         * modules/tls-tests (Depends-on): Add thread, yield.
56562         (configure.ac): Remove all checks.
56563         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56564         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56565         gl_thread_self): Remove definitions. Include glthread/thread.h and
56566         glthread/yield.h instead.
56567         (test_tls): Pass an additional NULL argument to gl_thread_join.
56568
56569 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56570             Bruno Haible  <bruno@clisp.org>
56571
56572         * modules/lock-tests (Depends-on): Add thread, yield.
56573         (configure.ac): Remove all checks.
56574         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56575         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56576         gl_thread_self): Remove definitions. Include glthread/thread.h and
56577         glthread/yield.h instead.
56578         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56579         additional NULL argument to gl_thread_join.
56580
56581 2008-09-30  Bruno Haible  <bruno@clisp.org>
56582
56583         Fix the Win32 implementation of the 'thread' module.
56584         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56585         pointer type.
56586         (gl_thread_self): Invoke gl_thread_self_func.
56587         (gl_thread_self_func): New declaration.
56588         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56589         (do_init_self_key, init_self_key): New functions.
56590         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56591         Remove some fields.
56592         (running_threads, running_lock): Remove variables.
56593         (get_current_thread_handle): New function.
56594         (gl_thread_self_func, wrapper_func, glthread_create_func,
56595         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56596         simplified.
56597
56598 2008-09-30  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56601         files.
56602
56603 2008-09-30  Jim Meyering  <meyering@redhat.com>
56604
56605         fts.m4: correct the test for statfs.f_type
56606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56607         when checking for statfs.f_type.
56608
56609 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56610
56611         tests: avoid some compiler warnings
56612         * tests/test-memchr.c (main): Pass NULL indirectly.
56613         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56614
56615 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56616
56617         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56618         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56619         exactly specified dayshifts.
56620         (dayshift): New rule.
56621         (rel): Add dayshift.
56622         (relative_time_table) [tomorrow, yesterday, today, now]:
56623         Use tDAY_SHIFT in place of tDAY_UNIT.
56624         * tests/test-getdate.c: Add tests for now-disallowed countable
56625         dayshifts, e.g., "4 yesterday ago".
56626
56627 2008-09-29  Bruno Haible  <bruno@clisp.org>
56628
56629         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56630         * tests/test-posix_spawn1.in.sh: Renamed from
56631         tests/test-posix_spawn.in.sh.
56632         * tests/test-posix_spawn2.c: New file.
56633         * tests/test-posix_spawn2.in.sh: New file.
56634         * modules/posix_spawnp-tests (Files): Update.
56635         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56636
56637 2008-09-29  Bruno Haible  <bruno@clisp.org>
56638
56639         Propagate effects of putenv/setenv/unsetenv to child processes.
56640         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56641         * lib/pipe.c (create_pipe): Likewise.
56642
56643 2008-09-29  Bruno Haible  <bruno@clisp.org>
56644
56645         Enable use of shell scripts as executables in mingw.
56646         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56647         run the program as a shell script.
56648         * lib/pipe.c (create_pipe): Likewise.
56649         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56650         resulting array.
56651
56652 2008-09-29  Eric Blake  <ebb9@byu.net>
56653
56654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56655
56656 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56657
56658         * doc/posix-functions/accept.texi: Update mingw problems.
56659         * doc/posix-functions/bind.texi: Update mingw problems.
56660         * doc/posix-functions/close.texi: Update mingw problems.
56661         * doc/posix-functions/connect.texi: Update mingw problems.
56662         * doc/posix-functions/getpeername.texi: Update mingw problems.
56663         * doc/posix-functions/getsockname.texi: Update mingw problems.
56664         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56665         * doc/posix-functions/ioctl.texi: Update mingw problems.
56666         * doc/posix-functions/listen.texi: Update mingw problems.
56667         * doc/posix-functions/recv.texi: Update mingw problems.
56668         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56669         * doc/posix-functions/select.texi: Update mingw problems.
56670         * doc/posix-functions/send.texi: Update mingw problems.
56671         * doc/posix-functions/sendto.texi: Update mingw problems.
56672         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56673         * doc/posix-functions/socket.texi: Update mingw problems.
56674
56675 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56676             Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/sys_select.in.h: Include sys/time.h.
56679         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56680         * modules/sys_select: Depend on sys_time.
56681         * tests/test-sys_select.c: Test that sys/select.h defines struct
56682         timeval fully.
56683
56684 2008-09-29  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56687         * lib/sys_select.in.h: Likewise.
56688
56689 2008-09-29  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56692
56693 2008-09-29  Bruno Haible  <bruno@clisp.org>
56694
56695         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56696         Set LIBSOCKET instead of augmenting LIBS.
56697         * modules/sockets (Link): New section.
56698         * modules/sockets-tests (test_sockets_LDADD): New variable.
56699         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56700         * modules/poll-tests (test_poll_LDADD): New variable.
56701         * NEWS: Document the change.
56702
56703 2008-09-29  Bruno Haible  <bruno@clisp.org>
56704
56705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56706         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56707         ARPA_INET_H directly.
56708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56709
56710 2008-09-28  Bruno Haible  <bruno@clisp.org>
56711
56712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56713         from gl_HEADER_SYS_SOCKET.
56714         (gl_HEADER_SYS_SOCKET): Invoke it.
56715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56716
56717 2008-09-28  Bruno Haible  <bruno@clisp.org>
56718
56719         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56720         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56721         Needed on OSF/1 4.0.
56722
56723 2008-09-28  Bruno Haible  <bruno@clisp.org>
56724
56725         Override open more carefully.
56726         * lib/open.c (orig_open): New function.
56727         (rpl_open): Use orig_open instead of open.
56728         * lib/fcntl.in.h: Add special invocation convention.
56729         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56730         (gl_FUNC_OPEN): Invoke it.
56731
56732         Override freopen more carefully.
56733         * lib/freopen.c (orig_freopen): New function.
56734         (rpl_freopen): Use orig_freopen instead of freopen.
56735         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56736         (gl_FUNC_FREOPEN): Invoke it.
56737
56738         Override fopen more carefully.
56739         * lib/fopen.c (orig_fopen): New function.
56740         (rpl_fopen): Use orig_fopen instead of fopen.
56741         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56742         (gl_FUNC_FOPEN): Invoke it.
56743         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56744
56745 2008-09-28  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56748         SIGPIPE.
56749
56750 2008-09-28  Bruno Haible  <bruno@clisp.org>
56751
56752         * tests/test-sigaction.c (handler, main): Disable the check whether
56753         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56754         glibc systems with LinuxThreads.
56755
56756 2008-09-28  Bruno Haible  <bruno@clisp.org>
56757
56758         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56759
56760         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56761         with AIX xlc.
56762         * lib/fcntl.in.h (open): Likewise.
56763         Reported by Rainer Tammer <tammer@tammer.net>.
56764
56765 2008-09-28  Bruno Haible  <bruno@clisp.org>
56766
56767         * modules/posix_spawnp-tests: New file.
56768         * tests/test-posix_spawn.c: New file.
56769         * tests/test-posix_spawn.in.sh: New file.
56770
56771         New module 'posix_spawnp'.
56772         * modules/posix_spawnp: New file.
56773         * lib/spawnp.c: New file, from GNU libc with modifications.
56774         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56775
56776         New module 'posix_spawn'.
56777         * modules/posix_spawn: New file.
56778         * lib/spawn.c: New file, from GNU libc with modifications.
56779         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56780
56781         New module 'posix_spawnattr_destroy'.
56782         * modules/posix_spawnattr_destroy: New file.
56783         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56784         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56785         module.
56786
56787         New module 'posix_spawnattr_setsigmask'.
56788         * modules/posix_spawnattr_setsigmask: New file.
56789         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56790         modifications.
56791         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56792         new module.
56793
56794         New module 'posix_spawnattr_getsigmask'.
56795         * modules/posix_spawnattr_getsigmask: New file.
56796         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56797         modifications.
56798         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56799         new module.
56800
56801         New module 'posix_spawnattr_setsigdefault'.
56802         * modules/posix_spawnattr_setsigdefault: New file.
56803         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56804         modifications.
56805         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56806         new module.
56807
56808         New module 'posix_spawnattr_getsigdefault'.
56809         * modules/posix_spawnattr_getsigdefault: New file.
56810         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56811         modifications.
56812         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56813         new module.
56814
56815         New module 'posix_spawnattr_setschedpolicy'.
56816         * modules/posix_spawnattr_setschedpolicy: New file.
56817         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56818         modifications.
56819         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56820         new module.
56821
56822         New module 'posix_spawnattr_getschedpolicy'.
56823         * modules/posix_spawnattr_getschedpolicy: New file.
56824         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56825         modifications.
56826         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56827         new module.
56828
56829         New module 'posix_spawnattr_setschedparam'.
56830         * modules/posix_spawnattr_setschedparam: New file.
56831         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56832         modifications.
56833         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56834         new module.
56835
56836         New module 'posix_spawnattr_getschedparam'.
56837         * modules/posix_spawnattr_getschedparam: New file.
56838         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56839         modifications.
56840         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56841         new module.
56842
56843         New module 'posix_spawnattr_setpgroup'.
56844         * modules/posix_spawnattr_setpgroup: New file.
56845         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56846         modifications.
56847         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56848         module.
56849
56850         New module 'posix_spawnattr_getpgroup'.
56851         * modules/posix_spawnattr_getpgroup: New file.
56852         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56853         modifications.
56854         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56855         module.
56856
56857         New module 'posix_spawnattr_setflags'.
56858         * modules/posix_spawnattr_setflags: New file.
56859         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56860         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56861         module.
56862
56863         New module 'posix_spawnattr_getflags'.
56864         * modules/posix_spawnattr_getflags: New file.
56865         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56866         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56867         module.
56868
56869         New module 'posix_spawnattr_init'.
56870         * modules/posix_spawnattr_init: New file.
56871         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56872         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56873         module.
56874
56875         New module 'posix_spawn_file_actions_destroy'.
56876         * modules/posix_spawn_file_actions_destroy: New file.
56877         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56878         modifications.
56879         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56880         the new module.
56881
56882         New module 'posix_spawn_file_actions_addopen'.
56883         * modules/posix_spawn_file_actions_addopen: New file.
56884         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56885         modifications.
56886         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56887         the new module.
56888
56889         New module 'posix_spawn_file_actions_adddup2'.
56890         * modules/posix_spawn_file_actions_adddup2: New file.
56891         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56892         modifications.
56893         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56894         the new module.
56895
56896         New module 'posix_spawn_file_actions_addclose'.
56897         * modules/posix_spawn_file_actions_addclose: New file.
56898         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56899         modifications.
56900         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56901         the new module.
56902
56903         New module 'posix_spawn_file_actions_init'.
56904         * modules/posix_spawn_file_actions_init: New file.
56905         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56906         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56907         new module.
56908
56909         New module 'posix_spawn-internal'.
56910         * modules/posix_spawn-internal: New file.
56911         * lib/spawn_int.h: New file, from GNU libc with modifications.
56912         * lib/spawni.c: New file, from GNU libc with modifications.
56913         * m4/posix_spawn.m4: New file.
56914
56915         New module 'spawn'.
56916         * modules/spawn: New file.
56917         * lib/spawn.in.h: New file, from GNU libc with modifications.
56918         * m4/spawn_h.m4: New file.
56919         * doc/posix-headers/spawn.texi: Mention the new module.
56920
56921 2008-09-28  Bruno Haible  <bruno@clisp.org>
56922
56923         * modules/sched-tests: New file.
56924         * tests/test-sched.c: New file.
56925
56926         New module 'sched'.
56927         * modules/sched: New file.
56928         * lib/sched.in.h: New file.
56929         * m4/sched_h.m4: New file.
56930         * doc/posix-headers/sched.texi: Mention the new module.
56931
56932 2008-09-27  Eric Blake  <ebb9@byu.net>
56933
56934         Fix previous patch, and tweak references to $0.
56935         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56936         (func_version, func_gnulib_dir): Don't call this program
56937         gnulib-tool.
56938         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56939         with using $0 in function.
56940         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56941         (func_fatal_error): Reuse the name the user invoked us with.
56942
56943 2008-09-27  Bruno Haible  <bruno@clisp.org>
56944
56945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56946         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56947         (gl_ICONV_H): Not here.
56948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56949         instead of assigning ICONV_H directly.
56950
56951         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56953         WCHAR_H directly.
56954
56955 2008-09-27  Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56958         * modules/arpa_inet (Depends-on): Add link-warning.
56959         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56960         * modules/unistd (Makefile.am): Likewise.
56961
56962 2008-09-26  Bruno Haible  <bruno@clisp.org>
56963
56964         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56965         variables.
56966         (func_version): Essentially copied from gnulib-tool.
56967         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56968         func_readlink): Copied from gnulib-tool.
56969
56970 2008-09-26  Bruno Haible  <bruno@clisp.org>
56971
56972         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56973         invoking git-version-gen.
56974
56975 2008-09-26  Bruno Haible  <bruno@clisp.org>
56976
56977         * posix-modules: Update to directory names changed on 2008-01-19.
56978         Remove commas in output before splitting into words. No more need to
56979         avoid 'ftruncate' since 2007-02-19.
56980
56981 2008-09-26  Bruno Haible  <bruno@clisp.org>
56982
56983         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56984
56985 2008-09-26  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56988         * modules/fwriteerror (Depends-on): Add errno.
56989
56990 2008-09-26  Bruno Haible  <bruno@clisp.org>
56991
56992         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56993         * tests/test-vc-list-files-cvs.sh: Likewise.
56994
56995 2008-09-26  Bruno Haible  <bruno@clisp.org>
56996
56997         * doc/posix-headers/sys_resource.texi: Reorder items.
56998
56999 2008-09-26  Jim Meyering  <meyering@redhat.com>
57000
57001         fts: tweak inode comparison function
57002         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57003         inode numbers, as documented.
57004
57005         fts: sort dirent entries on inode number before traversing
57006         This avoids a quadratic, seek-related performance penalty when
57007         operating on a directory containing many entries (measurable at 10k;
57008         3.5 hours at 2 million entries with a cold cache) on certain types
57009         of file systems, including ext3 and ext4, but not tmpfs.
57010         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57011         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57012         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57013         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57014         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57015         (fts_build): Set the stat.st_ino member from D_INO.
57016         If it is likely to be useful, sort dirent entries on inode number.
57017
57018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57019         and the struct statfs.f_type member.
57020         * modules/fts (Depends-on): Add d-ino.
57021
57022 2008-09-26  Bruno Haible  <bruno@clisp.org>
57023
57024         * modules/sigpipe-die (Depends-on): Add sigpipe.
57025
57026         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57027         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57028         and GNULIB_STDIO_H_SIGPIPE are set.
57029         * lib/stdio-write.c: New file.
57030         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57031         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57032         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57033         REPLACE_STDIO_WRITE_FUNCS.
57034         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57035         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57036         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57037         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57038         * modules/stdio (Files): Add lib/stdio-write.c.
57039         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57040         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57041         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57042         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57043         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57044         REPLACE_FPRINTF_POSIX.
57045         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57046         REPLACE_PRINTF_POSIX.
57047         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57048         REPLACE_VFPRINTF_POSIX.
57049         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57050         REPLACE_VPRINTF_POSIX.
57051         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57052         SIGPIPE issue.
57053         * doc/posix-functions/fputc.texi: Likewise.
57054         * doc/posix-functions/fputs.texi: Likewise.
57055         * doc/posix-functions/fwrite.texi: Likewise.
57056         * doc/posix-functions/printf.texi: Likewise.
57057         * doc/posix-functions/putc.texi: Likewise.
57058         * doc/posix-functions/putchar.texi: Likewise.
57059         * doc/posix-functions/puts.texi: Likewise.
57060         * doc/posix-functions/vfprintf.texi: Likewise.
57061         * doc/posix-functions/vprintf.texi: Likewise.
57062
57063         * modules/safe-write (Depends-on): Add write.
57064
57065         * modules/sigpipe-tests: New file.
57066         * tests/test-sigpipe.c: New file.
57067         * tests/test-sigpipe.sh: New file.
57068
57069         * modules/write: New file.
57070         * lib/unistd.in.h: Include <sys/types.h>.
57071         (write): New declaration.
57072         * lib/write.c: New file.
57073         * m4/write.m4: New file.
57074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57075         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57076         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57077         GNULIB_WRITE, REPLACE_WRITE.
57078         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57079         and the SIGPIPE issue.
57080
57081         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57082         (raise): New declaration.
57083         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57084         (ext_signal): New function.
57085         (rpl_raise): New function.
57086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57087         GNULIB_SIGNAL_H_SIGPIPE.
57088         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57089         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57090
57091         * modules/sigpipe: New file.
57092         * m4/sigpipe.m4: New file.
57093
57094 2008-09-25  Derek Price  <derek@ximbiot.com>
57095             Bruno Haible  <bruno@clisp.org>
57096
57097         * gnulib-tool (func_import): Report all license incompatibilities, not
57098         just the first one.
57099
57100 2008-09-25  Bruno Haible  <bruno@clisp.org>
57101
57102         * gnulib-tool (func_import): When computing the edits, consider not
57103         only the Makefile.ams that exist but also those that will be generated.
57104
57105 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57106
57107         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57108         fixes gnulib-tool --test warning about duplicate dependency.
57109
57110 2008-09-25  Bruno Haible  <bruno@clisp.org>
57111
57112         * gnulib-tool: Don't ask the user to perform edits in the generated
57113         Makefile.ams.
57114         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57115         apply to the Makefile.am being generated.
57116         (func_emit_tests_Makefile_am): Execute edits that apply to the
57117         Makefile.am being generated.
57118         (func_import): Setup list of Makefile.am edits before emitting the
57119         Makefile.ams, not at the end.
57120         (func_create_testdir): Update.
57121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57122
57123 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57124
57125         * gnulib-tool (func_import): Store the --tests-base option in the
57126         comment in gnulib-cache.m4.
57127
57128 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57129
57130         * NEWS: Document increased portability that sys_select now provides.
57131
57132         * lib/sys_select.in.h: Install select wrapper.
57133         * lib/sys_socket.in.h: Use more descriptive name when there is no
57134         select wrapper.
57135         * lib/winsock-select.c: New.
57136         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57137         Require gl_HEADER_SYS_SOCKET.
57138         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57139         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57140         * tests/test-sys_select.c: Add functional tests.
57141
57142 2008-09-24  Eric Blake  <ebb9@byu.net>
57143
57144         open, fopen: close fd leak in last patch
57145         * lib/open.c (rpl_open): Close fd before returning error.
57146         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57147         * doc/posix-functions/open.texi (open): Document that Irix also
57148         has the bug.
57149         * doc/posix-functions/fopen.texi (fopen): Likewise.
57150         Reported by Paolo Bonzini.
57151
57152 2008-09-24  Bruno Haible  <bruno@clisp.org>
57153
57154         Ensure that a filename ending in a slash cannot be used to access a
57155         non-directory.
57156         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57157         to check whether it's really a directory.
57158         * lib/fopen.c: Include fcntl.h, unistd.h.
57159         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57160         and fdopen().
57161         * modules/fopen (Depends-on): Add unistd.
57162         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57163         * tests/test-fopen.c (main): Likewise.
57164         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57165         * doc/posix-functions/fopen.texi: Likewise.
57166         Reported by Eric Blake.
57167
57168 2008-09-23  Eric Blake  <ebb9@byu.net>
57169
57170         c-stack: avoid compiler optimizations when provoking overflow
57171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57172         recursion harder to optimize, to ensure a stack overflow occurs.
57173         * tests/test-c-stack.c (recurse): Likewise.
57174         Borrowed from libsigsegv.
57175
57176         c-stack: work around Irix sigaltstack bug
57177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57178         whether sigaltstack uses wrong end of stack_t (copied in part from
57179         libsigsegv).
57180         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57181         Irix bug, without requiring an over-allocation.
57182         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57183         bug.
57184
57185         fopen: document mingw bug on directories
57186         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57187         not allowing a stream visiting a directory, even though reading
57188         from such a stream is not portable.
57189
57190 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57191
57192         * lib/poll.c: Rewrite.
57193         * modules/poll: Depend on alloca.
57194
57195 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57196
57197         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57198         instead define prototypes for a full set of wrappers.  Ensure
57199         that Cygwin does not use the compatibility code, which is only
57200         for MinGW.
57201         * lib/winsock.c: New.
57202         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57203         * modules/sys_socket: Add lib/winsock.c.
57204
57205         * modules/poll-tests: Add errno and perror.
57206         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57207
57208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57209
57210         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57211
57212 2008-09-23  Bruno Haible  <bruno@clisp.org>
57213
57214         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57215         * doc/glibc-functions/*: Likewise.
57216
57217 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57218
57219         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57220         success.
57221
57222 2008-09-22  Eric Blake  <ebb9@byu.net>
57223             Bruno Haible  <bruno@clisp.org>
57224
57225         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57226         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57227         supply %A but mishandle pseudo-NaN.
57228         Reported by Simon Josefsson.
57229
57230 2008-09-21  Bruno Haible  <bruno@clisp.org>
57231
57232         * tests/test-lock.c (main): Tweak skip message.
57233         * tests/test-tls.c (main): Likewise.
57234
57235 2008-09-21  Bruno Haible  <bruno@clisp.org>
57236
57237         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57238         whether 'struct sigaction' has sa_sigaction here...
57239         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57240         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57241
57242 2008-09-21  Bruno Haible  <bruno@clisp.org>
57243
57244         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57245         section.
57246         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57247         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57248         the new section.
57249         (Support for obsolete systems lacking POSIX:2001): New section.
57250         (String handling <string.h>): Move strdup to the new section.
57251         Suggested by Simon Josefsson and Paolo Bonzini.
57252
57253 2008-09-21  Bruno Haible  <bruno@clisp.org>
57254
57255         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57256         exponents in %e and %g results on 'long double'. Needed for mingw's
57257         improved *printf functions.
57258         * tests/test-vasprintf-posix.c (test_function): Likewise.
57259         * tests/test-snprintf-posix.h (test_function): Likewise.
57260         * tests/test-sprintf-posix.h (test_function): Likewise.
57261         Reported by Eric Blake.
57262
57263 2008-09-21  Bruno Haible  <bruno@clisp.org>
57264
57265         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57266         * tests/test-sprintf-posix.h (test_function): Likewise.
57267
57268 2008-09-21  Bruno Haible  <bruno@clisp.org>
57269
57270         * modules/getpass (Depends-on): Add strdup-posix.
57271
57272         New module 'strdup-posix'.
57273         * modules/strdup-posix: New file.
57274         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57275         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57277         REPLACE_STRDUP.
57278         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57279         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57281         strdup-posix.
57282
57283         * modules/strdup (Depends-on): Remove malloc-posix.
57284
57285 2008-09-20  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57288         Wildenhues.
57289
57290 2008-09-20  Bruno Haible  <bruno@clisp.org>
57291
57292         Ensure that wint_t gets defined on IRIX 5.3.
57293         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57294         * lib/wctype.in.h (wint_t): Likewise.
57295         (__wctype_wint_t): Remove type.
57296         (isw*): Use wint_t instead of __wctype_wint_t.
57297         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57298         * modules/wchar (Files): Add m4/wint_t.m4.
57299         (Makefile.am): Substitute HAVE_WINT_T.
57300         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57301         * tests/test-wctype.c: Check that wint_t is defined.
57302         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57303         * doc/posix-headers/wctype.texi: Likewise.
57304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57305
57306 2008-09-18  Bruno Haible  <bruno@clisp.org>
57307
57308         * gnulib-tool (func_exit): Update comment.
57309
57310 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57311
57312         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57313         assumes strdup exists and does not depend on strdup to return
57314         ENOMEM on out of memory conditions.
57315
57316 2008-09-18  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57319         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57320         digits for the exponent.
57321
57322 2008-09-18  Jim Meyering  <meyering@redhat.com>
57323             Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/vasnprintf.c (decimal_point_char): Define also if
57326         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57327
57328 2008-09-16  Bruno Haible  <bruno@clisp.org>
57329         and Eric Blake  <ebb9@byu.net>
57330
57331         vasnprintf: support Irix 5.3
57332         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57333         that mishandle long double infinity.
57334         Reported by Tom G. Christensen.
57335
57336 2008-09-16  Bruno Haible  <bruno@clisp.org>
57337
57338         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57339         Solaris 9.
57340         * doc/glibc-functions/alphasort.texi: Likewise.
57341         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57342
57343 2008-09-16  Jim Meyering  <meyering@redhat.com>
57344
57345         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57346         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57347         a umask modification leak out of a subshell.  Otherwise, the
57348         opensolaris /bin/sh would be accepted and thus cause unwarranted
57349         failures in the coreutils test suite.
57350
57351 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57352
57353         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57354         to succeed.
57355
57356 2008-09-16  Jim Meyering  <meyering@redhat.com>
57357
57358         avoid spurious test failure when library is built without ACL support
57359         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57360         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57361         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57362         * tests/test-copy-acl.sh: Likewise.
57363
57364 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57365
57366         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57367         based on character occurrence counts.
57368
57369 2008-09-15  Eric Blake  <ebb9@byu.net>
57370
57371         tests: avoid some compiler warnings
57372         * tests/test-memchr.c (main): Pass NULL indirectly.
57373         * tests/test-closein.c (main): Avoid unused variable.
57374
57375 2008-09-15  Bruno Haible  <bruno@clisp.org>
57376
57377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57378         are missing on OpenBSD 4.0 individually.
57379         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57380
57381 2008-09-15  Bruno Haible  <bruno@clisp.org>
57382
57383         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57384         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57385         * doc/posix-functions/perror.texi: Likewise.
57386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57387         is missing.
57388         Reported by Eric Blake.
57389
57390         * lib/errno.in.h: Use replacement values >= 2000.
57391         Reported by Eric Blake.
57392
57393 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57394
57395         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57396         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57397         limit.
57398         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57399         compareseq was aborted.
57400
57401 2008-09-14  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57404         yvec_edit_count.
57405         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57406         (fstrcmp_bounded): Simplify result computation accordingly.
57407
57408 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57409
57410         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57411         (fstrcmp): Define in terms of fstrcmp_bounded.
57412         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57413         lower_bound argument.
57414         Return quickly if the result is certainly < lower_bound.
57415         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57416
57417 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57418
57419         * lib/diffseq.h (EARLY_ABORT): New macro.
57420         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57421         evaluates to true.
57422
57423 2008-09-14  Bruno Haible  <bruno@clisp.org>
57424
57425         * modules/perror-tests: New file.
57426         * tests/test-perror.sh: New file.
57427         * tests/test-perror.c: New file.
57428
57429         New module 'perror'.
57430         * lib/stdio.in.h (perror): New declaration.
57431         * lib/perror.c: New file.
57432         * m4/perror.m4: New file.
57433         * modules/perror: New file.
57434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57435         * doc/posix-functions/perror.texi: Mention the perror module.
57436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57437         REPLACE_PERROR.
57438         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57439         REPLACE_PERROR.
57440
57441 2008-09-14  Bruno Haible  <bruno@clisp.org>
57442
57443         * modules/stdio (Makefile.am): Reorder to match the order in
57444         lib/stdio.in.h.
57445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57446
57447 2008-09-13  Bruno Haible  <bruno@clisp.org>
57448
57449         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57450
57451 2008-09-13  Bruno Haible  <bruno@clisp.org>
57452
57453         Extend strerror to cover the added errno values.
57454         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57455         (rpl_strerror): Provide error messages for the added errno values and
57456         for the WSA* values.
57457         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57458         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57459         strerror.
57460         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57461         * modules/strerror (Depends-on): Add errno.
57462         * doc/posix-functions/strerror.texi: Document the change.
57463         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57464         and EOVERFLOW.
57465
57466 2008-09-13  Bruno Haible  <bruno@clisp.org>
57467
57468         * modules/EOVERFLOW: Remove file.
57469         * m4/eoverflow.m4: Remove file.
57470         * modules/EOVERFLOW-tests: Remove file.
57471         * tests/test-EOVERFLOW.c: Remove file.
57472         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57473         * modules/ftell (Depends-on): Likewise.
57474         * modules/getdelim (Depends-on): Likewise.
57475         * modules/getugroups (Depends-on): Likewise.
57476         * modules/poll (Depends-on): Likewise.
57477         * modules/snprintf (Depends-on): Likewise.
57478         * modules/sprintf-posix (Depends-on): Likewise.
57479         * modules/vasnprintf (Depends-on): Likewise.
57480         * modules/vasprintf (Depends-on): Likewise.
57481         * modules/vfprintf-posix (Depends-on): Likewise.
57482         * modules/vsnprintf (Depends-on): Likewise.
57483         * modules/vsprintf-posix (Depends-on): Likewise.
57484         * modules/xvasprintf (Depends-on): Likewise.
57485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57486         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57487         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57488         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57490         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57491         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57494         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57495         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57496         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57498         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57499         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57500         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57502         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57503         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57504         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57506         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57507         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57508         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57509         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57510         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57511         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57512         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57513         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57514         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57515         * MODULES.html.sh: Remove EOVERFLOW.
57516         * NEWS: Mention the change.
57517
57518 2008-09-13  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/errno-tests: New file.
57521         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57522
57523         * lib/errno.in.h: New file.
57524         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57525         * modules/errno: New file.
57526         * doc/posix-headers/errno.texi: Update documentation.
57527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57528
57529 2008-09-13  Bruno Haible  <bruno@clisp.org>
57530
57531         * tests/test-poll.c: Use #if for native Windows, rather than testing
57532         __MSVCRT__.
57533
57534 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57535             Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/glob.c: Don't include <pwd.h> on native Windows.
57538         (WINDOWS32): New macro.
57539         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57540
57541 2008-09-13  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57544         (ETIMEDOUT): Remove macro.
57545         (glthread_cond_timedwait_multithreaded): New declaration.
57546         (glthread_cond_timedwait): Use it.
57547         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57548         (glthread_cond_timedwait_multithreaded): New function.
57549
57550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57551
57552         * modules/poll-tests: Do not check for io.h.
57553         * tests/test-poll.c: Check for __MSVCRT__ instead.
57554
57555 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57556
57557         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57558         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57559         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57560
57561 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57562
57563         * modules/poll-tests: New.
57564         * tests/test-poll.c: New.
57565
57566 2008-09-12  Eric Blake  <ebb9@byu.net>
57567
57568         frexp: test for NetBSD failure on -0.0
57569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57570         not all, bugs from NetBSD 3.0 have been fixed.
57571         * doc/posix-functions/frexp.texi (frexp): Document bug.
57572         Reported by Thomas Klausner.
57573
57574         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57575         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57576         literal -0.0.
57577         Reported by Jonathan C. Patschke <jp@centtech.com>.
57578
57579 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57580
57581         * lib/glthread/cond.h: Use dummy implementation also if
57582         USE_WIN32_THREADS.
57583
57584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57585
57586         * modules/fnmatch-posix (License): Change to LGPLv2+.
57587         * modules/fnmatch-gnu (License): Likewise.
57588
57589 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57590
57591         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57592
57593 2008-09-11  Jim Meyering  <meyering@redhat.com>
57594
57595         * users.txt: Add gtk-vnc.
57596
57597 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57598
57599         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57600         rotate amounts.
57601
57602         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57603         required for 16-bit and 8-bit rotates.
57604         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57605         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57606         UINT8_MAX instead of hard-coded constants.
57607         Suggested by Paul Eggert.
57608
57609 2008-09-07  Bruno Haible  <bruno@clisp.org>
57610
57611         * tests/test-striconveh.c (main): Check behaviour when converting from
57612         UTF-7.
57613
57614         Make striconveh work better with stateful encodings.
57615         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57616         that iconv does not increment the inptr when returning -1/EINVAL.
57617
57618 2008-09-07  Bruno Haible  <bruno@clisp.org>
57619
57620         * build-aux/config.rpath: Update according to libtool-2.2.6.
57621         * build-aux/config.libpath: Likewise.
57622
57623 2008-09-06  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57626         * lib/freadptr.c (freadptr): Likewise.
57627         * lib/freadseek.c (freadptrinc): Likewise.
57628         Reported by Simon Josefsson.
57629
57630 2008-09-06  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/freadptr (License): Change to LGPLv2+.
57633         * modules/freadseek (License): Likewise.
57634         Suggested by Eric Blake.
57635
57636         * modules/memchr2 (License): Change to LGPLv2+.
57637         Approved by Eric Blake.
57638
57639 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57640             Bruno Haible  <bruno@clisp.org>
57641
57642         Make gnulib-tool work with native 'sed' on AIX.
57643         * gnulib-tool (sed_noop): New variable.
57644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57645         func_add_or_update, func_create_testdir): Use it to initialize sed
57646         script variables.
57647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57648
57649 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57650             Bruno Haible  <bruno@clisp.org>
57651
57652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57653         also works after #include directives.
57654
57655 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57656
57657         getdate.y: reject an out-of-range timezone value
57658         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57659         the range [-24...+24].  When specified with only one or two digits,
57660         * tests/test-getdate.c: Tests for the fix.
57661         * doc/getdate.texi: Document this change.
57662
57663 2008-09-03  Bruno Haible  <bruno@clisp.org>
57664
57665         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57666
57667 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57668
57669         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57670         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57671         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57672         Blake <ebb9@byu.net>.
57673
57674         * tests/test-bitrotate.c: Add more test vectors.
57675
57676 2008-09-02  Eric Blake  <ebb9@byu.net>
57677
57678         vasnprintf-posix: handle large precision via %.*d
57679         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57680         when handling it ourselves.
57681         * tests/test-vasnprintf-posix.c (test_function): Add test.
57682         * tests/test-snprintf-posix.h (test_function): Likewise.
57683         * tests/test-sprintf-posix.h (test_function): Likewise.
57684         * tests/test-vasprintf-posix.c (test_function): Likewise.
57685         Reported by Alain Guibert.
57686
57687 2008-09-01  Eric Blake  <ebb9@byu.net>
57688
57689         c-stack: make configure-time check more robust
57690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57691         successful sigaction call.
57692         Reported by Tom G. Christensen.
57693
57694 2008-09-01  Bruno Haible  <bruno@clisp.org>
57695
57696         New module 'findprog-lgpl'.
57697         * modules/findprog-lgpl: New file.
57698         * lib/findprog-lgpl.c: New file.
57699         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57700         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57701         to decide whether to use strdup or xstrdup, concatenated_filename or
57702         xconcatenated_filename.
57703
57704 2008-09-01  Bruno Haible  <bruno@clisp.org>
57705
57706         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57707         'xconcat-filename' (GPL).
57708         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57709         (License): Change to LGPLv2+.
57710         * modules/xconcat-filename: New file.
57711         * lib/concat-filename.h (concatenated_filename): Change specification.
57712         (xconcatenated_filename): New declaration.
57713         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57714         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57715         memory situations.
57716         * lib/xconcat-filename.c: New file.
57717         * NEWS: Mention the change.
57718         * lib/findprog.c: Include concat-filename.h, not filename.h.
57719         (find_in_path): Use xconcatenated_filename instead of
57720         concatenated_filename.
57721         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57722         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57723         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57724         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57725         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57726         instead of concatenated_filename.
57727         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57728         (execute_java_class): Use xconcatenated_filename instead of
57729         concatenated_filename.
57730         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57731         * modules/javacomp (Depends-on): Likewise.
57732         * modules/javaexec (Depends-on): Likewise.
57733
57734 2008-09-01  Bruno Haible  <bruno@clisp.org>
57735
57736         Split module 'filename' into 'filename' and 'concat-filename'.
57737         * modules/filename: Keep only lib/filename.h.
57738         (License): Change to LGPLv2+.
57739         * modules/concat-filename: New file, extracted from modules/filename.
57740         * lib/filename.h (concatenated_filename): Remove declaration.
57741         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57742         * lib/concat-filename.c: Include concat-filename.h.
57743         * NEWS: Mention the change.
57744
57745 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57746
57747         * lib/bitrotate.h (rotl8, rotr8): Add.
57748
57749         * modules/bitrotate (configure.ac): Need
57750         AC_REQUIRE([AC_C_INLINE]).
57751         (Description): Mention stdint.h.  Reported by Bruno Haible
57752         <bruno@clisp.org>.
57753
57754         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57755         Paolo Bonzini <bonzini@gnu.org>.
57756
57757 2008-08-31  Bruno Haible  <bruno@clisp.org>
57758
57759         Assume Solaris specific bi-arch conventions on Solaris systems.
57760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57761         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57762         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57763         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57764         like acl_libdirstem.
57765         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57766         acl_libdirstem.
57767         * NEWS: Mention the change.
57768         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57769
57770 2008-08-31  Jim Meyering  <meyering@redhat.com>
57771
57772         * lib/strftime.h: Add comments describing the two added arguments.
57773
57774         remove duplicate #include directives
57775         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57776         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57777
57778 2008-08-31  Bruno Haible  <bruno@clisp.org>
57779
57780         New module 'sigpipe-die'.
57781         * modules/sigpipe-die: New file.
57782         * lib/sigpipe-die.h: New file.
57783         * lib/sigpipe-die.c: New file.
57784         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57785
57786 2008-08-31  Bruno Haible  <bruno@clisp.org>
57787
57788         Don't override previously installed signal handlers.
57789         * lib/fatal-signal.c (saved_sigactions): New variable.
57790         (uninstall_handlers): Reset the signal to the saved handler, not
57791         to SIG_DFL (except when ignored).
57792         (install_handlers): Save the previous handlers.
57793
57794 2008-08-30  Bruno Haible  <bruno@clisp.org>
57795
57796         * gnulib-tool (func_reset_sigpipe): New function.
57797         (func_get_automake_snippet, func_modules_transitive_closure,
57798         func_import): Invoke it before a join command that reads from stdin,
57799         to avoid "echo: write error: Broken pipe" error messages on stderr.
57800         Reported by Sam Steingold <sds@gnu.org>.
57801
57802 2008-08-30  Bruno Haible  <bruno@clisp.org>
57803
57804         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57805         Code copied from m4/open.m4.
57806         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57807         access and the filename ends in a slash. Code copied from lib/open.c.
57808         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57809         * tests/test-fopen.c (main): Check against bug with trailing slash.
57810
57811 2008-08-29  Bruno Haible  <bruno@clisp.org>
57812
57813         Avoid some "gcc -pedantic" warnings.
57814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57815         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57816         * lib/dirent.in.h: Likewise.
57817         * lib/fcntl.in.h: Likewise.
57818         * lib/float.in.h: Likewise.
57819         * lib/iconv.in.h: Likewise.
57820         * lib/inttypes.in.h: Likewise.
57821         * lib/locale.in.h: Likewise.
57822         * lib/math.in.h: Likewise.
57823         * lib/netinet_in.in.h: Likewise.
57824         * lib/search.in.h: Likewise.
57825         * lib/signal.in.h: Likewise.
57826         * lib/stdarg.in.h: Likewise.
57827         * lib/stdint.in.h: Likewise.
57828         * lib/stdio.in.h: Likewise.
57829         * lib/stdlib.in.h: Likewise.
57830         * lib/string.in.h: Likewise.
57831         * lib/strings.in.h: Likewise.
57832         * lib/sys_select.in.h: Likewise.
57833         * lib/sys_socket.in.h: Likewise.
57834         * lib/sys_stat.in.h: Likewise.
57835         * lib/sys_time.in.h: Likewise.
57836         * lib/sysexits.in.h: Likewise.
57837         * lib/time.in.h: Likewise.
57838         * lib/unistd.in.h: Likewise.
57839         * lib/wchar.in.h: Likewise.
57840         * lib/wctype.in.h: Likewise.
57841         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57842         * modules/fchdir (Makefile.am): Likewise.
57843         * modules/fcntl (Makefile.am): Likewise.
57844         * modules/float (Makefile.am): Likewise.
57845         * modules/iconv_open (Makefile.am): Likewise.
57846         * modules/inttypes (Makefile.am): Likewise.
57847         * modules/locale (Makefile.am): Likewise.
57848         * modules/math (Makefile.am): Likewise.
57849         * modules/netinet_in (Makefile.am): Likewise.
57850         * modules/search (Makefile.am): Likewise.
57851         * modules/signal (Makefile.am): Likewise.
57852         * modules/stdarg (Makefile.am): Likewise.
57853         * modules/stdint (Makefile.am): Likewise.
57854         * modules/stdio (Makefile.am): Likewise.
57855         * modules/stdlib (Makefile.am): Likewise.
57856         * modules/string (Makefile.am): Likewise.
57857         * modules/strings (Makefile.am): Likewise.
57858         * modules/sys_select (Makefile.am): Likewise.
57859         * modules/sys_socket (Makefile.am): Likewise.
57860         * modules/sys_stat (Makefile.am): Likewise.
57861         * modules/sys_time (Makefile.am): Likewise.
57862         * modules/sysexits (Makefile.am): Likewise.
57863         * modules/time (Makefile.am): Likewise.
57864         * modules/unistd (Makefile.am): Likewise.
57865         * modules/wchar (Makefile.am): Likewise.
57866         * modules/wctype (Makefile.am): Likewise.
57867         Reported by Reuben Thomas <rrt@sc3d.org>.
57868
57869 2008-08-29  Bruno Haible  <bruno@clisp.org>
57870
57871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57872         any more.
57873
57874 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57875
57876         * MODULES.html.sh (Misc): Add bitrotate.
57877
57878         * modules/bitrotate: New file.
57879
57880         * lib/bitrotate.h: New file.
57881
57882         * modules/bitrotate-tests: New file.
57883
57884         * tests/test-bitrotate.c: New file.
57885
57886         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57887         on the bitrotate module.
57888
57889         * lib/arctwo.c: Use new bitrotate module.
57890
57891 2008-08-29  Jim Meyering  <meyering@redhat.com>
57892
57893         bootstrap: merge changes from coreutils
57894         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57895         of copied files.  Remove a kludge, now that this is fixed.
57896         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57897         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57898         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57899
57900 2008-08-29  Bruno Haible  <bruno@clisp.org>
57901
57902         * MODULES.html.sh: Remove --cvs-urls option.
57903
57904 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57905
57906         maint.mk: adjust to file name change
57907         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57908
57909 2008-08-28  Jim Meyering  <meyering@redhat.com>
57910
57911         * modules/getndelim2 (License): Relicense to LGPLv2+.
57912         Approved by Richard Stallman for the version of 1995, and by
57913         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57914
57915 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57916
57917         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57918         dummy if one is not available.  Do not touch them if
57919         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57920         (getc_maybe_unlocked): New.
57921         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57922
57923 2008-08-26  Eric Blake  <ebb9@byu.net>
57924
57925         doc/INSTALL: resync from autoconf
57926         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57927         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57928         moving...
57929         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57930         * INSTALL: Regenerate.
57931         * INSTALL.ISO: New file.
57932         * INSTALL.UTF-8: Likewise.
57933
57934 2008-08-26  Jim Meyering  <meyering@redhat.com>
57935
57936         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57937         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57938         these definitions conditional, so that they may be overridden, too.
57939
57940 2008-08-26  Bruno Haible  <bruno@clisp.org>
57941
57942         Generate INSTALL file variants with prettier quotes.
57943         * doc/Makefile (INSTALL_PRELUDE): New macro.
57944         (INSTALL): Use it.
57945         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57946
57947 2008-08-26  Bruno Haible  <bruno@clisp.org>
57948
57949         Run makeinfo in an English locale.
57950         * doc/Makefile (MAKEINFO): New variable.
57951
57952 2008-08-26  Bruno Haible  <bruno@clisp.org>
57953
57954         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57955         Suggested by Eric Blake.
57956
57957 2008-08-25  Bruno Haible  <bruno@clisp.org>
57958
57959         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57960
57961 2008-08-25  Eric Blake  <ebb9@byu.net>
57962
57963         c-stack: test that stack overflow can be caught
57964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57965         that platform allows handling stack overflow; at least OS/2 EMX
57966         has sigaltstack, but crashes before transferring control to
57967         handler on stack overflow.
57968         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57969         check for HAVE_STACK_OVERFLOW_HANDLING.
57970         Reported by Elbert Pol.
57971
57972 2008-08-25  Bruno Haible  <bruno@clisp.org>
57973
57974         * doc/posix-functions/strftime.texi: Fix description of strftime
57975         module.
57976
57977 2008-08-24  Bruno Haible  <bruno@clisp.org>
57978
57979         * tests/uniwidth/test-uc_width2.c: New file.
57980         * tests/uniwidth/test-uc_width2.sh: New file.
57981         * modules/uniwidth/width-tests (Files): Add the new files.
57982         (TESTS): Add uniwidth/test-uc_width2.sh.
57983         (TESTS_ENVIRONMENT): New variable.
57984         (check_PROGRAMS): Add test-uc_width2.
57985         (test_uc_width2_SOURCES): New variable.
57986
57987         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57988         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57989         not 0x00AB.
57990         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57991
57992 2008-08-22  Eric Blake  <ebb9@byu.net>
57993
57994         test-lock, test-tls: mention why a test is skipped
57995         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57996         skipped.
57997         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57998
57999         count-one-bits: relax license
58000         * modules/count-one-bits (License): Relicense to LGPLv2+.
58001         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58002
58003 2008-08-22  Andreas Schwab  <schwab@suse.de>
58004
58005         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58006         Remove spurious space in assignment.
58007
58008 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58009
58010         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58011         Paul Eggert <eggert@CS.UCLA.EDU>.
58012
58013 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58014
58015         * modules/gettext: Add m4/threadlib.m4.
58016
58017 2008-08-19  Eric Blake  <ebb9@byu.net>
58018
58019         test-c-stack: fix compilation failure on FreeBSD 5.0
58020         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58021         headers before <sys/resource.h>.
58022         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58023         the bug.
58024         Reported by Nelson H. F. Beebe.
58025
58026         strverscmp: migrate from "strverscmp.h" to <string.h>
58027         * modules/string (Makefile.am): Add new hooks.
58028         * modules/strverscmp (Files): Remove strverscmp.h.
58029         (Depends-on): Add string.
58030         (configure.ac): Add indicator.
58031         (Include): Mention new header.
58032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58033         defaults.
58034         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58035         results.
58036         * lib/strverscmp.h: Delete.
58037         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58038         * tests/test-strverscmp.c (includes): Adjust client.
58039         * lib/check-version.c (includes): Likewise.
58040         * NEWS: Document the change.
58041
58042         strverscmp: add unit test
58043         * modules/strverscmp-tests: New file.
58044         * tests/test-strverscmp.c: Likewise.
58045
58046 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58047
58048         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58049         regarding Windows crypto stuff, from Mono.
58050
58051 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58052
58053         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58054         if present, for intel RND.  Return error on failures.
58055
58056 2008-08-18  Ben Pfaff  <blp@gnu.org>
58057
58058         gitlog-to-changelog: give better diagnostic for failed pipe-open
58059         * build-aux/gitlog-to-changelog: Improve error message: suggest
58060         that the version of Git may be too old.
58061
58062 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58063
58064         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58065         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58066
58067 2008-08-18  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58070         pthread_in_use().
58071
58072 2008-08-18  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/glthread/threadlib.c: Include <pthread.h>.
58075
58076 2008-08-18  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58079         glthread_recursive_lock_* macros.
58080         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58081         Fix syntax error.
58082
58083 2008-08-18  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/glthread/thread.c: Avoid forcing a context switch right after
58086         thread creation.
58087
58088 2008-08-17  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58091         * lib/glthread/thread.h: Provide Win32 specific implementation.
58092         * modules/thread (Files): Add lib/glthread/thread.c.
58093         (Depends-on): Add lock.
58094         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58095
58096 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58097
58098         New module 'yield'.
58099         * modules/yield: New file.
58100         * lib/glthread/yield.h: New file.
58101         * m4/yield.m4: New file.
58102         * MODULES.html.sh (Multithreading): Add yield.
58103
58104 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58105
58106         New module 'thread'.
58107         * modules/thread: New file.
58108         * lib/glthread/thread.h: New file.
58109         * m4/thread.m4: New file.
58110         * MODULES.html.sh (Multithreading): Add thread.
58111
58112 2008-08-17  Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/glthread/lock.h: Include <stdlib.h> always.
58115         * lib/glthread/tls.h: Likewise.
58116         * lib/glthread/cond.h: Likewise.
58117
58118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58119
58120         New module 'cond'.
58121         * modules/cond: New file.
58122         * lib/glthread/cond.h: New file.
58123         * lib/glthread/cond.c: New file.
58124         * m4/cond.m4: New file.
58125         * MODULES.html.sh (Multithreading): Add cond.
58126
58127 2008-08-16  Eric Blake  <ebb9@byu.net>
58128
58129         c-stack: fix regression on Irix 5.3 from 2008-06-21
58130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58131         sa_sigaction...
58132         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58133         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58135         * modules/signal (Makefile.am): Use the value.
58136         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58137         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58138         * doc/posix-headers/signal.texi (signal.h): Document this
58139         portability issue.
58140         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58141         Reported by Tom G. Christensen.
58142
58143 2008-08-17  Bruno Haible  <bruno@clisp.org>
58144
58145         New module 'threadlib'.
58146         * modules/threadlib: New file.
58147         * lib/glthread/threadlib.c: New file, extracted from
58148         lib/glthread/lock.c.
58149         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58150         functions.
58151         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58152         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58153         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58154         macros.
58155         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58156         (gl_DISABLE_THREADS): Remove macro.
58157         * modules/lock (Files): Remove build-aux/config.rpath.
58158         (Depends-on): Remove havelib. Add threadlib.
58159         (configure.ac-early): Remove section.
58160         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58161         * modules/tls (Depends-on): Remove lock. Add threadlib.
58162         (Link): New section, copied from threadlib.
58163         * MODULES.html.sh (Multithreading): Add threadlib.
58164
58165 2008-08-14  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58168         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58169         glthread_rwlock_unlock, glthread_rwlock_destroy,
58170         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58171         glthread_recursive_lock_destroy): Define as macros always.
58172         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58173         glthread_lock_lock.
58174         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58175         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58176         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58177         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58178         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58179         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58180         (glthread_recursive_lock_lock_func): Renamed from
58181         glthread_recursive_lock_lock.
58182         (glthread_recursive_lock_unlock_func): Renamed from
58183         glthread_recursive_lock_unlock.
58184         (glthread_recursive_lock_destroy_func): Renamed from
58185         glthread_recursive_lock_destroy.
58186
58187 2008-08-14  Bruno Haible  <bruno@clisp.org>
58188
58189         * lib/glthread/lock.h: Renamed from lib/lock.h.
58190         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58191         * lib/glthread/tls.h: Renamed from lib/tls.h.
58192         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58193         * lib/fstrcmp.c: Update includes.
58194         * lib/strsignal.c: Update includes.
58195         * modules/lock (Files, Makefile.am): Update.
58196         (Include): Change to "glthread/lock.h".
58197         * modules/tls (Files, Makefile.am): Update.
58198         (Include): Change to "glthread/tls.h".
58199         * tests/test-lock.c: Update includes.
58200         * tests/test-tls.c: Update includes.
58201         * NEWS: Mention the renamed header files.
58202
58203 2008-08-11  Jim Meyering  <meyering@redhat.com>
58204
58205         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58206
58207 2008-08-11  Eric Blake  <ebb9@byu.net>
58208
58209         test-c-stack: avoid C99-ism
58210         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58211         before statement.
58212         Reported by Alain Guibert.
58213
58214 2008-08-10  Jim Meyering  <meyering@redhat.com>
58215
58216         ensure that return value of uinttostr et al are not ignored
58217         * lib/inttostr.h (__GNUC_PREREQ): Define.
58218         (__attribute_warn_unused_result__): Define.
58219         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58220
58221 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58222
58223         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58224         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58225
58226 2008-08-07  Jim Meyering  <meyering@redhat.com>
58227
58228         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58229
58230         * modules/mkstemp (License): Relicense under LGPLv2+.
58231         * modules/tempname (License): Likewise.
58232
58233 2008-08-06  Bruno Haible  <bruno@clisp.org>
58234
58235         * lib/poll.c (poll): Further micro-optimization.
58236
58237 2008-08-06  Jim Meyering  <meyering@redhat.com>
58238
58239         inet_pton.c: use locale-independent tolower
58240         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58241         (inet_pton6): Use c_tolower rather than tolower.
58242         * modules/inet_pton (Depends-on): Add c-ctype.
58243
58244 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58245
58246         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58247         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58248
58249 2008-08-06  Jim Meyering  <meyering@redhat.com>
58250
58251         * modules/inet_pton (License): Relicense under LGPLv2+.
58252
58253 2008-08-03  Bruno Haible  <bruno@clisp.org>
58254
58255         Additional non-aborting API for lock and tls.
58256         * lib/lock.h: Include <errno.h>.
58257         (glthread_lock_init): New macro/function.
58258         (gl_lock_init): Define as wrapper around glthread_lock_init.
58259         (glthread_lock_lock): New macro/function.
58260         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58261         (glthread_lock_unlock): New macro/function.
58262         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58263         (glthread_lock_destroy): New macro/function.
58264         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58265         (glthread_rwlock_init): New macro/function.
58266         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58267         (glthread_rwlock_rdlock): New macro/function.
58268         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58269         (glthread_rwlock_wrlock): New macro/function.
58270         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58271         (glthread_rwlock_unlock): New macro/function.
58272         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58273         (glthread_rwlock_destroy): New macro/function.
58274         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58275         (glthread_recursive_lock_init): New macro/function.
58276         (gl_recursive_lock_init): Define as wrapper around
58277         glthread_recursive_lock_init.
58278         (glthread_recursive_lock_lock): New macro/function.
58279         (gl_recursive_lock_lock): Define as wrapper around
58280         glthread_recursive_lock_lock.
58281         (glthread_recursive_lock_unlock): New macro/function.
58282         (gl_recursive_lock_unlock): Define as wrapper around
58283         glthread_recursive_lock_unlock.
58284         (glthread_recursive_lock_destroy): New macro/function.
58285         (gl_recursive_lock_destroy): Define as wrapper around
58286         glthread_recursive_lock_destroy.
58287         (glthread_once): New macro/function.
58288         (gl_once): Define as wrapper around glthread_once.
58289         Update function declarations.
58290         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58291         glthread_rwlock_init. Return error code.
58292         (glthread_rwlock_rdlock_multithreaded): Renamed from
58293         glthread_rwlock_rdlock. Return error code.
58294         (glthread_rwlock_wrlock_multithreaded): Renamed from
58295         glthread_rwlock_wrlock. Return error code.
58296         (glthread_rwlock_unlock_multithreaded): Renamed from
58297         glthread_rwlock_unlock. Return error code.
58298         (glthread_rwlock_destroy_multithreaded): Renamed from
58299         glthread_rwlock_destroy. Return error code.
58300         (glthread_recursive_lock_init_multithreaded): Renamed from
58301         glthread_recursive_lock_init. Return error code.
58302         (glthread_recursive_lock_lock_multithreaded): Renamed from
58303         glthread_recursive_lock_lock. Return error code.
58304         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58305         glthread_recursive_lock_unlock. Return error code.
58306         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58307         glthread_recursive_lock_destroy. Return error code.
58308         (glthread_once_call): Make static.
58309         (glthread_once_multithreaded): Renamed from glthread_once.
58310         * lib/tls.h: Include <errno.h>.
58311         (glthread_tls_key_init): New macro/function.
58312         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58313         (glthread_tls_set): New macro/function.
58314         (gl_tls_set): Define as wrapper around glthread_tls_set.
58315         (glthread_tls_key_destroy): New macro/function.
58316         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58317         Update function declarations.
58318         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58319         glthread_tls_get.
58320         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58321
58322 2008-08-04  Eric Blake  <ebb9@byu.net>
58323
58324         gnumakefile: use space, not TAB, outside of targets
58325         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58326
58327 2008-08-02  Jim Meyering  <meyering@redhat.com>
58328
58329         getdate.y: avoid locale-dependent date parsing failure
58330         In Turkish locales, getdate would fail to recognize keywords
58331         containing a lowercase "i".  The solution is not to rely on
58332         locale-sensitive case-conversion.
58333         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58334         (lookup_word): Use c_toupper in place of toupper.
58335         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58336         Reported by Vefa Bicakci <bicave@superonline.com> in
58337         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58338         * modules/getdate (Depends-on): Add c-ctype.
58339
58340 2008-08-02  Bruno Haible  <bruno@clisp.org>
58341
58342         * gnulib-tool (func_import): When updating or creating a .gitignore
58343         file, prepend each added line with a slash, and ignore leading slashes
58344         from the existing lines.
58345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58346
58347 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58348
58349         Portability fix for GNU make 3.79.1.
58350         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58351         versions do not understand.
58352
58353 2008-08-01  Bruno Haible  <bruno@clisp.org>
58354
58355         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58356         * tests/test-isnanf.h (zero): New variable.
58357         (main): Avoid literal -0.0f.
58358         * tests/test-isnand.h (zero): New variable.
58359         (main): Avoid literal -0.0.
58360         * tests/test-isnanl.h (zero): New variable.
58361         (main): Avoid literal -0.0L.
58362         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58363         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58364         -0.0, -0.0L.
58365         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58366         (test_signbitd): Avoid literal -0.0.
58367         (test_signbitl): Avoid literal -0.0L.
58368         * tests/test-ceilf1.c (zero): New variable.
58369         (main): Avoid literal -0.0f.
58370         * tests/test-ceill.c (zero): New variable.
58371         (main): Avoid literal -0.0L.
58372         * tests/test-floorf1.c (zero): New variable.
58373         (main): Avoid literal -0.0f.
58374         * tests/test-floorl.c (zero): New variable.
58375         (main): Avoid literal -0.0L.
58376         * tests/test-roundf1.c (zero): New variable.
58377         (main): Avoid literal -0.0f.
58378         * tests/test-round1.c (zero): New variable.
58379         (main): Avoid literal -0.0.
58380         * tests/test-roundl.c (zero): New variable.
58381         (main): Avoid literal -0.0L.
58382         * tests/test-truncf1.c (zero): New variable.
58383         (main): Avoid literal -0.0f.
58384         * tests/test-trunc1.c (zero): New variable.
58385         (main): Avoid literal -0.0.
58386         * tests/test-truncl.c (zero): New variable.
58387         (main): Avoid literal -0.0L.
58388         * tests/test-frexp.c (zero): New variable.
58389         (main): Avoid literal -0.0.
58390         * tests/test-frexpl.c (zero): New variable.
58391         (main): Avoid literal -0.0L.
58392         * tests/test-ldexpl.c (zero): New variable.
58393         (main): Avoid literal -0.0L.
58394         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58395         (zerod, zerol): New variables.
58396         (test_function): Avoid literals -0.0, -0.0L.
58397         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58398         (zerod, zerol): New variables.
58399         (test_function): Avoid literals -0.0, -0.0L.
58400         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58401         (zerod, zerol): New variables.
58402         (test_function): Avoid literals -0.0, -0.0L.
58403         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58404         (zerod, zerol): New variables.
58405         (test_function): Avoid literals -0.0, -0.0L.
58406         * tests/test-strtod.c (zero): New variable.
58407         (main): Avoid literal -0.0.
58408         Reported by Jonathan C. Patschke <jp@centtech.com>.
58409
58410 2008-07-31  Jim Meyering  <meyering@redhat.com>
58411
58412         sha256.h: correct definition of SHA224_DIGEST_SIZE
58413         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58414         Reported by Paulie Pena IV <paulie4@gmail.com>.
58415         Define as 224 / 8, rather than as a literal.
58416         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58417         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58418         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58419
58420 2008-07-31  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58423         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58424         Reported by Jonathan Patschke <jp@centtech.com>.
58425
58426 2008-07-31  Bruno Haible  <bruno@clisp.org>
58427
58428         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58429         Reported by Paolo Bonzini <bonzini@gnu.org>.
58430
58431 2008-07-30  Eric Blake  <ebb9@byu.net>
58432
58433         test-strtod: allow compilation without -lm
58434         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58435         Reported by Dennis Clarke <blastwave@gmail.com>.
58436
58437 2008-07-28  Jim Meyering  <meyering@redhat.com>
58438
58439         bootstrap: work also when there are no .po files in po/
58440         * build-aux/bootstrap (update_po_files): Complete the change
58441         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58442
58443 2008-07-27  Jim Meyering  <meyering@redhat.com>
58444
58445         * users.txt: Add zile.
58446
58447 2008-07-26  Ben Pfaff  <blp@gnu.org>
58448
58449         Add missing dependencies on new m4/exponent[fdl].m4 files.
58450         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58451         * modules/isnand-nolibm: Add m4/exponentd.m4.
58452         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58453         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58454         m4/isnan[fdl].m4, because the macros actually used moved.
58455         Reported by Jim Meyering.
58456
58457 2008-07-14  Ben Pfaff  <blp@gnu.org>
58458
58459         Add isinf module.
58460         * lib/isinf.c: New file.
58461         * lib/math.in.h: Define isinf macro if we have decided to replace
58462         it.
58463         * m4/isinf.m4: New file.
58464         * m4/math_h.m4: Initialize and substitute variables for isinf
58465         module.
58466         * modules/isinf: New file.
58467         * modules/isinf-tests: New file.
58468         * modules/math: Add substitutions for new module.
58469         * tests/test-isinf.c: New file.
58470         * doc/posix-functions/isinf.texi: Mention new module.
58471         * MODULES.html.sh: Mention new module.
58472
58473 2008-07-14  Ben Pfaff  <blp@gnu.org>
58474
58475         Factor out some macros for use by additional modules.
58476         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58477         exponentf.m4.
58478         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58479         exponentd.m4.
58480         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58481         file exponentl.m4.
58482         * m4/exponentf.m4: New file.
58483         * m4/exponentd.m4: New file.
58484         * m4/exponentl.m4: New file.
58485         * modules/isnanf: Use new file m4/exponentf.m4.
58486         * modules/isnand: Use new file m4/exponentd.m4.
58487         * modules/isnanl: Use new file m4/exponentl.m4.
58488
58489 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58490
58491         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58492         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58493         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58494         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58495
58496         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58497         readlink on platforms without PATH_MAX.
58498
58499 2008-07-21  Eric Blake  <ebb9@byu.net>
58500
58501         Warn, not fail, on stale version.
58502         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58503
58504         Don't allow installation with stale devel version number.
58505         * top/GNUmakefile (_is-install-target): New macro.
58506         (_curr-ver): Forbid installation with stale version number.
58507
58508 2008-07-20  Bruno Haible  <bruno@clisp.org>
58509
58510         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58511         TESTS_ENVIRONMENT.
58512         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58513
58514 2008-07-20  Bruno Haible  <bruno@clisp.org>
58515
58516         * lib/c-stack.h (c_stack_action): Add documentation.
58517         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58518
58519 2008-07-20  Bruno Haible  <bruno@clisp.org>
58520
58521         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58522         * modules/readlink (License): Likewise.
58523
58524 2008-07-17  Eric Blake  <ebb9@byu.net>
58525
58526         * modules/c-stack (Link): Fix typo.
58527
58528         Make c-stack use libsigsegv, when available.
58529         * modules/c-stack (Depends-on): Add libsigsegv.
58530         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58531         needed.
58532         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58533         (segv_handler, overflow_handler, c_stack_action)
58534         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58535         implementation when libsigsegv is available, but only when using
58536         the library is necessary.
58537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58538         comment, explaining why XSI check fails on Linux.
58539         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58540         * tests/test-c-stack2.sh: Tweak skip message.
58541         * NEWS: Document new link-time requirements.
58542
58543 2008-07-16  Eric Blake  <ebb9@byu.net>
58544
58545         c-stack: Expose false positives when not using libsigsegv.
58546         * modules/c-stack-tests (Files): Expand test.
58547         * tests/test-c-stack.c (main): Add means to conditionally trigger
58548         non-overflow SIGSEGV.
58549         * tests/test-c-stack2.sh: New file.
58550
58551 2008-07-14  Bruno Haible  <bruno@clisp.org>
58552
58553         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58554         Reported by Eric Blake.
58555
58556 2008-07-14  Sam Steingold  <sds@gnu.org>
58557             Bruno Haible  <bruno@clisp.org>
58558
58559         New module libsigsegv.
58560         * modules/libsigsegv: New file.
58561         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58562         modifications.
58563         * MODULES.html.sh (Signal handling): New section.
58564
58565 2008-07-14  Bruno Haible  <bruno@clisp.org>
58566
58567         * modules/unictype/ctype-* (Description): Add the word "function".
58568         Improves the resulting doc in MODULES.html.
58569
58570 2008-07-12  Ben Pfaff  <blp@gnu.org>
58571
58572         Add longlong module.
58573         * modules/longlong: New file.
58574
58575 2008-07-12  Bruno Haible  <bruno@clisp.org>
58576
58577         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58578         to empty.
58579
58580 2008-07-10  Ben Pfaff  <blp@gnu.org>
58581
58582         Add isnan module.
58583         * doc/posix-functions/isnan.texi: Mention new module.
58584         * lib/math.in.h: Define isnan macro if we have decided to replace
58585         it.
58586         * m4/isnan.m4: New file.
58587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58588         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58589         also.
58590         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58591         redundancy.
58592         * m4/math_h.m4: Initialize and substitute variables for isnan
58593         module.
58594         * modules/isnan: New file.
58595         * modules/isnan-tests: New file.
58596         * modules/math: Add substitutions for new module.
58597         * tests/test-isnan.c: New file.
58598         * MODULES.html.sh: Mention new module.
58599
58600 2008-07-10  Ben Pfaff  <blp@gnu.org>
58601
58602         Add isnanf module.
58603         * lib/isnanf.m4: New file.
58604         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58605         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58606         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58607         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58608         * modules/isnanf: New file.
58609         * modules/isnanf-tests: New file.
58610         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58611         files.
58612         * tests/test-isnanf-nolibm.c: factored most of its contents into
58613         new file tests/test-isnanf.h.
58614         * tests/test-isnanf.h: New file.
58615         * tests/test-isnanf.c: New file.
58616         * MODULES.html.sh: Mention new module.
58617         * doc/glibc-functions/isnanf.texi: Mention new module.
58618
58619 2008-07-10  Ben Pfaff  <blp@gnu.org>
58620
58621         Add isnand module.
58622         * lib/isnand.h: New file.
58623         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58624         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58625         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58626         functionality also.
58627         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58628         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58629         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58630         * modules/isnand: New file.
58631         * modules/isnand-tests: New file.
58632         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58633         files.
58634         * tests/test-isnand-nolibm.c: factored most of its contents into
58635         new file tests/test-isnand.h.
58636         * tests/test-isnand.h: New file.
58637         * tests/test-isnand.c: New file.
58638         * MODULES.html.sh: Mention new module.
58639
58640 2008-07-10  Ben Pfaff  <blp@gnu.org>
58641
58642         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58643         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58644         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58645         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58646         * modules/isnanf-nolibm: Update references to renamed files.
58647         * modules/isnand-nolibm: Likewise.
58648         * modules/isnanf-nolibm-tests: Likewise.
58649         * modules/isnand-nolibm-tests: Likewise.
58650         * lib/frexp.c: Likewise.
58651         * lib/isfinite.c: Likewise.
58652         * lib/signbitd.c: Likewise.
58653         * lib/signbitf.c: Likewise.
58654         * lib/vasnprintf.c: Likewise.
58655         * tests/test-ceilf1.c: Likewise.
58656         * tests/test-ceilf2.c: Likewise.
58657         * tests/test-floorf1.c: Likewise.
58658         * tests/test-floorf2.c: Likewise.
58659         * tests/test-frexp.c: Likewise.
58660         * tests/test-round1.c: Likewise.
58661         * tests/test-round2.c: Likewise.
58662         * tests/test-roundf1.c: Likewise.
58663         * tests/test-strtod.c: Likewise.
58664         * tests/test-trunc1.c: Likewise.
58665         * tests/test-trunc2.c: Likewise.
58666         * tests/test-truncf1.c: Likewise.
58667         * tests/test-truncf2.c: Likewise.
58668         * NEWS: Mention the renamed header files.
58669
58670 2008-07-11  Jim Meyering  <meyering@redhat.com>
58671
58672         vc-list-files: make the last-resort awk code more portable
58673         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58674         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58675         does not support it.
58676
58677 2008-07-10  Eric Blake  <ebb9@byu.net>
58678
58679         Work with tar's bootstrap.
58680         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58681         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58682         an m4 comment.
58683
58684 2008-07-09  Jim Meyering  <meyering@redhat.com>
58685
58686         posix-shell.m4: fix typo that made this test malfunction
58687         * m4/posix-shell.m4: Remove capitalization in variable name.
58688
58689 2008-07-08  Bruno Haible  <bruno@clisp.org>
58690
58691         * m4/onceonly.m4: Update comments.
58692         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58693
58694 2008-07-04  Jim Meyering  <meyering@redhat.com>
58695
58696         * users.txt: Add vc-dwim.
58697         (bison, coreutils): Use the gitweb URL.
58698
58699 2008-07-03  Jim Meyering  <meyering@redhat.com>
58700
58701         * users.txt: Add libffcall.  From Sam Steingold.
58702
58703 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58704
58705         getdate.y: do not ignore TZ with relative day, month or year offset
58706         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58707         relative-date-handling, since otherwise, the latter would clobber the
58708         sole output (an updated Start value) of the tz-handling block.
58709         * tests/test-getdate.c: Tests for the fix
58710
58711 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58712
58713         Recognize 'foo_LIBRARIES += libgnu.a'.
58714         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58715         makefile snippet has already specified an installation location,
58716         also using '+='.
58717
58718 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58719
58720         getdate.y: factor out common actions
58721         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58722         Use them in place of open-coded actions.
58723
58724 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58725
58726         Add self-test for getdate module.
58727         * modules/getdate-tests: New file.
58728         * tests/test-getdate.c: New file.
58729
58730 2008-06-29  Bruno Haible  <bruno@clisp.org>
58731
58732         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58733         .gitignore.
58734         Reported by Sylvain Beucler <beuc@beuc.net>.
58735
58736 2008-06-29  Bruno Haible  <bruno@clisp.org>
58737
58738         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58739         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58740
58741 2008-06-29  Bruno Haible  <bruno@clisp.org>
58742
58743         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58744         EXTRA_DIST.
58745         Reported by Sylvain Beucler <beuc@beuc.net>.
58746
58747 2008-06-26  Jim Meyering  <meyering@redhat.com>
58748
58749         make several modules depend on the "open" module
58750         This provides slightly increased consistency when opening-for-write
58751         the name of a non-directory spelled with a trailing slash.
58752         * modules/chdir-safer: Likewise.
58753         * modules/chown: Likewise.
58754         * modules/clean-temp: Likewise.
58755         * modules/copy-file: Likewise.
58756         * modules/fchdir: Likewise.
58757         * modules/fcntl-safer: Likewise.
58758         * modules/pipe: Likewise.
58759         * modules/utime: Likewise.
58760         Prompted by Eric Blake and Bruno Haible.
58761
58762 2008-06-24  Andreas Schwab  <schwab@suse.de>
58763
58764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58765         literals can be used as initializers for global variables.
58766
58767 2008-06-23  Eric Blake  <ebb9@byu.net>
58768
58769         Make gnulib-cache.m4 easier to diff.
58770         * gnulib-tool (func_import): Allow newlines when reading cached
58771         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58772
58773 2008-06-23  Bruno Haible  <bruno@clisp.org>
58774
58775         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58776         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58778         m4/signalblocking.m4.
58779         (gl_PREREQ_SIGACTION): Don't invoke it.
58780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58781         gl_PREREQ_SIG_HANDLER_H.
58782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58783         Don't check for sigaction here.
58784
58785 2008-06-23  Bruno Haible  <bruno@clisp.org>
58786
58787         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58788         (install_handlers): Don't set the SA_RESETHAND flag.
58789
58790 2008-06-23  Bruno Haible  <bruno@clisp.org>
58791
58792         * m4/sigaction.m4: Comment fixes.
58793         * lib/signal.in.h: Likewise.
58794
58795 2008-06-23  Eric Blake  <ebb9@byu.net>
58796
58797         Fix typo.
58798         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58799
58800         Avoid SA_ namespace.
58801         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58802         Reported by Ralf Wildenhues.
58803
58804         Avoid test failure due to SA_RESTORER.
58805         * tests/test-sigaction.c (SA_MASK): New macro.
58806         (main): Avoid failing due to extension flags being set.
58807         Reported by Jim Meyering.
58808
58809         Revert use of sig-handler.h in sigprocmask.c.
58810         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58811         it requires the existence of struct sigaction.
58812         * lib/sigprocmask.c (handler_t): Restore typedef.
58813         (rpl_signal, old_handlers): Use local type.
58814
58815 2008-06-22  Bruno Haible  <bruno@clisp.org>
58816
58817         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58818         conditionally.
58819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58820
58821 2008-06-22  Bruno Haible  <bruno@clisp.org>
58822
58823         * doc/posix-functions/siginterrupt.texi: Move note.
58824
58825         * lib/signal.in.h (SA_RESTART): New macro.
58826         * lib/sigaction.c: Update comment.
58827
58828         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58829
58830         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58831         (gl_PREREQ_SIGPROCMASK): Invoke it.
58832         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58833
58834         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58835
58836         * lib/sigprocmask.c: Update a comment.
58837
58838 2008-06-21  Eric Blake  <ebb9@byu.net>
58839
58840         Use sigaction module rather than signal().
58841         * modules/c-stack (Depends-on): Add sigaction.
58842         * modules/fatal-signal (Depends-on): Likewise.
58843         * modules/nanosleep (Depends-on): Likewise.
58844         * modules/sigprocmask (Files): Add sig-handler.h.
58845         * modules/sigaction (Files): Likewise.
58846         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58847         Eggert.
58848         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58849         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58850         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58851         (init_fatal_signals): Likewise.
58852         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58853         (siginterrupt): Delete fallback.
58854         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58855         instead.
58856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58857         siginterrupt.
58858
58859         New module sigaction, for mingw.
58860         * modules/sigaction: New module...
58861         * modules/sigaction-tests: ...and its test.
58862         * m4/sigaction.m4: New file.
58863         * lib/sigaction.c: Likewise.
58864         * tests/test-sigaction.c: Likewise.
58865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58866         * modules/signal (Makefile.am): Likewise.
58867         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58868         needed.
58869         * doc/posix-headers/signal.texi (signal.h): Mention provided
58870         types.
58871         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58872         that sigaction is preferable.
58873         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58874         module.
58875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58876         sigaction.
58877
58878         Improve robustness of sigprocmask by overriding signal.
58879         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58880         is in use.
58881         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58882         (SIGKILL, SIGSTOP): Provide fallbacks.
58883         (rpl_signal): Implement.
58884         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58885         signal can be called inside handlers.
58886
58887         Fix nanosleep module on mingw.
58888         * modules/nanosleep (Depends-on): Add sys_select.
58889         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58890
58891         Fix licensing of sigprocmask.
58892         * modules/raise (License): Relicense as LGPL.
58893
58894 2008-06-21  Bruno Haible  <bruno@clisp.org>
58895
58896         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58897         result if it contains question marks.
58898         Reported by Michael Geng <linux@michaelgeng.de>.
58899
58900 2008-06-19  Bruno Haible  <bruno@clisp.org>
58901
58902         Fix CVS-ism.
58903         * doc/gnulib.texi: Include updated-stamp.texi.
58904         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58905         (updated-stamp.texi): New rule.
58906         (gnulib.info): Depend on it.
58907         * doc/.gitignore: Add updated-stamp.texi.
58908         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58909
58910 2008-06-19  Bruno Haible  <bruno@clisp.org>
58911
58912         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58913         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58914
58915 2008-06-19  Eric Blake  <ebb9@byu.net>
58916
58917         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58918         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58919         Reported by Stepan Kasal.
58920
58921 2008-06-18  Bruno Haible  <bruno@clisp.org>
58922
58923         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58924         Reported by Eric Blake.
58925
58926 2008-06-18  Eric Blake  <ebb9@byu.net>
58927
58928         Work around cygwin 1.5.25 strsignal bug.
58929         * tests/test-strsignal.c: Allow for const char *.
58930         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58931
58932 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58933
58934         * users.txt: Update URL to article and add author/date
58935         information.
58936
58937 2008-06-17  Bruno Haible  <bruno@clisp.org>
58938
58939         New macro gl_DISABLE_THREADS.
58940         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58941         if the user did not pass --enable-threads or --disable-threads option.
58942         (gl_DISABLE_THREADS): New macro.
58943         Reported by Eric Blake <ebb9@byu.net>.
58944
58945 2008-06-17  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58948         when the macro ignores it.
58949         Based on a patch by Eric Blake <ebb9@byu.net>.
58950
58951 2008-06-17  Bruno Haible  <bruno@clisp.org>
58952
58953         * modules/tls (License): Change to LGPLv2+.
58954         Reported by Eric Blake.
58955
58956 2008-06-17  Eric Blake  <ebb9@byu.net>
58957
58958         Simplify c-stack prerequisites.
58959         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58961         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58962         check.
58963         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58964         <sys/resource.h>.
58965
58966         Move c-stack test into testsuite.
58967         * modules/c-stack-tests: New file.
58968         * lib/c-stack.c [DEBUG]: Move test program...
58969         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58970         fail test if sigaltstack is lacking.
58971         * tests/test-c-stack.sh: New driver file.
58972
58973 2008-06-16  Eric Blake  <ebb9@byu.net>
58974
58975         Use raise module consistently.
58976         * modules/fatal-signal (Depends-on): Add raise.
58977         * modules/sigprocmask (Depends-on): Likewise.
58978         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58979         * lib/sigprocmask.c (sigprocmask): Likewise.
58980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58981         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58982
58983         Fix compliance bug in sigpending.
58984         * lib/sigprocmask.c (sigpending): Return pending array via
58985         parameter, not return value.
58986
58987 2008-06-14  Eric Blake  <ebb9@byu.net>
58988
58989         Improve obstack-printf test code.
58990         * tests/test-obstack-printf.c (test_function): Fix comment, and
58991         simplify usage of obstack_* in macros.  Add a test for coverage.
58992         Reported by Bruno Haible.
58993
58994 2008-06-14  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58997         array size as a constant, not as a const variable.
58998         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58999         AC_USE_SYSTEM_EXTENSIONS.
59000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59001         Test whether the obstack_printf function actually exists.
59002         * modules/obstack-printf (Depends-on): Add extensions.
59003         (Include): Remove obstack.h.
59004         * modules/obstack-printf-posix (Depends-on): Add extensions.
59005         (Include): Remove obstack.h.
59006
59007 2008-06-13  Eric Blake  <ebb9@byu.net>
59008
59009         Add obstack-printf and obstack-printf-posix modules.
59010         * modules/obstack-printf: New file.
59011         * modules/obstack-printf-posix: Likewise.
59012         * MODULES.html.sh (Misc): Mention them.
59013         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59014         Likewise.
59015         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59016         Likewise.
59017         * modules/stdio (Makefile.am): Accomodate new modules.
59018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59019         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59020         Declare.
59021         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59022         functions.
59023         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59024         (gl_REPLACE_OBSTACK_PRINTF): New macros
59025         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59026         * tests/test-obstack-printf.c: New file.
59027         * modules/obstack-printf-tests: Likewise.
59028         * modules/obstack-printf-posix-tests: Likewise.
59029
59030 2008-06-11  Bruno Haible  <bruno@clisp.org>
59031
59032         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59033         * lib/open.c: Include errno.h.
59034         (open): Fail when attempting to write to a file that has a trailing
59035         slash.
59036         * tests/test-open.c (main): Test against trailing slash bug.
59037         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59038
59039 2008-06-10  Bruno Haible  <bruno@clisp.org>
59040
59041         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59042         for $? to work inside the trap command, with various /bin/sh-s.
59043         * tests/test-vc-list-files-cvs.sh: Likewise.
59044
59045 2008-06-10  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/acl-internal.h: Don't include gettext.h here.
59048         * lib/set-mode-acl.c: Include gettext.h here.
59049         * lib/copy-acl.c: Likewise.
59050
59051 2008-06-10  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59054         * lib/wait-process.c (wait_subprocess): Likewise.
59055         * lib/execute.h (execute): Add termsigp argument.
59056         * lib/execute.c (execute): Likewise.
59057         * lib/csharpcomp.c (compile_csharp_using_pnet,
59058         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59059         * lib/csharpexec.c (execute_csharp_using_pnet,
59060         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59061         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59062         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59063         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59064         is_jikes_present): Update.
59065         * lib/javaexec.c (execute_java_class): Update.
59066         * lib/javaversion.c (execute_and_read_line): Update.
59067         * NEWS: Document the changes.
59068         Reported by Eric Blake.
59069
59070 2008-06-10  Eric Blake  <ebb9@byu.net>
59071
59072         Add missing include.
59073         * tests/test-strstr.c (includes): Add <signal.h>.
59074         * tests/test-strcasestr.c (includes): Likewise.
59075         * tests/test-memmem.c (includes): Likewise.
59076
59077 2008-06-10  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/wait-process.c (wait_subprocess): Add an assertion.
59080
59081 2008-06-10  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59084
59085 2008-06-10  Bruno Haible  <bruno@clisp.org>
59086
59087         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59088         using alarm().
59089         * tests/test-strcasestr.c (main): Likewise.
59090         * tests/test-strstr.c (main): Likewise.
59091
59092 2008-06-09  Bruno Haible  <bruno@clisp.org>
59093
59094         Work around the Solaris 10 ACE ACLs ABI change.
59095         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59096         declare if ACL_NO_TRIVIAL is present.
59097         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59098         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59099         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59100         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59101         define if ACL_NO_TRIVIAL is present.
59102         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59103         and use the current ABI.
59104         (file_has_acl): Use same #if condition as elsewhere.
59105         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59106         in use, and use the current ABI.
59107         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59108         Reported by Jim Meyering.
59109
59110 2008-06-09  Eric Blake  <ebb9@byu.net>
59111
59112         Work around environments that (stupidly) ignore SIGALRM.
59113         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59114         before using alarm().
59115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59117         Reported by Ian Beckwith <ianb@erislabs.net>.
59118
59119         Produce autobuild blurb earlier in log.
59120         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59121
59122 2008-06-09  Jim Meyering  <meyering@redhat.com>
59123         and Ondřej Vašík  <ovasik@redhat.com>
59124
59125         utimens.c: correct kernel bug work-around
59126         Ondřej Vašík found that the invalid return value of 280 indicates
59127         failure, not success, and the kernel bug we're trying to work
59128         around affects not just the utimensat call, but also the fallback
59129         futimens call.
59130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59131         not success.
59132         [HAVE_FUTIMENS]: Use the same work-around, here.
59133
59134 2008-06-09  Jim Meyering  <meyering@redhat.com>
59135
59136         add more guards around definition of ACE_-related code
59137         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59138         ALLOW and ACE_OWNER are also defined.
59139
59140 2008-06-08  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/acl-internal.h: Add me as co-author.
59143         * lib/file-has-acl.c: Likewise.
59144         * lib/set-mode-acl.c: Likewise.
59145         * lib/copy-acl.c: Likewise.
59146
59147 2008-06-08  Bruno Haible  <bruno@clisp.org>
59148
59149         Add support for AIX ACLs.
59150         * lib/acl-internal.h (acl_nontrivial): New declaration.
59151         * lib/file-has-acl.c (acl_nontrivial): New function.
59152         (file_has_acl): Add implementation using AIX 4 ACL API.
59153         * lib/set-mode-acl.c (qset_acl): Likewise.
59154         * lib/copy-acl.c (qcopy_acl): Likewise.
59155
59156 2008-06-08  Bruno Haible  <bruno@clisp.org>
59157
59158         Add support for HP-UX ACLs.
59159         * lib/acl-internal.h (acl_nontrivial): New declaration.
59160         * lib/file-has-acl.c (acl_nontrivial): New function.
59161         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59162         * lib/set-mode-acl.c (qset_acl): Likewise.
59163         * lib/copy-acl.c (qcopy_acl): Likewise.
59164
59165 2008-06-08  Bruno Haible  <bruno@clisp.org>
59166
59167         Add support for Cygwin ACLs.
59168         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59169         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59170         the chmod_or_fchmod call.
59171         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59172
59173 2008-06-08  Bruno Haible  <bruno@clisp.org>
59174
59175         Fix bug with setuid modes in Solaris 10+ code.
59176         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59177         succeeded, when the mode contains some special bits.
59178
59179 2008-06-08  Bruno Haible  <bruno@clisp.org>
59180
59181         Add support for Solaris 7..10 ACLs.
59182         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59183         declarations.
59184         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59185         functions.
59186         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59187         * lib/set-mode-acl.c (qset_acl): Likewise.
59188         * lib/copy-acl.c (qcopy_acl): Likewise.
59189
59190 2008-06-08  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59193         declaration.
59194         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59195         (acl_access_nontrivial): Remove MacOS X case.
59196         (file_has_acl): Use acl_extended_nontrivial.
59197         * lib/copy-acl.c (qcopy_acl): Likewise.
59198
59199 2008-06-08  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59202
59203 2008-06-08  Jim Meyering  <meyering@redhat.com>
59204
59205         * modules/acl (Maintainer): Add Bruno Haible.
59206
59207 2008-06-07  Bruno Haible  <bruno@clisp.org>
59208
59209         Improve support for Tru64 ACLs.
59210         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59211         ACL on OSF/1.
59212
59213 2008-06-07  Bruno Haible  <bruno@clisp.org>
59214
59215         Add support for MacOS X ACLs.
59216         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59217         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59218         * lib/set-mode-acl.c (qset_acl): Likewise.
59219         * lib/copy-acl.c (qcopy_acl): Likewise.
59220
59221 2008-06-07  Bruno Haible  <bruno@clisp.org>
59222
59223         Fix memory leak introduced on 2008-05-22.
59224         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59225         use.
59226
59227 2008-06-07  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59230         to construct an empty ACL.
59231
59232 2008-06-07  Bruno Haible  <bruno@clisp.org>
59233
59234         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59235         precisely.
59236         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59237
59238 2008-06-07  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59241         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59242
59243 2008-06-07  Bruno Haible  <bruno@clisp.org>
59244
59245         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59246         regardless of POSIX.
59247         * doc/posix-functions/_longjmp.texi: Likewise.
59248         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59249         SystemV platform in this case.
59250
59251 2008-06-06  Eric Blake  <ebb9@byu.net>
59252
59253         Document abort() bugs.
59254         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59255
59256         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59257         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59258         sigsetjmp.
59259         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59260         siglongjmp, but only as a macro.
59261         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59262         is obsolete.
59263         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59264
59265         Tweak documentation to cover cygwin argz bugs.
59266         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59267         argz bug fix; no code change needed since no cygwin releases
59268         occurred between the last fix and the bug being tested.
59269         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59270         module and recently fixed cygwin bugs.
59271         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59272         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59273         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59274         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59275         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59276         Likewise.
59277         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59278         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59279         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59280         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59281         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59282         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59283         Likewise.
59284
59285         Avoid gcc warning on cygwin.
59286         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59287         !ACL_NO_TRIVIAL]: Avoid unused variable.
59288
59289 2008-06-05  Eric Blake  <ebb9@byu.net>
59290
59291         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59292         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59293         git-version-gen fails to come up with a version.
59294         Reported by Simon Josefsson.
59295
59296 2008-06-05  Jim Meyering  <meyering@redhat.com>
59297             Paul Eggert  <eggert@cs.ucla.edu>
59298
59299         utimens.c: work around a probable Linux kernel bug
59300         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59301         appears to be a kernel bug that causes utimensat to return 280
59302         instead of 0, indicating success.
59303
59304 2008-06-04  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59307         2008-06-01 commit.
59308
59309 2008-06-04  Bruno Haible  <bruno@clisp.org>
59310
59311         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59312         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59313         (file_has_acl): Use it. Save errno afterwards.
59314         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59315
59316 2008-06-03  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59319         draft code. Simplify #ifs.
59320         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59321         Put Solaris code after POSIX-draft code. Fix comments regarding
59322         Solaris 10, HP-UX. Mention Cygwin.
59323         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59324
59325 2008-06-03  Eric Blake  <ebb9@byu.net>
59326
59327         Provide fallback for older kernels.
59328         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59329         Provide runtime fallback if kernel lacks support.
59330         Reported by Mike Frysinger.
59331
59332 2008-06-02  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59335         it exists.
59336
59337 2008-06-02  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59340         * lib/copy-acl.c (qcopy_acl): Update comment.
59341
59342 2008-06-02  Bruno Haible  <bruno@clisp.org>
59343
59344         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59345         like ACL APIs.
59346
59347 2008-06-02  Bruno Haible  <bruno@clisp.org>
59348
59349         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59350         * tests/test-set-mode-acl.sh: Likewise.
59351         * tests/test-copy-acl.sh: Likewise.
59352         * tests/test-copy-file.sh: Likewise.
59353
59354 2008-06-02  Bruno Haible  <bruno@clisp.org>
59355
59356         * tests/test-file-has-acl.sh: Remove unused code.
59357
59358 2008-06-01  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59361         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59362         messages.
59363         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59364
59365 2008-06-01  Bruno Haible  <bruno@clisp.org>
59366
59367         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59368         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59369         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59370         APIs.
59371         * modules/acl-tests (configure.ac): Remove tests now contained in
59372         m4/acl.m4.
59373
59374 2008-06-02  Jim Meyering  <meyering@redhat.com>
59375
59376         announce-gen: use a better key-server host name
59377         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59378         it may be more consistently reliable.  Suggested by Werner Koch
59379         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59380
59381 2008-06-01  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59384         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59385
59386 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59387
59388         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59389
59390 2008-06-01  Bruno Haible  <bruno@clisp.org>
59391
59392         New ACL tests.
59393         * tests/test-file-has-acl.sh: New file.
59394         * tests/test-file-has-acl.c: New file.
59395         * tests/test-set-mode-acl.sh: New file.
59396         * tests/test-set-mode-acl.c: New file.
59397         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59398         * tests/test-copy-acl.c: New file.
59399         * modules/acl-tests: New file, based on modules/copy-file-tests.
59400         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59401         (Depends-on): Add acl-tests.
59402         (configure.ac): Remove checks.
59403         (Makefile.am): Don't create test-sameacls program here any more.
59404
59405 2008-06-01  Bruno Haible  <bruno@clisp.org>
59406
59407         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59408         * tests/test-sameacls.c: Include progname.h.
59409         (main): Invoke set_program_name. Portability fixes for MacOS X,
59410         Solaris, HP-UX.
59411
59412 2008-06-01  Bruno Haible  <bruno@clisp.org>
59413
59414         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59415         function.
59416         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59417
59418 2008-06-01  Bruno Haible  <bruno@clisp.org>
59419
59420         * modules/rpmatch (Depends-on): Add strdup.
59421
59422 2008-06-01  Bruno Haible  <bruno@clisp.org>
59423
59424         * lib/pipe.c: Include unistd-safer.h.
59425         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59426         * modules/pipe (Depends-on): Add unistd-safer.
59427
59428 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59429
59430         * modules/autobuild (configure.ac): Call AB_INIT.
59431
59432 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59433
59434         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59435         Suggested by Bruno Haible <bruno@clisp.org>.
59436
59437 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59438
59439         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59440         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59441         <bruno@clisp.org>.
59442
59443 2008-05-29  Eric Blake  <ebb9@byu.net>
59444
59445         Prefer new POSIX 200x interfaces over futimesat.
59446         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59447         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59448         when available.
59449         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59450
59451 2008-05-28  Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/stpcpy (License): Change to LGPLv2+.
59454         Requested by David Lutterkort <dlutter@redhat.com>.
59455
59456 2008-05-27  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59459         current mingw.
59460         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59461
59462 2008-05-27  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/iconv_open (Link): New section, from module 'iconv'.
59465         * modules/striconv (Link): Likewise.
59466         * modules/striconveh (Link): Likewise.
59467         * modules/xstriconv (Link): Likewise.
59468         * modules/unicodeio (Link): Likewise.
59469         * modules/propername (Link): Likewise.
59470         Reported by Jim Meyering.
59471
59472 2008-05-26  Jim Meyering  <meyering@redhat.com>
59473
59474         sha256: do not artificially restrict buffer length to be < 2^32
59475         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59476         uint32_t to size_t.
59477         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59478         to match.
59479
59480         avoid unaligned access errors, e.g., on sparc
59481         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59482         direct access through a possibly-unaligned uint64* pointer.
59483         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59484         direct access through a possibly-unaligned uint32* pointer.
59485         Prompted by this patch from Tom "spot" Callaway:
59486         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59487
59488         sha512.c: fix typo in comment
59489         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59490
59491 2008-05-25  Bruno Haible  <bruno@clisp.org>
59492
59493         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59494         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59495         (Makefile.am): Update lib_SOURCES.
59496
59497 2008-05-25  Bruno Haible  <bruno@clisp.org>
59498
59499         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59500
59501 2008-05-25  Jim Meyering  <meyering@redhat.com>
59502
59503         useless-if-before-free: freed expr may have white-space differences
59504         * build-aux/useless-if-before-free: Recognize cases in which the
59505         freed expression differs from the tested one in embedded white
59506         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59507         $1 was used, so we can't make any regexp shy.  Improved tests now
59508         detect this.
59509
59510         useless-if-before-free: accept white space in the expression.
59511         * build-aux/useless-if-before-free: For now, any white space
59512         in the expression must be identical in the free argument.
59513
59514         useless-if-before-free: efficiency tweak
59515         * build-aux/useless-if-before-free: Make the expression-matching
59516         regexp "shy".
59517         Make the *outer* regexp shy, not the expr-matching one.
59518
59519         update code-in-comment to accept cast of free arg
59520         * build-aux/useless-if-before-free: Update regexp.
59521
59522 2008-05-25  Bruno Haible  <bruno@clisp.org>
59523
59524         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59525         * modules/copy-file-tests (Files, Makefile.am): Update.
59526         * tests/test-copy-file.c (func_test_copy): Update.
59527
59528 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59529
59530         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59531
59532 2008-05-23  Bruno Haible  <bruno@clisp.org>
59533
59534         Improve support for ACLs on OSF/1.
59535         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59536         Remove fallback for unknown flavors of ACLs.
59537
59538 2008-05-22  Bruno Haible  <bruno@clisp.org>
59539
59540         Add support for ACLs on OSF/1.
59541         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59542         replacements.
59543         (acl_free_text): New macro fallback.
59544         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59545         acl_free.
59546         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59547         acl_free_text function. Require AC_C_INLINE.
59548
59549 2008-05-22  Bruno Haible  <bruno@clisp.org>
59550
59551         Make copy_acl work on MacOS X 10.5.
59552         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59553         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59554         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59555         If MODE_INSIDE_ACL, don't assume that every system has the same text
59556         representation for ACLs as FreeBSD.
59557         * lib/copy-acl.c (copy_acl): Add support for platforms with
59558         !MODE_INSIDE_ACL.
59559         * lib/file-has-acl.c (file_has_acl): Likewise.
59560         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59561         FreeBSD, MacOS X, or IRIX, respectively.
59562
59563 2008-05-22  Bruno Haible  <bruno@clisp.org>
59564
59565         * lib/acl.h: Don't include <sys/acl.h>.
59566         (GETACLCNT): Move fallback to lib/acl-internal.h.
59567         * lib/acl-internal.h: Include <sys/acl.h> here.
59568         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59569
59570 2008-05-22  Bruno Haible  <bruno@clisp.org>
59571
59572         Split off copy_acl function to separate file.
59573         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59574         * lib/acl.c (copy_acl): Moved function to separate file.
59575         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59576         * modules/acl (Files): Add lib/copy-acl.c.
59577         (Makefiles.am): Augment lib_SOURCES.
59578
59579 2008-05-22  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/copy-file-tests: New file.
59582         * tests/test-copy-file.sh: New file.
59583         * tests/test-copy-file.c: New file.
59584         * tests/test-copy-file-sameacls.c: New file.
59585
59586 2008-05-22  Eric Blake  <ebb9@byu.net>
59587
59588         Avoid gcc warning.
59589         * tests/test-memcmp.c (main): Pass NULL indirectly.
59590
59591 2008-05-21  Bruno Haible  <bruno@clisp.org>
59592
59593         Add reference doc about ACLs.
59594         * doc/acl-resources.txt: New file.
59595         * doc/acl-cygwin.txt: New file.
59596
59597 2008-05-21  Bruno Haible  <bruno@clisp.org>
59598
59599         Avoid one more warning from gcc.
59600         * lib/vasnprintf.c (IF_LINT): Update comments.
59601         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59602
59603 2008-05-21  Jim Meyering  <meyering@redhat.com>
59604
59605         avoid a warning from gcc
59606         * lib/vasnprintf.c (IF_LINT): Define.
59607         (scale10_round_decimal_long_double):
59608         Use it to avoid a "may be used uninitialized" warning.
59609         (scale10_round_decimal_double): Likewise.
59610
59611 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59612
59613         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59614         declared.
59615
59616 2008-05-20  Bruno Haible  <bruno@clisp.org>
59617
59618         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59619         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59620
59621 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59622
59623         * modules/memcmp-tests: New file.
59624         * tests/test-memcmp.c: New file.
59625
59626 2008-05-19  Bruno Haible  <bruno@clisp.org>
59627
59628         * modules/propername (Notice, configure.ac): Put quoted "..." into
59629         --keyword option.
59630         * lib/propername.h: Update comments accordingly.
59631         Reported by Eric Blake.
59632
59633 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59634
59635         * modules/getpass-gnu (Depends-on): Add fseeko.
59636
59637 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59638
59639         * modules/base64-tests: New file.
59640
59641 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59642
59643         * lib/base64.c (base64_decode_ctx): If a decode context structure
59644         was passed in use it to ignore newlines.  If a context structure
59645         was _not_ passed in, continue to treat newlines as garbage (this
59646         is the historical behavior).  Formerly base64_decode.
59647         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59648         takes a decode context structure.
59649         * lib/base64.h (base64_decode): Macro for four-argument calls.
59650         (base64_decode_alloc): Likewise.
59651         * lib/base64.c (base64_decode_ctx): If a decode context structure
59652         was passed in use it to ignore newlines.  If a context structure
59653         was _not_ passed in, continue to treat newlines as garbage (this
59654         is the historical behavior).  Formerly base64_decode.
59655         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59656         takes a decode context structure.
59657         * lib/base64.h (base64_decode): Macro for four-argument calls.
59658         (base64_decode_alloc): Likewise.
59659
59660 2008-05-19  Jim Meyering  <meyering@redhat.com>
59661
59662         avoid a warning from gcc
59663         * lib/trim.c (IF_LINT): Define.
59664         (trim2): Use it to avoid a "may be used uninitialized" warning.
59665
59666         Fix doc typo.
59667         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59668
59669 2008-05-19  Bruno Haible  <bruno@clisp.org>
59670
59671         * doc/glibc-functions/getpass.texi: Document limits of other
59672         implementations.
59673
59674 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59675             Bruno Haible <bruno@clisp.org>
59676
59677         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59678
59679 2008-05-18  Bruno Haible  <bruno@clisp.org>
59680
59681         * modules/propername: New file, from GNU gettext.
59682         * lib/propername.h: New file, from GNU gettext.
59683         * lib/propername.c: New file, from GNU gettext.
59684         * MODULES.html.sh (Internationalization functions): Add propername.
59685
59686 2008-05-16  Jim Meyering  <meyering@redhat.com>
59687             Bruno Haible  <bruno@clisp.org>
59688
59689         Avoid some warnings from "gcc -Wshadow".
59690         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59691
59692 2008-05-15  Eric Blake  <ebb9@byu.net>
59693
59694         Extend previous patch to cygwin 1.7.0.
59695         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59696         fast implementation in cygwin >= 1.7.0.
59697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59699
59700 2008-05-15  Bruno Haible  <bruno@clisp.org>
59701
59702         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59703         implementation in glibc >= 2.9.
59704         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59706
59707 2008-05-15  Bruno Haible  <bruno@clisp.org>
59708
59709         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59710         (Unicode string functions): Add unilbrk/*.
59711         Reported by Karl Berry.
59712
59713 2008-05-15  Eric Blake  <ebb9@byu.net>
59714
59715         Fix violation of <stdbool.h> replacement in regex.
59716         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59717         * lib/regexec.c (re_search_internal): Likewise.
59718         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59719
59720 2008-05-15  Jim Meyering  <meyering@redhat.com>
59721
59722         avoid distracting test output when git or cvs is not found
59723         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59724         * tests/test-vc-list-files-git.sh: Likewise.
59725
59726 2008-05-15  Eric Blake  <ebb9@byu.net>
59727
59728         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59729         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59730         glibc version.
59731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59732         * doc/posix-functions/strstr.texi (strstr): Likewise.
59733         * lib/str-two-way.h (MAX): Sychronize with glibc.
59734
59735 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59736
59737         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59738         opr.ctx_type.
59739         (calc_first): Initialize constraint field.
59740         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59741         Fix grammar.
59742         (duplicate_node): Merge constraint field for all node types.
59743         (calc_eclosure_iter): Look at constraint field for all node types.
59744         * lib/regex_internal.c (create_cd_newstate): Don't look at
59745         opr.ctx_type.
59746
59747 2008-05-14  Bruno Haible  <bruno@clisp.org>
59748
59749         Help GCC to do better code generation.
59750         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59751         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59752         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59753         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59754         Declare with attribute 'malloc' if supported.
59755
59756 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59757
59758         use "echo STR|wc -c" rather than unportable "expr length STR"
59759         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59760         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59761
59762 2008-05-14  Jim Meyering  <meyering@redhat.com>
59763
59764         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59765         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59766         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59767         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59768         via Collin Lasse.
59769
59770 2008-05-14  Eric Blake  <ebb9@byu.net>
59771
59772         Avoid quadratic growth in gl_LIBSOURCES.
59773         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59774         Suggested by Bruno Haible.
59775
59776         Test xmemdup0.
59777         * modules/xmemdup0-tests: New file.
59778         * tests/test-xmemdup0.c: Likewise.
59779
59780 2008-05-13  Eric Blake  <ebb9@byu.net>
59781
59782         Split xmemdup0 into its own module.
59783         * modules/xmemdup0: New file.
59784         * lib/xmemdup0.h: Likewise.
59785         * lib/xmemdup0.c: Likewise.
59786         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59787         * lib/xalloc.h (xmemdup0): Remove.
59788         * lib/xmalloc.c (xmemdup0): Likewise.
59789
59790 2008-05-13  Eric Blake  <ebb9@byu.net>
59791             Bruno Haible  <bruno@clisp.org>
59792
59793         Reduce number of forks required during autoconf.
59794         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59795         and gl_LIBSOURCES_DIR.
59796         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59797         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59798         m4_syscmd per file.
59799         <m4_foreach_w>: Move...
59800         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59801
59802 2008-05-13  Eric Blake  <ebb9@byu.net>
59803
59804         * gnulib-tool: Fix various comment typos.
59805
59806 2008-05-12  Bruno Haible  <bruno@clisp.org>
59807
59808         Tailor the linebreaking algorithm.
59809         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59810
59811 2008-05-12  Bruno Haible  <bruno@clisp.org>
59812
59813         Update to Unicode 5.0.0.
59814         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59815         LBP_JV, LBP_JT. Redistribute values.
59816         (unilbrk_table): Change size.
59817         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59818         Unicode TR#14 rev. 22.
59819         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59820         LBP_JV, LBP_JT. Redistribute values.
59821         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59822         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59823         Update.
59824         * lib/unilbrk/lbrkprop1.h: Regenerated.
59825         * lib/unilbrk/lbrkprop2.h: Regenerated.
59826         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59827         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59828         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59829         Likewise.
59830         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59831         Likewise.
59832         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59833         result.
59834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59836         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59837         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59838         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59839         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59840
59841 2008-05-11  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59844
59845 2008-05-11  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59848         * modules/unilbrk/gen-lbrk: New file.
59849
59850 2008-05-11  Bruno Haible  <bruno@clisp.org>
59851
59852         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59853         * m4/sha512.m4 (gl_SHA512): Likewise.
59854
59855 2008-05-11  Jim Meyering  <meyering@redhat.com>
59856
59857         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59858         * modules/crypto/sha256: New file.
59859         * modules/crypto/sha512: Likewise.
59860         * lib/sha256.c: Likewise.
59861         * lib/sha256.h: Likewise.
59862         * lib/sha512.c: Likewise.
59863         * lib/sha512.h: Likewise.
59864         * lib/u64.h: Likewise.
59865         * m4/sha256.m4: Likewise.
59866         * m4/sha512.m4: Likewise.
59867         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59868
59869 2008-05-10  Bruno Haible  <bruno@clisp.org>
59870
59871         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59872         (Input/Output <stdio.h>): Add xprintf.
59873         (Signal handling <signal.h>): Add strsignal.
59874         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59875         (Core language properties): Add func.
59876         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59877         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59878         strings.
59879         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59880         (Input/output): New section.
59881         (File system functions): Add openat-die, stat-macros.
59882         (Networking functions): Add sockets.
59883         (Unicode string functions): Add unictype/*.
59884         (Support for building libraries and executables): Add gperf.
59885         (Support for building documentation): Add agpl-3.0.
59886         (Misc): Add nocrash.
59887
59888 2008-05-10  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/unictype/gen-ctype: New file.
59891
59892 2008-05-10  Jim Meyering  <meyering@redhat.com>
59893
59894         Make chdir-safer.c more efficient on a system with no symlinks.
59895         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59896         also if ELOOP is zero.  Suggested by Bruno Haible.
59897
59898         Make chdir-safer.c slightly safer.
59899         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59900         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59901
59902         Avoid compile failure on systems without ELOOP (like mingw).
59903         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59904         Reported by Bruno Haible.
59905
59906 2008-05-10  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59909         (is_utf8_encoding): Use a case-insensitive comparison.
59910         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59911         streq.
59912
59913 2008-05-10  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59916         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59917         * lib/unilbrk/ulc-common.h (iconv_string_length,
59918         iconv_string_keeping_offsets): Remove declarations.
59919         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59920         Don't include <iconv.h>, streq.h, xsize.h.
59921         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59922         conversion.
59923         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59924         <iconv.h>, streq.h, xsize.h.
59925         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59926         conversion.
59927         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59928         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59929         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59930         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59931
59932 2008-05-10  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59935         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59936
59937         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59938         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59939
59940         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59941         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59942
59943         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59944         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59945
59946         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59947         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59948
59949         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59950         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59951
59952         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59953         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59954
59955         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59956         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59957
59958 2008-05-10  Bruno Haible  <bruno@clisp.org>
59959
59960         Split up 'linebreak' module.
59961         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59962         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59963         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59964         modifications.
59965         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59966         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59967         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59968         lib/linebreak.c.
59969         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59970         lib/linebreak.c.
59971         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59972         lib/linebreak.c.
59973         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59974         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59975         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59976         lib/linebreak.c.
59977         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59978         lib/linebreak.c.
59979         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59980         lib/linebreak.c.
59981         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59982         lib/linebreak.c.
59983         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59984         lib/linebreak.c.
59985         * modules/unilbrk/base: New file.
59986         * modules/unilbrk/tables: New file.
59987         * modules/unilbrk/u8-possible-linebreaks: New file.
59988         * modules/unilbrk/u16-possible-linebreaks: New file.
59989         * modules/unilbrk/u32-possible-linebreaks: New file.
59990         * modules/unilbrk/ulc-common: New file.
59991         * modules/unilbrk/ulc-possible-linebreaks: New file.
59992         * modules/unilbrk/u8-width-linebreaks: New file.
59993         * modules/unilbrk/u16-width-linebreaks: New file.
59994         * modules/unilbrk/u32-width-linebreaks: New file.
59995         * modules/unilbrk/ulc-width-linebreaks: New file.
59996         * lib/linebreak.h: Remove file.
59997         * lib/linebreak.c: Remove file.
59998         * m4/linebreak.m4: Remove file.
59999         * modules/linebreak: Remove file.
60000         * NEWS: Mention the changes.
60001
60002 2008-05-09  Eric Blake  <ebb9@byu.net>
60003
60004         Add xmemdup0.
60005         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60006         implementation.
60007         * lib/xmalloc.c (xmemdup0): New C implementation.
60008
60009 2008-05-08  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60012
60013 2008-05-07  Eric Blake  <ebb9@byu.net>
60014
60015         Support cross-compilation of <wctype.h>.
60016         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60017         AC_CACHE_CHECK.
60018
60019 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60020
60021         * build-aux/vc-list-files: Add support for bzr.
60022
60023 2008-05-03  Jim Meyering  <meyering@redhat.com>
60024
60025         avoid failed assertion with tight malloc
60026         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60027
60028 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60029
60030         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60031         are needed from arpa/inet.h.
60032         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60033         Reported by Bruno Haible.
60034
60035 2008-05-02  Jim Meyering  <meyering@redhat.com>
60036
60037         avoid compilation error on FreeBSD 6
60038         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60039
60040 2008-05-01  Jim Meyering  <meyering@redhat.com>
60041
60042         useless-if-before-free: correct --help's exit status description
60043         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60044         for one or more matches, etc.  Reported by Bruno Haible.
60045
60046         vc-list-files: make the stand-alone gnulib test work
60047         * modules/vc-list-files-tests (configure.ac):
60048         Define and AC_SUBST abs_aux_dir.
60049         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60050         $(abs_top_srcdir) to each script and having each of them
60051         duplicate the work of setting PATH, set PATH here, using
60052         the new variable, abs_aux_dir instead.
60053         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60054         * tests/test-vc-list-files-git.sh: Likewise.
60055         Reported by Bruno Haible.
60056
60057 2008-05-01  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60060         reallocation. Rename 'done' to 'found_delimiter'.
60061
60062 2008-05-01  Jim Meyering  <meyering@redhat.com>
60063
60064         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60065         * build-aux/vc-list-files: Use `...`, not $(...).
60066
60067 2008-04-30  Jim Meyering  <meyering@redhat.com>
60068
60069         add tests for vc-list-files
60070         * modules/vc-list-files-tests: New module.
60071         * tests/test-vc-list-files-cvs.sh: New file.
60072         * tests/test-vc-list-files-git.sh: New file.
60073
60074         avoid a warning from gcc
60075         * lib/getndelim2.c (IF_LINT): Define.
60076         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60077
60078         vc-list-files: work properly with build-aux/cvsu, too
60079         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60080         to all cvs-based clauses.
60081
60082         vc-list-files: work properly in the CVS+awk case, too
60083         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60084
60085         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60086         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60087         take more than one file argument, so .  Add quotes, just in case $dir
60088         ever contains a shell meta-character.  Prompted by Soren Hansen in
60089         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60090
60091 2008-04-29  Eric Blake  <ebb9@byu.net>
60092
60093         Optimize getndelim2 to use block operations when possible.
60094         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60095         freadseek, and memchr2.
60096         * lib/getndelim2.c (getndelim2): Use them for block reads.
60097
60098 2008-04-29  Bruno Haible  <bruno@clisp.org>
60099
60100         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60102         * modules/inet_ntop (Depends-on): Add extensions.
60103         * modules/inet_pton (Depends-on): Likewise.
60104         Reported by Simon Josefsson.
60105
60106 2008-04-29  Jim Meyering  <meyering@redhat.com>
60107
60108         When the is more than one match in a block, match all of them.
60109         * build-aux/useless-if-before-free: Iterate through each block
60110         until there are no more matches.
60111
60112         Fix broken useless-if-before-free script.
60113         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60114         the expression to match cast of argument to free-like function.
60115
60116 2008-04-29  Eric Blake  <ebb9@byu.net>
60117
60118         Use new header.
60119         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60120
60121 2008-04-29  Jim Meyering  <meyering@redhat.com>
60122
60123         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60124         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60125         by gnulib to exist and to declare e.g., inet_ntop.
60126         Don't include "inet_ntop.h", now removed.
60127
60128         * m4/arpa_inet_h.m4: Remove trailing blanks.
60129
60130 2008-04-29  Eric Blake  <ebb9@byu.net>
60131
60132         Silence valgrind on safe reads beyond potential array bounds.
60133         * lib/rawmemchr.valgrind: New file.
60134         * lib/strchrnul.valgrind: Likewise.
60135         * modules/rawmemchr (Files): Distribute new file.
60136         * modules/strchrnul (Files): Likewise.
60137         Suggested by Bruno Haible.
60138
60139 2008-04-29  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60142         (inet_ntop, inet_pton): Change portability warning's wording.
60143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60144         Invoke gl_CHECK_NEXT_HEADERS.
60145         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60146         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60147         set ARPA_INET_H.
60148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60149         * modules/arpa_inet (Description): No longer only for systems that
60150         lack it.
60151         (Depends-on): Add include_next.
60152         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60153         HAVE_ARPA_INET_H.
60154
60155 2008-04-29  Jim Meyering  <meyering@redhat.com>
60156
60157         * modules/mkdir (License): Re-license as LGPLv2+.
60158
60159 2008-04-29  Bruno Haible  <bruno@clisp.org>
60160
60161         * modules/rawmemchr (Maintainer): Set to Eric.
60162         * modules/strchrnul (Maintainer): Likewise.
60163
60164 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60165
60166         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60167         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60168
60169         * modules/arpa_inet (arpa/inet.h): Use them.
60170
60171 2008-04-28  Eric Blake  <ebb9@byu.net>
60172
60173         Test getndelim2.
60174         * modules/getndelim2-tests: New file.
60175         * tests/test-getndelim2.c: Likewise.
60176         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60177         stream.
60178         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60179
60180         * MODULES.html.sh: Document new module.
60181
60182 2008-04-20  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/c-stack.c (die): Use raise.
60185         * modules/c-stack (Depends-on): Add raise.
60186
60187 2008-04-28  Bruno Haible  <bruno@clisp.org>
60188
60189         Expect rpmatch to be declared.
60190         * lib/yesno.c (rpmatch): Remove declaration.
60191
60192         Declare rpmatch.
60193         * lib/stdlib.in.h (rpmatch): New declaration.
60194         * lib/rpmatch.c: Include <stdlib.h> first.
60195         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60196         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60198         HAVE_RPMATCH.
60199         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60201         (Include): Set to <stdlib.h>.
60202         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60203         HAVE_RPMATCH.
60204         * NEWS: Document the change.
60205
60206 2008-04-28  Bruno Haible  <bruno@clisp.org>
60207
60208         Change rpmatch to use nl_langinfo when appropriate.
60209         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60210         (N_): New macro.
60211         (localized_pattern): New function/macro.
60212         (try): Remove match, nomatch arguments. Copy the pattern into safe
60213         memory before caching it.
60214         (rpmatch): Use localized_pattern. Add translator comments.
60215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60216         Suggested by Eric Blake.
60217         * modules/rpmatch (Depends-on): Add stdbool.
60218
60219 2008-04-28  Eric Blake  <ebb9@byu.net>
60220
60221         Add rawmemchr module, matching glibc.
60222         * modules/string (Makefile.am): New indicator.
60223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60224         * lib/string.in.h (rawmemchr): Declare when appropriate.
60225         * modules/rawmemchr: New file.
60226         * m4/rawmemchr.m4: Likewise.
60227         * lib/rawmemchr.c: Likewise.
60228         * modules/rawmemchr-tests: Likewise.
60229         * tests/test-rawmemchr.c: Likewise.
60230         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60231         module.
60232         * modules/strchrnul (Depends-on): Add rawmemchr.
60233         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60234
60235         Whitespace cleanup.
60236         * tests/test-strchrnul.c: Reindent.
60237         * lib/strchrnul.c: Likewise.
60238
60239         Optimize and test strchrnul.
60240         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60241         * modules/strchrnul-tests: New file.
60242         * tests/test-strchrnul.c: Likewise.
60243
60244         Remove intprops dependency.
60245         * modules/memchr (Depends-on): Remove intprops.
60246         * modules/memrchr (Depends-on): Likewise.
60247         * modules/memchr2 (Depends-on): Likewise.
60248         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60249         * lib/memrchr.c (__memrchr): Likewise.
60250         * lib/memrchr2.c (memchr2): Likewise.
60251         Reported by Simon Josefsson.
60252
60253 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60254
60255         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60256         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60257
60258 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60259
60260         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60261
60262         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60263
60264         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60265
60266         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60267         declarations.
60268         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60269
60270         * m4/inet_pton.m4: Don't check for header files.
60271
60272         * m4/inet_ntop.m4: Don't check for header files.
60273
60274 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60275
60276         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60277         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60278         trigger for cygwin).
60279         Reported by Bruno Haible  <bruno@clisp.org>.
60280
60281 2008-04-28  Bruno Haible  <bruno@clisp.org>
60282
60283         * doc/posix-functions/strdup.texi: Mention mingw problem.
60284
60285 2008-04-27  Bruno Haible  <bruno@clisp.org>
60286
60287         * modules/stat-time-tests (Depends-on): Add sleep.
60288         * tests/test-stat-time.c (force_unlink): New function.
60289         (cleanup): Use it.
60290         (test_mtime): Remove the ctime related tests.
60291         (test_ctime): New function, containing the ctime related tests.
60292         (main): Call test_ctime, except on native Windows platforms.
60293
60294 2008-04-27  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/rpmatch.c (rpmatch): Add some comments.
60297         Reported by James Youngman <jay@gnu.org>.
60298
60299 2008-04-27  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60302         quiet NaNs.
60303
60304 2008-04-27  Bruno Haible  <bruno@clisp.org>
60305
60306         Make test-yesno.sh work on mingw.
60307         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60308         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60309         (main): Set stdin to binary mode.
60310         * modules/yesno-tests (Depends-on): Add binary-io.
60311
60312 2008-04-27  Bruno Haible  <bruno@clisp.org>
60313
60314         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60315         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60316         argument that lie outside the IEEE 854 domain.
60317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60318         (gl_ISFINITE): Use it.
60319         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60320
60321 2008-04-27  Bruno Haible  <bruno@clisp.org>
60322
60323         Allow local renaming in config.h.
60324         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60325
60326 2008-04-27  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/memchr.c (__memchr): Change type of 'i'.
60329         * lib/memchr2.c (memchr2): Likewise.
60330
60331 2008-04-26  Eric Blake  <ebb9@byu.net>
60332         and Bruno Haible  <bruno@clisp.org>
60333
60334         Optimize and test memrchr.
60335         * modules/memrchr (Depends-on): Add intprops.
60336         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60337         * modules/memrchr-tests: New file.
60338         * tests/test-memrchr.c: New file.
60339
60340 2008-04-26  Bruno Haible  <bruno@clisp.org>
60341
60342         Add tentative support for DragonFly BSD.
60343         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60344         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60345         fp.
60346         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60347         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60348         * lib/fpurge.c (fpurge): Likewise.
60349         * lib/freadable.c (freaadable): Likewise.
60350         * lib/freadahead.c (freadahead): Likewise.
60351         * lib/freading.c (freading): Likewise.
60352         * lib/freadptr.c (freadptr): Likewise.
60353         * lib/freadseek.c (freadptrinc): Likewise.
60354         * lib/fseeko.c (fseeko): Likewise.
60355         * lib/fseterr.c (fseterr): Likewise.
60356         * lib/fwritable.c (fwritable): Likewise.
60357         * lib/fwriting.c (fwriting): Likewise.
60358
60359 2008-04-26  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/stdio-impl.h: New file.
60362         * lib/fbufmode.c: Include stdio-impl.h.
60363         (fbufmode): Use fp_, remove redundant #defines.
60364         * lib/fflush.c: Include stdio-impl.h.
60365         (clear_ungetc_buffer): Remove redundant #defines.
60366         * lib/fpurge.c: Include stdio-impl.h.
60367         (fpurge): Remove redundant #defines.
60368         * lib/freadable.c: Include stdio-impl.h.
60369         (freadable): Remove redundant #defines.
60370         * lib/freadahead.c: Include stdio-impl.h.
60371         (freadahead): Remove redundant #defines.
60372         * lib/freading.c: Include stdio-impl.h.
60373         (freading): Remove redundant #defines.
60374         * lib/freadptr.c: Include stdio-impl.h.
60375         (freadptr): Remove redundant #defines.
60376         * lib/freadseek.c: Include stdio-impl.h.
60377         (freadptrinc): Remove redundant #defines.
60378         * lib/fseeko.c: Include stdio-impl.h.
60379         (rpl_fseeko): Remove redundant #defines.
60380         * lib/fseterr.c: Include stdio-impl.h.
60381         (fseterr): Remove redundant #defines.
60382         * lib/fwritable.c: Include stdio-impl.h.
60383         (fwritable: Remove redundant #defines.
60384         * lib/fwriting.c: Include stdio-impl.h.
60385         (fwriting): Remove redundant #defines.
60386         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60387         * modules/fflush (Files): Likewise.
60388         * modules/fpurge (Files): Likewise.
60389         * modules/freadable (Files): Likewise.
60390         * modules/freadahead (Files): Likewise.
60391         * modules/freading (Files): Likewise.
60392         * modules/freadptr (Files): Likewise.
60393         * modules/freadseek (Files): Likewise.
60394         * modules/fseeko (Files): Likewise.
60395         * modules/fseterr (Files): Likewise.
60396         * modules/fwritable (Files): Likewise.
60397         * modules/fwriting (Files): Likewise.
60398
60399 2008-04-26  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60402         restore_seek_optimization, update_fpos_cache): New functions, extracted
60403         from rpl_fflush.
60404         (rpl_fflush): Use them.
60405         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60406         (gl_REPLACE_FFLUSH): Use it.
60407
60408 2008-04-26  Bruno Haible  <bruno@clisp.org>
60409
60410         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60411         on Solaris.
60412         * tests/test-xstrtoimax.sh: Likewise.
60413         * tests/test-xstrtoumax.sh: Likewise.
60414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60415
60416 2008-04-26  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/memchr-tests: New file.
60419         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60420
60421 2008-04-26  Eric Blake  <ebb9@byu.net>
60422             Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/memchr.c: Include intprops.h.
60425         (__memchr): Optimize parallel detection of matching bytes. Rename local
60426         variables. Add explanatory comments.
60427
60428 2008-04-26  Bruno Haible  <bruno@clisp.org>
60429
60430         Fix module 'memchr', broken since 2000-10-28.
60431         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60432
60433 2008-04-26  Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60436         comments.
60437
60438 2008-04-25  Eric Blake  <ebb9@byu.net>
60439
60440         Use native fstatat on cygwin 1.7.0.
60441         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60442         first.
60443
60444 2008-04-23  Eric Blake  <ebb9@byu.net>
60445
60446         Improve memchr2 performance.
60447         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60448         NUL bytes.
60449         * modules/memchr2 (Depends-on): Use intprops.h.
60450
60451 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60452
60453         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60454         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60455         <blp@cs.stanford.edu>.
60456
60457 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60458
60459         * lib/arpa_inet.in.h: New file.
60460
60461         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60462         (Makefile.am): Sed in substitute header file.
60463
60464         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60465         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60466
60467         * modules/inet_ntop (configure.ac): Use
60468         gl_ARPA_INET_MODULE_INDICATOR.
60469
60470         * modules/inet_pton (configure.ac): Use
60471         gl_ARPA_INET_MODULE_INDICATOR.
60472
60473 2008-04-22  Jim Meyering  <meyering@redhat.com>
60474
60475         * modules/verify (License): Re-license as LGPLv2+.
60476
60477 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60478
60479         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60480         parameter to void* as per POSIX standard (MinGW uses char*).
60481
60482 2008-04-21  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60485         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60486         Define to replacements if REPLACE_ISWCNTRL is 1.
60487         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60488         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60489         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60490         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60491         what it fixes.
60492         * doc/posix-functions/iswalpha.texi: Likewise.
60493         * doc/posix-functions/iswblank.texi: Likewise.
60494         * doc/posix-functions/iswcntrl.texi: Likewise.
60495         * doc/posix-functions/iswdigit.texi: Likewise.
60496         * doc/posix-functions/iswgraph.texi: Likewise.
60497         * doc/posix-functions/iswlower.texi: Likewise.
60498         * doc/posix-functions/iswprint.texi: Likewise.
60499         * doc/posix-functions/iswpunct.texi: Likewise.
60500         * doc/posix-functions/iswspace.texi: Likewise.
60501         * doc/posix-functions/iswupper.texi: Likewise.
60502         * doc/posix-functions/iswxdigit.texi: Likewise.
60503         Reported by Alain Guibert.
60504
60505 2008-04-21  Bruno Haible  <bruno@clisp.org>
60506
60507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60508         Patch by Alain Guibert.
60509
60510 2008-04-21  Bruno Haible  <bruno@clisp.org>
60511
60512         Fix test failures on mingw.
60513         * tests/test-xstrtol.c (print_no_progname): New function.
60514         (main): Install it in error_print_progname hook.
60515         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60516         * tests/test-xstrtoimax.sh: Likewise.
60517         * tests/test-xstrtoumax.sh: Likewise.
60518
60519 2008-04-21  Bruno Haible  <bruno@clisp.org>
60520
60521         Fix test failure on mingw.
60522         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60523
60524 2008-04-21  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60527         Actually assign a value.
60528
60529 2008-04-20  Bruno Haible  <bruno@clisp.org>
60530
60531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60532         take 2.
60533         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60534         'canonicalize-lgpl' module is also used.
60535         * lib/canonicalize-lgpl.c: Undo last change.
60536         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60537
60538 2008-04-20  Bruno Haible  <bruno@clisp.org>
60539
60540         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60541         config.h. Provide _mkdir based fallback for mingw.
60542         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60543         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60544         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60545         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60546         rather than defining mkdir in config.h.
60547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60548         (gl_SYS_STAT_H_DEFAULTS): New macro.
60549         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60550         HAVE_IO_H any more.
60551         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60552         HAVE_DECL_MKDIR and HAVE_IO_H.
60553
60554 2008-04-20  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/isapipe.c: Port to native Windows platforms.
60557
60558 2008-04-20  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60561
60562 2008-04-21  Eric Blake  <ebb9@byu.net>
60563
60564         Work around preprocessors that don't handle UINTMAX_MAX.
60565         * lib/memchr2.c (memchr2): Avoid embedded #if.
60566         Reported by Alain Guibert, fix suggested by Bruno Haible.
60567
60568 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60569
60570         * doc/posix-functions/strftime.texi (strftime): Explain better
60571         Windows incompatibility.  Suggested by Micah Cowan
60572         <micah@cowan.name>.
60573
60574 2008-04-20  Bruno Haible  <bruno@clisp.org>
60575
60576         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60577         unistr/u8-mblen.
60578
60579 2008-04-20  Bruno Haible  <bruno@clisp.org>
60580
60581         Fix test failure on platforms with non-GNU iconv.
60582         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60583         (U_TO_U8): Use it, rather than u16_to_u8.
60584         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60585         units at the end of the input string.
60586         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60587
60588 2008-04-20  Bruno Haible  <bruno@clisp.org>
60589
60590         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60591         when the resulting length is 0.
60592         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60593
60594 2008-04-20  Bruno Haible  <bruno@clisp.org>
60595
60596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60597         works.
60598         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60599
60600 2008-04-20  Bruno Haible  <bruno@clisp.org>
60601
60602         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60603         * modules/tsearch-tests (configure.ac): Test for initstate function.
60604
60605 2008-04-20  Bruno Haible  <bruno@clisp.org>
60606
60607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60608         for nlink_t if missing.
60609         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60610
60611 2008-04-19  Bruno Haible  <bruno@clisp.org>
60612
60613         Work around snprintf bug on Linux libc5.
60614         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60616         gl_SNPRINTF_SIZE1.
60617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60619         that test failed.
60620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60621         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60622         * modules/snprintf (Files): Add m4/printf.m4.
60623         * modules/vsnprintf (Files): Likewise.
60624         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60625         * doc/posix-functions/vsnprintf.texi: Likewise.
60626
60627 2008-04-19  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60630         from 0.0058 to less than 10^-7.
60631
60632 2008-04-19  Bruno Haible  <bruno@clisp.org>
60633
60634         Fix rounding when a precision is given.
60635         * lib/vasnprintf.c (is_borderline): New function.
60636         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60637         9...9x.
60638         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60639         %e, %g.
60640         * tests/test-vasprintf-posix.c (test_function): Likewise.
60641         * tests/test-snprintf-posix.h (test_function): Likewise.
60642         * tests/test-sprintf-posix.h (test_function): Likewise.
60643         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60644         * tests/test-printf-posix.h (test_function): Likewise.
60645         * tests/test-printf-posix.output: Update.
60646         Reported by John Darrington <john@darrington.wattle.id.au> via
60647         Ben Pfaff <blp@cs.stanford.edu>.
60648
60649 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60650
60651         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60652         Suggested by Bruno Haible <bruno@clisp.org>.
60653
60654 2008-04-17  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60657         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60658         implementation.
60659         Patch by Bruce Merry <bmerry@gmail.com>.
60660
60661 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60662
60663         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60664         doesn't work under Windows.
60665
60666 2008-04-16  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60669         New macros.
60670         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60671         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60672         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60673         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60674         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60675         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60676         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60677         macros.
60678         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60679         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60680         Northern Sotho, Uighur.
60681
60682 2008-04-16  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60685         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60686         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60687         Reported by Daniel Bergström <daniel@octocode.com>.
60688
60689 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60690             Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60693         function.
60694         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60695         New functions, mostly extracted from gl_locale_name_default.
60696         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60697
60698 2008-04-16  Eric Blake  <ebb9@byu.net>
60699
60700         Adjust strtod detection to catch glibc 2.7 bug.
60701         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60702         Reported by John Gatewood Ham.
60703
60704 2008-04-16  Bruno Haible  <bruno@clisp.org>
60705
60706         Add tentative support for Linux libc5.
60707         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60708         * lib/fpurge.c (fpurge): Likewise.
60709         * lib/freadable.c (freadable): Likewise.
60710         * lib/freadahead.c (freadahead): Likewise.
60711         * lib/freading.c (freading): Likewise.
60712         * lib/freadptr.c (freadptr): Likewise.
60713         * lib/freadseek.c (freadptrinc): Likewise.
60714         * lib/fseeko.c (rpl_fseeko): Likewise.
60715         * lib/fseterr.c (fseterr): Likewise.
60716         * lib/fwritable.c (fwritable): Likewise.
60717         * lib/fwriting.c (fwriting): Likewise.
60718         Reported by Alain Guibert <alguibert+bts@free.fr>.
60719
60720 2008-04-15  Bruno Haible  <bruno@clisp.org>
60721
60722         * modules/mathl (configure.ac): Define module indicator.
60723
60724 2008-04-15  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/logl.c (logl): Remove unused variables.
60727
60728 2008-04-15  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60731         fails.
60732
60733 2008-04-15  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/trim.c (trim2): Fix argument of isspace() macro.
60736
60737 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60738
60739         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60740         to 0.
60741         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60742
60743 2008-04-14  Bruno Haible  <bruno@clisp.org>
60744
60745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60746         AC_LANG_PROGRAM argument.
60747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60748         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60751         * m4/math_h.m4 (gl_MATH_H): Likewise.
60752         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60754         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60755         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60757         * m4/regex.m4 (gl_REGEX): Likewise.
60758         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60759         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60763         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60766
60767 2008-04-14  Jim Meyering  <meyering@redhat.com>
60768
60769         test-strtod: fix typos: s/abs/fabs/
60770         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60771
60772 2008-04-13  Bruno Haible  <bruno@clisp.org>
60773
60774         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60775         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60776         module is also used and while not building the reloc-wrapper.
60777
60778 2008-04-13  Bruno Haible  <bruno@clisp.org>
60779
60780         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60781
60782 2008-04-13  Bruno Haible  <bruno@clisp.org>
60783
60784         Fix AIX compilation failure introduced on 2008-04-02.
60785         * tests/test-frexp.c (exp): Undefine before redefining.
60786         * tests/test-frexpl.c (exp): Likewise.
60787
60788 2008-04-13  Bruno Haible  <bruno@clisp.org>
60789
60790         Work around a HP-UX stdio bug.
60791         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60792         * tests/test-ftello.c (main): Likewise.
60793         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60794         * doc/posix-functions/ftello.texi: Likewise.
60795
60796 2008-04-13  Bruno Haible  <bruno@clisp.org>
60797
60798         Make test-signbit pass on HP-UX/hppa.
60799         * tests/test-signbit.c (minus_zerol): New variable.
60800         (test_signbitl): Use it.
60801
60802 2008-04-13  Bruno Haible  <bruno@clisp.org>
60803
60804         Make truncl work on OSF/1 4.0.
60805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60806         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60807         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60809         HAVE_DECL_TRUNCL.
60810         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60811         HAVE_DECL_TRUNCL.
60812         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60813
60814 2008-04-13  Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60817
60818 2008-04-13  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60821         expression, so as to avoid HP-UX 11 cc compiler bug.
60822
60823 2008-04-13  Bruno Haible  <bruno@clisp.org>
60824
60825         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60826
60827 2008-04-13  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/git-merge-changelog.c: Remove empty declaration outside of
60830         functions.
60831
60832 2008-04-13  Bruno Haible  <bruno@clisp.org>
60833
60834         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60835
60836 2008-04-13  Bruno Haible  <bruno@clisp.org>
60837
60838         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60839         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60841         also if it exists but lacks definitions of the SHUT_* macros.
60842         * modules/sys_socket (Description): Update.
60843         Reported by Elbert Pol <e.pol@chello.nl>.
60844
60845 2008-04-13  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/localcharset.c (OS2): Don't redefine if already defined.
60848         Reported by Elbert Pol <e.pol@chello.nl>.
60849
60850 2008-04-13  Bruno Haible  <bruno@clisp.org>
60851
60852         * lib/binary-io.h [__EMX__]: Include <io.h>.
60853         Reported by Elbert Pol <e.pol@chello.nl>.
60854
60855 2008-04-12  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/fpucw.h: Enable the definitions also for x86_64.
60858         Needed for NetBSD/x86_64.
60859         Reported by Thomas Klausner <tk@giga.or.at>.
60860
60861 2008-04-12  Bruno Haible  <bruno@clisp.org>
60862
60863         * tests/test-strtod.c: Include isnand.h.
60864         (main): Use isnand instead of isnan.
60865         Reported by Jim Meyering.
60866
60867 2008-04-12  Bruno Haible  <bruno@clisp.org>
60868
60869         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60871
60872 2008-04-12  Jim Meyering  <meyering@redhat.com>
60873
60874         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60875
60876 2008-04-12  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60879         Reported by Elbert Pol <e.pol@chello.nl>.
60880
60881 2008-04-12  Eric Blake  <ebb9@byu.net>
60882
60883         Work around Solaris 10 math.h bug.
60884         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60885         (gl_MATH_H_DEFAULTS): Set up default.
60886         * modules/math (Makefile.am): Replace new indicators.
60887         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60888         * tests/test-math.c (main): Test this.
60889         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60890         * doc/posix-headers/math.texi (math.h): Mention bug.
60891         Reported by Nelson H. F. Beebe and Jim Meyering.
60892
60893 2008-04-11  Bruno Haible  <bruno@clisp.org>
60894
60895         Adapt to future versions of Apple GCC.
60896         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60897         Reported by Peter O'Gorman <peter@pogma.com>.
60898
60899 2008-04-11  Bruno Haible  <bruno@clisp.org>
60900
60901         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60902
60903 2008-04-11  Bruno Haible  <bruno@clisp.org>
60904
60905         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60906
60907         * modules/getaddrinfo-tests (Makefile.am): Define
60908         test_getaddrinfo_LDADD.
60909
60910 2008-04-11  Bruno Haible  <bruno@clisp.org>
60911
60912         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60913         (init): Fix syntax error.
60914         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60915         is declared.
60916
60917 2008-04-11  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60920         * modules/glob (Depends-on): Add stdbool.
60921
60922 2008-04-11  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/trim.c: Include <string.h>.
60925
60926 2008-04-11  Eric Blake  <ebb9@byu.net>
60927
60928         Avoid compile failure on OS/2.
60929         * lib/regex_internal.h (internal_function): Disable optimization
60930         on OS/2 (__EMX__), where it caused compiler error.
60931         Reported by Elbert Pol.
60932
60933 2008-04-11  Bruno Haible  <bruno@clisp.org>
60934
60935         Flush the standard error stream before aborting. Needed on mingw.
60936         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60937         * tests/test-array_list.c (ASSERT): Likewise.
60938         * tests/test-array_oset.c (ASSERT): Likewise.
60939         * tests/test-avltree_list.c (ASSERT): Likewise.
60940         * tests/test-avltree_oset.c (ASSERT): Likewise.
60941         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60942         * tests/test-binary-io.c (ASSERT): Likewise.
60943         * tests/test-byteswap.c (ASSERT): Likewise.
60944         * tests/test-c-ctype.c (ASSERT): Likewise.
60945         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60946         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60947         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60948         * tests/test-c-strstr.c (ASSERT): Likewise.
60949         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60950         * tests/test-canonicalize.c (ASSERT): Likewise.
60951         * tests/test-carray_list.c (ASSERT): Likewise.
60952         * tests/test-ceilf1.c (ASSERT): Likewise.
60953         * tests/test-ceilf2.c (ASSERT): Likewise.
60954         * tests/test-ceill.c (ASSERT): Likewise.
60955         * tests/test-count-one-bits.c (ASSERT): Likewise.
60956         * tests/test-fbufmode.c (ASSERT): Likewise.
60957         * tests/test-fflush2.c (ASSERT): Likewise.
60958         * tests/test-floorf1.c (ASSERT): Likewise.
60959         * tests/test-floorf2.c (ASSERT): Likewise.
60960         * tests/test-floorl.c (ASSERT): Likewise.
60961         * tests/test-fopen.c (ASSERT): Likewise.
60962         * tests/test-fpending.c (ASSERT): Likewise.
60963         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60964         * tests/test-fpurge.c (ASSERT): Likewise.
60965         * tests/test-freadable.c (ASSERT): Likewise.
60966         * tests/test-freadahead.c (ASSERT): Likewise.
60967         * tests/test-freading.c (ASSERT): Likewise.
60968         * tests/test-freadptr.c (ASSERT): Likewise.
60969         * tests/test-freadptr2.c (ASSERT): Likewise.
60970         * tests/test-freadseek.c (ASSERT): Likewise.
60971         * tests/test-freopen.c (ASSERT): Likewise.
60972         * tests/test-frexp.c (ASSERT): Likewise.
60973         * tests/test-frexpl.c (ASSERT): Likewise.
60974         * tests/test-fseek.c (ASSERT): Likewise.
60975         * tests/test-fseeko.c (ASSERT): Likewise.
60976         * tests/test-fstrcmp.c (ASSERT): Likewise.
60977         * tests/test-ftell.c (ASSERT): Likewise.
60978         * tests/test-ftello.c (ASSERT): Likewise.
60979         * tests/test-func.c (ASSERT): Likewise.
60980         * tests/test-fwritable.c (ASSERT): Likewise.
60981         * tests/test-fwriting.c (ASSERT): Likewise.
60982         * tests/test-getdelim.c (ASSERT): Likewise.
60983         * tests/test-getline.c (ASSERT): Likewise.
60984         * tests/test-i-ring.c (ASSERT): Likewise.
60985         * tests/test-iconv-utf.c (ASSERT): Likewise.
60986         * tests/test-iconv.c (ASSERT): Likewise.
60987         * tests/test-isfinite.c (ASSERT): Likewise.
60988         * tests/test-isnand.c (ASSERT): Likewise.
60989         * tests/test-isnanf.c (ASSERT): Likewise.
60990         * tests/test-isnanl.h (ASSERT): Likewise.
60991         * tests/test-ldexpl.c (ASSERT): Likewise.
60992         * tests/test-linked_list.c (ASSERT): Likewise.
60993         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60994         * tests/test-localename.c (ASSERT): Likewise.
60995         * tests/test-lseek.c (ASSERT): Likewise.
60996         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60997         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60998         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60999         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61000         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61001         * tests/test-mbschr.c (ASSERT): Likewise.
61002         * tests/test-mbscspn.c (ASSERT): Likewise.
61003         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61004         * tests/test-mbspbrk.c (ASSERT): Likewise.
61005         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61006         * tests/test-mbsrchr.c (ASSERT): Likewise.
61007         * tests/test-mbsspn.c (ASSERT): Likewise.
61008         * tests/test-mbsstr1.c (ASSERT): Likewise.
61009         * tests/test-mbsstr2.c (ASSERT): Likewise.
61010         * tests/test-mbsstr3.c (ASSERT): Likewise.
61011         * tests/test-memchr2.c (ASSERT): Likewise.
61012         * tests/test-memmem.c (ASSERT): Likewise.
61013         * tests/test-open.c (ASSERT): Likewise.
61014         * tests/test-printf-frexp.c (ASSERT): Likewise.
61015         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61016         * tests/test-printf-posix.c (ASSERT): Likewise.
61017         * tests/test-quotearg.c (ASSERT): Likewise.
61018         * tests/test-rbtree_list.c (ASSERT): Likewise.
61019         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61020         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61021         * tests/test-round1.c (ASSERT): Likewise.
61022         * tests/test-roundf1.c (ASSERT): Likewise.
61023         * tests/test-roundl.c (ASSERT): Likewise.
61024         * tests/test-signbit.c (ASSERT): Likewise.
61025         * tests/test-sleep.c (ASSERT): Likewise.
61026         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61027         * tests/test-snprintf.c (ASSERT): Likewise.
61028         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61029         * tests/test-stat-time.c (ASSERT): Likewise.
61030         * tests/test-strcasestr.c (ASSERT): Likewise.
61031         * tests/test-strerror.c (ASSERT): Likewise.
61032         * tests/test-striconv.c (ASSERT): Likewise.
61033         * tests/test-striconveh.c (ASSERT): Likewise.
61034         * tests/test-striconveha.c (ASSERT): Likewise.
61035         * tests/test-strsignal.c (ASSERT): Likewise.
61036         * tests/test-strstr.c (ASSERT): Likewise.
61037         * tests/test-strtod.c (ASSERT): Likewise.
61038         * tests/test-trunc1.c (ASSERT): Likewise.
61039         * tests/test-trunc2.c (ASSERT): Likewise.
61040         * tests/test-truncf1.c (ASSERT): Likewise.
61041         * tests/test-truncf2.c (ASSERT): Likewise.
61042         * tests/test-truncl.c (ASSERT): Likewise.
61043         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61044         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61045         * tests/test-vasnprintf.c (ASSERT): Likewise.
61046         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61047         * tests/test-vasprintf.c (ASSERT): Likewise.
61048         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61049         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61050         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61051         * tests/test-vsnprintf.c (ASSERT): Likewise.
61052         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61053         * tests/test-wcwidth.c (ASSERT): Likewise.
61054         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61055         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61056         * tests/test-xvasprintf.c (ASSERT): Likewise.
61057         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61058         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61059         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61060         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61061         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61062         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61063         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61064         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61065         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61066         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61067         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61068         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61069         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61070         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61071         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61072         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61073         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61074         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61075         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61076         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61077         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61078         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61079         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61080         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61081         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61082         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61083         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61084         * tests/unictype/test-combining.c (ASSERT): Likewise.
61085         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61086         * tests/unictype/test-digit.c (ASSERT): Likewise.
61087         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61088         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61089         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61090         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61091         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61092         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61093         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61094         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61095         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61096         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61097         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61098         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61099         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61100         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61101         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61102         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61103         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61104         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61105         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61106         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61107         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61108         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61109         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61110         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61111         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61112         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61113         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61114         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61115         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61116         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61117         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61118         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61119         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61120         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61121         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61122         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61123         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61124         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61125         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61126         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61127         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61128         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61129         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61130         Reported by Eric Blake.
61131
61132 2008-04-11  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/wchar.in.h: Tweak comment.
61135
61136 2008-04-11  Bruno Haible  <bruno@clisp.org>
61137
61138         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61139         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61140         gl_COMMON.
61141         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61142
61143 2008-04-11  Bruno Haible  <bruno@clisp.org>
61144
61145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61146
61147 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61148
61149         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61150         of attempting to use non-existing /dev/*random.  Based on patch
61151         from Adam Strzelecki <ono@java.pl> in
61152         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61153
61154 2008-04-08  Bruno Haible  <bruno@clisp.org>
61155
61156         Add tentative support for emx+gcc.
61157         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61158         * lib/fpurge.c (fpurge): Likewise.
61159         * lib/freadable.c (freadable): Likewise.
61160         * lib/freadahead.c (freadahead): Likewise.
61161         * lib/freading.c (freading): Likewise.
61162         * lib/freadptr.c (freadptr): Likewise.
61163         * lib/freadseek.c (freadptrinc): Likewise.
61164         * lib/fseeko.c (rpl_fseeko): Likewise.
61165         * lib/fseterr.c (fseterr): Likewise.
61166         * lib/fwritable.c (fwritable): Likewise.
61167         * lib/fwriting.c (fwriting): Likewise.
61168         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61169
61170 2008-04-09  Eric Blake  <ebb9@byu.net>
61171
61172         Avoid some autoconf warnings.
61173         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61174         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61175         * m4/afs.m4 (gl_AFS): Likewise.
61176         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61177         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61179         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61180         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61181         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61182         (AC_CHECK_DECLS_ONCE): Likewise.
61183         Rename file...
61184         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61185         gnulib-tool requires autoconf 2.59 or better.
61186         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61187
61188 2008-04-08  Eric Blake  <ebb9@byu.net>
61189
61190         Use 'git describe --match' if present (added in git 1.5.5).
61191         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61192         if possible.
61193
61194 2008-04-08  Bruno Haible  <bruno@clisp.org>
61195
61196         Add tentative support for OpenServer.
61197         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61198         _ptr, _cnt.
61199         * lib/fpurge.c (fpurge): Likewise.
61200         * lib/freadable.c (freadable): Likewise.
61201         * lib/freadahead.c (freadahead): Likewise.
61202         * lib/freading.c (freading): Likewise.
61203         * lib/freadptr.c (freadptr): Likewise.
61204         * lib/freadseek.c (freadptrinc): Likewise.
61205         * lib/fseeko.c (rpl_fseeko): Likewise.
61206         * lib/fseterr.c (fseterr): Likewise.
61207         * lib/fwritable.c (fwritable): Likewise.
61208         * lib/fwriting.c (fwriting): Likewise.
61209         Reported by Roger Cornelius <rac@tenzing.org> and
61210         Brian K. White <brian@aljex.com>.
61211
61212 2008-04-06  Jim Meyering  <meyering@redhat.com>
61213
61214         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61215
61216 2008-04-06  Bruno Haible  <bruno@clisp.org>
61217
61218         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61219         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61220         * tests/test-printf-posix.sh: Likewise.
61221         * tests/test-vfprintf-posix.sh: Likewise.
61222         * tests/test-vprintf-posix.sh: Likewise.
61223         * tests/test-xprintf-posix.sh: Likewise.
61224
61225 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61226
61227         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61228         hide error from 'ls', needed on OS/2.
61229         Report by Elbert Pol <elbert.pol@gmail.com>.
61230
61231 2008-04-04  Eric Blake  <ebb9@byu.net>
61232
61233         Make test-fseeko.c failures meaningful.
61234         * tests/test-fseeko.c: Print line number on failure.
61235         * tests/test-fseek.c: Likewise.
61236         Reported by Nelson H. F. Beebe.
61237
61238         Improve strtod bug detection check.
61239         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61240         required for Solaris 10.
61241         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61242
61243 2008-04-04  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61246         by m4/setenv.m4.
61247
61248 2008-04-03  Eric Blake  <ebb9@byu.net>
61249
61250         Ensure sane .version contents.
61251         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61252         version string.
61253         * build-aux/git-version-gen: Improve documentation.
61254
61255         Make GNU make output nicer.
61256         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61257         MAKECMDGOALS to enforce message for all command line targets.  Set
61258         srcdir for use in maint.mk.
61259
61260         Another maintainer tweak.
61261         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61262         a target that regenerates version.
61263
61264 2008-04-03  Jim Meyering  <meyering@redhat.com>
61265
61266         vc-list-files: don't cause coreutils "make po-check" failure
61267         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61268
61269 2008-04-03  Eric Blake  <ebb9@byu.net>
61270
61271         Allow VPATH usage of vc-list-files.
61272         * build-aux/vc-list-files (scriptversion): Add timestamp.
61273         (options): Add --help, --version, -C.
61274         (CVS): Support installed cvsu.
61275
61276 2008-04-02  Bruno Haible  <bruno@clisp.org>
61277
61278         Avoid some "statement with no effect" warnings from gcc.
61279         * tests/test-wctype.c (main): Explicitly ignore unused values.
61280         Reported by Jim Meyering.
61281
61282 2008-04-02  Jim Meyering  <meyering@redhat.com>
61283
61284         Avoid some warnings from "gcc -Wshadow".
61285         * tests/test-frexp.c (exp): Define to a different identifier.
61286         * tests/test-frexpl.c (exp): Likewise.
61287
61288 2008-04-03  Jim Meyering  <meyering@redhat.com>
61289
61290         bootstrap: remove dangling *.[ch] symlinks from lib
61291         * build-aux/bootstrap [dangling symlink removal]: Move find's
61292         -depth option to precede all others, to avoid a warning.
61293         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61294
61295 2008-04-02  Bruno Haible  <bruno@clisp.org>
61296
61297         Avoid some warnings from "gcc -Wshadow".
61298         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61299         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61300         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61301         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61302         Reported by Jim Meyering.
61303
61304 2008-04-01  Bruno Haible  <bruno@clisp.org>
61305
61306         Fix test to work on IRIX 6.5 with cc.
61307         * tests/test-math.c (numeric_equal): New function.
61308         (main): Use it.
61309
61310 2008-04-01  Bruno Haible  <bruno@clisp.org>
61311
61312         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61313
61314 2008-04-01  Bruno Haible  <bruno@clisp.org>
61315
61316         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61318         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61319         (Depends-on): Remove math.
61320
61321         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61323         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61324         (Depends-on): Remove math.
61325
61326         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61328         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61329         (Depends-on): Remove math.
61330         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61331         (Depends-on): Remove math.
61332
61333         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61334         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61335         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61336         (Depends-on): Remove math.
61337         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61338         (Depends-on): Remove math.
61339
61340         * tests/test-round1.c: Include nan.h.
61341         (main): Use NaNd instead of NAN.
61342         * modules/round-tests (Files): Add tests/nan.h.
61343
61344         * tests/test-trunc1.c: Include nan.h.
61345         (main): Use NaNd instead of NAN.
61346         * modules/trunc-tests (Files): Add tests/nan.h.
61347
61348         * tests/test-roundf1.c: Include nan.h.
61349         (main): Use NaNf instead of NAN.
61350         * modules/roundf-tests (Files): Add tests/nan.h.
61351
61352         * tests/test-truncf1.c: Include nan.h.
61353         (main): Use NaNf instead of NAN.
61354         * modules/truncf-tests (Files): Add tests/nan.h.
61355
61356         * tests/test-ceilf1.c: Include nan.h.
61357         (main): Use NaNf instead of NAN.
61358         * modules/ceilf-tests (Files): Add tests/nan.h.
61359
61360         * tests/test-floorf1.c: Include nan.h.
61361         (main): Use NaNf instead of NAN.
61362         * modules/floorf-tests (Files): Add tests/nan.h.
61363
61364         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61365         (main): Use NaNf instead of NAN.
61366         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61367
61368         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61369         (main): Use NaNd instead of NAN.
61370         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61371
61372         * tests/test-frexp.c: Include nan.h.
61373         (main): Use NaNd instead of NAN.
61374         * modules/frexp-tests (Files): Add tests/nan.h.
61375
61376         * lib/isnan.c: Don't include <math.h>.
61377         (FUNC): Don't use NAN macro.
61378         * modules/isnand-nolibm (Depends-on): Remove math.
61379         * modules/isnanf-nolibm (Depends-on): Remove math.
61380         * modules/isnanl (Depends-on): Remove math.
61381         * modules/isnanl-nolibm (Depends-on): Remove math.
61382
61383         * tests/nan.h: New file.
61384
61385 2008-04-01  Eric Blake  <ebb9@byu.net>
61386
61387         Fix typos.
61388         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61389         values to be the right type.
61390
61391         For now, cater to gnulib strtod inaccuracies.
61392         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61393         fractional results.  While not as nice from a QoI perspective, it
61394         is a quicker patch than correctly implementing decimal to binary
61395         rounding.
61396
61397 2008-03-31  Eric Blake  <ebb9@byu.net>
61398
61399         Guarantee a definition of NAN.
61400         * lib/math.in.h (NAN): Define if missing.
61401         * tests/test-math.c (main): Test it.
61402         * doc/posix-headers/math.texi (math.h): Document this.
61403         * lib/isnan.c (rpl_isnand): Use it.
61404         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61405         * tests/test-floorf1.c (NaN): Likewise.
61406         * tests/test-frexp.c (NaN): Likewise.
61407         * tests/test-isnand.c (NaN): Likewise.
61408         * tests/test-isnanf.c (NaN): Likewise.
61409         * tests/test-round1.c (NaN): Likewise.
61410         * tests/test-roundf1.c (NaN): Likewise.
61411         * tests/test-snprintf-posix.h (NaN): Likewise.
61412         * tests/test-sprintf-posix.h (NaN): Likewise.
61413         * tests/test-trunc1.c (NaN): Likewise.
61414         * tests/test-truncf1.c (NaN): Likewise.
61415         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61416         * tests/test-vasprintf-posix.c (NaN): Likewise.
61417         * modules/isnand-nolibm (Depends-on): Add math.
61418         * modules/isnanf-nolibm (Depends-on): Likewise.
61419         * modules/isnanl (Depends-on): Likewise.
61420         * modules/isnanl-nolibm (Depends-on): Likewise.
61421         * modules/snprintf-posix-tests (Depends-on): Likewise.
61422         * modules/sprintf-posix-tests (Depends-on): Likewise.
61423         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61424         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61425         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61426         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61427
61428 2008-03-31  Bruno Haible  <bruno@clisp.org>
61429
61430         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61431         * doc/posix-functions/strtod.texi: Likewise.
61432
61433 2008-03-31  Bruno Haible  <bruno@clisp.org>
61434
61435         * tests/test-strtod.c (main): Don't use C99 syntax.
61436
61437 2008-03-31  Bruno Haible  <bruno@clisp.org>
61438
61439         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61440         Reported by Eric Blake.
61441
61442 2008-03-31  Jim Meyering  <meyering@redhat.com>
61443
61444         Don't compare actual signbit return values.
61445         * tests/test-strtod.c (main): Rather, compare only their
61446         zero/non-zero nature.
61447
61448 2008-03-31  Eric Blake  <ebb9@byu.net>
61449
61450         More strtod documentation.
61451         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61452         failures as distinct bugs.
61453
61454 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61455
61456         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61457         Problem reported by Erik Benada in
61458         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61459
61460 2008-03-30  Bruno Haible  <bruno@clisp.org>
61461
61462         * tests/test-strtod.c: Add comments about which assertion fails on which
61463         platform.
61464         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61465
61466 2008-03-30  Eric Blake  <ebb9@byu.net>
61467
61468         Test signbit behavior on zeros.
61469         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61470         (test_signbitd, test_signbitl): Likewise.
61471
61472         More strtod touchups.
61473         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61474         sign of negative underflow, for now.  Use .5, not .1.
61475         * doc/posix-functions/strtod.texi (strtod): Mention these
61476         limitations.
61477         Reported by Jim Meyering.
61478
61479 2008-03-30  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61482         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61483
61484 2008-03-30  Bruno Haible  <bruno@clisp.org>
61485
61486         Avoid failure when attempting to return empty iconv results on some
61487         platforms.
61488         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61489         allocation, don't report ENOMEM when the resulting string is empty.
61490
61491 2008-03-30  Bruno Haible  <bruno@clisp.org>
61492
61493         Fix buffer overrun.
61494         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61495         Don't consider the width for tmp_length. Check count against tmp_length
61496         before doing the padding. Ensure enough allocation during padding.
61497
61498 2008-03-30  Eric Blake  <ebb9@byu.net>
61499
61500         strtod touchups.
61501         * lib/strtod.c (strtod): Avoid compiler warnings.
61502         Reported by Jim Meyering.
61503
61504 2008-03-30  Bruno Haible  <bruno@clisp.org>
61505
61506         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61507         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61508         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61509         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61510         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61511         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61512         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61513         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61514
61515         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61516         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61517         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61519         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61520         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61521         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61522         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61523
61524         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61525         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61526         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61527         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61528         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61530         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61531         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61532
61533         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61534         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61535
61536         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61537         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61538
61539         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61540         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61541
61542         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61544         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61545
61546         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61548         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61549
61550         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61552         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61553
61554         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61556         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61557
61558         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61559         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61561         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61562         (Depends-on): Add EOVERFLOW.
61563         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61564         (Depends-on): Add EOVERFLOW.
61565         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61566         (Depends-on): Add EOVERFLOW.
61567         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61568         (Depends-on): Add EOVERFLOW.
61569         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61570         (Depends-on): Add EOVERFLOW.
61571         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61572         (Depends-on): Add EOVERFLOW.
61573         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61574         (Depends-on): Add EOVERFLOW.
61575         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61576         (Depends-on): Add EOVERFLOW.
61577
61578         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61580         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61581
61582         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61584         * modules/snprintf (Depends-on): Add EOVERFLOW.
61585
61586         * lib/poll.c (EOVERFLOW): Remove fallback.
61587         * modules/poll (Depends-on): Add EOVERFLOW.
61588
61589         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61590         * modules/getugroups (Depends-on): Add EOVERFLOW.
61591
61592         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61593         * modules/getdelim (Depends-on): Add EOVERFLOW.
61594
61595         * lib/ftell.c (EOVERFLOW): Remove fallback.
61596         * modules/ftell (Depends-on): Add EOVERFLOW.
61597
61598         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61600         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61601
61602         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61603
61604         * modules/EOVERFLOW-tests: New file.
61605         * tests/test-EOVERFLOW.c: New file.
61606
61607         * modules/EOVERFLOW: New file.
61608         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61609
61610 2008-03-30  Bruno Haible  <bruno@clisp.org>
61611
61612         Fix bug introduced on 2007-06-10.
61613         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61614         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61615
61616 2008-03-30  Bruno Haible  <bruno@clisp.org>
61617
61618         Improve freadseek's efficiency after ungetc.
61619         * lib/freadseek.c: Include freadahead.h.
61620         (freadptrinc): New function, extracted from freadseek.
61621         (freadseek): Use it in a loop. Use freadahead to determine the number
61622         of loop iterations.
61623         * modules/freadseek (Depends-on): Add freadahead.
61624         (configure.ac): Require AC_C_INLINE.
61625
61626 2008-03-30  Bruno Haible  <bruno@clisp.org>
61627
61628         * lib/freadseek.c (freadseek): Don't ignore the return value of
61629         freadptr.
61630
61631 2008-03-29  Eric Blake  <ebb9@byu.net>
61632
61633         Add hex float support.
61634         * modules/strtod (Depends-on): Add c-ctype.
61635         (Link): Mention POW_LIB.
61636         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61637         whitespace between 'e' and exponent.
61638         * tests/test-strtod.c (main): Enable hex float tests.
61639         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61640         now provides.
61641
61642         Document various strtod bugs, with some fixes.
61643         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61644         "-0x", "inf", "nan", and hex constants.
61645         * doc/posix-functions/atof.texi (atof): Likewise.
61646         * modules/stdlib (Makefile.am): Support strtod.
61647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61648         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61649         detect additional strtod bugs.
61650         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61651         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61652         bool where appropriate.  Parse 'inf' and 'nan'.
61653         * tests/test-strtod.c: New file.
61654         * modules/strtod (Depends-on): Add stdbool, stdlib.
61655         (configure.ac): Turn on module indicator.
61656         * modules/strtod-tests: New module.
61657
61658 2008-03-29  Eric Blake  <ebb9@byu.net>
61659
61660         Fix ftell on mingw.
61661         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61662         * modules/ftell-tests (Depends-on): Add binary-io.
61663         * modules/ftello-tests (Depends-on): Likewise.
61664         * tests/test-ftell.c (main): Enhance test to cover behavior after
61665         ungetc.  Enforce binary mode.
61666         * tests/test-ftello.c (main): Likewise.
61667
61668         Pass test-freadseek on cygwin.
61669         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61670         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61671         ungetc buffer.
61672
61673         * tests/test-fflush2.c (main): Fix typo.
61674
61675 2008-03-29  Bruno Haible  <bruno@clisp.org>
61676
61677         * tests/test-fflush2.c (main): Temporarily disable the contents of
61678         this test.
61679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61680         Reported by Eric Blake.
61681
61682 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61683
61684         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61685         (GC_SHA224_DIGEST_SIZE): Add.
61686
61687         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61688         (gc_hash_digest_length): Likewise.
61689         (gc_hash_buffer): Likewise.
61690
61691 2008-03-25  Bruno Haible  <bruno@clisp.org>
61692
61693         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61694         detail which gettext release to use.
61695         Reported by Simon Josefsson.
61696
61697 2008-03-26  Jim Meyering  <meyering@redhat.com>
61698
61699         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61700         * modules/gnumakefile (clean-GNUmakefile): Also, use
61701         test ... && ... || : syntax rather than if-then ... fi.
61702
61703         gnumakefile: Don't double-quote-expand $(VPATH) value.
61704         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61705
61706 2008-03-24  Eric Blake  <ebb9@byu.net>
61707
61708         Alter GNUmakefile to install into top directory.
61709         * modules/maintainer-makefile: Split, and add dependency...
61710         * modules/gnumakefile: to this new module.
61711         * build-aux/GNUmakefile: Move...
61712         * top/GNUmakefile: ...here.
61713         * build-aux/maint.mk: Move...
61714         * top/maint.mk: ...here.
61715         * MODULES.html.sh (Support for maintaining...): Document new
61716         module.
61717
61718 2008-03-23  Bruno Haible  <bruno@clisp.org>
61719
61720         * gnulib-tool: New options --vc-files, --no-vc-files.
61721         (func_usage): Document them.
61722         (vc_files): New variable.
61723         (func_import): Consider vc_files.
61724         (func_create_testdir): Set vc_files to empty.
61725         Suggested by Jim Meyering and Karl Berry.
61726
61727 2008-03-23  Bruno Haible  <bruno@clisp.org>
61728
61729         Fix regex compilation error on HP-UX 11.
61730         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61731         * modules/regex (Files): Add m4/mbstate_t.m4.
61732         Reported by Ton Voon <ton.voon@altinity.com>.
61733
61734 2008-03-23  Bruno Haible  <bruno@clisp.org>
61735
61736         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61737
61738 2008-03-23  Eric Blake  <ebb9@byu.net>
61739             Bruno Haible  <bruno@clisp.org>
61740
61741         Install files from top/ in the destination directory.
61742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61743         augmentation also for the files from top/.
61744         (func_import, func_create_testdir): Rewrite file names:
61745         top/filename -> filename.
61746
61747 2008-03-23  Bruno Haible  <bruno@clisp.org>
61748
61749         Tweak "gnulib --version" output.
61750         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61751
61752 2008-03-23  Bruno Haible  <bruno@clisp.org>
61753
61754         Tweak "gnulib --version" output.
61755         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61756         rather than contents of ChangeLog, when possible.
61757
61758 2008-03-21  Eric Blake  <ebb9@byu.net>
61759
61760         More --version tweaks.
61761         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61762         date of last ChangeLog entry.
61763
61764 2008-03-21  Jim Meyering  <meyering@redhat.com>
61765
61766         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61767
61768 2008-03-20  Eric Blake  <ebb9@byu.net>
61769
61770         VPATH fix.
61771         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61772
61773 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61774
61775         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61776         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61777
61778 2008-03-20  Eric Blake  <ebb9@byu.net>
61779
61780         Sync GNUmakefile with coreutils.
61781         * build-aux/GNUmakefile (have-Makefile): Rename...
61782         (_have-Makefile): ...to this, for namespace consideration.
61783         (GNUmakefile.cfg): Include, if present.
61784         (_autoreconf): Define a default.
61785         (_is-dist-target): New rule for rebuilds to pick up intra-release
61786         version.
61787         (maint-cfg.mk): Rename...
61788         (cfg.mk): ...to this.
61789
61790 2008-03-18  Jim Meyering  <meyering@redhat.com>
61791
61792         New script and module: mktempd
61793         * MODULES.html.sh (maint+release support): Add mktempd.
61794         * build-aux/mktempd: New file.
61795         * modules/mktempd: New file.
61796
61797 2008-03-15  Jim Meyering  <meyering@redhat.com>
61798
61799         Undo last change.
61800         * lib/sha1.c, lib/md5.c: 63 != ~63.
61801         Reported by Andreas Schwab.
61802
61803         sha1.c, md5.c: Hoist a redundant expression.
61804         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61805         "ctx->buflen" only once, before calling *_process_block.
61806         * lib/md5.c (md5_process_bytes): Likewise.
61807
61808 2008-03-14  Eric Blake  <ebb9@byu.net>
61809
61810         Bump copyright year in files generated by gnulib-tool.
61811         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61812         gnulib-tool, rather than hard-coding it.
61813
61814         Fix 'gnulib-tool --version' output to work with git.
61815         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61816         (startup): ...here.
61817         (func_version): Use it to invoke git-version-gen, rather than
61818         relying on CVS keyword expansion.  Modernize wording.
61819         (cvsdatestamp, last_checkin_date, version): Kill unused
61820         variables.
61821
61822 2008-03-12  Jim Meyering  <meyering@redhat.com>
61823
61824         Recognize optional cast of the argument to free.
61825         * build-aux/useless-if-before-free: Update regexps.
61826
61827         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61828
61829 2008-03-11  Bruno Haible  <bruno@clisp.org>
61830
61831         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61832         by a single package.
61833         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61834         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61835         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61836         Reported by Sam Steingold <sds@gnu.org>.
61837
61838 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61839
61840         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61841         repositories.
61842
61843 2008-03-11  Bruno Haible  <bruno@clisp.org>
61844
61845         Avoid conflicts between local macro definitions.
61846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61847         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61848
61849 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61850             Bruno Haible  <bruno@clisp.org>
61851
61852         Make va_copy work with some version of xlc on AIX 5.1.
61853         * lib/stdarg.in.h: New file.
61854         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61855         On AIX, use a <stdarg.h> file substitute.
61856         * modules/stdarg (Files): Add lib/stdarg.in.h.
61857         (Depends-on): Add include_next.
61858         (Makefile.am): Build a stdarg.h substitute if requested.
61859         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61860
61861 2008-03-10  Bruno Haible  <bruno@clisp.org>
61862
61863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61865         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61866
61867 2008-03-10  Bruno Haible  <bruno@clisp.org>
61868
61869         * modules/stdlib (Depends-on): Add include_next, remove
61870         absolute-header.
61871
61872 2008-03-09  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/freadahead.h (freadahead): Document more precisely.
61875         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61876         the sum of both buffer sizes.
61877         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61878         * NEWS: Document the change.
61879
61880 2008-03-09  Bruno Haible  <bruno@clisp.org>
61881
61882         Extend freadptr to return also the buffer size.
61883         * lib/freadptr.h (freadptr): Add sizep argument.
61884         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61885         (freadptr): Add sizep argument. Determine buffer size like freadahead
61886         does.
61887         * tests/test-freadptr.c: Don't include freadahead.h.
61888         (main): Adapt for new calling convention of freadptr.
61889         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61890         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61891         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61892         tests/test-freadptr2.sh.
61893         (Depends): Remove freadahead.
61894         (TESTS): Add test-freadptr2.sh.
61895         (check_PROGRAMS): Add test-freadptr2.
61896
61897 2008-03-09  Bruno Haible  <bruno@clisp.org>
61898
61899         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61900         Report and solution by Simon Josefsson.
61901
61902 2008-03-06  Bruno Haible  <bruno@clisp.org>
61903
61904         Make fflush after ungetc work on BSD platforms.
61905         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61906         * tests/test-fflush2.c: New file.
61907         * tests/test-fflush2.sh: New file.
61908         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61909         tests/test-fflush2.c.
61910         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61911         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61912
61913 2008-03-06  Eric Blake  <ebb9@byu.net>
61914
61915         Likewise for ftello.
61916         * modules/ftello (Dependencies): Add extensions.
61917         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61918
61919 2008-03-06  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/fseeko (Dependencies): Add extensions.
61922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61923         Needed on glibc systems.
61924
61925 2008-03-06  Bruno Haible  <bruno@clisp.org>
61926
61927         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61928         email address.
61929         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61930
61931 2008-03-06  Bruno Haible  <bruno@clisp.org>
61932
61933         * users.txt: Add libgnupdf.
61934
61935 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61936
61937         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61938         (Header File Substitutes, Function Substitutes,
61939         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61940         (Build robot for gnulib): Fix typo.
61941
61942 2008-03-06  Bruno Haible  <bruno@clisp.org>
61943
61944         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61945         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61946
61947 2008-03-06  Bruno Haible  <bruno@clisp.org>
61948
61949         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61950         * doc/gnulib.texi: Include it.
61951
61952 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61953
61954         * modules/func (License): Change license to unlimited; there was
61955         no LGPL parts in the module anyway.
61956
61957 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61958
61959         * modules/__func__: Renamed to modules/func.
61960         * modules/__func__-tests: Renamed to modules/func-tests.
61961         * tests/test-__func__.c: Renamed to tests/test-func.c.
61962         * m4/__func__.m4: Renamed to m4/func.m4.
61963         * doc/gnulib.texi (__func__): Section renamed to func.
61964         Suggested by Eric Blake <ebb9@byu.net>.
61965
61966 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61967
61968         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61969         about __func__.  Make example self-contained.  Suggested by Eric
61970         Blake <ebb9@byu.net>.
61971
61972         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61973         Suggested by Eric Blake <ebb9@byu.net>.
61974
61975 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61976
61977         * modules/__func__: New file.
61978         * modules/__func__-tests: New file.
61979         * tests/test-__func__.c: New file.
61980         * m4/__func__.m4: New file.
61981         * doc/gnulib.texi (__func__): Document __func__ module.
61982
61983 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61984
61985         * modules/byteswap (License): Re-license as LGPLv2+.
61986
61987 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61988
61989         * doc/Makefile: Add pdf target.
61990
61991 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61992
61993         * modules/inline (License): Use 'unlimited', since there are only
61994         *.m4 files in this module.
61995
61996 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61997             Bruno Haible  <bruno@clisp.org>
61998
61999         Add support for HP C 7.1 on OpenVMS 8.3.
62000         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62001
62002 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62003
62004         Update VMS specifics.
62005         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62006
62007 2008-03-02  Jim Meyering  <meyering@redhat.com>
62008
62009         Remove the last dependency on the "free" module.
62010         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62011         Reported by Bob Proulx.
62012
62013         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62014
62015         Remove useless "if" tests before free.  Deprecate "free" module.
62016         * doc/posix-functions/free.texi: Mention that this
62017         module is no longer useful.
62018         * modules/free (Notice): Say this module is obsolete.
62019         * modules/readutmp (Depends-on): Remove free.
62020         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62021         * lib/putenv.c (putenv): Likewise.
62022         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62023         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62024         * tests/test-c-strcasestr.c (main): Likewise.
62025         * tests/test-c-strstr.c (main): Likewise.
62026         * tests/test-mbscasestr1.c (main): Likewise.
62027         * tests/test-mbscasestr2.c (main): Likewise.
62028         * tests/test-mbsstr1.c (main): Likewise.
62029         * tests/test-mbsstr2.c (main): Likewise.
62030         * tests/test-memmem.c (main): Likewise.
62031         * tests/test-strcasestr.c (main): Likewise.
62032         * tests/test-striconv.c (main): Likewise.
62033         * tests/test-striconveh.c (main): Likewise.
62034         * tests/test-striconveha.c (main): Likewise.
62035         * tests/test-strstr.c (main): Likewise.
62036
62037         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62038
62039         bootstrap: sync from coreutils again
62040         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62041
62042 2008-03-01  Jim Meyering  <meyering@redhat.com>
62043
62044         bootstrap: sync from coreutils
62045         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62046         also when the target doesn't exist.
62047
62048 2008-03-01  Eric Blake  <ebb9@byu.net>
62049
62050         Fix bugs in last patch.
62051         * lib/memchr2.c (memchr2): Fix typo.
62052         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62053         extension.
62054         Reported by Bruce Korb.
62055
62056         New module 'memchr2'.
62057         * modules/memchr2: New file.
62058         * modules/memchr2-tests: Likewise.
62059         * lib/memchr2.h: Likewise.
62060         * lib/memchr2.c: Likewise, based on memchr.c.
62061         * tests/test-memchr2.c: New test.
62062         * MODULES.html.sh (String handling): Add memchr2.
62063
62064 2008-02-29  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/freadseek-tests: New file.
62067         * tests/test-freadseek.sh: New file.
62068         * tests/test-freadseek.c: New file.
62069
62070         New module 'freadseek'.
62071         * modules/freadseek: New file.
62072         * lib/freadseek.h: New file.
62073         * lib/freadseek.c: New file.
62074         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62075
62076 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62077
62078         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62079         wydawca.
62080
62081         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62082         program_invocation_name and program_invocation_short_name are
62083         present.
62084
62085 2008-02-28  Bruno Haible  <bruno@clisp.org>
62086
62087         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62088         * tests/test-freadptr.sh: Also test non-seekable stdin.
62089
62090 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62091
62092         * build-aux/bootstrap (source_base, m4_base)
62093         (doc_base, tests_base): New variables.
62094         (gnulib_tool_options): Do not hardcode base directories, use
62095         the above variables instead.
62096
62097 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62098
62099         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62100
62101 2008-02-28  Bruno Haible  <bruno@clisp.org>
62102
62103         * modules/freadptr-tests: New file.
62104         * tests/test-freadptr.sh: New file.
62105         * tests/test-freadptr.c: New file.
62106
62107         New module 'freadptr'.
62108         * modules/freadptr: New file.
62109         * lib/freadptr.h: New file.
62110         * lib/freadptr.c: New file.
62111         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62112
62113 2008-02-26  Karl Berry  <karl@freefriends.org>
62114
62115         Sync from Libtool:
62116         * libltdl/argz.c (argz_add, argz_count): New functions.
62117         * libltdl/argz.in.h: Declare them.
62118         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62119
62120 2008-02-22  Bruno Haible  <bruno@clisp.org>
62121
62122         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62123         is a pointer type.  Needed for HP-UX 10.
62124         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62125         * doc/posix-functions/gmtime_r.texi: Likewise.
62126         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62127
62128 2008-02-24  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/environ-tests: New file.
62131         * tests/test-environ.c: New file.
62132
62133         New module 'environ'.
62134         * modules/environ: New file.
62135         * lib/unistd.in.h (environ): New declaration.
62136         * m4/environ.m4: New file.
62137         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62138         after use.
62139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62140         HAVE_DECL_ENVIRON.
62141         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62142         HAVE_DECL_ENVIRON.
62143         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62144         wrong claim that 'environ' is missing on some systems.
62145         * modules/execute (Depends-on): Add environ.
62146         * lib/execute.c (environ): Remove fallback declaration.
62147         * modules/pipe (Depends-on): Add environ.
62148         * lib/pipe.c (environ): Remove fallback declaration.
62149         * modules/setenv (Depends-on): Add environ.
62150         * lib/setenv.c (environ): Remove fallback declaration.
62151         * modules/unsetenv (Depends-on): Add environ.
62152         * lib/unsetenv.c (environ): Remove fallback declaration.
62153         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62154         m4/environ.m4.
62155         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62156         (gl_PREREQ_UNSETENV): Likewise.
62157
62158 2008-02-24  Bruno Haible  <bruno@clisp.org>
62159
62160         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62161
62162 2008-02-20  Bob Proulx  <bob@proulx.com>
62163
62164         Enable use of older two part flavor 'git describe'.
62165         * build-aux/git-version-gen: If using the older two part flavor of
62166         git version then recreate the third part now present in the
62167         newer three part flavor of git describe.
62168
62169 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62170
62171         * lib/fts.c (fts_build): Typo correction to comment.
62172
62173 2008-02-17  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62176         generating no-op conflicts.
62177
62178 2008-02-17  Bruno Haible  <bruno@clisp.org>
62179
62180         Speed up by 10%.
62181         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62182         result_entries, rather than an index-based loop.
62183
62184 2008-02-17  Bruno Haible  <bruno@clisp.org>
62185
62186         Speed up by 25%.
62187         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62188         'hashcode_cached'.
62189         (entry_create): New function.
62190         (entry_hashcode): Use the cached hashcode if possible.
62191         (read_changelog_file, try_split_merged_entry): Use entry_create.
62192
62193 2008-02-17  Bruno Haible  <bruno@clisp.org>
62194
62195         Speed up from O(n^2) to O(n) for long ChangeLog files.
62196         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62197         (read_changelog_file): Change implementation of entries_reversed list
62198         to rbtreehash.
62199         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62200
62201 2008-02-17  Bruno Haible  <bruno@clisp.org>
62202
62203         New option --split-merged-entry.
62204         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62205         (find_paragraph_end, try_split_merged_entry): New functions.
62206         (long_options): Add option --split-merged-entry.
62207         (usage): Document option --split-merged-entry.
62208         (main): Implement option --split-merged-entry.
62209         Reported by Eric Blake.
62210
62211 2008-02-17  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/git-merge-changelog.c: Include c-strstr.h.
62214         (main): Support the "git pull --rebase" situation.
62215         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62216         Reported by Eric Blake.
62217
62218 2008-02-16  Eric Blake  <ebb9@byu.net>
62219
62220         Avoid doubling \ in common case of "c-maybe" quoting style.
62221         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62222         eliding outer quotes.
62223         * lib/quotearg.h: Document this.
62224         * tests/test-quotearg.c (result_strings, inputs, results_g)
62225         (flag_results, locale_results): Test it by adding a new string to
62226         each test group.
62227         (compare_strings): Test new string.
62228
62229 2008-02-13  Eric Blake  <ebb9@byu.net>
62230
62231         Avoid trigraph quoting in default output.
62232         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62233         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62234         unless explicitly requested.
62235         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62236
62237 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62238
62239         Don't rely on signed integer overflowing to negative value.
62240         * lib/getugroups.c (getugroups): Include <limits.h>.
62241         Instead, compare against INT_MAX, and increment only if the test passes.
62242
62243 2008-02-13  Jim Meyering  <meyering@redhat.com>
62244         and Eric Blake  <ebb9@byu.net>
62245
62246         Avoid shadowing warning and compile errors on Linux.
62247         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62248         forwarding macros on Linux.
62249         (dcgettext): Define a stub, for Linux.
62250         (results_g, main): Avoid warnings.
62251
62252 2008-02-12  Eric Blake  <ebb9@byu.net>
62253
62254         Silence warning in last patch.
62255         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62256
62257         Quotearg part 4: add tests, fix c-maybe colon quoting.
62258         * lib/quotearg.h: Improve documentation.
62259         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62260         escapes when adding outer quotes.  When quoting trigraphs, use
62261         valid C notation.  When quoting NUL, omit extra characters if next
62262         character is not digit.  Alter prototype.
62263         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62264         callers.
62265         * modules/quotearg-tests: New module.
62266         * tests/test-quotearg.c: New test.
62267
62268 2008-02-07  Eric Blake  <ebb9@byu.net>
62269
62270         Quotearg part 3: add flag to control outer quote elision.
62271         * lib/quotearg.h (c_maybe_quoting_style): New style.
62272         (enum quoting_flags): Better documentation of flags.
62273         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62274         c-maybe style.
62275         (quotearg_buffer_restyled): Handle new flag to elide outer
62276         quotes.
62277
62278         Quotearg part 2: add flag that can control NUL elision.
62279         * lib/quotearg.h (set_quoting_flags): New prototype.
62280         * lib/quotearg.c (struct quoting_options): Add flag field.
62281         (set_quoting_flags): New function.
62282         (quotearg_buffer_restyled): Add flags parameter.
62283         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62284         (quotearg_n_options): Set the flag, since length cannot be
62285         returned.
62286         (quoting_options_from_style): Default flags correctly.
62287
62288         Quotearg part 1: more wrappers, restore quotearg_char state.
62289         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62290         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62291         (quotearg_colon_mem): New wrappers.
62292         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62293         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62294         functions.
62295         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62296         (quotearg_colon_mem): New functions.
62297
62298 2008-02-11  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62301         library in the current directory: it does not work with parallel make.
62302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62303
62304 2008-02-11  Bruno Haible  <bruno@clisp.org>
62305
62306         * .gitattributes: New file.
62307
62308 2008-02-11  Jim Meyering  <meyering@redhat.com>
62309
62310         useless-if-before-free: Fix reversed exit values.
62311         * build-aux/useless-if-before-free: Use correct values
62312         for EXIT_MATCH and EXIT_NO_MATCH.
62313
62314         * build-aux/useless-if-before-free: Close stdout carefully.
62315
62316 2008-02-10  Bruno Haible  <bruno@clisp.org>
62317
62318         New module 'git-merge-changelog'.
62319         * modules/git-merge-changelog: New file.
62320         * lib/git-merge-changelog.c: New file.
62321
62322 2008-02-10  Jim Meyering  <meyering@redhat.com>
62323
62324         useless-if-before-free: New option: --list (-l).
62325
62326         useless-if-before-free: Don't exit immediately upon open failure.
62327         * build-aux/useless-if-before-free: Exit 2 for errors.
62328         Upon failure to open a file, don't exit immediately.
62329         Rather, just warn and continue with any remaining files.
62330
62331 2008-02-10  Bruno Haible  <bruno@clisp.org>
62332
62333         New abstract list operation 'node_set_value'.
62334         * lib/gl_list.h (gl_list_node_set_value): New function.
62335         (struct gl_list_implementation): New field node_set_value.
62336         * lib/gl_list.c (gl_list_node_set_value): New function.
62337         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62338         (gl_array_list_implementation): Update.
62339         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62340         (gl_carray_list_implementation): Update.
62341         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62342         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62343         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62344         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62345         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62346         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62347         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62348         Update.
62349         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62350         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62351         (gl_sublist_list_implementation): Update.
62352
62353 2008-02-10  Bruno Haible  <bruno@clisp.org>
62354
62355         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62356         Needed when ELEMENT is #defined to 'some_type *'.
62357
62358 2008-02-10  Jim Meyering  <meyering@redhat.com>
62359
62360         New script and module: useless-if-before-free
62361         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62362         * build-aux/useless-if-before-free: New file.
62363         * modules/useless-if-before-free: New file.
62364
62365         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62366
62367         xstrtol_error: Fix typo.
62368         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62369         s/exit_failure/exit_status/.
62370
62371 2008-02-09  Jim Meyering  <meyering@redhat.com>
62372
62373         New script and module: gitlog-to-changelog
62374         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62375         * modules/gitlog-to-changelog: New file.
62376         * build-aux/gitlog-to-changelog: New file.
62377
62378 2008-02-08  Jim Meyering  <meyering@redhat.com>
62379
62380         Avoid two "parameter unused" warnings.
62381         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62382         Mark "st" as used.
62383
62384         Use "git COMMAND", not "git-COMMAND".
62385         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62386         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62387         * build-aux/git-version-gen: Use "git status", not "git-status".
62388
62389 2008-02-07  Bruno Haible  <bruno@clisp.org>
62390
62391         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62392         Avoids a crash on Windows Vista.
62393         Reported by Adam Strzelecki <ono@java.pl> via
62394         Simon Josefsson <simon@josefsson.org>.
62395
62396 2008-02-06  Bruno Haible  <bruno@clisp.org>
62397
62398         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62399         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62404         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62405         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62413         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62414         left-adjust flag.
62415         * tests/test-snprintf-posix.h (test_function): Likewise.
62416         * tests/test-sprintf-posix.h (test_function): Likewise.
62417         * tests/test-vasprintf-posix.c (test_function): Likewise.
62418         * doc/posix-functions/fprintf.texi: Update.
62419         * doc/posix-functions/printf.texi: Update.
62420         * doc/posix-functions/snprintf.texi: Update.
62421         * doc/posix-functions/sprintf.texi: Update.
62422         * doc/posix-functions/vfprintf.texi: Update.
62423         * doc/posix-functions/vprintf.texi: Update.
62424         * doc/posix-functions/vsnprintf.texi: Update.
62425         * doc/posix-functions/vsprintf.texi: Update.
62426         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62427
62428 2008-02-06  Bruno Haible  <bruno@clisp.org>
62429
62430         Fix bug introduced on 2008-01-26.
62431         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62432
62433 2008-02-06  Bruno Haible  <bruno@clisp.org>
62434
62435         Fix bug introduced on 2007-06-10.
62436         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62437         !NEED_PRINTF_FLAG_ZERO.
62438
62439 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62440
62441         getloadavg: use libperfstat on AIX5
62442         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62443
62444 2008-02-03  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/diffseq.h: Add comments about required #includes.
62447         Reported by Michael Biggs <gnulib@doubleplum.net>.
62448
62449 2008-02-01  Bruno Haible  <bruno@clisp.org>
62450
62451         * users.txt: Add gnuit.
62452
62453 2008-01-31  Bruno Haible  <bruno@clisp.org>
62454
62455         * lib/md4.c (set_uint32): Mark as inline.
62456         * lib/md5.c (set_uint32): Likewise.
62457         * lib/sha1.c (set_uint32): Likewise.
62458         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62459         * m4/md5.m4 (gl_MD5): Likewise.
62460         * m4/sha1.m4 (gl_SHA1): Likewise.
62461
62462 2008-01-31  Jim Meyering  <meyering@redhat.com>
62463
62464         Use "sizeof VAR", rather than a literal "4".
62465         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62466         * lib/md4.c (md4_read_ctx): Likewise.
62467         * lib/sha1.c (sha1_read_ctx): Likewise.
62468
62469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62470
62471         * tests/test-sha1.c: New file, based on test-md5.c.
62472
62473         * modules/crypto/sha1-tests: New file.
62474
62475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62476
62477         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62478
62479 2008-01-31  Jim Meyering  <meyering@redhat.com>
62480
62481         Prefer "sizeof v" over the equivalent "4".
62482         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62483         * lib/md5.c (set_uint32): Likewise.
62484         * lib/sha1.c (set_uint32): Likewise.
62485
62486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62487
62488         * lib/sha1.c (set_uint32): Mark function as static.
62489
62490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62491
62492         md2: clarify comments to say that alignment is not required.
62493         * lib/md2.h: Remove warning about alignment in comment.
62494         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62495         never been required.
62496
62497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62498
62499         md4: adapt alignment constraint fix from sha1.
62500         * lib/md4.c (set_uint32): New function, from sha1.c
62501         (md4_read_ctx): Use it.
62502         (md4_finish_ctx): Doc fix.
62503         * lib/md4.h: Doc fix.
62504
62505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62506
62507         md5: adapt alignment constraint fix from sha1.
62508         * lib/md5.c (set_uint32): New function, from sha1.c
62509         (md5_read_ctx): Use it.
62510         (md5_finish_ctx): Doc fix.
62511         * lib/md5.h: Doc fix.
62512
62513 2008-01-30  Peter Palfrader  <weasel@debian.org>
62514
62515         sha1: remove the result buffer alignment constraint
62516         * lib/sha1.c (set_uint32): New function.
62517         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62518         constraint.
62519         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62520         * lib/sha1.h: Likewise.
62521
62522 2008-01-30  Andreas Schwab  <schwab@suse.de>
62523             Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62526         correct definition of LDBL_MIN_EXP.
62527
62528 2008-01-30  Karl Berry  <karl@gnu.org>
62529
62530         * config/srclist-update: try to preserve x bit on updates.
62531         * config/srclistvars.sh: update for karl.
62532
62533 2008-01-29  Jim Meyering  <meyering@redhat.com>
62534
62535         vasnprintf.c: Avoid warning about unused label
62536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62537         "overflow" label definition and associated code with the
62538         same cpp condition that guards the sole use of that label.
62539
62540 2008-01-26  Bruno Haible  <bruno@clisp.org>
62541
62542         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62543         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62544         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62545         * lib/isnanl-nolibm.h (isnanl): Likewise.
62546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62547
62548 2008-01-26  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62551         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62552
62553 2008-01-26  Bruno Haible  <bruno@clisp.org>
62554
62555         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62556         GCC >= 4.0 built-in.
62557         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62558
62559 2008-01-26  Bruno Haible  <bruno@clisp.org>
62560
62561         Rename isnan, applicable to 'double' only, to isnand.
62562         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62563         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62564         (configure.ac): Update.
62565         (Include): Replace "isnan.h" with "isnand.h".
62566         * m4/isnand.m4: Renamed from m4/isnan.m4.
62567         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62568         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62569         instead of isnan.c.
62570         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62571         instead of HAVE_ISNAN_IN_LIBC.
62572         (isnand): Renamed from isnan.
62573         * lib/isnand.c: New file.
62574         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62575         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62576         (Makefile.am): Update.
62577         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62578         Include isnand.h instead of isnan.h.
62579         (main): Test isnand instead of isnan.
62580         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62581         isnan-nolibm.
62582         * modules/frexp (Depends-on): Likewise.
62583         * modules/frexp-tests (Depends-on): Likewise.
62584         * modules/frexp-nolibm (Depends-on): Likewise.
62585         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62586         * modules/isfinite (Depends-on): Likewise.
62587         * modules/round-tests (Depends-on): Likewise.
62588         * modules/signbit (Depends-on): Likewise.
62589         * modules/signbit-tests (Depends-on): Likewise.
62590         * modules/snprintf-posix (Depends-on): Likewise.
62591         * modules/sprintf-posix (Depends-on): Likewise.
62592         * modules/trunc-tests (Depends-on): Likewise.
62593         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62594         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62595         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62596         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62597         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62598         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62599         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62600         * modules/vasnprintf-posix (Depends-on): Likewise.
62601         * modules/vasprintf-posix (Depends-on): Likewise.
62602         * modules/vfprintf-posix (Depends-on): Likewise.
62603         * modules/vsnprintf-posix (Depends-on): Likewise.
62604         * modules/vsprintf-posix (Depends-on): Likewise.
62605         * lib/frexp.c: Include isnand.h instead of isnan.h.
62606         (ISNAN): Set to isnand instead of isnan.
62607         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62608         (gl_isfinited): Use isnand instead of isnan.
62609         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62610         (gl_signbitd): Use isnand instead of isnan.
62611         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62612         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62613         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62614         (main): Use isnand instead of isnan.
62615         * tests/test-round1.c: Include isnand.h.
62616         (main): Use isnand instead of isnan.
62617         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62618         (ISNAN): Set to isnand instead of isnan.
62619         * tests/test-trunc1.c: Include isnand.h.
62620         (main): Use isnand instead of isnan.
62621         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62622         (equal): Use isnand instead of isnan.
62623         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62624         isnand-nolibm.
62625         * NEWS: Mention the change.
62626
62627 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62628             Bruno Haible  <bruno@clisp.org>
62629
62630         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62631         the GCC builtins for signbits are present and set
62632         REPLACE_SIGNBIT_USING_GCC if so.
62633         * lib/math.in.h (signbit): Define using GCC builtins if
62634         REPLACE_SIGNBIT_USING_GCC is set.
62635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62636         REPLACE_SIGNBIT_USING_GCC.
62637         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62638
62639 2008-01-25  Jim Meyering  <meyering@redhat.com>
62640
62641         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62642         * lib/poll.c: Include <config.h>, not "config.h".
62643         * tests/test-getaddrinfo.c: Likewise.
62644
62645 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62646
62647         * modules/sockets-tests: New file.
62648
62649 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62650
62651         * modules/sockets: New module, can be used to call WSA_Startup and
62652         WSA_Cleanup when needed.
62653
62654         * lib/sockets.h, lib/sockets.c: New files.
62655
62656         * m4/sockets.m4: New file.
62657
62658         * tests/test-sockets.c: New file.
62659
62660 2008-01-19  Bruno Haible  <bruno@clisp.org>
62661
62662         * doc/posix-headers: Renamed from doc/headers.
62663         * doc/posix-functions: Renamed from doc/functions.
62664         * doc/gnulib.texi: Update.
62665
62666 2008-01-19  Bruno Haible  <bruno@clisp.org>
62667
62668         * doc/glibc-functions/strcasestr.texi: Include contents of
62669         doc/functions/strcasestr.texi, fixing the list of platforms.
62670         * doc/functions/strcasestr.texi: Remove file.
62671
62672 2008-01-19  Bruno Haible  <bruno@clisp.org>
62673
62674         * doc/glibc-functions/memmem.texi: Include contents of
62675         doc/functions/memmem.texi.
62676         * doc/functions/memmem.texi: Remove file.
62677
62678 2008-01-18  Bruno Haible  <bruno@clisp.org>
62679
62680         * doc/glibc-functions/*.texi: New files.
62681         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62682         to use the new files.
62683
62684 2008-01-17  Bruno Haible  <bruno@clisp.org>
62685
62686         * tests/test-gethostname.c (main): Fix printf statement.
62687
62688 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62689
62690         * modules/gethostname-tests: New file.
62691
62692         * tests/test-gethostname.c: New file.
62693
62694 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62695
62696         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62697         used by the UNAME case.  Reported by Bruno Haible
62698         <bruno@clisp.org>.
62699
62700 2008-01-17  Eric Blake  <ebb9@byu.net>
62701
62702         Convert c-strcasestr to be more efficient.
62703         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62704         (Depends-on): Add c-strcase, remove malloca, strnlen.
62705         * tests/test-c-strcasestr.c (main): Enhance test.
62706         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62707
62708 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62709
62710         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62711         Use it in creating po/Makevars.
62712
62713 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62714
62715         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62716         Applications that requires it should initialize libgcrypt
62717         manually.
62718
62719 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62720
62721         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62722
62723 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62724
62725         Fix problem with getdate on mingw32 reported by Simon Josefsson
62726         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62727         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62728         tzname", when deciding whether to declare tzname.
62729         * lib/strftime.c (tzname): Likewise.
62730
62731 2008-01-15  Bruno Haible  <bruno@clisp.org>
62732
62733         Work around a MacOS X 10.5 bug in frexpl().
62734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62735         * doc/functions/frexpl.texi: Document the bug.
62736         Reported by Elias Pipping <pipping@gentoo.org>.
62737
62738 2008-01-14  Eric Blake  <ebb9@byu.net>
62739
62740         Touch up previous patch.
62741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62742         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62743
62744         Convert strcasestr module to use Two-Way algorithm.
62745         * modules/strcasestr-simple: New module, based on the old
62746         strcasestr, but with Two-Way rather than KMP.
62747         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62748         * lib/string.in.h (rpl_strcasestr): Declare.
62749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62750         performance.
62751         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62752         * modules/string (Makefile.am): Support strcasestr.
62753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62754         * modules/strcasestr-tests (Depends-on): Check for alarm.
62755         * tests/test-strcasestr.c: Augment test.
62756         * lib/str-two-way.h: Clean up stray macro.
62757         * NEWS: Document new module.
62758         * MODULES.html.sh (string handling): Likewise.
62759         * doc/functions/strcasestr.texi: New file.
62760         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62761         here, since it is not a POSIX function.
62762
62763 2008-01-14  Colin Watson  <cjwatson@debian.org>
62764             Bruno Haible  <bruno@clisp.org>
62765
62766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62767         works fine; if not, set REPLACE_STRSIGNAL.
62768         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62770         REPLACE_STRSIGNAL.
62771         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62772         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62773         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62774
62775 2008-01-14  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/strsignal (Include): Change to <string.h>.
62778
62779 2008-01-14  Colin Watson  <cjwatson@debian.org>
62780
62781         * modules/argp (Notice): Add a notice recommending to change
62782         XGETTEXT_OPTIONS.
62783         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62784
62785 2008-01-13  Colin Watson  <cjwatson@debian.org>
62786
62787         * modules/strsignal-tests: New file.
62788         * tests/test-strsignal.c: New file.
62789
62790         * lib/strsignal.c: New file, from glibc with modifications.
62791         * lib/siglist.h: New file, from glibc with modifications.
62792         * lib/string.in.h (strsignal): New declaration.
62793         * m4/strsignal.m4: New file.
62794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62795         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62796         * modules/strsignal: New file.
62797         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62798         HAVE_DECL_STRSIGNAL.
62799
62800 2008-01-13  Bruno Haible  <bruno@clisp.org>
62801
62802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62803         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62804         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62806
62807 2008-01-13  Bruno Haible  <bruno@clisp.org>
62808
62809         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62810         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62811         * lib/argp.h (__attribute__): Likewise.
62812         * lib/c-stack.c (__attribute__): Likewise.
62813         * lib/error.h (__attribute__): Likewise.
62814         * lib/fts.c (__attribute__): Likewise.
62815         * lib/openat.h (__attribute__): Likewise.
62816         * lib/stdio.in.h (__attribute__): Likewise.
62817         * lib/string.in.h (__attribute__): Likewise.
62818         * lib/utimens.c (__attribute__): Likewise.
62819         * lib/vasnprintf.h (__attribute__): Likewise.
62820         * lib/xalloc.h (__attribute__): Likewise.
62821         * lib/xprintf.h (__attribute__): Likewise.
62822         * lib/xstrtol.h (__attribute__): Likewise.
62823         * lib/xvasprintf.h (__attribute__): Likewise.
62824
62825 2008-01-12  Bruno Haible  <bruno@clisp.org>
62826
62827         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62828         * doc/glibc-headers/a.out.texi: New file.
62829         * doc/glibc-headers/aliases.texi: New file.
62830         * doc/glibc-headers/alloca.texi: New file.
62831         * doc/glibc-headers/ar.texi: New file.
62832         * doc/glibc-headers/argp.texi: New file.
62833         * doc/glibc-headers/argz.texi: New file.
62834         * doc/glibc-headers/byteswap.texi: New file.
62835         * doc/glibc-headers/crypt.texi: New file.
62836         * doc/glibc-headers/endian.texi: New file.
62837         * doc/glibc-headers/envz.texi: New file.
62838         * doc/glibc-headers/err.texi: New file.
62839         * doc/glibc-headers/error.texi: New file.
62840         * doc/glibc-headers/execinfo.texi: New file.
62841         * doc/glibc-headers/fpu_control.texi: New file.
62842         * doc/glibc-headers/fstab.texi: New file.
62843         * doc/glibc-headers/fts.texi: New file.
62844         * doc/glibc-headers/getopt.texi: New file.
62845         * doc/glibc-headers/ieee754.texi: New file.
62846         * doc/glibc-headers/ifaddrs.texi: New file.
62847         * doc/glibc-headers/libintl.texi: New file.
62848         * doc/glibc-headers/mcheck.texi: New file.
62849         * doc/glibc-headers/mntent.texi: New file.
62850         * doc/glibc-headers/obstack.texi: New file.
62851         * doc/glibc-headers/paths.texi: New file.
62852         * doc/glibc-headers/printf.texi: New file.
62853         * doc/glibc-headers/pty.texi: New file.
62854         * doc/glibc-headers/resolv.texi: New file.
62855         * doc/glibc-headers/shadow.texi: New file.
62856         * doc/glibc-headers/sysexits.texi: New file.
62857         * doc/glibc-headers/ttyent.texi: New file.
62858
62859 2008-01-12  Jim Meyering  <meyering@redhat.com>
62860
62861         announce-gen: emit Gnulib's git-based version string.
62862         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62863         New option --gnulib-version=V, where V is expected to be
62864         the output of running git describe in the gnulib directory.
62865         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62866         not useful, and plan to stop publishing an xdelta file with each
62867         coreutils release.
62868
62869         * build-aux/announce-gen: Also check for lzma-compressed files.
62870
62871 2008-01-11  Bruno Haible  <bruno@clisp.org>
62872
62873         * tests/test-memmem.c (main): Increase maximum allowed time.
62874         * tests/test-strstr.c (main): Likewise.
62875
62876 2008-01-11  Bruno Haible  <bruno@clisp.org>
62877
62878         * doc/functions/memmem.texi: Add more precisions about platforms.
62879         * doc/functions/strstr.texi: Likewise.
62880
62881 2008-01-10  Eric Blake  <ebb9@byu.net>
62882
62883         * m4/strstr.m4: Delete cruft from copy-n-paste.
62884         Reported by Bruno Haible.
62885
62886 2008-01-10  Bruno Haible  <bruno@clisp.org>
62887
62888         Make c-strstr rely on strstr.
62889         * lib/c-strstr.c: Don't include str-kmp.h.
62890         (c_strstr): Define in terms of strstr.
62891         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62892         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62893
62894 2008-01-10  Bruno Haible  <bruno@clisp.org>
62895
62896         * doc/gnulib.texi (String Functions in C Locale): New section.
62897         * doc/c-ctype.texi: New file.
62898         * doc/c-strcase.texi: New file.
62899         * doc/c-strcaseeq.texi: New file.
62900         * doc/c-strcasestr.texi: New file.
62901         * doc/c-strstr.texi: New file.
62902         * doc/c-strtod.texi: New file.
62903         * doc/c-strtold.texi: New file.
62904
62905 2008-01-10  Eric Blake  <ebb9@byu.net>
62906
62907         * lib/relocatable.h: Fix a comment.
62908
62909 2008-01-10  Eric Blake  <ebb9@byu.net>
62910
62911         Share two-way algorithm.
62912         * lib/str-two-way.h: New file, merged from...
62913         * lib/memmem.c: ...here...
62914         * lib/strstr.c: ...and here.
62915         * modules/memmem (Files): Use it.
62916         * modules/strstr (Files): Likewise.
62917
62918         Avoid quadratic strstr implementations.
62919         * lib/strstr.c: New file.
62920         * m4/strstr.m4: Likewise.
62921         * modules/strstr: Likewise.
62922         * modules/strstr-tests: Likewise.
62923         * tests/test-strstr.c: Likewise.
62924         * lib/string.in.h (rpl_strstr): Declare.
62925         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62927         * modules/string (Makefile.am): Likewise.
62928         * MODULES.html.sh (string handling): Mention new module.
62929         * doc/functions/strstr.texi (strstr): Document the bug.
62930
62931 2008-01-10  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/relocatable.h (relocate): State whether result is freshly
62934         allocated or not.
62935         * lib/relocatable.c (relocate): Return a freshly allocated string
62936         instead of a pointer to a privately held string.
62937         Reported by Sylvain Beucler <beuc@gnu.org>.
62938
62939 2008-01-10  Colin Watson  <cjwatson@debian.org>
62940
62941         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62942         s/S_ISNLK/S_ISLNK/.
62943
62944 2008-01-09  Bruno Haible  <bruno@clisp.org>
62945
62946         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62947         and other files.
62948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62949         if it's only a guess.
62950         * modules/memmem: Simplify by depending on memmem-simple.
62951
62952 2008-01-09  Bruno Haible  <bruno@clisp.org>
62953
62954         Work around OpenBSD 4.0 tdelete() bug.
62955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62956         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62957         macros and don't redefine the enum values.
62958         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62959         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62960         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62961
62962 2008-01-09  Bruno Haible  <bruno@clisp.org>
62963
62964         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62965         (main): Don't perform the tests if setlocale did not install a UTF-8
62966         locale. Needed on OpenBSD 4.0.
62967         * modules/wcwidth-tests (Depends-on): Add localcharset.
62968
62969 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62970
62971         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62972         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62973         * NEWS: announce this.
62974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62975
62976 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62977         and Eric Blake  <ebb9@byu.net>
62978
62979         Add memmem-simple module.
62980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62981         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62982         * modules/memmem-simple: New file.
62983         * modules/memmem (Description): Tweak.
62984         * MODULES.html.sh (string handling): Mention new module.
62985         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62986         addressed by memmem-simple.
62987         * NEWS: Document the difference.
62988
62989 2008-01-09  Eric Blake  <ebb9@byu.net>
62990
62991         Give gcc some memmem optimization hints.
62992         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62993         (strcasestr): Declare as pure.
62994         * modules/memmem (Maintainer): Claim my implementation.
62995
62996 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62997
62998         Support AIX 6.1 and higher.
62999         * build-aux/config.libpath: Likewise.
63000         * build-aux/config.rpath: Likewise.
63001
63002 2008-01-08  Jim Meyering  <meyering@redhat.com>
63003             Bruno Haible  <bruno@clisp.org>
63004
63005         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63006         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63007         Reported by Peter Fales in
63008         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63009
63010 2008-01-08  Bruno Haible  <bruno@clisp.org>
63011
63012         * modules/unictype/category-of (Depends-on): Add
63013         unictype/category-none.
63014         * modules/unictype/category-and-tests (Depends-on): Add
63015         unictype/category-{L,N,Lu,Nd}.
63016         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63017         * modules/unictype/category-or-tests (Depends-on): Add
63018         unictype/category-{L,N}.
63019         * modules/unictype/category-name-tests (Depends-on): Add
63020         unictype/category-{Z,Nl}.
63021         Reported by Simon Josefsson.
63022
63023 2008-01-08  Bruno Haible  <bruno@clisp.org>
63024
63025         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63026         convention better.
63027         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63028         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63029         Reported by Peter Miller <millerp@canb.auug.org.au>.
63030
63031 2008-01-08  Eric Blake  <ebb9@byu.net>
63032
63033         Rewrite memmem to guarantee linear complexity without malloc.
63034         * lib/memmem.c (memmem): Use Two-Way rather than
63035         Knuth-Morris-Pratt, to allow O(1) space usage.
63036         (critical_factorization, two_way_short_needle)
63037         (two_way_long_needle): New functions.
63038         (knuth_morris_pratt): Delete.
63039         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63040         Add stdint.
63041         * tests/test-memmem.c (main): Add tests for periodic needle and
63042         sublinear performance.
63043         * doc/functions/memmem.texi (memmem): Document other deficiencies
63044         in cygwin and older glibc.
63045
63046 2008-01-08  Bruno Haible  <bruno@clisp.org>
63047
63048         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63049         augmentation.
63050
63051 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63052
63053         Add a configure time option: --disable-acl.
63054         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63055         AC_ARG_ENABLE(acl).
63056
63057 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63058
63059         * tests/test-localename.c: Don't include obsolete "setenv.h".
63060
63061         * modules/localename-tests (Depends-on): Need unsetenv.
63062
63063 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63064
63065         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63066
63067 2008-01-06  Colin Watson  <cjwatson@debian.org>
63068
63069         * users.txt: Add man-db.
63070
63071 2008-01-07  Bruno Haible  <bruno@clisp.org>
63072
63073         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63074         previous section name.
63075
63076 2008-01-07  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/progname.c (set_program_name): Don't strip off a leading
63079         "lt-" prefix outside a .libs directory.
63080         Suggested by Paul Eggert.
63081
63082 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63083             Bruno Haible  <bruno@clisp.org>
63084
63085         Improve memory cleanup in 'relocatable' module.
63086         * lib/relocatable.h (compute_curr_prefix): Change return type to
63087         'char *'.
63088         * lib/relocatable.c (compute_curr_prefix): Change return type to
63089         'char *'. Free curr_installdir after use.
63090         (relocate): Free curr_prefix_better after use.
63091         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63092
63093 2008-01-01  Bruno Haible  <bruno@clisp.org>
63094
63095         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63096         failure on older glibc systems.
63097         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63098
63099 2008-01-05  Eric Blake  <ebb9@byu.net>
63100
63101         Avoid quadratic system memmem.
63102         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63103         Reported by Ralf Wildenhues.
63104
63105         Fix memmem test for mingw.
63106         * modules/memmem-tests (configure.ac): Check for alarm.
63107         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63108         it.
63109         * doc/functions/memmem.texi: New file.
63110         * doc/gnulib.texi (Function Substitutes): Add memmem.
63111         Reported by Bruno Haible.
63112
63113 2008-01-04  Bruno Haible  <bruno@clisp.org>
63114
63115         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63116         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63117         gl_HEADER_STRING_H_DEFAULTS.
63118
63119 2008-01-04  Eric Blake  <ebb9@byu.net>
63120
63121         Shorten duration of memmem test.
63122         * tests/test-memmem.c (main): Use alarm to declare failure if test
63123         is taking too long.
63124         Reported by Ralf Wildenhues.
63125
63126 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63127
63128         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63129         string, needed by strerror.
63130
63131 2008-01-03  Colin Watson  <cjwatson@debian.org>
63132             Bruno Haible  <bruno@clisp.org>
63133
63134         * doc/gnulib-tool.texi (Localization): New section.
63135
63136 2008-01-02  Bruno Haible  <bruno@clisp.org>
63137
63138         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63139         variables to 'unsigned char *' type.
63140         Reported by Paul Eggert.
63141
63142 2008-01-02  Jim Meyering  <jim@meyering.net>
63143
63144         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63145
63146 2007-12-31  Jim Meyering  <jim@meyering.net>
63147
63148         Avoid use of private FTS type name.
63149         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63150
63151 2007-12-30  Karl Berry  <karl@gnu.org>
63152
63153         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63154         work around defect in Texinfo and/or the standalone Info browser.
63155
63156 2007-12-30  Bruno Haible  <bruno@clisp.org>
63157
63158         Unify 5 copies of the KMP code.
63159         * lib/str-kmp.h: New file.
63160         * lib/c-strcasestr.c: Include str-kmp.h.
63161         (knuth_morris_pratt): Remove function.
63162         (c_strcasestr): Update.
63163         * lib/c-strstr.c: Include str-kmp.h.
63164         (knuth_morris_pratt): Remove function.
63165         (c_strcasestr): Update.
63166         * lib/mbscasestr.c: Include str-kmp.h.
63167         (knuth_morris_pratt_unibyte): Remove function.
63168         * lib/mbsstr.c: Include str-kmp.h.
63169         (knuth_morris_pratt_unibyte): Remove function.
63170         * lib/strcasestr.c: Include str-kmp.h.
63171         (knuth_morris_pratt): Remove function.
63172         (strcasestr): Update.
63173         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63174         * modules/c-strstr (Files): Likewise.
63175         * modules/mbscasestr (Files): Likewise.
63176         * modules/mbsstr (Files): Likewise.
63177         * modules/strcasestr (Files): Likewise.
63178         Suggested by Paul Eggert.
63179
63180 2007-12-30  Bruno Haible  <bruno@clisp.org>
63181
63182         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63183         defined.
63184
63185 2007-12-30  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/xmalloca.h: Include xalloc.h.
63188         (xnmalloca): New macro.
63189
63190 2007-12-30  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/malloca.h (nmalloca): New macro.
63193         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63194         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63195         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63196         knuth_morris_pratt_multibyte): Likewise.
63197         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63198         knuth_morris_pratt_multibyte): Likewise.
63199         * lib/memmem.c (knuth_morris_pratt): Likewise.
63200         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63201
63202 2007-12-25  Bruno Haible  <bruno@clisp.org>
63203
63204         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63205         * lib/glob.c: Don't include openat.h.
63206         (link_exists2_p): Add back the code that deals with the
63207         !GLOB_ALTDIRFUNC case.
63208         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63209         let it do the filename concatenation.
63210         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63211         * modules/glob (Depends-on): Remove openat.
63212
63213 2007-12-31  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/dirfd (License): Change to LGPLv2+.
63216         Approved by Jim Meyering.
63217
63218 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63221         when multiplying M by sizeof (size_t).
63222
63223 2007-12-10  Martin Lambers  <marlam@marlam.de>
63224
63225         Override getpagesize on mingw.
63226         * lib/getpagesize.c: New file.
63227         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63228         * modules/getpagesize (Files): Add lib/getpagesize.c.
63229         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63231         REPLACE_GETPAGESIZE.
63232         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63233
63234 2007-12-25  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/localcharset (Notice): New field.
63237         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63238         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63239
63240 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63241             Bruno Haible  <bruno@clisp.org>
63242
63243         Avoid using the syntax symbol() in formatted documentation.
63244         * MODULES.html.sh (func_module): When replacing symbol() with a
63245         hyperlink, remove the parentheses. Show an error if some remain.
63246         Recognize and render the '...' syntax.
63247         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63248         Rework. Add paragraph about GCC's inlining.
63249         * doc/alloca.texi: Likewise.
63250         * doc/error.texi: Remove parentheses from symbol reference.
63251         * doc/gnulib-intro.texi: Likewise.
63252         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63253         * modules/fnmatch (Description): Reword to say "the ... function".
63254         * modules/full-read (Description): Likewise.
63255         * modules/full-write (Description): Likewise.
63256         * modules/safe-read (Description): Likewise.
63257         * modules/safe-write (Description): Likewise.
63258         * modules/strchrnul (Description): Likewise.
63259         * modules/trim (Description): Likewise.
63260         * modules/error (Description): Remove parentheses from symbol
63261         references.
63262         * modules/verror (Description): Likewise.
63263         Reported by Karl Berry.
63264
63265 2007-12-25  Bruno Haible  <bruno@clisp.org>
63266
63267         Fixup after 2007-10-16 commit.
63268         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63269
63270 2007-12-24  Bruno Haible  <bruno@clisp.org>
63271
63272         Make --enable-relocatable work with DESTDIR.
63273         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63274         to compute installdir from destprog.
63275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63276         also set the RELOC_DESTDIR variable.
63277         Reported by Левашев Иван <octagram@bluebottle.com>.
63278
63279 2007-12-24  Bruno Haible  <bruno@clisp.org>
63280
63281         Fix link error due to xalloc_die().
63282         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63283         of xreadlink.
63284         * lib/relocwrapper.c: Update comments.
63285         * build-aux/install-reloc: Remove xreadlink.c from file list.
63286         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63287         xreadlink.c.
63288         Reported by Левашев Иван <octagram@bluebottle.com>.
63289
63290 2007-12-24  Bruno Haible  <bruno@clisp.org>
63291
63292         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63293         * lib/setenv.h: Remove file.
63294         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63295         lib/setenv.h.
63296         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63297         (Depends-on): Add stdlib.
63298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63299         gl_FUNC_UNSETENV.
63300         (Include): Replace setenv.h with <stdlib.h>.
63301         * modules/unsetenv: New file.
63302         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63303         * lib/unsetenv.c: Include <stdlib.h> first.
63304         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63305         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63306         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63307         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63308         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63309         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63311         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63312         * doc/functions/unsetenv.texi: Update.
63313         * modules/xsetenv (Depends-on): Add unsetenv.
63314         * modules/getdate (Depends-on): Likewise.
63315         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63316         * lib/xsetenv.c: Don't include setenv.h.
63317         * lib/getdate.y: Likewise.
63318         * lib/relocwrapper.c: Likewise.
63319         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63320         (Depends-on): Add stdlib.
63321         * NEWS: Mention the changes.
63322         Reported by Левашев Иван <octagram@bluebottle.com>.
63323
63324 2007-12-23  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63327         indentation.
63328
63329 2007-12-23  Bruno Haible  <bruno@clisp.org>
63330
63331         * lib/c-strcasestr.c: Add more comments.
63332         * lib/c-strstr.c: Likewise.
63333         * lib/mbscasestr.c: Likewise.
63334         * lib/mbsstr.c: Likewise.
63335         * lib/strcasestr.c: Likewise.
63336         * lib/memmem.c: Likewise.
63337
63338 2007-12-23  Bruno Haible  <bruno@clisp.org>
63339
63340         * tests/test-memmem.c: Include <string.h> first.
63341
63342 2007-12-22  Bruno Haible  <bruno@clisp.org>
63343
63344         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63345         the contents of $testsbase.
63346         Reported by Ralf Wildenhues.
63347
63348 2007-12-22  Bruno Haible  <bruno@clisp.org>
63349
63350         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63351         two variables local_ldadd_before, local_ldadd_last.
63352
63353 2007-12-20  Eric Blake  <ebb9@byu.net>
63354
63355         Work around circular library issue when cross-compiling.
63356         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63357         that progname.o does not need to pull in rpl_memcmp.
63358
63359 2007-12-19  Eric Blake  <ebb9@byu.net>
63360
63361         Fix memmem to avoid O(n^2) worst-case complexity.
63362         * lib/memmem.c (knuth_morris_pratt): New function.
63363         (memmem): Use it if first few naive iterations fail.
63364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63365         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63366         * modules/memchr (License): Likewise.
63367         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63368         malloca.
63369         * tests/test-memmem.c: Rewrite, borrowing ideas from
63370         test-mbsstr1.c; the old version wouldn't even compile!
63371         * modules/memmem-tests: New file.
63372         * lib/string.in.h (rpl_memmem): Add declaration.
63373         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63375         REPLACE_MEMMEM.
63376
63377 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63380         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63381         before any system include files, and undef after them all.  This
63382         should fix a problem on VMS reported by John E. Malmberg in
63383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63384
63385 2007-12-17  Eric Blake  <ebb9@byu.net>
63386
63387         Revert addition of verify, for BSD/OS.
63388         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63389         can't handle large files, for the sake of obsolete platforms.
63390         * modules/fseeko (Depends-on): Remove verify.
63391         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63392         * doc/functions/ftello.texi (ftello): Likewise.
63393         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63394         Reported by Larry Jones.
63395
63396 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63397
63398         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63399         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63400
63401 2007-12-17  Jim Meyering  <meyering@redhat.com>
63402
63403         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63404         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63405         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63406         * modules/getcwd (Depends-on): Add openat.
63407         Reported by Petr Salinger.
63408
63409 2007-12-17  Bruno Haible  <bruno@clisp.org>
63410
63411         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63412         avoid a segmentation fault of the configure test on x86_64 systems.
63413
63414 2007-12-15  Jim Meyering  <meyering@redhat.com>
63415
63416         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63417
63418 2007-12-13  Eric Blake  <ebb9@byu.net>
63419
63420         Another fseek test.
63421         * tests/test-fseek.c (main): Also test ungetc handling.
63422         * tests/test-fseeko.c (main): Likewise.
63423         * modules/fseeko (Depends-on): Add verify.
63424         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63425         large.
63426         Reported by Larry Jones.
63427
63428         Fix fseeko on mingw.
63429         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63430         seek.
63431
63432         Beef up fseek tests.
63433         * tests/test-fseek.c (main): Also test eof handling.
63434         * tests/test-fseeko.c (main): Likewise.
63435         Reported by Larry Jones.
63436
63437 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63438
63439         Fix fseeko on BSD-based platforms.
63440         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63441         successful seek.
63442
63443 2007-12-12  Eric Blake  <ebb9@byu.net>
63444
63445         Allow circular dependency of separate libtests.a
63446         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63447         when use_libtests.
63448
63449 2007-12-11  Eric Blake  <ebb9@byu.net>
63450
63451         Fix bug with -0.0L in previous patch.
63452         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63453         * tests/test-isnan.c (main): Also test on zeroes.
63454         * tests/test-isnanf.c (main): Likewise.
63455         * tests/test-isnanl.h (main): Likewise.
63456
63457         Detect pseudo-denormals on x86 even when cross-compiling.
63458         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63459         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63460         invalid bit patterns that happen to satisfy ==.
63461
63462         Avoid link failures with separate libtests.a.
63463         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63464         last, to satisfy circular dependencies.
63465
63466 2007-12-11  Eric Blake  <ebb9@byu.net>
63467         and Bruno Haible  <bruno@clisp.org>
63468
63469         Fix OpenBSD 4.0 <float.h> handling of long double.
63470         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63471         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63472         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63473
63474 2007-12-11  Jim Meyering  <meyering@redhat.com>
63475
63476         * users.txt: Add libvirt.
63477
63478         Support versions of autoconf prior to 2.59c.
63479         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63480         if it is not already defined.
63481
63482 2007-12-09  Bruno Haible  <bruno@clisp.org>
63483
63484         Let 'gnulib-tool --import' collect sources needed for the tests in
63485         tests/ rather than in lib/.
63486         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63487         argument. If true, add rules to generate libtests.a, and put libtests.a
63488         into $(LDADD). Consider source files in subdirectories and set
63489         uses_subdirs.
63490         (func_emit_initmacro_start, func_emit_initmacro_end,
63491         func_emit_initmacro_done): Pass all arguments explicitly.
63492         (func_import): Determine two module lists main_modules,
63493         testsrelated_modules. Determine use_libtests. Determine two variables
63494         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63495         instead of just sed_transform_lib_file. Determine two variables
63496         main_files and testsrelated_files. Compute 'files' as the union of
63497         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63498         func_add_or_update. In the generated gnulib-comp.m4, collect the
63499         object files for tests/ in different variables than those for lib/.
63500         Substitute LIBTESTS_LIBDEPS.
63501         (func_create_testdir): Combine the uses_subdirs results from
63502         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63503
63504 2007-12-09  Bruno Haible  <bruno@clisp.org>
63505
63506         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63507         the build-aux directory.
63508
63509 2007-12-09  Bruno Haible  <bruno@clisp.org>
63510
63511         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63512         introduced on 2006-09-09.
63513
63514 2007-12-07  Jim Meyering  <meyering@redhat.com>
63515
63516         Let these macros work also with autoconf-2.59.
63517         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63518         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63520
63521 2007-12-06  Jim Meyering  <meyering@redhat.com>
63522
63523         Avoid a configure-time syntax error in gl_FUNC_ACL.
63524         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63525         function in each branch, before testing the cache variable.
63526
63527 2007-12-04  Eric Blake  <ebb9@byu.net>
63528
63529         Make scripts executable.
63530         * build-aux/config.guess: Add execute permissions.
63531         * build-aux/config.sub: Likewise.
63532         * build-aux/gendocs.sh: Likewise.
63533
63534         Fix frexp on mingw.
63535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63536         cross-compiling.
63537         * doc/functions/frexp.texi (frexp): Document the bug.
63538
63539         Make cygwin fseeko check more reliable.
63540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63541         version numbers, rather than unrelated feature check.
63542         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63543         * doc/functions/ftello.texi (ftello): Likewise.
63544         Reported by Bruno Haible.
63545
63546         * m4/strerror.m4: Bump version number.
63547
63548 2007-12-03  Bruno Haible  <bruno@clisp.org>
63549
63550         * doc/functions/mprotect.texi: Mention the mingw problem.
63551
63552 2007-12-03  Eric Blake  <ebb9@byu.net>
63553
63554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63555         REPLACE_STRERROR is initialized before this macro.
63556
63557 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63560         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63561         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63562         put -lsec in even for programs other than 'ls'.  This fixes a problem
63563         for gettext reported by Bruno Haible in
63564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63565         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63566         Add support for Solaris 10.  This isn't efficient, but should get the
63567         job done for now.
63568
63569 2007-12-03  James Youngman  <jay@gnu.org>
63570
63571         * doc/regexprops-generic.texi: change "an close-group" to "a
63572         close-group" and "illegal" to "not allowed".
63573
63574 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63575
63576         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63577         pr_byname.h. Needed for the rare case when the maintainer has done
63578         "make maintainer-clean" in the source directory and then attempts a
63579         build outside the source directory.
63580         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63581         scripts_byname.h.
63582
63583 2007-12-02  Martin Lambers <marlam@marlam.de>
63584             Bruno Haible  <bruno@clisp.org>
63585
63586         * lib/getpagesize.h: Remove file.
63587         * lib/unistd.in.h: Include declaration of getpagesize here.
63588         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63589         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63590         HAVE_SYS_PARAM_H.
63591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63592         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63593         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63594         (Depends-on): Add unistd.
63595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63596         (Include): Use <unistd.h> instead of getpagesize.h.
63597         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63598         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63599         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63600         gl_GETPAGESIZE invocation, already handled by module dependency.
63601         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63602
63603 2007-12-02  Bruno Haible  <bruno@clisp.org>
63604
63605         * modules/strings-tests: New file.
63606         * tests/test-strings.c: New file.
63607
63608         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63609         * lib/strings.in.h: New file.
63610         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63611         * m4/strings_h.m4: New file.
63612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63613         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63614         * modules/strings: New file.
63615         * modules/string (Makefile.am): Update.
63616         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63617         Reported by Karl Berry.
63618
63619 2007-12-01  Eric Blake  <ebb9@byu.net>
63620
63621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63622         accommodate fix in cygwin 1.5.25.
63623
63624 2007-12-01  Jim Meyering  <meyering@redhat.com>
63625
63626         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63627         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63628         that would inhibit utf8-optimization of a regexp containing line-
63629         or buffer-anchors, e.g., `^', `$'.
63630
63631 2007-11-30  Bruno Haible  <bruno@clisp.org>
63632
63633         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63634         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63635         glthread_recursive_lock_init.
63636         * lib/lock.c (glthread_recursive_lock_init)
63637         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63639
63640 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63641
63642         New function qset_acl, like set_acl but with syscall semantics.
63643         * lib/acl.h (qset_acl): New decl.
63644         * lib/acl.c (qset_acl): New function.
63645         (set_acl): Use new function.  Use more-consistent diagnostics.
63646
63647 2007-11-28  Jim Meyering  <meyering@redhat.com>
63648
63649         * modules/physmem (License): Change from GPL to LGPLv2+.
63650
63651 2007-11-26  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63654         'long double' type has excess precision.
63655         Reported by Jim Meyering in
63656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63657
63658 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63659
63660         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63661         Sync from <http://gnu.org/licenses>.
63662         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63663         with license text from same location.
63664         * doc/maintain.texi, doc/standards.texi:  Sync from
63665         <http://savannah.gnu.org/projects/gnustandards>.
63666
63667 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63668         and Jim Meyering  <meyering@redhat.com>
63669
63670         Adjust getdate' grammar to accept a slightly more regular language.
63671         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63672         Before, the former was rejected.
63673         * lib/getdate.y (digits_to_date_time): New function, factored
63674         out of ...
63675         (number): ...here.  Just call digits_to_date_time.
63676         (hybrid): New non-terminal to handle an <unsigned number,
63677         signed relative offset> sequence consistently.
63678
63679 2007-11-18  Jim Meyering  <meyering@redhat.com>
63680
63681         Pull my changes from coreutils:
63682         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63683         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63684         use of $gnulib_tool_option_extras, so that it's separated from the
63685         preceding argument.
63686
63687         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63688         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63689         parent destination directories before copying a file into place.
63690
63691 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63692
63693         bootstrap: work also with 4-argument variant of AC_INIT
63694         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63695
63696 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         Port test-getaddrinfo to Solaris.
63699         Problem reported by Bruno Haible in
63700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63701         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63702         explanation of setting 'hints'.
63703         Don't reject an implementation merely because it returns EAI_SERVICE.
63704         (EAI_SERVICE): Define to 0 if not defined.
63705
63706 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         The license of gnu-make and posix-shell is now "GPLed build tool".
63709         * modules/gnu-make (License): Likewise.
63710         * modules/posix-shell (License): Likewise.
63711
63712         New module posix-shell, for determining a POSIX shell
63713         or perhaps something that is close enough to a POSIX shell.
63714         * m4/posix-shell.m4: New file.
63715         * modules/posix-shell: New file.
63716
63717         * MODULES.html.sh: Mention new module.
63718
63719         New module gnu-make, for determining whether we're using GNU Make.
63720         * m4/gnu-make.m4: New file.
63721         * modules/gnu-make: New file.
63722         * MODULES.html.sh: Mention new module.
63723
63724 2007-11-14  Jim Meyering  <meyering@redhat.com>
63725
63726         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63727         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63728         use this macro to create a function _definition_.
63729         Remove useless "#undef ARGMATCH_DIE".
63730
63731 2007-11-14  Bruno Haible  <bruno@clisp.org>
63732
63733         * lib/config.charset: Update for OpenBSD 4.1.
63734         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63735
63736 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63737
63738         Document 64-bit #if problems in stdint.texi.
63739         * doc/headers/stdint.texi (stdint.h): Mention problems with
63740         64-bit-#if, and how to work around them.
63741
63742         Don't insist on 'long long int' support in the preprocessor.  It
63743         breaks too many things.  For example, PRIdMAX still uses a 'long
63744         long int' format with the latest Sun compiler, even though
63745         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63746         preprocessor problem.  This causes the latest coreutils to dump
63747         core on Solaris 10 sparc with the Sun C compiler.
63748         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63749         the troublesome expressions at configure-time, not at #if-time.
63750         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63751         preprocessor.
63752         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63753         compile-time C checks, done at 'configure'-time.
63754         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63755         * modules/inttypes (Makefile): Substitute the new symbols that
63756         gl_INTTYPES_H now generates.
63757         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63758
63759 2007-11-12  Bruno Haible  <bruno@clisp.org>
63760
63761         Tests for Unicode character classification functions.
63762
63763         * modules/unictype/bidicategory-byname-tests: New file.
63764         * modules/unictype/bidicategory-name-tests: New file.
63765         * modules/unictype/bidicategory-of-tests: New file.
63766         * modules/unictype/bidicategory-test-tests: New file.
63767         * modules/unictype/block-list-tests: New file.
63768         * modules/unictype/block-of-tests: New file.
63769         * modules/unictype/block-test-tests: New file.
63770         * modules/unictype/category-C-tests: New file.
63771         * modules/unictype/category-Cc-tests: New file.
63772         * modules/unictype/category-Cf-tests: New file.
63773         * modules/unictype/category-Cn-tests: New file.
63774         * modules/unictype/category-Co-tests: New file.
63775         * modules/unictype/category-Cs-tests: New file.
63776         * modules/unictype/category-L-tests: New file.
63777         * modules/unictype/category-Ll-tests: New file.
63778         * modules/unictype/category-Lm-tests: New file.
63779         * modules/unictype/category-Lo-tests: New file.
63780         * modules/unictype/category-Lt-tests: New file.
63781         * modules/unictype/category-Lu-tests: New file.
63782         * modules/unictype/category-M-tests: New file.
63783         * modules/unictype/category-Mc-tests: New file.
63784         * modules/unictype/category-Me-tests: New file.
63785         * modules/unictype/category-Mn-tests: New file.
63786         * modules/unictype/category-N-tests: New file.
63787         * modules/unictype/category-Nd-tests: New file.
63788         * modules/unictype/category-Nl-tests: New file.
63789         * modules/unictype/category-No-tests: New file.
63790         * modules/unictype/category-P-tests: New file.
63791         * modules/unictype/category-Pc-tests: New file.
63792         * modules/unictype/category-Pd-tests: New file.
63793         * modules/unictype/category-Pe-tests: New file.
63794         * modules/unictype/category-Pf-tests: New file.
63795         * modules/unictype/category-Pi-tests: New file.
63796         * modules/unictype/category-Po-tests: New file.
63797         * modules/unictype/category-Ps-tests: New file.
63798         * modules/unictype/category-S-tests: New file.
63799         * modules/unictype/category-Sc-tests: New file.
63800         * modules/unictype/category-Sk-tests: New file.
63801         * modules/unictype/category-Sm-tests: New file.
63802         * modules/unictype/category-So-tests: New file.
63803         * modules/unictype/category-Z-tests: New file.
63804         * modules/unictype/category-Zl-tests: New file.
63805         * modules/unictype/category-Zp-tests: New file.
63806         * modules/unictype/category-Zs-tests: New file.
63807         * modules/unictype/category-and-not-tests: New file.
63808         * modules/unictype/category-and-tests: New file.
63809         * modules/unictype/category-byname-tests: New file.
63810         * modules/unictype/category-name-tests: New file.
63811         * modules/unictype/category-none-tests: New file.
63812         * modules/unictype/category-of-tests: New file.
63813         * modules/unictype/category-or-tests: New file.
63814         * modules/unictype/category-test-withtable-tests: New file.
63815         * modules/unictype/combining-class-tests: New file.
63816         * modules/unictype/ctype-alnum-tests: New file.
63817         * modules/unictype/ctype-alpha-tests: New file.
63818         * modules/unictype/ctype-blank-tests: New file.
63819         * modules/unictype/ctype-cntrl-tests: New file.
63820         * modules/unictype/ctype-digit-tests: New file.
63821         * modules/unictype/ctype-graph-tests: New file.
63822         * modules/unictype/ctype-lower-tests: New file.
63823         * modules/unictype/ctype-print-tests: New file.
63824         * modules/unictype/ctype-punct-tests: New file.
63825         * modules/unictype/ctype-space-tests: New file.
63826         * modules/unictype/ctype-upper-tests: New file.
63827         * modules/unictype/ctype-xdigit-tests: New file.
63828         * modules/unictype/decimal-digit-tests: New file.
63829         * modules/unictype/digit-tests: New file.
63830         * modules/unictype/mirror-tests: New file.
63831         * modules/unictype/numeric-tests: New file.
63832         * modules/unictype/property-alphabetic-tests: New file.
63833         * modules/unictype/property-ascii-hex-digit-tests: New file.
63834         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63835         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63836         * modules/unictype/property-bidi-block-separator-tests: New file.
63837         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63838         * modules/unictype/property-bidi-common-separator-tests: New file.
63839         * modules/unictype/property-bidi-control-tests: New file.
63840         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63841         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63842         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63843         * modules/unictype/property-bidi-european-digit-tests: New file.
63844         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63845         * modules/unictype/property-bidi-left-to-right-tests: New file.
63846         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63847         * modules/unictype/property-bidi-other-neutral-tests: New file.
63848         * modules/unictype/property-bidi-pdf-tests: New file.
63849         * modules/unictype/property-bidi-segment-separator-tests: New file.
63850         * modules/unictype/property-bidi-whitespace-tests: New file.
63851         * modules/unictype/property-byname-tests: New file.
63852         * modules/unictype/property-combining-tests: New file.
63853         * modules/unictype/property-composite-tests: New file.
63854         * modules/unictype/property-currency-symbol-tests: New file.
63855         * modules/unictype/property-dash-tests: New file.
63856         * modules/unictype/property-decimal-digit-tests: New file.
63857         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63858         * modules/unictype/property-deprecated-tests: New file.
63859         * modules/unictype/property-diacritic-tests: New file.
63860         * modules/unictype/property-extender-tests: New file.
63861         * modules/unictype/property-format-control-tests: New file.
63862         * modules/unictype/property-grapheme-base-tests: New file.
63863         * modules/unictype/property-grapheme-extend-tests: New file.
63864         * modules/unictype/property-grapheme-link-tests: New file.
63865         * modules/unictype/property-hex-digit-tests: New file.
63866         * modules/unictype/property-hyphen-tests: New file.
63867         * modules/unictype/property-id-continue-tests: New file.
63868         * modules/unictype/property-id-start-tests: New file.
63869         * modules/unictype/property-ideographic-tests: New file.
63870         * modules/unictype/property-ids-binary-operator-tests: New file.
63871         * modules/unictype/property-ids-trinary-operator-tests: New file.
63872         * modules/unictype/property-ignorable-control-tests: New file.
63873         * modules/unictype/property-iso-control-tests: New file.
63874         * modules/unictype/property-join-control-tests: New file.
63875         * modules/unictype/property-left-of-pair-tests: New file.
63876         * modules/unictype/property-line-separator-tests: New file.
63877         * modules/unictype/property-logical-order-exception-tests: New file.
63878         * modules/unictype/property-lowercase-tests: New file.
63879         * modules/unictype/property-math-tests: New file.
63880         * modules/unictype/property-non-break-tests: New file.
63881         * modules/unictype/property-not-a-character-tests: New file.
63882         * modules/unictype/property-numeric-tests: New file.
63883         * modules/unictype/property-other-alphabetic-tests: New file.
63884         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63885         * modules/unictype/property-other-grapheme-extend-tests: New file.
63886         * modules/unictype/property-other-id-continue-tests: New file.
63887         * modules/unictype/property-other-id-start-tests: New file.
63888         * modules/unictype/property-other-lowercase-tests: New file.
63889         * modules/unictype/property-other-math-tests: New file.
63890         * modules/unictype/property-other-uppercase-tests: New file.
63891         * modules/unictype/property-paired-punctuation-tests: New file.
63892         * modules/unictype/property-paragraph-separator-tests: New file.
63893         * modules/unictype/property-pattern-syntax-tests: New file.
63894         * modules/unictype/property-pattern-white-space-tests: New file.
63895         * modules/unictype/property-private-use-tests: New file.
63896         * modules/unictype/property-punctuation-tests: New file.
63897         * modules/unictype/property-quotation-mark-tests: New file.
63898         * modules/unictype/property-radical-tests: New file.
63899         * modules/unictype/property-sentence-terminal-tests: New file.
63900         * modules/unictype/property-soft-dotted-tests: New file.
63901         * modules/unictype/property-space-tests: New file.
63902         * modules/unictype/property-terminal-punctuation-tests: New file.
63903         * modules/unictype/property-test-tests: New file.
63904         * modules/unictype/property-titlecase-tests: New file.
63905         * modules/unictype/property-unassigned-code-value-tests: New file.
63906         * modules/unictype/property-unified-ideograph-tests: New file.
63907         * modules/unictype/property-uppercase-tests: New file.
63908         * modules/unictype/property-variation-selector-tests: New file.
63909         * modules/unictype/property-white-space-tests: New file.
63910         * modules/unictype/property-xid-continue-tests: New file.
63911         * modules/unictype/property-xid-start-tests: New file.
63912         * modules/unictype/property-zero-width-tests: New file.
63913         * modules/unictype/scripts-tests: New file.
63914         * modules/unictype/syntax-c-ident-tests: New file.
63915         * modules/unictype/syntax-c-whitespace-tests: New file.
63916         * modules/unictype/syntax-java-ident-tests: New file.
63917         * modules/unictype/syntax-java-whitespace-tests: New file.
63918         * tests/unictype/test-bidi_byname.c: New file.
63919         * tests/unictype/test-bidi_name.c: New file.
63920         * tests/unictype/test-bidi_of.c: New file.
63921         * tests/unictype/test-bidi_test.c: New file.
63922         * tests/unictype/test-block_list.c: New file.
63923         * tests/unictype/test-block_of.c: New file.
63924         * tests/unictype/test-block_test.c: New file.
63925         * tests/unictype/test-categ_and.c: New file.
63926         * tests/unictype/test-categ_and_not.c: New file.
63927         * tests/unictype/test-categ_byname.c: New file.
63928         * tests/unictype/test-categ_name.c: New file.
63929         * tests/unictype/test-categ_none.c: New file.
63930         * tests/unictype/test-categ_of.c: New file.
63931         * tests/unictype/test-categ_or.c: New file.
63932         * tests/unictype/test-categ_test_withtable.c: New file.
63933         * tests/unictype/test-combining.c: New file.
63934         * tests/unictype/test-decdigit.c: New file.
63935         * tests/unictype/test-digit.c: New file.
63936         * tests/unictype/test-mirror.c: New file.
63937         * tests/unictype/test-numeric.c: New file.
63938         * tests/unictype/test-pr_byname.c: New file.
63939         * tests/unictype/test-pr_test.c: New file.
63940         * tests/unictype/test-predicate-part1.h: New file.
63941         * tests/unictype/test-predicate-part2.h: New file.
63942         * tests/unictype/test-scripts.c: New file.
63943         * tests/unictype/test-sy_c_ident.c: New file.
63944         * tests/unictype/test-sy_java_ident.c: New file.
63945
63946         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63947         for Unicode 5.0.0.
63948         * tests/unictype/test-categ_Cc.c: Likewise.
63949         * tests/unictype/test-categ_Cf.c: Likewise.
63950         * tests/unictype/test-categ_Cn.c: Likewise.
63951         * tests/unictype/test-categ_Co.c: Likewise.
63952         * tests/unictype/test-categ_Cs.c: Likewise.
63953         * tests/unictype/test-categ_L.c: Likewise.
63954         * tests/unictype/test-categ_Ll.c: Likewise.
63955         * tests/unictype/test-categ_Lm.c: Likewise.
63956         * tests/unictype/test-categ_Lo.c: Likewise.
63957         * tests/unictype/test-categ_Lt.c: Likewise.
63958         * tests/unictype/test-categ_Lu.c: Likewise.
63959         * tests/unictype/test-categ_M.c: Likewise.
63960         * tests/unictype/test-categ_Mc.c: Likewise.
63961         * tests/unictype/test-categ_Me.c: Likewise.
63962         * tests/unictype/test-categ_Mn.c: Likewise.
63963         * tests/unictype/test-categ_N.c: Likewise.
63964         * tests/unictype/test-categ_Nd.c: Likewise.
63965         * tests/unictype/test-categ_Nl.c: Likewise.
63966         * tests/unictype/test-categ_No.c: Likewise.
63967         * tests/unictype/test-categ_P.c: Likewise.
63968         * tests/unictype/test-categ_Pc.c: Likewise.
63969         * tests/unictype/test-categ_Pd.c: Likewise.
63970         * tests/unictype/test-categ_Pe.c: Likewise.
63971         * tests/unictype/test-categ_Pf.c: Likewise.
63972         * tests/unictype/test-categ_Pi.c: Likewise.
63973         * tests/unictype/test-categ_Po.c: Likewise.
63974         * tests/unictype/test-categ_Ps.c: Likewise.
63975         * tests/unictype/test-categ_S.c: Likewise.
63976         * tests/unictype/test-categ_Sc.c: Likewise.
63977         * tests/unictype/test-categ_Sk.c: Likewise.
63978         * tests/unictype/test-categ_Sm.c: Likewise.
63979         * tests/unictype/test-categ_So.c: Likewise.
63980         * tests/unictype/test-categ_Z.c: Likewise.
63981         * tests/unictype/test-categ_Zl.c: Likewise.
63982         * tests/unictype/test-categ_Zp.c: Likewise.
63983         * tests/unictype/test-categ_Zs.c: Likewise.
63984         * tests/unictype/test-ctype_alnum.c: Likewise.
63985         * tests/unictype/test-ctype_alpha.c: Likewise.
63986         * tests/unictype/test-ctype_blank.c: Likewise.
63987         * tests/unictype/test-ctype_cntrl.c: Likewise.
63988         * tests/unictype/test-ctype_digit.c: Likewise.
63989         * tests/unictype/test-ctype_graph.c: Likewise.
63990         * tests/unictype/test-ctype_lower.c: Likewise.
63991         * tests/unictype/test-ctype_print.c: Likewise.
63992         * tests/unictype/test-ctype_punct.c: Likewise.
63993         * tests/unictype/test-ctype_space.c: Likewise.
63994         * tests/unictype/test-ctype_upper.c: Likewise.
63995         * tests/unictype/test-ctype_xdigit.c: Likewise.
63996         * tests/unictype/test-decdigit.h: Likewise.
63997         * tests/unictype/test-digit.h: Likewise.
63998         * tests/unictype/test-numeric.h: Likewise.
63999         * tests/unictype/test-pr_alphabetic.c: Likewise.
64000         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64001         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64002         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64003         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64004         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64005         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64006         * tests/unictype/test-pr_bidi_control.c: Likewise.
64007         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64008         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64009         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64010         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64011         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64012         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64013         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64014         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64015         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64016         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64017         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64018         * tests/unictype/test-pr_combining.c: Likewise.
64019         * tests/unictype/test-pr_composite.c: Likewise.
64020         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64021         * tests/unictype/test-pr_dash.c: Likewise.
64022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64023         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64024         * tests/unictype/test-pr_deprecated.c: Likewise.
64025         * tests/unictype/test-pr_diacritic.c: Likewise.
64026         * tests/unictype/test-pr_extender.c: Likewise.
64027         * tests/unictype/test-pr_format_control.c: Likewise.
64028         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64029         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64030         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64031         * tests/unictype/test-pr_hex_digit.c: Likewise.
64032         * tests/unictype/test-pr_hyphen.c: Likewise.
64033         * tests/unictype/test-pr_id_continue.c: Likewise.
64034         * tests/unictype/test-pr_id_start.c: Likewise.
64035         * tests/unictype/test-pr_ideographic.c: Likewise.
64036         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64037         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64038         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64039         * tests/unictype/test-pr_iso_control.c: Likewise.
64040         * tests/unictype/test-pr_join_control.c: Likewise.
64041         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64042         * tests/unictype/test-pr_line_separator.c: Likewise.
64043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64044         * tests/unictype/test-pr_lowercase.c: Likewise.
64045         * tests/unictype/test-pr_math.c: Likewise.
64046         * tests/unictype/test-pr_non_break.c: Likewise.
64047         * tests/unictype/test-pr_not_a_character.c: Likewise.
64048         * tests/unictype/test-pr_numeric.c: Likewise.
64049         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64050         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64051         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64052         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64053         * tests/unictype/test-pr_other_id_start.c: Likewise.
64054         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64055         * tests/unictype/test-pr_other_math.c: Likewise.
64056         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64057         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64058         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64059         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64060         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64061         * tests/unictype/test-pr_private_use.c: Likewise.
64062         * tests/unictype/test-pr_punctuation.c: Likewise.
64063         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64064         * tests/unictype/test-pr_radical.c: Likewise.
64065         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64066         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64067         * tests/unictype/test-pr_space.c: Likewise.
64068         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64069         * tests/unictype/test-pr_titlecase.c: Likewise.
64070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64072         * tests/unictype/test-pr_uppercase.c: Likewise.
64073         * tests/unictype/test-pr_variation_selector.c: Likewise.
64074         * tests/unictype/test-pr_white_space.c: Likewise.
64075         * tests/unictype/test-pr_xid_continue.c: Likewise.
64076         * tests/unictype/test-pr_xid_start.c: Likewise.
64077         * tests/unictype/test-pr_zero_width.c: Likewise.
64078         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64079         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64080
64081 2007-11-12  Bruno Haible  <bruno@clisp.org>
64082
64083         Unicode character classification functions.
64084         * lib/unictype.h: New file.
64085         * modules/unictype/base: New file.
64086         * modules/unictype/category-L: New file.
64087         * modules/unictype/category-Lu: New file.
64088         * modules/unictype/category-Ll: New file.
64089         * modules/unictype/category-Lt: New file.
64090         * modules/unictype/category-Lm: New file.
64091         * modules/unictype/category-Lo: New file.
64092         * modules/unictype/category-M: New file.
64093         * modules/unictype/category-Mn: New file.
64094         * modules/unictype/category-Mc: New file.
64095         * modules/unictype/category-Me: New file.
64096         * modules/unictype/category-N: New file.
64097         * modules/unictype/category-Nd: New file.
64098         * modules/unictype/category-Nl: New file.
64099         * modules/unictype/category-No: New file.
64100         * modules/unictype/category-P: New file.
64101         * modules/unictype/category-Pc: New file.
64102         * modules/unictype/category-Pd: New file.
64103         * modules/unictype/category-Ps: New file.
64104         * modules/unictype/category-Pe: New file.
64105         * modules/unictype/category-Pi: New file.
64106         * modules/unictype/category-Pf: New file.
64107         * modules/unictype/category-Po: New file.
64108         * modules/unictype/category-S: New file.
64109         * modules/unictype/category-Sm: New file.
64110         * modules/unictype/category-Sc: New file.
64111         * modules/unictype/category-Sk: New file.
64112         * modules/unictype/category-So: New file.
64113         * modules/unictype/category-Z: New file.
64114         * modules/unictype/category-Zs: New file.
64115         * modules/unictype/category-Zl: New file.
64116         * modules/unictype/category-Zp: New file.
64117         * modules/unictype/category-C: New file.
64118         * modules/unictype/category-Cc: New file.
64119         * modules/unictype/category-Cf: New file.
64120         * modules/unictype/category-Cs: New file.
64121         * modules/unictype/category-Co: New file.
64122         * modules/unictype/category-Cn: New file.
64123         * modules/unictype/category-or: New file.
64124         * modules/unictype/category-of: New file.
64125         * modules/unictype/category-test: New file.
64126         * modules/unictype/category-test-withtable: New file.
64127         * modules/unictype/category-byname: New file.
64128         * modules/unictype/category-none: New file.
64129         * modules/unictype/category-and: New file.
64130         * modules/unictype/category-and-not: New file.
64131         * modules/unictype/category-name: New file.
64132         * modules/unictype/combining-class: New file.
64133         * modules/unictype/category-all: New file.
64134         * modules/unictype/bidicategory-all: New file.
64135         * modules/unictype/bidicategory-byname: New file.
64136         * modules/unictype/bidicategory-name: New file.
64137         * modules/unictype/bidicategory-of: New file.
64138         * modules/unictype/bidicategory-test: New file.
64139         * modules/unictype/decimal-digit: New file.
64140         * modules/unictype/digit: New file.
64141         * modules/unictype/numeric: New file.
64142         * modules/unictype/mirror: New file.
64143         * modules/unictype/property-white-space: New file.
64144         * modules/unictype/property-alphabetic: New file.
64145         * modules/unictype/property-other-alphabetic: New file.
64146         * modules/unictype/property-not-a-character: New file.
64147         * modules/unictype/property-default-ignorable-code-point: New file.
64148         * modules/unictype/property-other-default-ignorable-code-point: New
64149         file.
64150         * modules/unictype/property-deprecated: New file.
64151         * modules/unictype/property-logical-order-exception: New file.
64152         * modules/unictype/property-variation-selector: New file.
64153         * modules/unictype/property-private-use: New file.
64154         * modules/unictype/property-unassigned-code-value: New file.
64155         * modules/unictype/property-uppercase: New file.
64156         * modules/unictype/property-other-uppercase: New file.
64157         * modules/unictype/property-lowercase: New file.
64158         * modules/unictype/property-other-lowercase: New file.
64159         * modules/unictype/property-titlecase: New file.
64160         * modules/unictype/property-soft-dotted: New file.
64161         * modules/unictype/property-id-start: New file.
64162         * modules/unictype/property-other-id-start: New file.
64163         * modules/unictype/property-id-continue: New file.
64164         * modules/unictype/property-other-id-continue: New file.
64165         * modules/unictype/property-xid-start: New file.
64166         * modules/unictype/property-xid-continue: New file.
64167         * modules/unictype/property-pattern-white-space: New file.
64168         * modules/unictype/property-pattern-syntax: New file.
64169         * modules/unictype/property-join-control: New file.
64170         * modules/unictype/property-grapheme-base: New file.
64171         * modules/unictype/property-grapheme-extend: New file.
64172         * modules/unictype/property-other-grapheme-extend: New file.
64173         * modules/unictype/property-grapheme-link: New file.
64174         * modules/unictype/property-bidi-control: New file.
64175         * modules/unictype/property-bidi-left-to-right: New file.
64176         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64177         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64178         * modules/unictype/property-bidi-european-digit: New file.
64179         * modules/unictype/property-bidi-eur-num-separator: New file.
64180         * modules/unictype/property-bidi-eur-num-terminator: New file.
64181         * modules/unictype/property-bidi-arabic-digit: New file.
64182         * modules/unictype/property-bidi-common-separator: New file.
64183         * modules/unictype/property-bidi-block-separator: New file.
64184         * modules/unictype/property-bidi-segment-separator: New file.
64185         * modules/unictype/property-bidi-whitespace: New file.
64186         * modules/unictype/property-bidi-non-spacing-mark: New file.
64187         * modules/unictype/property-bidi-boundary-neutral: New file.
64188         * modules/unictype/property-bidi-pdf: New file.
64189         * modules/unictype/property-bidi-embedding-or-override: New file.
64190         * modules/unictype/property-bidi-other-neutral: New file.
64191         * modules/unictype/property-hex-digit: New file.
64192         * modules/unictype/property-ascii-hex-digit: New file.
64193         * modules/unictype/property-ideographic: New file.
64194         * modules/unictype/property-unified-ideograph: New file.
64195         * modules/unictype/property-radical: New file.
64196         * modules/unictype/property-ids-binary-operator: New file.
64197         * modules/unictype/property-ids-trinary-operator: New file.
64198         * modules/unictype/property-zero-width: New file.
64199         * modules/unictype/property-space: New file.
64200         * modules/unictype/property-non-break: New file.
64201         * modules/unictype/property-iso-control: New file.
64202         * modules/unictype/property-format-control: New file.
64203         * modules/unictype/property-dash: New file.
64204         * modules/unictype/property-hyphen: New file.
64205         * modules/unictype/property-punctuation: New file.
64206         * modules/unictype/property-line-separator: New file.
64207         * modules/unictype/property-paragraph-separator: New file.
64208         * modules/unictype/property-quotation-mark: New file.
64209         * modules/unictype/property-sentence-terminal: New file.
64210         * modules/unictype/property-terminal-punctuation: New file.
64211         * modules/unictype/property-currency-symbol: New file.
64212         * modules/unictype/property-math: New file.
64213         * modules/unictype/property-other-math: New file.
64214         * modules/unictype/property-paired-punctuation: New file.
64215         * modules/unictype/property-left-of-pair: New file.
64216         * modules/unictype/property-combining: New file.
64217         * modules/unictype/property-composite: New file.
64218         * modules/unictype/property-decimal-digit: New file.
64219         * modules/unictype/property-numeric: New file.
64220         * modules/unictype/property-diacritic: New file.
64221         * modules/unictype/property-extender: New file.
64222         * modules/unictype/property-ignorable-control: New file.
64223         * modules/unictype/property-test: New file.
64224         * modules/unictype/property-byname: New file.
64225         * modules/unictype/property-all: New file.
64226         * modules/unictype/scripts: New file.
64227         * modules/unictype/scripts-all: New file.
64228         * modules/unictype/block-of: New file.
64229         * modules/unictype/block-test: New file.
64230         * modules/unictype/block-list: New file.
64231         * modules/unictype/block-all: New file.
64232         * modules/unictype/syntax-c-whitespace: New file.
64233         * modules/unictype/syntax-java-whitespace: New file.
64234         * modules/unictype/syntax-c-ident: New file.
64235         * modules/unictype/syntax-java-ident: New file.
64236         * modules/unictype/ctype-alnum: New file.
64237         * modules/unictype/ctype-alpha: New file.
64238         * modules/unictype/ctype-cntrl: New file.
64239         * modules/unictype/ctype-digit: New file.
64240         * modules/unictype/ctype-graph: New file.
64241         * modules/unictype/ctype-lower: New file.
64242         * modules/unictype/ctype-print: New file.
64243         * modules/unictype/ctype-punct: New file.
64244         * modules/unictype/ctype-space: New file.
64245         * modules/unictype/ctype-upper: New file.
64246         * modules/unictype/ctype-xdigit: New file.
64247         * modules/unictype/ctype-blank: New file.
64248         * lib/unictype/bidi_byname.c: New file.
64249         * lib/unictype/bidi_name.c: New file.
64250         * lib/unictype/bidi_of.c: New file.
64251         * lib/unictype/bidi_test.c: New file.
64252         * lib/unictype/bitmap.h: New file.
64253         * lib/unictype/block_test.c: New file.
64254         * lib/unictype/blocks.c: New file.
64255         * lib/unictype/categ_C.c: New file.
64256         * lib/unictype/categ_Cc.c: New file.
64257         * lib/unictype/categ_Cf.c: New file.
64258         * lib/unictype/categ_Cn.c: New file.
64259         * lib/unictype/categ_Co.c: New file.
64260         * lib/unictype/categ_Cs.c: New file.
64261         * lib/unictype/categ_L.c: New file.
64262         * lib/unictype/categ_Ll.c: New file.
64263         * lib/unictype/categ_Lm.c: New file.
64264         * lib/unictype/categ_Lo.c: New file.
64265         * lib/unictype/categ_Lt.c: New file.
64266         * lib/unictype/categ_Lu.c: New file.
64267         * lib/unictype/categ_M.c: New file.
64268         * lib/unictype/categ_Mc.c: New file.
64269         * lib/unictype/categ_Me.c: New file.
64270         * lib/unictype/categ_Mn.c: New file.
64271         * lib/unictype/categ_N.c: New file.
64272         * lib/unictype/categ_Nd.c: New file.
64273         * lib/unictype/categ_Nl.c: New file.
64274         * lib/unictype/categ_No.c: New file.
64275         * lib/unictype/categ_P.c: New file.
64276         * lib/unictype/categ_Pc.c: New file.
64277         * lib/unictype/categ_Pd.c: New file.
64278         * lib/unictype/categ_Pe.c: New file.
64279         * lib/unictype/categ_Pf.c: New file.
64280         * lib/unictype/categ_Pi.c: New file.
64281         * lib/unictype/categ_Po.c: New file.
64282         * lib/unictype/categ_Ps.c: New file.
64283         * lib/unictype/categ_S.c: New file.
64284         * lib/unictype/categ_Sc.c: New file.
64285         * lib/unictype/categ_Sk.c: New file.
64286         * lib/unictype/categ_Sm.c: New file.
64287         * lib/unictype/categ_So.c: New file.
64288         * lib/unictype/categ_Z.c: New file.
64289         * lib/unictype/categ_Zl.c: New file.
64290         * lib/unictype/categ_Zp.c: New file.
64291         * lib/unictype/categ_Zs.c: New file.
64292         * lib/unictype/categ_and.c: New file.
64293         * lib/unictype/categ_and_not.c: New file.
64294         * lib/unictype/categ_byname.c: New file.
64295         * lib/unictype/categ_name.c: New file.
64296         * lib/unictype/categ_none.c: New file.
64297         * lib/unictype/categ_of.c: New file.
64298         * lib/unictype/categ_or.c: New file.
64299         * lib/unictype/categ_test.c: New file.
64300         * lib/unictype/combining.c: New file.
64301         * lib/unictype/ctype_alnum.c: New file.
64302         * lib/unictype/ctype_alpha.c: New file.
64303         * lib/unictype/ctype_blank.c: New file.
64304         * lib/unictype/ctype_cntrl.c: New file.
64305         * lib/unictype/ctype_digit.c: New file.
64306         * lib/unictype/ctype_graph.c: New file.
64307         * lib/unictype/ctype_lower.c: New file.
64308         * lib/unictype/ctype_print.c: New file.
64309         * lib/unictype/ctype_punct.c: New file.
64310         * lib/unictype/ctype_space.c: New file.
64311         * lib/unictype/ctype_upper.c: New file.
64312         * lib/unictype/ctype_xdigit.c: New file.
64313         * lib/unictype/decdigit.c: New file.
64314         * lib/unictype/digit.c: New file.
64315         * lib/unictype/identsyntaxmap.h: New file.
64316         * lib/unictype/mirror.c: New file.
64317         * lib/unictype/numeric.c: New file.
64318         * lib/unictype/pr_alphabetic.c: New file.
64319         * lib/unictype/pr_ascii_hex_digit.c: New file.
64320         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64321         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64322         * lib/unictype/pr_bidi_block_separator.c: New file.
64323         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64324         * lib/unictype/pr_bidi_common_separator.c: New file.
64325         * lib/unictype/pr_bidi_control.c: New file.
64326         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64327         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64328         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64329         * lib/unictype/pr_bidi_european_digit.c: New file.
64330         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64331         * lib/unictype/pr_bidi_left_to_right.c: New file.
64332         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64333         * lib/unictype/pr_bidi_other_neutral.c: New file.
64334         * lib/unictype/pr_bidi_pdf.c: New file.
64335         * lib/unictype/pr_bidi_segment_separator.c: New file.
64336         * lib/unictype/pr_bidi_whitespace.c: New file.
64337         * lib/unictype/pr_byname.c: New file.
64338         * lib/unictype/pr_byname.gperf: New file.
64339         * lib/unictype/pr_combining.c: New file.
64340         * lib/unictype/pr_composite.c: New file.
64341         * lib/unictype/pr_currency_symbol.c: New file.
64342         * lib/unictype/pr_dash.c: New file.
64343         * lib/unictype/pr_decimal_digit.c: New file.
64344         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64345         * lib/unictype/pr_deprecated.c: New file.
64346         * lib/unictype/pr_diacritic.c: New file.
64347         * lib/unictype/pr_extender.c: New file.
64348         * lib/unictype/pr_format_control.c: New file.
64349         * lib/unictype/pr_grapheme_base.c: New file.
64350         * lib/unictype/pr_grapheme_extend.c: New file.
64351         * lib/unictype/pr_grapheme_link.c: New file.
64352         * lib/unictype/pr_hex_digit.c: New file.
64353         * lib/unictype/pr_hyphen.c: New file.
64354         * lib/unictype/pr_id_continue.c: New file.
64355         * lib/unictype/pr_id_start.c: New file.
64356         * lib/unictype/pr_ideographic.c: New file.
64357         * lib/unictype/pr_ids_binary_operator.c: New file.
64358         * lib/unictype/pr_ids_trinary_operator.c: New file.
64359         * lib/unictype/pr_ignorable_control.c: New file.
64360         * lib/unictype/pr_iso_control.c: New file.
64361         * lib/unictype/pr_join_control.c: New file.
64362         * lib/unictype/pr_left_of_pair.c: New file.
64363         * lib/unictype/pr_line_separator.c: New file.
64364         * lib/unictype/pr_logical_order_exception.c: New file.
64365         * lib/unictype/pr_lowercase.c: New file.
64366         * lib/unictype/pr_math.c: New file.
64367         * lib/unictype/pr_non_break.c: New file.
64368         * lib/unictype/pr_not_a_character.c: New file.
64369         * lib/unictype/pr_numeric.c: New file.
64370         * lib/unictype/pr_other_alphabetic.c: New file.
64371         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64372         * lib/unictype/pr_other_grapheme_extend.c: New file.
64373         * lib/unictype/pr_other_id_continue.c: New file.
64374         * lib/unictype/pr_other_id_start.c: New file.
64375         * lib/unictype/pr_other_lowercase.c: New file.
64376         * lib/unictype/pr_other_math.c: New file.
64377         * lib/unictype/pr_other_uppercase.c: New file.
64378         * lib/unictype/pr_paired_punctuation.c: New file.
64379         * lib/unictype/pr_paragraph_separator.c: New file.
64380         * lib/unictype/pr_pattern_syntax.c: New file.
64381         * lib/unictype/pr_pattern_white_space.c: New file.
64382         * lib/unictype/pr_private_use.c: New file.
64383         * lib/unictype/pr_punctuation.c: New file.
64384         * lib/unictype/pr_quotation_mark.c: New file.
64385         * lib/unictype/pr_radical.c: New file.
64386         * lib/unictype/pr_sentence_terminal.c: New file.
64387         * lib/unictype/pr_soft_dotted.c: New file.
64388         * lib/unictype/pr_space.c: New file.
64389         * lib/unictype/pr_terminal_punctuation.c: New file.
64390         * lib/unictype/pr_test.c: New file.
64391         * lib/unictype/pr_titlecase.c: New file.
64392         * lib/unictype/pr_unassigned_code_value.c: New file.
64393         * lib/unictype/pr_unified_ideograph.c: New file.
64394         * lib/unictype/pr_uppercase.c: New file.
64395         * lib/unictype/pr_variation_selector.c: New file.
64396         * lib/unictype/pr_white_space.c: New file.
64397         * lib/unictype/pr_xid_continue.c: New file.
64398         * lib/unictype/pr_xid_start.c: New file.
64399         * lib/unictype/pr_zero_width.c: New file.
64400         * lib/unictype/scripts.c: New file.
64401         * lib/unictype/sy_c_ident.c: New file.
64402         * lib/unictype/sy_c_whitespace.c: New file.
64403         * lib/unictype/sy_java_ident.c: New file.
64404         * lib/unictype/sy_java_whitespace.c: New file.
64405
64406         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64407         Unicode 5.0.0.
64408         * lib/unictype/blocks.h: Likewise.
64409         * lib/unictype/categ_C.h: Likewise.
64410         * lib/unictype/categ_Cc.h: Likewise.
64411         * lib/unictype/categ_Cf.h: Likewise.
64412         * lib/unictype/categ_Cn.h: Likewise.
64413         * lib/unictype/categ_Co.h: Likewise.
64414         * lib/unictype/categ_Cs.h: Likewise.
64415         * lib/unictype/categ_L.h: Likewise.
64416         * lib/unictype/categ_Ll.h: Likewise.
64417         * lib/unictype/categ_Lm.h: Likewise.
64418         * lib/unictype/categ_Lo.h: Likewise.
64419         * lib/unictype/categ_Lt.h: Likewise.
64420         * lib/unictype/categ_Lu.h: Likewise.
64421         * lib/unictype/categ_M.h: Likewise.
64422         * lib/unictype/categ_Mc.h: Likewise.
64423         * lib/unictype/categ_Me.h: Likewise.
64424         * lib/unictype/categ_Mn.h: Likewise.
64425         * lib/unictype/categ_N.h: Likewise.
64426         * lib/unictype/categ_Nd.h: Likewise.
64427         * lib/unictype/categ_Nl.h: Likewise.
64428         * lib/unictype/categ_No.h: Likewise.
64429         * lib/unictype/categ_P.h: Likewise.
64430         * lib/unictype/categ_Pc.h: Likewise.
64431         * lib/unictype/categ_Pd.h: Likewise.
64432         * lib/unictype/categ_Pe.h: Likewise.
64433         * lib/unictype/categ_Pf.h: Likewise.
64434         * lib/unictype/categ_Pi.h: Likewise.
64435         * lib/unictype/categ_Po.h: Likewise.
64436         * lib/unictype/categ_Ps.h: Likewise.
64437         * lib/unictype/categ_S.h: Likewise.
64438         * lib/unictype/categ_Sc.h: Likewise.
64439         * lib/unictype/categ_Sk.h: Likewise.
64440         * lib/unictype/categ_Sm.h: Likewise.
64441         * lib/unictype/categ_So.h: Likewise.
64442         * lib/unictype/categ_Z.h: Likewise.
64443         * lib/unictype/categ_Zl.h: Likewise.
64444         * lib/unictype/categ_Zp.h: Likewise.
64445         * lib/unictype/categ_Zs.h: Likewise.
64446         * lib/unictype/categ_of.h: Likewise.
64447         * lib/unictype/combining.h: Likewise.
64448         * lib/unictype/ctype_alnum.h: Likewise.
64449         * lib/unictype/ctype_alpha.h: Likewise.
64450         * lib/unictype/ctype_blank.h: Likewise.
64451         * lib/unictype/ctype_cntrl.h: Likewise.
64452         * lib/unictype/ctype_digit.h: Likewise.
64453         * lib/unictype/ctype_graph.h: Likewise.
64454         * lib/unictype/ctype_lower.h: Likewise.
64455         * lib/unictype/ctype_print.h: Likewise.
64456         * lib/unictype/ctype_punct.h: Likewise.
64457         * lib/unictype/ctype_space.h: Likewise.
64458         * lib/unictype/ctype_upper.h: Likewise.
64459         * lib/unictype/ctype_xdigit.h: Likewise.
64460         * lib/unictype/decdigit.h: Likewise.
64461         * lib/unictype/digit.h: Likewise.
64462         * lib/unictype/mirror.h: Likewise.
64463         * lib/unictype/numeric.h: Likewise.
64464         * lib/unictype/pr_alphabetic.h: Likewise.
64465         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64466         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64467         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64468         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64469         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64470         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64471         * lib/unictype/pr_bidi_control.h: Likewise.
64472         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64473         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64474         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64475         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64476         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64477         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64478         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64479         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64480         * lib/unictype/pr_bidi_pdf.h: Likewise.
64481         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64482         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64483         * lib/unictype/pr_combining.h: Likewise.
64484         * lib/unictype/pr_composite.h: Likewise.
64485         * lib/unictype/pr_currency_symbol.h: Likewise.
64486         * lib/unictype/pr_dash.h: Likewise.
64487         * lib/unictype/pr_decimal_digit.h: Likewise.
64488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64489         * lib/unictype/pr_deprecated.h: Likewise.
64490         * lib/unictype/pr_diacritic.h: Likewise.
64491         * lib/unictype/pr_extender.h: Likewise.
64492         * lib/unictype/pr_format_control.h: Likewise.
64493         * lib/unictype/pr_grapheme_base.h: Likewise.
64494         * lib/unictype/pr_grapheme_extend.h: Likewise.
64495         * lib/unictype/pr_grapheme_link.h: Likewise.
64496         * lib/unictype/pr_hex_digit.h: Likewise.
64497         * lib/unictype/pr_hyphen.h: Likewise.
64498         * lib/unictype/pr_id_continue.h: Likewise.
64499         * lib/unictype/pr_id_start.h: Likewise.
64500         * lib/unictype/pr_ideographic.h: Likewise.
64501         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64502         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64503         * lib/unictype/pr_ignorable_control.h: Likewise.
64504         * lib/unictype/pr_iso_control.h: Likewise.
64505         * lib/unictype/pr_join_control.h: Likewise.
64506         * lib/unictype/pr_left_of_pair.h: Likewise.
64507         * lib/unictype/pr_line_separator.h: Likewise.
64508         * lib/unictype/pr_logical_order_exception.h: Likewise.
64509         * lib/unictype/pr_lowercase.h: Likewise.
64510         * lib/unictype/pr_math.h: Likewise.
64511         * lib/unictype/pr_non_break.h: Likewise.
64512         * lib/unictype/pr_not_a_character.h: Likewise.
64513         * lib/unictype/pr_numeric.h: Likewise.
64514         * lib/unictype/pr_other_alphabetic.h: Likewise.
64515         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64516         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64517         * lib/unictype/pr_other_id_continue.h: Likewise.
64518         * lib/unictype/pr_other_id_start.h: Likewise.
64519         * lib/unictype/pr_other_lowercase.h: Likewise.
64520         * lib/unictype/pr_other_math.h: Likewise.
64521         * lib/unictype/pr_other_uppercase.h: Likewise.
64522         * lib/unictype/pr_paired_punctuation.h: Likewise.
64523         * lib/unictype/pr_paragraph_separator.h: Likewise.
64524         * lib/unictype/pr_pattern_syntax.h: Likewise.
64525         * lib/unictype/pr_pattern_white_space.h: Likewise.
64526         * lib/unictype/pr_private_use.h: Likewise.
64527         * lib/unictype/pr_punctuation.h: Likewise.
64528         * lib/unictype/pr_quotation_mark.h: Likewise.
64529         * lib/unictype/pr_radical.h: Likewise.
64530         * lib/unictype/pr_sentence_terminal.h: Likewise.
64531         * lib/unictype/pr_soft_dotted.h: Likewise.
64532         * lib/unictype/pr_space.h: Likewise.
64533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64534         * lib/unictype/pr_titlecase.h: Likewise.
64535         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64536         * lib/unictype/pr_unified_ideograph.h: Likewise.
64537         * lib/unictype/pr_uppercase.h: Likewise.
64538         * lib/unictype/pr_variation_selector.h: Likewise.
64539         * lib/unictype/pr_white_space.h: Likewise.
64540         * lib/unictype/pr_xid_continue.h: Likewise.
64541         * lib/unictype/pr_xid_start.h: Likewise.
64542         * lib/unictype/pr_zero_width.h: Likewise.
64543         * lib/unictype/scripts.h: Likewise.
64544         * lib/unictype/scripts_byname.gperf: Likewise.
64545         * lib/unictype/sy_c_ident.h: Likewise.
64546         * lib/unictype/sy_c_whitespace.h: Likewise.
64547         * lib/unictype/sy_java_ident.h: Likewise.
64548         * lib/unictype/sy_java_whitespace.h: Likewise.
64549
64550         * lib/unictype/Makefile: New file.
64551         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64552         glibc.
64553         * lib/unictype/3level.h: New file, copied from glibc.
64554         * lib/unictype/3levelbit.h: New file.
64555
64556 2007-11-11  Bruno Haible  <bruno@clisp.org>
64557
64558         * modules/gperf: New file.
64559         * modules/iconv_open (Depends-on): Add it.
64560         (Makefile.am): Remove the GPERF definition.
64561
64562 2007-11-11  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64565         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64566
64567 2007-11-11  Bruno Haible  <bruno@clisp.org>
64568
64569         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64570         (usage): Remove function.
64571
64572 2007-11-11  Bruno Haible  <bruno@clisp.org>
64573
64574         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64575         gl_FUNC_CEILF_LIBS.
64576         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64577         gl_FUNC_CEIL_LIBS.
64578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64579         gl_FUNC_CEILL_LIBS.
64580         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64581         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64582         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64583
64584 2007-11-11  Bruno Haible  <bruno@clisp.org>
64585
64586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64587         roundf were declared but do not exist on functions.
64588         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64589         roundl were declared but do not exist on functions.
64590         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64591         HAVE_FLOORL_AND_CEILL, respectively.
64592         Needed for Sun C on Solaris 10.
64593
64594 2007-11-11  Bruno Haible  <bruno@clisp.org>
64595
64596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64597         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64598         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64599         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64601         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64602         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64603         HAVE_DECL_ROUNDF.
64604         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64605         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64607         of HAVE_DECL_ROUND*.
64608         * modules/math (Makefile.am): Update.
64609
64610 2007-11-10  Bruno Haible  <bruno@clisp.org>
64611
64612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64613         ptrdiff_t as m4/intl.m4.
64614
64615 2007-11-10  Jim Meyering  <meyering@redhat.com>
64616
64617         Avoid link failure for the argmatch test.
64618         * tests/test-argmatch.c (usage): Define function to avoid a link
64619         failure: argmatch_die requires a usage function.
64620
64621 2007-11-09  Bruno Haible  <bruno@clisp.org>
64622
64623         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64624         * doc/functions/vsnprintf.texi: Likewise.
64625         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64626         with a size argument < 2.
64627
64628 2007-11-09  Bruno Haible  <bruno@clisp.org>
64629
64630         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64631         buffer. Fixes an inefficiency introduced on 2007-11-03.
64632
64633 2007-11-09  Bruno Haible  <bruno@clisp.org>
64634
64635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64636         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64637
64638 2007-11-08  Jim Meyering  <meyering@redhat.com>
64639
64640         Change cache variable name prefix "jm_" to "gl_" everywhere.
64641         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64642         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64643         * m4/uptime.m4: s/gl_/jm_/
64644
64645 2007-11-07  Bruno Haible  <bruno@clisp.org>
64646
64647         Update to GNU gettext 0.17.
64648         * m4/intl.m4: Update to GNU gettext 0.17.
64649         * m4/po.m4: Likewise.
64650         * modules/gettext (Files): Remove m4/ulonglong.m4.
64651         (configure.ac): Require gettext infrastructure from version 0.17.
64652
64653 2007-11-06  Bruno Haible  <bruno@clisp.org>
64654
64655         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64656         symbolic values are not defined in a public header.
64657         * lib/freadable.c (freadable) [QNX]: Likewise.
64658         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64659         * lib/freading.c (freading) [QNX]: Likewise.
64660         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64661         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64662         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64663         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64664         Reported by Alain Magloire.
64665
64666         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64667
64668 2007-11-05  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64671         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64672         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64673         Reported by Eric Blake.
64674
64675 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64676             Bruno Haible  <bruno@clisp.org>
64677
64678         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64679         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64680         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64681         (malloc): Undefine also before including <stdlib.h>.
64682         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64683         Needed on OSF/1 4.0.
64684
64685 2007-11-05  Jim Meyering  <meyering@redhat.com>
64686
64687         git-version-gen: sync from coreutils.
64688         * build-aux/git-version-gen: Add comments.
64689         Change the first '-' to '.' in the snapshot version string,
64690         e.g., 6.9-377-08144 -> 6.9.377-08144
64691         Remove first parameter.
64692         Don't declare a version "-dirty" merely because a time
64693         stamp has changed.
64694
64695 2007-11-04  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/lock.h: Protect all macro definitions containing an 'if'
64698         statement through a "do { ... } while (0)".
64699         * lib/tls.h: Likewise.
64700
64701 2007-11-04  Bruno Haible  <bruno@clisp.org>
64702
64703         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64704
64705 2007-11-04  Bruno Haible  <bruno@clisp.org>
64706
64707         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64708         * modules/fprintf-posix (Depends-on): Add nocrash.
64709         * modules/snprintf-posix (Depends-on): Likewise.
64710         * modules/sprintf-posix (Depends-on): Likewise.
64711         * modules/vasnprintf-posix (Depends-on): Likewise.
64712         * modules/vasprintf-posix (Depends-on): Likewise.
64713         * modules/vfprintf-posix (Depends-on): Likewise.
64714         * modules/vsnprintf-posix (Depends-on): Likewise.
64715         * modules/vsprintf-posix (Depends-on): Likewise.
64716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64723
64724 2007-11-04  Bruno Haible  <bruno@clisp.org>
64725
64726         * modules/nocrash: New file.
64727         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64728         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64729
64730 2007-11-04  Bruno Haible  <bruno@clisp.org>
64731
64732         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64733         precision handling.
64734         * tests/test-vasprintf-posix.c (test_function): Likewise.
64735         * tests/test-snprintf-posix.h (test_function): Likewise.
64736         * tests/test-sprintf-posix.h (test_function): Likewise.
64737
64738         Fix *printf behaviour for large precisions on mingw and BeOS.
64739         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64740         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64742         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64744         gl_PRINTF_PRECISION and test its result. Invoke
64745         gl_PREREQ_VASNPRINTF_PRECISION.
64746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64753         * doc/functions/fprintf.texi: Update.
64754         * doc/functions/printf.texi: Update.
64755         * doc/functions/snprintf.texi: Update.
64756         * doc/functions/sprintf.texi: Update.
64757         * doc/functions/vfprintf.texi: Update.
64758         * doc/functions/vprintf.texi: Update.
64759         * doc/functions/vsnprintf.texi: Update.
64760         * doc/functions/vsprintf.texi: Update.
64761
64762 2007-11-04  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64765
64766 2007-11-04  Bruno Haible  <bruno@clisp.org>
64767
64768         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64769         Reported by Sylvain Beucler <beuc@gnu.org>.
64770
64771 2007-11-03  Bruno Haible  <bruno@clisp.org>
64772
64773         * tests/test-fprintf-posix2.sh: New file.
64774         * tests/test-fprintf-posix2.c: New file.
64775         * modules/fprintf-posix-tests (Files): Add them.
64776         (TESTS): Add test-fprintf-posix2.sh.
64777         (configure.ac): Check for getrlimit and setrlimit.
64778         (check_PROGRAMS): Add test-fprintf-posix2.
64779
64780         * tests/test-printf-posix2.sh: New file.
64781         * tests/test-printf-posix2.c: New file.
64782         * modules/printf-posix-tests (Files): Add them.
64783         (TESTS): Add test-printf-posix2.sh.
64784         (configure.ac): Check for getrlimit and setrlimit.
64785         (check_PROGRAMS): Add test-printf-posix2.
64786
64787         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64788         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64789         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64790         (decode_double): New function, copied from decode_long_double.
64791         (scale10_round_decimal_decoded): New function, extracted from
64792         scale10_round_decimal_long_double.
64793         (scale10_round_decimal_long_double): Use it.
64794         (scale10_round_decimal_double): New function.
64795         (floorlog10): New function.
64796         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64800         gl_PRINTF_ENOMEM and test its result. Invoke
64801         gl_PREREQ_VASNPRINTF_ENOMEM.
64802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64809         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64810         * modules/snprintf-posix (Depends-on): Likewise.
64811         * modules/sprintf-posix (Depends-on): Likewise.
64812         * modules/vasnprintf-posix (Depends-on): Likewise.
64813         * modules/vasprintf-posix (Depends-on): Likewise.
64814         * modules/vfprintf-posix (Depends-on): Likewise.
64815         * modules/vsnprintf-posix (Depends-on): Likewise.
64816         * modules/vsprintf-posix (Depends-on): Likewise.
64817         * doc/functions/fprintf.texi: Update.
64818         * doc/functions/printf.texi: Update.
64819         * doc/functions/snprintf.texi: Update.
64820         * doc/functions/sprintf.texi: Update.
64821         * doc/functions/vfprintf.texi: Update.
64822         * doc/functions/vprintf.texi: Update.
64823         * doc/functions/vsnprintf.texi: Update.
64824         * doc/functions/vsprintf.texi: Update.
64825
64826 2007-11-03  Bruno Haible  <bruno@clisp.org>
64827
64828         * modules/frexp-nolibm-tests: New file.
64829
64830         * modules/frexp-nolibm: New file.
64831         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64832
64833 2007-11-03  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64836         value is C99 compliant.
64837         Needed for OSF/1 5.1.
64838
64839 2007-11-03  Bruno Haible  <bruno@clisp.org>
64840
64841         Fix out-of-memory handling of vasnprintf.
64842         * lib/printf-parse.c: Include <errno.h>.
64843         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64844         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64845         is already set.
64846
64847 2007-11-02  Eric Blake  <ebb9@byu.net>
64848
64849         Fix tests on cygwin.
64850         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64851
64852 2007-11-01  Bruno Haible  <bruno@clisp.org>
64853
64854         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64855         warning.
64856         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64857         needed for POSIX compatibility.
64858
64859 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64862         for compatibility with GNU.
64863
64864 2007-11-01  Bruno Haible  <bruno@clisp.org>
64865
64866         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64867         (putenv): Renamed from rpl_putenv. Change argument type from
64868         'const char *' to 'char *'.
64869         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64870         of defining putenv in config.h, just set REPLACE_PUTENV.
64871         * modules/putenv (Depends-on): Add stdlib.
64872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64873         (Include): Use <stdlib.h>.
64874         * lib/stdlib.in.h (putenv): New declaration.
64875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64876         REPLACE_PUTENV.
64877         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64878         REPLACE_PUTENV.
64879         Needed for MacOS X 10.5.0.
64880         Reported by Peter O'Gorman <peter@pogma.com>.
64881
64882 2007-11-01  Jim Meyering  <meyering@redhat.com>
64883
64884         Treat an empty date string exactly like "0".
64885         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64886         if the remaining date string (to be parsed) is empty, use "0".
64887         Reported by Mischa Molhoek and discussed in this thread:
64888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64889
64890 2007-10-31  Bruno Haible  <bruno@clisp.org>
64891
64892         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64893         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64894         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64895         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64896         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64897         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64898
64899 2007-10-31  Bruno Haible  <bruno@clisp.org>
64900
64901         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64902         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64903         (AC_TYPE_LONG_LONG_INT): Use it.
64904         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64905         it as well.
64906         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64907         to m4/longlong.m4.
64908         * modules/stdint (Files): Remove m4/ulonglong.m4.
64909         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64910         m4/ulonglong.m4.
64911         * modules/strtoumax (Files): Likewise.
64912
64913 2007-10-30  Bruno Haible  <bruno@clisp.org>
64914
64915         * modules/xvasprintf-posix: New file.
64916         Suggested by Eric Blake.
64917
64918 2007-10-30  Bruno Haible  <bruno@clisp.org>
64919
64920         * modules/xprintf-posix-tests: New file.
64921         * tests/test-xprintf-posix.sh: New file.
64922         * tests/test-xprintf-posix.c: New file.
64923         * tests/test-xfprintf-posix.c: New file.
64924
64925         * modules/xprintf-posix: New file.
64926
64927 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64928
64929         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64930         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64931         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64932
64933 2007-10-29  Bruno Haible  <bruno@clisp.org>
64934
64935         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64936         contain the special marker '_cv_'.
64937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64942         Reported by Ralf Wildenhues.
64943
64944 2007-10-29  Bruno Haible  <bruno@clisp.org>
64945
64946         * gnulib-tool (func_import): When --lgpl is not specified, set
64947         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64948         GPLv3.
64949         Reported by Simon Josefsson.
64950
64951 2007-10-28  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64954         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64955         HAVE_DECL_ISFINITE.
64956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64957         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64958         HAVE_DECL_ISFINITE.
64959
64960 2007-10-28  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64963         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64964
64965 2007-10-28  Bruno Haible  <bruno@clisp.org>
64966
64967         Fix link errors with Sun C 5.0 on Solaris 10.
64968         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64969         function is declared but not present in the compiler's libm.
64970         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64971         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64972         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64973         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64974         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64975         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64976         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64978         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64979         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64980         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64981         HAVE_DECL_FLOORL.
64982
64983 2007-10-28  Bruno Haible  <bruno@clisp.org>
64984
64985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64986         gl_FUNC_FLOORL. Cache the result.
64987         (gl_FUNC_FLOORL): Use it.
64988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64989         gl_FUNC_CEILL. Cache the result.
64990         (gl_FUNC_CEILL): Use it.
64991
64992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64993         gl_FUNC_FLOOR. Cache the result.
64994         (gl_FUNC_FLOOR): Use it.
64995         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64996         gl_FUNC_CEIL. Cache the result.
64997         (gl_FUNC_CEIL): Use it.
64998
64999         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65000         gl_FUNC_FLOORF. Cache the result.
65001         (gl_FUNC_FLOORF): Use it.
65002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65003         gl_FUNC_CEILF. Cache the result.
65004         (gl_FUNC_CEILF): Use it.
65005
65006 2007-10-28  Bruno Haible  <bruno@clisp.org>
65007
65008         * gnulib-tool: Allow specifying the LGPL version number through
65009         --lgpl=2 or --lgpl=3.
65010         (func_usage): Document --lgpl with argument.
65011         Handle --lgpl=... arguments.
65012         (func_import): Recognize also gl_LGPL calls with an argument. When
65013         --lgpl=2 is used and the module's license is just LGPL, report an
65014         error. Set sed_transform_lib_file according to the lgpl variable. In
65015         the generated files, use --lgpl or gl_LGPL invocations with argument,
65016         if necessary.
65017         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65018         an LGPv2+ license.
65019         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65020         gl_LGPL macro.
65021
65022 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65023             Bruno Haible  <bruno@clisp.org>
65024
65025         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65026         (u16_uctomb_aux): Likewise.
65027         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65028         !HAVE_INLINE.
65029         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65030
65031 2007-10-28  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65034         Invoke AM_GETTEXT_OPTION if it exists.
65035         * modules/vasprintf: Likewise.
65036         * modules/verror: Likewise.
65037         * modules/xprintf: Likewise.
65038         * modules/xvasprintf: Likewise.
65039
65040 2007-10-27  Ben Pfaff  <blp@gnu.org>
65041
65042         * lib/math.in.h: Define isfinite macro and prototypes for
65043         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65044         implementations.
65045         * m4/math_h.m4: New substitutions for isfinite module.
65046         * lib/isfinite.c: New file.
65047         * m4/isfinite.m4: New file.
65048         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65049         * modules/isfinite: New file.
65050         * modules/isfinite-tests: New file.
65051         * tests/tests-isfinite.c: New file.
65052         * doc/functions/isfinite.texi: Mention isfinite module.
65053         * MODULES.html.sh: Mention new module.
65054
65055 2007-10-27  Ben Pfaff  <blp@gnu.org>
65056
65057         Ralf Wildenhues reported that Tru64 4.0D declares the round
65058         functions but does not have definitions.
65059         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65060         cannot be found in any library, set the output variable to
65061         "missing" instead of "".
65062         * m4/round.m4: Also use our substitute if we cannot find round in
65063         any library, even if it is declared.
65064         * m4/roundf.m4: Likewise for roundf.
65065         * m4/roundl.m4: Likewise for roundl.
65066         * lib/math.in.h: Undefine roundf, round, roundl before defining
65067         their replacements, to allow for hypothetical systems where these
65068         may be defined as macros but not available in libraries.
65069
65070 2007-10-27  Bruno Haible  <bruno@clisp.org>
65071
65072         * doc/gnulib.texi: Invoke @firstparagraphindent.
65073         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65074         changes in gnulib.
65075         (Source changes): New section.
65076
65077 2007-10-26  Bruno Haible  <bruno@clisp.org>
65078
65079         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65080         borrowed from autoconf.
65081
65082 2007-10-26  Bruno Haible  <bruno@clisp.org>
65083
65084         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65085         strerror returned the empty string. Needed on HP-UX 11.00.
65086
65087 2007-10-24  Micah Cowan  <micah@cowan.name>
65088
65089         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65090         * build-aux/bootstrap: Remove support for now-unnecessary option,
65091         --cvs-user, and envvars CVS_USER, CVS_RSH.
65092
65093 2007-10-24  Jim Meyering  <meyering@redhat.com>
65094
65095         Avoid diagnostics from sha1sum when there is no cached checksum.
65096         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65097         if the po.s1 file hasn't been created yet.
65098
65099         * build-aux/bootstrap: Sync from coreutils:
65100         2007-10-24  Jim Meyering  <meyering@redhat.com>
65101         Get gnulib from the git repository, not from an obsolete cvs one.
65102         * build-aux/bootstrap: Suggestion from Micah Cowan.
65103         2007-10-04  Jim Meyering  <jim@meyering.net>
65104         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65105         (update_po_files): Work also when there are no .po files in po/.
65106
65107 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * README: Append ".git" to git and cg examples.
65110         Problem reported by Benoit Sigoure.
65111
65112 2007-10-23  Micah Cowan  <micah@cowan.name>
65113
65114         * users.txt: Add wget.
65115
65116 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65117
65118         Fix linking of some unistdio tests on FreeBSD.
65119         * modules/unistdio/u16-vsnprintf-tests
65120         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65121         * modules/unistdio/u16-vsprintf-tests
65122         (test_u16_vsnprintf1_LDADD): Likewise.
65123         * modules/unistdio/u32-vsnprintf-tests
65124         (test_u32_vsnprintf1_LDADD): Likewise.
65125         * modules/unistdio/u32-vsprintf-tests
65126         (test_u32_vsprintf1_LDADD): Likewise.
65127         * modules/unistdio/u8-vsnprintf-tests
65128         (test_u8_vsnprintf1_LDADD): Likewise.
65129         * modules/unistdio/u8-vsprintf-tests
65130         (test_u8_vsprintf1_LDADD): Likewise.
65131         * modules/unistdio/ulc-vsnprintf-tests
65132         (test_ulc_vsnprintf1_LDADD): Likewise.
65133         * modules/unistdio/ulc-vsprintf-tests
65134         (test_ulc_vsprintf1_LDADD): Likewise.
65135
65136         Fix linking of some uniconv tests on FreeBSD.
65137         * modules/uniconv/u16-conv-from-enc-tests
65138         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65139         * modules/uniconv/u16-conv-to-enc-tests
65140         (test_u16_conv_to_enc_LDADD): Likewise.
65141         * modules/uniconv/u16-strconv-from-enc-tests
65142         (test_u16_strconv_from_enc_LDADD): Likewise.
65143         * modules/uniconv/u16-strconv-to-enc-tests
65144         (test_u16_strconv_to_enc_LDADD): Likewise.
65145         * modules/uniconv/u32-conv-from-enc-tests
65146         (test_u32_conv_from_enc_LDADD): Likewise.
65147         * modules/uniconv/u32-conv-to-enc-tests
65148         (test_u32_conv_to_enc_LDADD): Likewise.
65149         * modules/uniconv/u32-strconv-from-enc-tests
65150         (test_u32_strconv_from_enc_LDADD): Likewise.
65151         * modules/uniconv/u32-strconv-to-enc-tests
65152         (test_u32_strconv_to_enc_LDADD): Likewise.
65153         * modules/uniconv/u8-conv-from-enc-tests
65154         (test_u8_conv_from_enc_LDADD): Likewise.
65155         * modules/uniconv/u8-conv-to-enc-tests
65156         (test_u8_conv_to_enc_LDADD): Likewise.
65157         * modules/uniconv/u8-strconv-from-enc-tests
65158         (test_u8_strconv_from_enc_LDADD): Likewise.
65159         * modules/uniconv/u8-strconv-to-enc-tests
65160         (test_u8_strconv_to_enc_LDADD): Likewise.
65161
65162 2007-10-22  Bruno Haible  <bruno@clisp.org>
65163
65164         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65165         size.
65166
65167 2007-10-22  Eric Blake  <ebb9@byu.net>
65168
65169         Tweak x*printf documentation.
65170         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65171         variable name and comments.
65172         Suggested by Bruno Haible.
65173
65174 2007-10-22  Bruno Haible  <bruno@clisp.org>
65175
65176         * lib/acl.c (copy_acl): Fix file name in comment.
65177
65178 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         Fix Tru64 problem with stdbool.h.
65181         * lib/stdbool.in.h (false, true):
65182         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65183         Don't declare as an enum in this situation; it runs afoul of Tru64.
65184         Problem reported by Steven M. Schweda in
65185         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65186
65187 2007-10-22  Eric Blake  <ebb9@byu.net>
65188
65189         Also wrap vf?printf.
65190         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65191         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65192         (xvprintf, xvfprintf): New functions.
65193
65194 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65195
65196         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65197         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65198
65199         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65200         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65201
65202 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65205         by Bruno Haible.
65206
65207 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65208
65209         * lib/getloadavg.c
65210         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65211         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65212
65213         * tests/test-i-ring.c: Work for C89.
65214
65215 2007-10-22  Bruno Haible  <bruno@clisp.org>
65216
65217         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65218         -1u, in preprocessor expression, so that we don't test for the bug
65219         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65221
65222 2007-10-22  Eric Blake  <ebb9@byu.net>
65223
65224         * tests/test-yesno.sh: Silence stderr during test.
65225
65226 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65227
65228         * modules/crypto/gc-camellia: New file.
65229
65230         * m4/gc-camellia.m4: New file.
65231
65232         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65233
65234         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65235
65236 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65237
65238         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65239         --help to stdout.  Reported by sms@antinode.org (Steven
65240         M. Schweda).
65241
65242 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65243
65244         * users.txt: Fix link to libksba.
65245
65246 2007-10-21  Ben Pfaff  <blp@gnu.org>
65247
65248         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65249         round.c roundf implementation that depends on floorf and ceilf to
65250         be tested unconditionally.
65251
65252 2007-10-21  Ben Pfaff  <blp@gnu.org>
65253
65254         * m4/check-libm-func.m4: Removed.
65255         * m4/check-math-lib.m4: New file.
65256         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65257         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65258         definition and lack of AC_LIBOBJ([roundf]).
65259         * m4/roundl.m4: Ditto, and similarly for roundl.
65260         * modules/round: Reference new m4 file.
65261         * modules/roundf: Ditto.
65262         * modules/roundl: Ditto.
65263         * tests/test-round2.c (main): Use ROUND instead of round.
65264         Bug report from Bruno Haible.
65265
65266 2007-10-21  Bruno Haible  <bruno@clisp.org>
65267
65268         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65269         context.
65270
65271 2007-10-21  Bruno Haible  <bruno@clisp.org>
65272
65273         * tests/test-wcwidth.c (main): Allow negative result for some control
65274         characters.
65275
65276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65277         Needed on OSF/1 5.1.
65278
65279 2007-10-21  Bruno Haible  <bruno@clisp.org>
65280
65281         * tests/test-floorf1.c: Include isnanf.h.
65282         (main): Use isnanf() instead of isnan().
65283         * tests/test-ceilf1.c: Include isnanf.h.
65284         (main): Use isnanf() instead of isnan().
65285         * tests/test-truncf1.c: Include isnanf.h.
65286         (main): Use isnanf() instead of isnan().
65287         * tests/test-roundf1.c: Include isnanf.h.
65288         (main): Use isnanf() instead of isnan().
65289
65290 2007-10-21  Eric Blake  <ebb9@byu.net>
65291
65292         * users.txt: Update URL for m4.
65293
65294 2007-10-21  Bruno Haible  <bruno@clisp.org>
65295
65296         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65297
65298 2007-10-21  Bruno Haible  <bruno@clisp.org>
65299
65300         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65301         Git's management files if the CVS files are not present.
65302
65303 2007-10-20  Bruno Haible  <bruno@clisp.org>
65304
65305         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65306         gcc-3.4.x.
65307
65308 2007-10-20  Ben Pfaff  <blp@gnu.org>
65309
65310         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65311         implementations.
65312         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65313         * lib/round.c: New file.
65314         * lib/roundf.c: New file.
65315         * lib/roundl.c: New file.
65316         * m4/round.m4: New file.
65317         * m4/roundf.m4: New file.
65318         * m4/roundl.m4: New file.
65319         * m4/check-libm-func-m4: New file.
65320         * modules/math: Replace round, roundf, roundl related @VARS@ in
65321         math.in.h.
65322         * modules/round: New file.
65323         * modules/round-tests: New file.
65324         * modules/roundf: New file.
65325         * modules/roundf-tests: New file.
65326         * modules/roundl: New file.
65327         * modules/roundl-tests: New file.
65328         * tests/test-round1.c: New file.
65329         * tests/test-round2.c: New file.
65330         * tests/test-roundf1.c: New file.
65331         * tests/test-roundf2.c: New file.
65332         * tests/test-roundl.c: New file.
65333         * doc/functions/round.texi: Mention round module.
65334         * doc/functions/roundf.texi: Mention roundf module.
65335         * doc/functions/roundl.texi: Mention roundl module.
65336         * MODULES.html.sh: Mention new modules.
65337         Thanks to Bruno Haible for suggestions.
65338
65339 2007-10-20  Jim Meyering  <meyering@redhat.com>
65340
65341         * lib/xprintf.c: Include <config.h> unconditionally.
65342
65343         Change xprintf's license to GPL.
65344         * modules/xprintf (License): s/LGPL/GPL/, since this module
65345         depends on modules (exit and exitfail) which are GPL.
65346         Suggestion from Bruno Haible.
65347
65348         xprintf fixes.
65349         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65350         Use a clearer diagnostic.
65351         Patch from Bruno Haible.
65352
65353 2007-10-20  Bruno Haible  <bruno@clisp.org>
65354
65355         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65356         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65358
65359 2007-10-20  Bruno Haible  <bruno@clisp.org>
65360
65361         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65362         precision in the comparison result > x - 1 or similar.
65363         * tests/test-ceilf2.c (correct_result_p): Likewise.
65364         * tests/test-truncf2.c (correct_result_p): Likewise.
65365         * tests/test-trunc2.c (correct_result_p): Likewise.
65366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65367
65368 2007-10-20  Bruno Haible  <bruno@clisp.org>
65369
65370         * modules/ceil: New file.
65371         * m4/ceil.m4: New file.
65372         * doc/functions/ceil.texi: Mention the 'ceil' module.
65373
65374 2007-10-20  Bruno Haible  <bruno@clisp.org>
65375
65376         * modules/floor: New file.
65377         * m4/floor.m4: New file.
65378         * doc/functions/floor.texi: Mention the 'floor' module.
65379
65380 2007-10-20  Bruno Haible  <bruno@clisp.org>
65381
65382         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65383         of %a.
65384         * modules/floorf-tests (Depends-on): Likewise.
65385         * modules/truncf-tests (Depends-on): Likewise.
65386         * modules/trunc-tests (Depends-on): Likewise.
65387         Reported by Ben Pfaff.
65388
65389 2007-10-19  Jim Meyering  <meyering@redhat.com>
65390
65391         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65392         Don't bother testing specific errno values.  Just test ferror.
65393
65394         New module: xprintf
65395         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65396
65397 2007-10-19  Bruno Haible  <bruno@clisp.org>
65398
65399         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65400         syntax.
65401         * modules/javaexec (Makefile.am): Likewise.
65402         * modules/relocatable-prog (Makefile.am): Likewise.
65403         Suggested by Jim Meyering.
65404
65405 2007-10-18  Bruno Haible  <bruno@clisp.org>
65406
65407         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65408         Reported by Jim Meyering.
65409
65410 2007-10-18  Eric Blake  <ebb9@byu.net>
65411
65412         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65413
65414 2007-10-18  Bruno Haible  <bruno@clisp.org>
65415
65416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65417         the format string into writable memory. Needed in Fortify conditions.
65418
65419 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65420             Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65423         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65424         * modules/trim (Depends-on): Add mbchar.
65425         (configure.ac): Add gl_FUNC_MBRTOWC.
65426         (Makefile.am): Augment lib_SOURCES.
65427
65428 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65429
65430         Modify glob.c to use fstatat and dirfd, to simplify it.
65431         Suggested by Eric Blake.
65432         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65433         Don't include <stdbool.h>; not used.
65434         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65435         (link_exists_p): Simplify implementation, since we can now assume
65436         dirfd and fstatat.
65437         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65438
65439 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65440
65441         * gnulib-tool (func_get_dependencies): Fix sed script to
65442         match only tests.
65443
65444 2007-10-17  Bruno Haible  <bruno@clisp.org>
65445
65446         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65447         allow locale names without encoding suffix.
65448         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65449         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65450
65451 2007-10-16  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65454         * lib/getgroups.c (getgroups): Likewise.
65455         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65456
65457 2007-10-16  Bruno Haible  <bruno@clisp.org>
65458
65459         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65460         * modules/malloc-posix (License): Likewise.
65461         * modules/realloc-posix (License): Likewise.
65462         * modules/calloc-posix (License): Likewise.
65463         * modules/intprops (License): Change from GPL to LGPL, with
65464         Paul Eggert's approval.
65465
65466 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         Merge glibc changes into lib/glob.c.
65469
65470         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65471         2007-10-15 04:59:03 UTC.  Here are the changes:
65472
65473         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65474
65475         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65476
65477         * lib/glob.c: Add some branch prediction throughout.
65478
65479         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65480
65481         [BZ #5103]
65482         * lib/glob.c (glob): Recognize patterns starting \/.
65483
65484         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65485
65486         [BZ #3996]
65487         * lib/glob.c (attribute_hidden): Define if not defined.
65488         (glob): Unescape dirname, filename or username when needed and not
65489         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65490         is NULL.  Handle unescaped [ in pattern without closing ].
65491         Don't pass GLOB_CHECK down to recursive glob for directories.
65492         (__glob_pattern_type): New function.
65493         (__glob_pattern_p): Implement using __glob_pattern_type.
65494         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65495         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65496         Remove unreachable code.
65497
65498         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65499
65500         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65501         explain why there are no leaks.
65502
65503         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65504
65505         [BZ #3253]
65506         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65507         time, rather allocate increasingly bigger arrays of pointers, if
65508         possible with alloca, if too large with malloc.
65509
65510 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65513         Problem reported by H.Merijn Brand in
65514         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65517
65518 2007-10-15  Bruno Haible  <bruno@clisp.org>
65519
65520         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65521         with explicit rpl_ prefix.
65522         * lib/fopen.c (fopen): Likewise.
65523         * lib/freopen.c (freopen): Likewise.
65524         * lib/iconv.c (iconv): Likewise.
65525         * lib/iconv_close.c (iconv_close): Likewise.
65526
65527 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65528
65529         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65530
65531 2007-10-15  Bruno Haible  <bruno@clisp.org>
65532
65533         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65534         <stddef.h> instead of <stdlib.h> since we only need NULL.
65535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65536
65537 2007-10-15  Bruno Haible  <bruno@clisp.org>
65538
65539         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65540         Replace paragraph talking about LIBOBJS.
65541         Reported by Colin Watson <cjwatson@debian.org>.
65542
65543 2007-10-15  Bruno Haible  <bruno@clisp.org>
65544
65545         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65546         <stdlib.h> before using NULL.
65547
65548 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65549
65550         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65551         Reported by Albert Chin <china@thewrittenword.com>.
65552
65553 2007-10-14  Bruno Haible  <bruno@clisp.org>
65554
65555         * modules/iconv_open-utf-tests: New file.
65556         * tests/test-iconv-utf.c: New file.
65557
65558         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65559         * modules/iconv_open-utf: New file.
65560         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65561         (iconv, iconv_close): New declarations.
65562         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65563         be defined.
65564         (iconv_open): Add special handling of conversion between UTF-8 and
65565         UTF-{16,32}{BE,LE}.
65566         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65567         * lib/iconv_close.c: New file.
65568         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65569         gl_FUNC_ICONV_OPEN.
65570         (gl_FUNC_ICONV_OPEN): Use it.
65571         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65572         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65573         and REPLACE_ICONV_UTF.
65574         * modules/iconv_open (Depends-on): Add c-strcase.
65575         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65576         ICONV_CONST.
65577         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65578
65579 2007-10-13  Albert Chin  <china@thewrittenword.com>
65580             Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65583         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65584
65585 2007-10-13  Bruno Haible  <bruno@clisp.org>
65586
65587         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65588         defined, use the ISO C99 inline semantics.
65589         * lib/argp.h (ARGP_EI): Likewise.
65590
65591 2007-10-13  Bruno Haible  <bruno@clisp.org>
65592
65593         Handle 'inline' change in gcc 4.3.0.
65594         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65595         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65596         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65597         argp_fmtstream_point): Disable 'extern' declaration if the function
65598         definition is going to be provided inline.
65599         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65600         semantics, not the ISO C99 inline semantics.
65601         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65602         'extern' declaration if the function definition is going to be provided
65603         inline.
65604         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65605         the GNU C inline semantics, not the ISO C99 inline semantics. With
65606         GCC 4.2, avoid a warning.
65607
65608 2007-10-13  Bruno Haible  <bruno@clisp.org>
65609
65610         * lib/freading.h (freading): Enable the use of __freading for
65611         glibc >= 2.7.
65612         * lib/freading.c (freading): Likewise.
65613
65614 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65615
65616         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65617         "warning: C99 inline functions are not supported; using GNU89".
65618
65619 2007-10-12  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65622         of 2.
65623         * tests/test-ceilf2.c: New file.
65624         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65625
65626         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65627         * modules/ceilf-tests: Update.
65628
65629 2007-10-12  Bruno Haible  <bruno@clisp.org>
65630
65631         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65632         of 2.
65633         * tests/test-floorf2.c: New file.
65634         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65635
65636         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65637         * modules/floorf-tests: Update.
65638
65639 2007-10-12  Bruno Haible  <bruno@clisp.org>
65640
65641         * tests/test-trunc2.c: New file.
65642         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65643
65644         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65645         * modules/trunc-tests: Update.
65646
65647 2007-10-12  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65650         of 2.
65651         * tests/test-truncf2.c: New file.
65652         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65653
65654         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65655         * modules/truncf-tests: Update.
65656
65657 2007-10-11  Eric Blake  <ebb9@byu.net>
65658
65659         Don't claim strerror is broken on Interix.
65660         * doc/functions/strerror.texi (strerror): Known broken systems are
65661         now Solaris 8, and not Interix.
65662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65663         Interix on cross-compile.
65664         Reported by Martin Koeppe in
65665         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65666
65667 2007-10-11  Bruno Haible  <bruno@clisp.org>
65668
65669         * modules/i-ring-tests: New file.
65670         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65671         instead of assert.
65672
65673 2007-10-11  Bruno Haible  <bruno@clisp.org>
65674
65675         * modules/filenamecat-tests: New file.
65676         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65677         * lib/filenamecat.c: Remove test code.
65678
65679 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65682
65683         * lib/strerror.c: Include <string.h> always, to test interface,
65684         and to remove the need for the dummy.
65685         Include intprops.h to compute width instead of doing it ourselves
65686         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65687         (strerror): Define it to return NULL if there's no system strerror.
65688         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65689         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65690         ancient pre-strerror Unix systems well any more.  Saying "unknown
65691         system error" is enough.
65692         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65693         simpler strerror.c implementation.
65694         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65695         Simplify the tests to reflect the simpler strerror implementation.
65696         * modules/strerror (Depends-on): Add intprops.
65697
65698 2007-10-09  Eric Blake  <ebb9@byu.net>
65699
65700         Silence test-fpending.
65701         * modules/fpending-tests (Files): Add wrapper script.
65702         * tests/test-fpending.sh: New file.
65703
65704 2007-10-09  Bruno Haible  <bruno@clisp.org>
65705
65706         * MODULES.html.sh (func_module): Don't create a hyperlink for
65707         function names like 'printf_frexp'.
65708         (Misc): Add crc, memxor.
65709         (Characteristics of floating types): New section.
65710         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65711         isnanf-nolibm, signbit, trunc, truncf, truncl.
65712         (Enhancements for ISO C 99 functions): New subsection Input/output.
65713         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65714         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65715         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65716         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65717         (Enhancements for POSIX:2001 functions): Add chdir-long.
65718         (File system functions): Add areadlink, chdir-safer, read-file.
65719         Remove cycle-check.
65720         (File system as inode set): New section.
65721         (Date and time): Add gethrxtime.
65722         (Multithreading): Add openmp.
65723         (Internationalization functions): Add localename.
65724         (Unicode string functions): Add unistr/u*-mbsnlen.
65725         (Support for maintaining and releasing projects): Add git-version-gen.
65726         (Lone files): Remove directories.
65727
65728 2007-10-08  Ben Pfaff  <blp@gnu.org>
65729
65730         * lib/xmalloca.h: Fix typo in comment.
65731
65732 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65733
65734         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65735         when avoiding problems with integer overflow.  Use a portable test
65736         instead.
65737
65738 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65739
65740         * modules/dummy (License): Change to LGPLv2+.
65741         * modules/float (License): Likewise
65742         * modules/realloc (License): Likewise
65743         * modules/stdlib (License): Likewise
65744
65745 2007-10-07  Bruno Haible  <bruno@clisp.org>
65746
65747         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65748         * floor.c (TWO_MANT_DIG): Likewise.
65749         * ceil.c (TWO_MANT_DIG): Likewise.
65750         Reported by Ben Pfaff.
65751
65752 2007-10-07  Bruno Haible  <bruno@clisp.org>
65753
65754         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65755         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65756         * lib/frexp.c (FUNC): Likewise.
65757         * lib/printf-frexp.h (printf_frexp): Likewise.
65758         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65759         * lib/printf-frexp.c (FUNC): Likewise.
65760         Suggested by Jim Meyering.
65761
65762 2007-10-07  Jim Meyering  <meyering@redhat.com>
65763
65764         Make xnanosleep's integer overflow test more robust.
65765         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65766         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65767
65768 2007-10-07  Bruno Haible  <bruno@clisp.org>
65769
65770         * NEWS: Mention the license change.
65771
65772         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65773         abbreviations in the modules files.
65774
65775         Change copyright notice from GPLv2+ to GPLv3+.
65776         * README: Change copyright notice.
65777         * MODULES.html.sh: Likewise.
65778         * build-aux/bootstrap.conf: Likewise.
65779         * build-aux/config.libpath: Likewise.
65780         * build-aux/csharpcomp.sh.in: Likewise.
65781         * build-aux/csharpexec.sh.in: Likewise.
65782         * build-aux/install-reloc: Likewise.
65783         * build-aux/javacomp.sh.in: Likewise.
65784         * build-aux/javaexec.sh.in: Likewise.
65785         * build-aux/ldd.sh.in: Likewise.
65786         * build-aux/reloc-ldflags: Likewise.
65787         * build-aux/relocatable.sh.in: Likewise.
65788         * build-aux/x-to-1.in: Likewise.
65789         * check-module: Likewise.
65790         * config/srclistvars.sh: Likewise.
65791         * gnulib-tool: Likewise.
65792         * lib/acl-internal.h: Likewise.
65793         * lib/acl.c: Likewise.
65794         * lib/acl.h: Likewise.
65795         * lib/acl_entries.c: Likewise.
65796         * lib/areadlink-with-size.c: Likewise.
65797         * lib/areadlink.c: Likewise.
65798         * lib/areadlink.h: Likewise.
65799         * lib/argmatch.c: Likewise.
65800         * lib/argmatch.h: Likewise.
65801         * lib/argp-ba.c: Likewise.
65802         * lib/argp-eexst.c: Likewise.
65803         * lib/argp-fmtstream.c: Likewise.
65804         * lib/argp-fmtstream.h: Likewise.
65805         * lib/argp-fs-xinl.c: Likewise.
65806         * lib/argp-help.c: Likewise.
65807         * lib/argp-namefrob.h: Likewise.
65808         * lib/argp-parse.c: Likewise.
65809         * lib/argp-pin.c: Likewise.
65810         * lib/argp-pv.c: Likewise.
65811         * lib/argp-pvh.c: Likewise.
65812         * lib/argp-xinl.c: Likewise.
65813         * lib/argp.h: Likewise.
65814         * lib/at-func.c: Likewise.
65815         * lib/atanl.c: Likewise.
65816         * lib/backupfile.c: Likewise.
65817         * lib/backupfile.h: Likewise.
65818         * lib/basename.c: Likewise.
65819         * lib/binary-io.h: Likewise.
65820         * lib/byteswap.in.h: Likewise.
65821         * lib/c-stack.c: Likewise.
65822         * lib/c-stack.h: Likewise.
65823         * lib/c-strcasestr.c: Likewise.
65824         * lib/c-strcasestr.h: Likewise.
65825         * lib/c-strstr.c: Likewise.
65826         * lib/c-strstr.h: Likewise.
65827         * lib/c-strtod.c: Likewise.
65828         * lib/calloc.c: Likewise.
65829         * lib/canon-host.c: Likewise.
65830         * lib/canon-host.h: Likewise.
65831         * lib/canonicalize-lgpl.c: Likewise.
65832         * lib/canonicalize.c: Likewise.
65833         * lib/canonicalize.h: Likewise.
65834         * lib/ceil.c: Likewise.
65835         * lib/ceilf.c: Likewise.
65836         * lib/ceill.c: Likewise.
65837         * lib/chdir-long.c: Likewise.
65838         * lib/chdir-long.h: Likewise.
65839         * lib/chdir-safer.c: Likewise.
65840         * lib/chdir-safer.h: Likewise.
65841         * lib/chown.c: Likewise.
65842         * lib/classpath.c: Likewise.
65843         * lib/classpath.h: Likewise.
65844         * lib/clean-temp.c: Likewise.
65845         * lib/clean-temp.h: Likewise.
65846         * lib/cloexec.c: Likewise.
65847         * lib/close-stream.c: Likewise.
65848         * lib/closein.c: Likewise.
65849         * lib/closein.h: Likewise.
65850         * lib/closeout.c: Likewise.
65851         * lib/closeout.h: Likewise.
65852         * lib/concat-filename.c: Likewise.
65853         * lib/copy-file.c: Likewise.
65854         * lib/copy-file.h: Likewise.
65855         * lib/count-one-bits.h: Likewise.
65856         * lib/crc.c: Likewise.
65857         * lib/crc.h: Likewise.
65858         * lib/creat-safer.c: Likewise.
65859         * lib/csharpcomp.c: Likewise.
65860         * lib/csharpcomp.h: Likewise.
65861         * lib/csharpexec.c: Likewise.
65862         * lib/csharpexec.h: Likewise.
65863         * lib/cycle-check.c: Likewise.
65864         * lib/cycle-check.h: Likewise.
65865         * lib/diacrit.c: Likewise.
65866         * lib/diacrit.h: Likewise.
65867         * lib/diffseq.h: Likewise.
65868         * lib/dirchownmod.c: Likewise.
65869         * lib/dirent.in.h: Likewise.
65870         * lib/dirfd.c: Likewise.
65871         * lib/dirfd.h: Likewise.
65872         * lib/dirname.c: Likewise.
65873         * lib/dirname.h: Likewise.
65874         * lib/dummy.c: Likewise.
65875         * lib/dup-safer.c: Likewise.
65876         * lib/dup2.c: Likewise.
65877         * lib/eealloc.h: Likewise.
65878         * lib/error.c: Likewise.
65879         * lib/error.h: Likewise.
65880         * lib/euidaccess.c: Likewise.
65881         * lib/exclude.c: Likewise.
65882         * lib/exclude.h: Likewise.
65883         * lib/execute.c: Likewise.
65884         * lib/execute.h: Likewise.
65885         * lib/exitfail.c: Likewise.
65886         * lib/exitfail.h: Likewise.
65887         * lib/expl.c: Likewise.
65888         * lib/fatal-signal.c: Likewise.
65889         * lib/fatal-signal.h: Likewise.
65890         * lib/fbufmode.c: Likewise.
65891         * lib/fbufmode.h: Likewise.
65892         * lib/fchdir.c: Likewise.
65893         * lib/fchmodat.c: Likewise.
65894         * lib/fchownat.c: Likewise.
65895         * lib/fcntl--.h: Likewise.
65896         * lib/fcntl-safer.h: Likewise.
65897         * lib/fcntl.in.h: Likewise.
65898         * lib/fd-safer.c: Likewise.
65899         * lib/fflush.c: Likewise.
65900         * lib/file-has-acl.c: Likewise.
65901         * lib/file-set.c: Likewise.
65902         * lib/file-type.c: Likewise.
65903         * lib/file-type.h: Likewise.
65904         * lib/fileblocks.c: Likewise.
65905         * lib/filemode.c: Likewise.
65906         * lib/filemode.h: Likewise.
65907         * lib/filename.h: Likewise.
65908         * lib/filenamecat.c: Likewise.
65909         * lib/filenamecat.h: Likewise.
65910         * lib/findprog.c: Likewise.
65911         * lib/findprog.h: Likewise.
65912         * lib/float.in.h: Likewise.
65913         * lib/floor.c: Likewise.
65914         * lib/floorf.c: Likewise.
65915         * lib/floorl.c: Likewise.
65916         * lib/fopen-safer.c: Likewise.
65917         * lib/fopen.c: Likewise.
65918         * lib/fpending.c: Likewise.
65919         * lib/fpending.h: Likewise.
65920         * lib/fprintf.c: Likewise.
65921         * lib/fprintftime.h: Likewise.
65922         * lib/fpucw.h: Likewise.
65923         * lib/fpurge.c: Likewise.
65924         * lib/fpurge.h: Likewise.
65925         * lib/freadable.c: Likewise.
65926         * lib/freadable.h: Likewise.
65927         * lib/freadahead.c: Likewise.
65928         * lib/freadahead.h: Likewise.
65929         * lib/freading.c: Likewise.
65930         * lib/freading.h: Likewise.
65931         * lib/free.c: Likewise.
65932         * lib/freopen.c: Likewise.
65933         * lib/frexp.c: Likewise.
65934         * lib/frexpl.c: Likewise.
65935         * lib/fseek.c: Likewise.
65936         * lib/fseterr.c: Likewise.
65937         * lib/fseterr.h: Likewise.
65938         * lib/fstatat.c: Likewise.
65939         * lib/fstrcmp.c: Likewise.
65940         * lib/fstrcmp.h: Likewise.
65941         * lib/fsusage.c: Likewise.
65942         * lib/fsusage.h: Likewise.
65943         * lib/ftell.c: Likewise.
65944         * lib/ftello.c: Likewise.
65945         * lib/fts-cycle.c: Likewise.
65946         * lib/fts.c: Likewise.
65947         * lib/fts_.h: Likewise.
65948         * lib/full-read.c: Likewise.
65949         * lib/full-read.h: Likewise.
65950         * lib/full-write.c: Likewise.
65951         * lib/full-write.h: Likewise.
65952         * lib/fwritable.c: Likewise.
65953         * lib/fwritable.h: Likewise.
65954         * lib/fwriteerror.c: Likewise.
65955         * lib/fwriteerror.h: Likewise.
65956         * lib/fwriting.c: Likewise.
65957         * lib/fwriting.h: Likewise.
65958         * lib/gcd.c: Likewise.
65959         * lib/gcd.h: Likewise.
65960         * lib/getcwd.c: Likewise.
65961         * lib/getdate.h: Likewise.
65962         * lib/getdate.y: Likewise.
65963         * lib/getdomainname.c: Likewise.
65964         * lib/getdomainname.h: Likewise.
65965         * lib/getgroups.c: Likewise.
65966         * lib/gethostname.c: Likewise.
65967         * lib/gethrxtime.c: Likewise.
65968         * lib/gethrxtime.h: Likewise.
65969         * lib/getloadavg.c: Likewise.
65970         * lib/getndelim2.c: Likewise.
65971         * lib/getndelim2.h: Likewise.
65972         * lib/getnline.c: Likewise.
65973         * lib/getnline.h: Likewise.
65974         * lib/getopt.c: Likewise.
65975         * lib/getopt.in.h: Likewise.
65976         * lib/getopt1.c: Likewise.
65977         * lib/getopt_int.h: Likewise.
65978         * lib/getpagesize.h: Likewise.
65979         * lib/getsubopt.c: Likewise.
65980         * lib/gettime.c: Likewise.
65981         * lib/getugroups.c: Likewise.
65982         * lib/getugroups.h: Likewise.
65983         * lib/getusershell.c: Likewise.
65984         * lib/gl_anyavltree_list1.h: Likewise.
65985         * lib/gl_anyavltree_list2.h: Likewise.
65986         * lib/gl_anyhash_list1.h: Likewise.
65987         * lib/gl_anyhash_list2.h: Likewise.
65988         * lib/gl_anylinked_list1.h: Likewise.
65989         * lib/gl_anylinked_list2.h: Likewise.
65990         * lib/gl_anyrbtree_list1.h: Likewise.
65991         * lib/gl_anyrbtree_list2.h: Likewise.
65992         * lib/gl_anytree_list1.h: Likewise.
65993         * lib/gl_anytree_list2.h: Likewise.
65994         * lib/gl_anytree_oset.h: Likewise.
65995         * lib/gl_anytreehash_list1.h: Likewise.
65996         * lib/gl_anytreehash_list2.h: Likewise.
65997         * lib/gl_array_list.c: Likewise.
65998         * lib/gl_array_list.h: Likewise.
65999         * lib/gl_array_oset.c: Likewise.
66000         * lib/gl_array_oset.h: Likewise.
66001         * lib/gl_avltree_list.c: Likewise.
66002         * lib/gl_avltree_list.h: Likewise.
66003         * lib/gl_avltree_oset.c: Likewise.
66004         * lib/gl_avltree_oset.h: Likewise.
66005         * lib/gl_avltreehash_list.c: Likewise.
66006         * lib/gl_avltreehash_list.h: Likewise.
66007         * lib/gl_carray_list.c: Likewise.
66008         * lib/gl_carray_list.h: Likewise.
66009         * lib/gl_linked_list.c: Likewise.
66010         * lib/gl_linked_list.h: Likewise.
66011         * lib/gl_linkedhash_list.c: Likewise.
66012         * lib/gl_linkedhash_list.h: Likewise.
66013         * lib/gl_list.c: Likewise.
66014         * lib/gl_list.h: Likewise.
66015         * lib/gl_oset.c: Likewise.
66016         * lib/gl_oset.h: Likewise.
66017         * lib/gl_rbtree_list.c: Likewise.
66018         * lib/gl_rbtree_list.h: Likewise.
66019         * lib/gl_rbtree_oset.c: Likewise.
66020         * lib/gl_rbtree_oset.h: Likewise.
66021         * lib/gl_rbtreehash_list.c: Likewise.
66022         * lib/gl_rbtreehash_list.h: Likewise.
66023         * lib/gl_sublist.c: Likewise.
66024         * lib/gl_sublist.h: Likewise.
66025         * lib/group-member.c: Likewise.
66026         * lib/group-member.h: Likewise.
66027         * lib/hard-locale.c: Likewise.
66028         * lib/hard-locale.h: Likewise.
66029         * lib/hash-pjw.c: Likewise.
66030         * lib/hash-pjw.h: Likewise.
66031         * lib/hash-triple.c: Likewise.
66032         * lib/hash.c: Likewise.
66033         * lib/hash.h: Likewise.
66034         * lib/human.c: Likewise.
66035         * lib/human.h: Likewise.
66036         * lib/i-ring.c: Likewise.
66037         * lib/i-ring.h: Likewise.
66038         * lib/idcache.c: Likewise.
66039         * lib/imaxabs.c: Likewise.
66040         * lib/imaxdiv.c: Likewise.
66041         * lib/inet_pton.c: Likewise.
66042         * lib/inet_pton.h: Likewise.
66043         * lib/intprops.h: Likewise.
66044         * lib/inttostr.c: Likewise.
66045         * lib/inttostr.h: Likewise.
66046         * lib/inttypes.in.h: Likewise.
66047         * lib/isapipe.c: Likewise.
66048         * lib/isdir.c: Likewise.
66049         * lib/isnan.c: Likewise.
66050         * lib/isnan.h: Likewise.
66051         * lib/isnanf.c: Likewise.
66052         * lib/isnanf.h: Likewise.
66053         * lib/isnanl-nolibm.h: Likewise.
66054         * lib/isnanl.c: Likewise.
66055         * lib/isnanl.h: Likewise.
66056         * lib/javacomp.c: Likewise.
66057         * lib/javacomp.h: Likewise.
66058         * lib/javaexec.c: Likewise.
66059         * lib/javaexec.h: Likewise.
66060         * lib/javaversion.c: Likewise.
66061         * lib/javaversion.h: Likewise.
66062         * lib/javaversion.java: Likewise.
66063         * lib/lbrkprop.h: Likewise.
66064         * lib/lchmod.h: Likewise.
66065         * lib/lchown.c: Likewise.
66066         * lib/ldexpl.c: Likewise.
66067         * lib/linebreak.c: Likewise.
66068         * lib/linebreak.h: Likewise.
66069         * lib/linebuffer.c: Likewise.
66070         * lib/linebuffer.h: Likewise.
66071         * lib/locale.in.h: Likewise.
66072         * lib/logl.c: Likewise.
66073         * lib/long-options.c: Likewise.
66074         * lib/long-options.h: Likewise.
66075         * lib/lstat.c: Likewise.
66076         * lib/lstat.h: Likewise.
66077         * lib/math.in.h: Likewise.
66078         * lib/mbchar.c: Likewise.
66079         * lib/mbchar.h: Likewise.
66080         * lib/mbfile.h: Likewise.
66081         * lib/mbiter.h: Likewise.
66082         * lib/mbscasecmp.c: Likewise.
66083         * lib/mbscasestr.c: Likewise.
66084         * lib/mbschr.c: Likewise.
66085         * lib/mbscspn.c: Likewise.
66086         * lib/mbslen.c: Likewise.
66087         * lib/mbsncasecmp.c: Likewise.
66088         * lib/mbsnlen.c: Likewise.
66089         * lib/mbspbrk.c: Likewise.
66090         * lib/mbspcasecmp.c: Likewise.
66091         * lib/mbsrchr.c: Likewise.
66092         * lib/mbssep.c: Likewise.
66093         * lib/mbsspn.c: Likewise.
66094         * lib/mbsstr.c: Likewise.
66095         * lib/mbstok_r.c: Likewise.
66096         * lib/mbswidth.c: Likewise.
66097         * lib/mbswidth.h: Likewise.
66098         * lib/mbuiter.h: Likewise.
66099         * lib/memcasecmp.c: Likewise.
66100         * lib/memcasecmp.h: Likewise.
66101         * lib/memchr.c: Likewise.
66102         * lib/memcmp.c: Likewise.
66103         * lib/memcoll.c: Likewise.
66104         * lib/memcoll.h: Likewise.
66105         * lib/memcpy.c: Likewise.
66106         * lib/memrchr.c: Likewise.
66107         * lib/mkancesdirs.c: Likewise.
66108         * lib/mkdir-p.c: Likewise.
66109         * lib/mkdir-p.h: Likewise.
66110         * lib/mkdir.c: Likewise.
66111         * lib/mkdirat.c: Likewise.
66112         * lib/mkdtemp.c: Likewise.
66113         * lib/mkstemp-safer.c: Likewise.
66114         * lib/mkstemp.c: Likewise.
66115         * lib/modechange.c: Likewise.
66116         * lib/modechange.h: Likewise.
66117         * lib/mountlist.c: Likewise.
66118         * lib/mountlist.h: Likewise.
66119         * lib/mpsort.c: Likewise.
66120         * lib/nanosleep.c: Likewise.
66121         * lib/obstack.c: Likewise.
66122         * lib/obstack.h: Likewise.
66123         * lib/open-safer.c: Likewise.
66124         * lib/open.c: Likewise.
66125         * lib/openat-die.c: Likewise.
66126         * lib/openat-priv.h: Likewise.
66127         * lib/openat-proc.c: Likewise.
66128         * lib/openat.c: Likewise.
66129         * lib/openat.h: Likewise.
66130         * lib/pagealign_alloc.c: Likewise.
66131         * lib/pagealign_alloc.h: Likewise.
66132         * lib/physmem.c: Likewise.
66133         * lib/physmem.h: Likewise.
66134         * lib/pipe-safer.c: Likewise.
66135         * lib/pipe.c: Likewise.
66136         * lib/pipe.h: Likewise.
66137         * lib/posixtm.c: Likewise.
66138         * lib/posixtm.h: Likewise.
66139         * lib/posixver.c: Likewise.
66140         * lib/printf-frexp.c: Likewise.
66141         * lib/printf-frexp.h: Likewise.
66142         * lib/printf-frexpl.c: Likewise.
66143         * lib/printf-frexpl.h: Likewise.
66144         * lib/printf.c: Likewise.
66145         * lib/progname.c: Likewise.
66146         * lib/progname.h: Likewise.
66147         * lib/progreloc.c: Likewise.
66148         * lib/putenv.c: Likewise.
66149         * lib/quote.c: Likewise.
66150         * lib/quote.h: Likewise.
66151         * lib/quotearg.c: Likewise.
66152         * lib/quotearg.h: Likewise.
66153         * lib/raise.c: Likewise.
66154         * lib/readline.c: Likewise.
66155         * lib/readline.h: Likewise.
66156         * lib/readlink.c: Likewise.
66157         * lib/readtokens.c: Likewise.
66158         * lib/readtokens.h: Likewise.
66159         * lib/readtokens0.c: Likewise.
66160         * lib/readtokens0.h: Likewise.
66161         * lib/readutmp.c: Likewise.
66162         * lib/readutmp.h: Likewise.
66163         * lib/realloc.c: Likewise.
66164         * lib/relocwrapper.c: Likewise.
66165         * lib/rename-dest-slash.c: Likewise.
66166         * lib/rename.c: Likewise.
66167         * lib/rmdir.c: Likewise.
66168         * lib/rpmatch.c: Likewise.
66169         * lib/safe-read.c: Likewise.
66170         * lib/safe-read.h: Likewise.
66171         * lib/safe-write.c: Likewise.
66172         * lib/safe-write.h: Likewise.
66173         * lib/same-inode.h: Likewise.
66174         * lib/same.c: Likewise.
66175         * lib/same.h: Likewise.
66176         * lib/save-cwd.c: Likewise.
66177         * lib/save-cwd.h: Likewise.
66178         * lib/savedir.c: Likewise.
66179         * lib/savedir.h: Likewise.
66180         * lib/savewd.c: Likewise.
66181         * lib/savewd.h: Likewise.
66182         * lib/search.in.h: Likewise.
66183         * lib/setenv.c: Likewise.
66184         * lib/setenv.h: Likewise.
66185         * lib/settime.c: Likewise.
66186         * lib/sh-quote.c: Likewise.
66187         * lib/sh-quote.h: Likewise.
66188         * lib/sig2str.c: Likewise.
66189         * lib/sig2str.h: Likewise.
66190         * lib/signal.in.h: Likewise.
66191         * lib/signbitd.c: Likewise.
66192         * lib/signbitf.c: Likewise.
66193         * lib/signbitl.c: Likewise.
66194         * lib/sigprocmask.c: Likewise.
66195         * lib/sincosl.c: Likewise.
66196         * lib/sleep.c: Likewise.
66197         * lib/sprintf.c: Likewise.
66198         * lib/sqrtl.c: Likewise.
66199         * lib/stat-time.h: Likewise.
66200         * lib/stdio--.h: Likewise.
66201         * lib/stdio-safer.h: Likewise.
66202         * lib/stdlib--.h: Likewise.
66203         * lib/stdlib-safer.h: Likewise.
66204         * lib/stdlib.in.h: Likewise.
66205         * lib/stpcpy.c: Likewise.
66206         * lib/stpncpy.c: Likewise.
66207         * lib/strchrnul.c: Likewise.
66208         * lib/strcspn.c: Likewise.
66209         * lib/strerror.c: Likewise.
66210         * lib/strftime.c: Likewise.
66211         * lib/strftime.h: Likewise.
66212         * lib/striconveh.c: Likewise.
66213         * lib/striconveh.h: Likewise.
66214         * lib/striconveha.c: Likewise.
66215         * lib/striconveha.h: Likewise.
66216         * lib/stripslash.c: Likewise.
66217         * lib/strnlen1.c: Likewise.
66218         * lib/strnlen1.h: Likewise.
66219         * lib/strtod.c: Likewise.
66220         * lib/strtoimax.c: Likewise.
66221         * lib/strtok_r.c: Likewise.
66222         * lib/strtol.c: Likewise.
66223         * lib/strtoll.c: Likewise.
66224         * lib/strtoul.c: Likewise.
66225         * lib/strtoull.c: Likewise.
66226         * lib/sysexits.in.h: Likewise.
66227         * lib/tempname.c: Likewise.
66228         * lib/tempname.h: Likewise.
66229         * lib/timespec.h: Likewise.
66230         * lib/tls.c: Likewise.
66231         * lib/tls.h: Likewise.
66232         * lib/tmpdir.c: Likewise.
66233         * lib/tmpdir.h: Likewise.
66234         * lib/tmpfile-safer.c: Likewise.
66235         * lib/tmpfile.c: Likewise.
66236         * lib/trigl.c: Likewise.
66237         * lib/trigl.h: Likewise.
66238         * lib/trim.c: Likewise.
66239         * lib/trim.h: Likewise.
66240         * lib/trunc.c: Likewise.
66241         * lib/truncf.c: Likewise.
66242         * lib/truncl.c: Likewise.
66243         * lib/tsearch.c: Likewise.
66244         * lib/unicodeio.c: Likewise.
66245         * lib/unicodeio.h: Likewise.
66246         * lib/unistd--.h: Likewise.
66247         * lib/unistd-safer.h: Likewise.
66248         * lib/unistdio/ulc-fprintf.c: Likewise.
66249         * lib/unistdio/ulc-vfprintf.c: Likewise.
66250         * lib/unlinkdir.c: Likewise.
66251         * lib/unlinkdir.h: Likewise.
66252         * lib/unlocked-io.h: Likewise.
66253         * lib/unsetenv.c: Likewise.
66254         * lib/userspec.c: Likewise.
66255         * lib/utime.c: Likewise.
66256         * lib/utimecmp.c: Likewise.
66257         * lib/utimecmp.h: Likewise.
66258         * lib/utimens.c: Likewise.
66259         * lib/verify.h: Likewise.
66260         * lib/verror.c: Likewise.
66261         * lib/verror.h: Likewise.
66262         * lib/version-etc-fsf.c: Likewise.
66263         * lib/version-etc.c: Likewise.
66264         * lib/version-etc.h: Likewise.
66265         * lib/vfprintf.c: Likewise.
66266         * lib/vprintf.c: Likewise.
66267         * lib/vsprintf.c: Likewise.
66268         * lib/w32spawn.h: Likewise.
66269         * lib/wait-process.c: Likewise.
66270         * lib/wait-process.h: Likewise.
66271         * lib/wcwidth.c: Likewise.
66272         * lib/write-any-file.c: Likewise.
66273         * lib/xalloc-die.c: Likewise.
66274         * lib/xalloc.h: Likewise.
66275         * lib/xasprintf.c: Likewise.
66276         * lib/xgetcwd.c: Likewise.
66277         * lib/xgetcwd.h: Likewise.
66278         * lib/xgetdomainname.c: Likewise.
66279         * lib/xgetdomainname.h: Likewise.
66280         * lib/xgethostname.c: Likewise.
66281         * lib/xmalloc.c: Likewise.
66282         * lib/xmalloca.c: Likewise.
66283         * lib/xmalloca.h: Likewise.
66284         * lib/xmemcoll.c: Likewise.
66285         * lib/xnanosleep.c: Likewise.
66286         * lib/xreadlink.c: Likewise.
66287         * lib/xreadlink.h: Likewise.
66288         * lib/xsetenv.c: Likewise.
66289         * lib/xsetenv.h: Likewise.
66290         * lib/xstriconv.c: Likewise.
66291         * lib/xstriconv.h: Likewise.
66292         * lib/xstrndup.c: Likewise.
66293         * lib/xstrndup.h: Likewise.
66294         * lib/xstrtod.c: Likewise.
66295         * lib/xstrtod.h: Likewise.
66296         * lib/xstrtol-error.c: Likewise.
66297         * lib/xstrtol.c: Likewise.
66298         * lib/xstrtol.h: Likewise.
66299         * lib/xtime.h: Likewise.
66300         * lib/xvasprintf.c: Likewise.
66301         * lib/xvasprintf.h: Likewise.
66302         * lib/yesno.c: Likewise.
66303         * lib/yesno.h: Likewise.
66304         * posix-modules: Likewise.
66305         * tests/test-alloca-opt.c: Likewise.
66306         * tests/test-arcfour.c: Likewise.
66307         * tests/test-arctwo.c: Likewise.
66308         * tests/test-argmatch.c: Likewise.
66309         * tests/test-argp-2.sh: Likewise.
66310         * tests/test-argp.c: Likewise.
66311         * tests/test-arpa_inet.c: Likewise.
66312         * tests/test-array_list.c: Likewise.
66313         * tests/test-array_oset.c: Likewise.
66314         * tests/test-atexit.c: Likewise.
66315         * tests/test-avltree_list.c: Likewise.
66316         * tests/test-avltree_oset.c: Likewise.
66317         * tests/test-avltreehash_list.c: Likewise.
66318         * tests/test-base64.c: Likewise.
66319         * tests/test-binary-io.c: Likewise.
66320         * tests/test-byteswap.c: Likewise.
66321         * tests/test-c-ctype.c: Likewise.
66322         * tests/test-c-strcasecmp.c: Likewise.
66323         * tests/test-c-strcasestr.c: Likewise.
66324         * tests/test-c-strncasecmp.c: Likewise.
66325         * tests/test-c-strstr.c: Likewise.
66326         * tests/test-canonicalize-lgpl.c: Likewise.
66327         * tests/test-canonicalize.c: Likewise.
66328         * tests/test-carray_list.c: Likewise.
66329         * tests/test-ceilf.c: Likewise.
66330         * tests/test-ceill.c: Likewise.
66331         * tests/test-count-one-bits.c: Likewise.
66332         * tests/test-crc.c: Likewise.
66333         * tests/test-dirname.c: Likewise.
66334         * tests/test-fbufmode.c: Likewise.
66335         * tests/test-fcntl.c: Likewise.
66336         * tests/test-fflush.c: Likewise.
66337         * tests/test-floorf.c: Likewise.
66338         * tests/test-floorl.c: Likewise.
66339         * tests/test-fopen.c: Likewise.
66340         * tests/test-fprintf-posix.c: Likewise.
66341         * tests/test-fprintf-posix.h: Likewise.
66342         * tests/test-fpurge.c: Likewise.
66343         * tests/test-freadable.c: Likewise.
66344         * tests/test-freadahead.c: Likewise.
66345         * tests/test-freading.c: Likewise.
66346         * tests/test-freopen.c: Likewise.
66347         * tests/test-frexp.c: Likewise.
66348         * tests/test-frexpl.c: Likewise.
66349         * tests/test-fseek.c: Likewise.
66350         * tests/test-fseeko.c: Likewise.
66351         * tests/test-fseterr.c: Likewise.
66352         * tests/test-fstrcmp.c: Likewise.
66353         * tests/test-ftell.c: Likewise.
66354         * tests/test-ftello.c: Likewise.
66355         * tests/test-fwritable.c: Likewise.
66356         * tests/test-fwriting.c: Likewise.
66357         * tests/test-getaddrinfo.c: Likewise.
66358         * tests/test-getpass.c: Likewise.
66359         * tests/test-gettimeofday.c: Likewise.
66360         * tests/test-hmac-md5.c: Likewise.
66361         * tests/test-hmac-sha1.c: Likewise.
66362         * tests/test-iconv.c: Likewise.
66363         * tests/test-iconvme.c: Likewise.
66364         * tests/test-inttypes.c: Likewise.
66365         * tests/test-isnan.c: Likewise.
66366         * tests/test-isnanf.c: Likewise.
66367         * tests/test-isnanl-nolibm.c: Likewise.
66368         * tests/test-isnanl.c: Likewise.
66369         * tests/test-isnanl.h: Likewise.
66370         * tests/test-ldexpl.c: Likewise.
66371         * tests/test-linked_list.c: Likewise.
66372         * tests/test-linkedhash_list.c: Likewise.
66373         * tests/test-locale.c: Likewise.
66374         * tests/test-localename.c: Likewise.
66375         * tests/test-lock.c: Likewise.
66376         * tests/test-lseek.c: Likewise.
66377         * tests/test-malloca.c: Likewise.
66378         * tests/test-math.c: Likewise.
66379         * tests/test-mbscasecmp.c: Likewise.
66380         * tests/test-mbscasestr1.c: Likewise.
66381         * tests/test-mbscasestr2.c: Likewise.
66382         * tests/test-mbscasestr3.c: Likewise.
66383         * tests/test-mbscasestr4.c: Likewise.
66384         * tests/test-mbschr.c: Likewise.
66385         * tests/test-mbscspn.c: Likewise.
66386         * tests/test-mbsncasecmp.c: Likewise.
66387         * tests/test-mbspbrk.c: Likewise.
66388         * tests/test-mbspcasecmp.c: Likewise.
66389         * tests/test-mbsrchr.c: Likewise.
66390         * tests/test-mbsspn.c: Likewise.
66391         * tests/test-mbsstr1.c: Likewise.
66392         * tests/test-mbsstr2.c: Likewise.
66393         * tests/test-mbsstr3.c: Likewise.
66394         * tests/test-md5.c: Likewise.
66395         * tests/test-memmem.c: Likewise.
66396         * tests/test-netinet_in.c: Likewise.
66397         * tests/test-open.c: Likewise.
66398         * tests/test-printf-frexp.c: Likewise.
66399         * tests/test-printf-frexpl.c: Likewise.
66400         * tests/test-printf-posix.c: Likewise.
66401         * tests/test-printf-posix.h: Likewise.
66402         * tests/test-rbtree_list.c: Likewise.
66403         * tests/test-rbtree_oset.c: Likewise.
66404         * tests/test-rbtreehash_list.c: Likewise.
66405         * tests/test-read-file.c: Likewise.
66406         * tests/test-rijndael.c: Likewise.
66407         * tests/test-search.c: Likewise.
66408         * tests/test-signbit.c: Likewise.
66409         * tests/test-sleep.c: Likewise.
66410         * tests/test-snprintf-posix.c: Likewise.
66411         * tests/test-snprintf-posix.h: Likewise.
66412         * tests/test-snprintf.c: Likewise.
66413         * tests/test-sprintf-posix.c: Likewise.
66414         * tests/test-sprintf-posix.h: Likewise.
66415         * tests/test-stat-time.c: Likewise.
66416         * tests/test-stdbool.c: Likewise.
66417         * tests/test-stdint.c: Likewise.
66418         * tests/test-stdio.c: Likewise.
66419         * tests/test-stdlib.c: Likewise.
66420         * tests/test-stpncpy.c: Likewise.
66421         * tests/test-strcasestr.c: Likewise.
66422         * tests/test-striconv.c: Likewise.
66423         * tests/test-striconveh.c: Likewise.
66424         * tests/test-striconveha.c: Likewise.
66425         * tests/test-string.c: Likewise.
66426         * tests/test-sys_select.c: Likewise.
66427         * tests/test-sys_socket.c: Likewise.
66428         * tests/test-sys_stat.c: Likewise.
66429         * tests/test-sys_time.c: Likewise.
66430         * tests/test-sysexits.c: Likewise.
66431         * tests/test-time.c: Likewise.
66432         * tests/test-tls.c: Likewise.
66433         * tests/test-trunc.c: Likewise.
66434         * tests/test-truncf.c: Likewise.
66435         * tests/test-truncl.c: Likewise.
66436         * tests/test-unistd.c: Likewise.
66437         * tests/test-vasnprintf-posix.c: Likewise.
66438         * tests/test-vasnprintf-posix2.c: Likewise.
66439         * tests/test-vasnprintf.c: Likewise.
66440         * tests/test-vasprintf-posix.c: Likewise.
66441         * tests/test-vasprintf.c: Likewise.
66442         * tests/test-verify.c: Likewise.
66443         * tests/test-vfprintf-posix.c: Likewise.
66444         * tests/test-vprintf-posix.c: Likewise.
66445         * tests/test-vsnprintf-posix.c: Likewise.
66446         * tests/test-vsnprintf.c: Likewise.
66447         * tests/test-vsprintf-posix.c: Likewise.
66448         * tests/test-wchar.c: Likewise.
66449         * tests/test-wctype.c: Likewise.
66450         * tests/test-wcwidth.c: Likewise.
66451         * tests/test-xstrtol.c: Likewise.
66452         * tests/test-xvasprintf.c: Likewise.
66453         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66454         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66455         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66456         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66457         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66458         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66459         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66460         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66462         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66465         * tests/uniname/test-uninames.c: Likewise.
66466         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66467         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66468         * tests/unistdio/test-u16-printf1.h: Likewise.
66469         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66470         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66471         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66472         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66473         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66474         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66475         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66476         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66477         * tests/unistdio/test-u32-printf1.h: Likewise.
66478         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66479         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66480         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66481         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66482         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66483         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66484         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66485         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66486         * tests/unistdio/test-u8-printf1.h: Likewise.
66487         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66488         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66489         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66490         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66491         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66492         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66493         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66494         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66495         * tests/unistdio/test-ulc-printf1.h: Likewise.
66496         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66497         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66498         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66499         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66500         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66501         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66502         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66503         * tests/uniwidth/test-u16-width.c: Likewise.
66504         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66505         * tests/uniwidth/test-u32-width.c: Likewise.
66506         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66507         * tests/uniwidth/test-u8-width.c: Likewise.
66508         * tests/uniwidth/test-uc_width.c: Likewise.
66509         * config/srclist-update: Likewise.
66510         (fixlicense): Update to GPLv3+.
66511
66512         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66513         * tests/test-tsearch.c: Change copyright notice.
66514
66515         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66516         * lib/c-strcaseeq.h: Change copyright notice.
66517         * lib/streq.h: Likewise.
66518         * lib/uniconv.h: Likewise.
66519         * lib/uniconv/u-conv-from-enc.h: Likewise.
66520         * lib/uniconv/u-conv-to-enc.h: Likewise.
66521         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66522         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66523         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66524         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66525         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66526         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66527         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66528         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66529         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66530         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66531         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66532         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66533         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66534         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66535         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66536         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66537         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66538         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66539         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66540         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66541         * lib/uniname.h: Likewise.
66542         * lib/uniname/uniname.c: Likewise.
66543         * lib/unistdio.h: Likewise.
66544         * lib/unistdio/u-asnprintf.h: Likewise.
66545         * lib/unistdio/u-asprintf.h: Likewise.
66546         * lib/unistdio/u-printf-args.c: Likewise.
66547         * lib/unistdio/u-printf-args.h: Likewise.
66548         * lib/unistdio/u-printf-parse.h: Likewise.
66549         * lib/unistdio/u-snprintf.h: Likewise.
66550         * lib/unistdio/u-sprintf.h: Likewise.
66551         * lib/unistdio/u-vasprintf.h: Likewise.
66552         * lib/unistdio/u-vsnprintf.h: Likewise.
66553         * lib/unistdio/u-vsprintf.h: Likewise.
66554         * lib/unistdio/u16-asnprintf.c: Likewise.
66555         * lib/unistdio/u16-asprintf.c: Likewise.
66556         * lib/unistdio/u16-printf-parse.c: Likewise.
66557         * lib/unistdio/u16-snprintf.c: Likewise.
66558         * lib/unistdio/u16-sprintf.c: Likewise.
66559         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66560         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66561         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66562         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66563         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66564         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66565         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66566         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66567         * lib/unistdio/u16-vasnprintf.c: Likewise.
66568         * lib/unistdio/u16-vasprintf.c: Likewise.
66569         * lib/unistdio/u16-vsnprintf.c: Likewise.
66570         * lib/unistdio/u16-vsprintf.c: Likewise.
66571         * lib/unistdio/u32-asnprintf.c: Likewise.
66572         * lib/unistdio/u32-asprintf.c: Likewise.
66573         * lib/unistdio/u32-printf-parse.c: Likewise.
66574         * lib/unistdio/u32-snprintf.c: Likewise.
66575         * lib/unistdio/u32-sprintf.c: Likewise.
66576         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66577         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66578         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66579         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66580         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66581         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66582         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66583         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66584         * lib/unistdio/u32-vasnprintf.c: Likewise.
66585         * lib/unistdio/u32-vasprintf.c: Likewise.
66586         * lib/unistdio/u32-vsnprintf.c: Likewise.
66587         * lib/unistdio/u32-vsprintf.c: Likewise.
66588         * lib/unistdio/u8-asnprintf.c: Likewise.
66589         * lib/unistdio/u8-asprintf.c: Likewise.
66590         * lib/unistdio/u8-printf-parse.c: Likewise.
66591         * lib/unistdio/u8-snprintf.c: Likewise.
66592         * lib/unistdio/u8-sprintf.c: Likewise.
66593         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66594         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66595         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66596         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66597         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66598         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66599         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66600         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66601         * lib/unistdio/u8-vasnprintf.c: Likewise.
66602         * lib/unistdio/u8-vasprintf.c: Likewise.
66603         * lib/unistdio/u8-vsnprintf.c: Likewise.
66604         * lib/unistdio/u8-vsprintf.c: Likewise.
66605         * lib/unistdio/ulc-asnprintf.c: Likewise.
66606         * lib/unistdio/ulc-asprintf.c: Likewise.
66607         * lib/unistdio/ulc-printf-parse.c: Likewise.
66608         * lib/unistdio/ulc-snprintf.c: Likewise.
66609         * lib/unistdio/ulc-sprintf.c: Likewise.
66610         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66611         * lib/unistdio/ulc-vasprintf.c: Likewise.
66612         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66613         * lib/unistdio/ulc-vsprintf.c: Likewise.
66614         * lib/unistr.h: Likewise.
66615         * lib/unistr/u-cpy-alloc.h: Likewise.
66616         * lib/unistr/u-cpy.h: Likewise.
66617         * lib/unistr/u-endswith.h: Likewise.
66618         * lib/unistr/u-move.h: Likewise.
66619         * lib/unistr/u-set.h: Likewise.
66620         * lib/unistr/u-startswith.h: Likewise.
66621         * lib/unistr/u-stpcpy.h: Likewise.
66622         * lib/unistr/u-stpncpy.h: Likewise.
66623         * lib/unistr/u-strcat.h: Likewise.
66624         * lib/unistr/u-strcpy.h: Likewise.
66625         * lib/unistr/u-strcspn.h: Likewise.
66626         * lib/unistr/u-strdup.h: Likewise.
66627         * lib/unistr/u-strlen.h: Likewise.
66628         * lib/unistr/u-strncat.h: Likewise.
66629         * lib/unistr/u-strncpy.h: Likewise.
66630         * lib/unistr/u-strnlen.h: Likewise.
66631         * lib/unistr/u-strpbrk.h: Likewise.
66632         * lib/unistr/u-strspn.h: Likewise.
66633         * lib/unistr/u-strstr.h: Likewise.
66634         * lib/unistr/u-strtok.h: Likewise.
66635         * lib/unistr/u16-check.c: Likewise.
66636         * lib/unistr/u16-chr.c: Likewise.
66637         * lib/unistr/u16-cmp.c: Likewise.
66638         * lib/unistr/u16-cpy-alloc.c: Likewise.
66639         * lib/unistr/u16-cpy.c: Likewise.
66640         * lib/unistr/u16-endswith.c: Likewise.
66641         * lib/unistr/u16-mblen.c: Likewise.
66642         * lib/unistr/u16-mbsnlen.c: Likewise.
66643         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66644         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66645         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66646         * lib/unistr/u16-mbtouc.c: Likewise.
66647         * lib/unistr/u16-mbtoucr.c: Likewise.
66648         * lib/unistr/u16-move.c: Likewise.
66649         * lib/unistr/u16-next.c: Likewise.
66650         * lib/unistr/u16-prev.c: Likewise.
66651         * lib/unistr/u16-set.c: Likewise.
66652         * lib/unistr/u16-startswith.c: Likewise.
66653         * lib/unistr/u16-stpcpy.c: Likewise.
66654         * lib/unistr/u16-stpncpy.c: Likewise.
66655         * lib/unistr/u16-strcat.c: Likewise.
66656         * lib/unistr/u16-strchr.c: Likewise.
66657         * lib/unistr/u16-strcmp.c: Likewise.
66658         * lib/unistr/u16-strcpy.c: Likewise.
66659         * lib/unistr/u16-strcspn.c: Likewise.
66660         * lib/unistr/u16-strdup.c: Likewise.
66661         * lib/unistr/u16-strlen.c: Likewise.
66662         * lib/unistr/u16-strmblen.c: Likewise.
66663         * lib/unistr/u16-strmbtouc.c: Likewise.
66664         * lib/unistr/u16-strncat.c: Likewise.
66665         * lib/unistr/u16-strncmp.c: Likewise.
66666         * lib/unistr/u16-strncpy.c: Likewise.
66667         * lib/unistr/u16-strnlen.c: Likewise.
66668         * lib/unistr/u16-strpbrk.c: Likewise.
66669         * lib/unistr/u16-strrchr.c: Likewise.
66670         * lib/unistr/u16-strspn.c: Likewise.
66671         * lib/unistr/u16-strstr.c: Likewise.
66672         * lib/unistr/u16-strtok.c: Likewise.
66673         * lib/unistr/u16-to-u32.c: Likewise.
66674         * lib/unistr/u16-to-u8.c: Likewise.
66675         * lib/unistr/u16-uctomb-aux.c: Likewise.
66676         * lib/unistr/u16-uctomb.c: Likewise.
66677         * lib/unistr/u32-check.c: Likewise.
66678         * lib/unistr/u32-chr.c: Likewise.
66679         * lib/unistr/u32-cmp.c: Likewise.
66680         * lib/unistr/u32-cpy-alloc.c: Likewise.
66681         * lib/unistr/u32-cpy.c: Likewise.
66682         * lib/unistr/u32-endswith.c: Likewise.
66683         * lib/unistr/u32-mblen.c: Likewise.
66684         * lib/unistr/u32-mbsnlen.c: Likewise.
66685         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66686         * lib/unistr/u32-mbtouc.c: Likewise.
66687         * lib/unistr/u32-mbtoucr.c: Likewise.
66688         * lib/unistr/u32-move.c: Likewise.
66689         * lib/unistr/u32-next.c: Likewise.
66690         * lib/unistr/u32-prev.c: Likewise.
66691         * lib/unistr/u32-set.c: Likewise.
66692         * lib/unistr/u32-startswith.c: Likewise.
66693         * lib/unistr/u32-stpcpy.c: Likewise.
66694         * lib/unistr/u32-stpncpy.c: Likewise.
66695         * lib/unistr/u32-strcat.c: Likewise.
66696         * lib/unistr/u32-strchr.c: Likewise.
66697         * lib/unistr/u32-strcmp.c: Likewise.
66698         * lib/unistr/u32-strcpy.c: Likewise.
66699         * lib/unistr/u32-strcspn.c: Likewise.
66700         * lib/unistr/u32-strdup.c: Likewise.
66701         * lib/unistr/u32-strlen.c: Likewise.
66702         * lib/unistr/u32-strmblen.c: Likewise.
66703         * lib/unistr/u32-strmbtouc.c: Likewise.
66704         * lib/unistr/u32-strncat.c: Likewise.
66705         * lib/unistr/u32-strncmp.c: Likewise.
66706         * lib/unistr/u32-strncpy.c: Likewise.
66707         * lib/unistr/u32-strnlen.c: Likewise.
66708         * lib/unistr/u32-strpbrk.c: Likewise.
66709         * lib/unistr/u32-strrchr.c: Likewise.
66710         * lib/unistr/u32-strspn.c: Likewise.
66711         * lib/unistr/u32-strstr.c: Likewise.
66712         * lib/unistr/u32-strtok.c: Likewise.
66713         * lib/unistr/u32-to-u16.c: Likewise.
66714         * lib/unistr/u32-to-u8.c: Likewise.
66715         * lib/unistr/u32-uctomb.c: Likewise.
66716         * lib/unistr/u8-check.c: Likewise.
66717         * lib/unistr/u8-chr.c: Likewise.
66718         * lib/unistr/u8-cmp.c: Likewise.
66719         * lib/unistr/u8-cpy-alloc.c: Likewise.
66720         * lib/unistr/u8-cpy.c: Likewise.
66721         * lib/unistr/u8-endswith.c: Likewise.
66722         * lib/unistr/u8-mblen.c: Likewise.
66723         * lib/unistr/u8-mbsnlen.c: Likewise.
66724         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66727         * lib/unistr/u8-mbtouc.c: Likewise.
66728         * lib/unistr/u8-mbtoucr.c: Likewise.
66729         * lib/unistr/u8-move.c: Likewise.
66730         * lib/unistr/u8-next.c: Likewise.
66731         * lib/unistr/u8-prev.c: Likewise.
66732         * lib/unistr/u8-set.c: Likewise.
66733         * lib/unistr/u8-startswith.c: Likewise.
66734         * lib/unistr/u8-stpcpy.c: Likewise.
66735         * lib/unistr/u8-stpncpy.c: Likewise.
66736         * lib/unistr/u8-strcat.c: Likewise.
66737         * lib/unistr/u8-strchr.c: Likewise.
66738         * lib/unistr/u8-strcmp.c: Likewise.
66739         * lib/unistr/u8-strcpy.c: Likewise.
66740         * lib/unistr/u8-strcspn.c: Likewise.
66741         * lib/unistr/u8-strdup.c: Likewise.
66742         * lib/unistr/u8-strlen.c: Likewise.
66743         * lib/unistr/u8-strmblen.c: Likewise.
66744         * lib/unistr/u8-strmbtouc.c: Likewise.
66745         * lib/unistr/u8-strncat.c: Likewise.
66746         * lib/unistr/u8-strncmp.c: Likewise.
66747         * lib/unistr/u8-strncpy.c: Likewise.
66748         * lib/unistr/u8-strnlen.c: Likewise.
66749         * lib/unistr/u8-strpbrk.c: Likewise.
66750         * lib/unistr/u8-strrchr.c: Likewise.
66751         * lib/unistr/u8-strspn.c: Likewise.
66752         * lib/unistr/u8-strstr.c: Likewise.
66753         * lib/unistr/u8-strtok.c: Likewise.
66754         * lib/unistr/u8-to-u16.c: Likewise.
66755         * lib/unistr/u8-to-u32.c: Likewise.
66756         * lib/unistr/u8-uctomb-aux.c: Likewise.
66757         * lib/unistr/u8-uctomb.c: Likewise.
66758         * lib/unitypes.h: Likewise.
66759         * lib/uniwidth.h: Likewise.
66760         * lib/uniwidth/cjk.h: Likewise.
66761         * lib/uniwidth/u16-strwidth.c: Likewise.
66762         * lib/uniwidth/u16-width.c: Likewise.
66763         * lib/uniwidth/u32-strwidth.c: Likewise.
66764         * lib/uniwidth/u32-width.c: Likewise.
66765         * lib/uniwidth/u8-strwidth.c: Likewise.
66766         * lib/uniwidth/u8-width.c: Likewise.
66767         * lib/uniwidth/width.c: Likewise.
66768
66769 2007-10-07  Bruno Haible  <bruno@clisp.org>
66770
66771         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66772         The file is still under LGPL (see modules/inttypes).
66773
66774 2007-10-06  Bruno Haible  <bruno@clisp.org>
66775
66776         * modules/trunc (Dependencies): Add 'extensions'.
66777         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66778         Reported by Ben Pfaff <blp@gnu.org>.
66779
66780 2007-10-06  Bruno Haible  <bruno@clisp.org>
66781
66782         * modules/freopen-tests: New file.
66783         * tests/test-freopen.c: New file.
66784
66785         * modules/fopen-tests: New file.
66786         * tests/test-fopen.c: New file.
66787
66788         * modules/fopen: New file.
66789         * lib/fopen.c: New file.
66790         * m4/fopen.m4: New file.
66791         * modules/freopen: New file.
66792         * lib/freopen.c: New file.
66793         * m4/freopen.m4: New file.
66794         * lib/stdio.in.h (fopen, freopen): New declarations.
66795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66796         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66797         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66798         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66799         * doc/functions/fopen.texi: Mention the 'fopen' module.
66800         * doc/functions/freopen.texi: Mention the 'freopen' module.
66801
66802 2007-10-06  Bruno Haible  <bruno@clisp.org>
66803
66804         * modules/open-tests: New file.
66805         * tests/test-open.c: New file.
66806
66807         * modules/open: New file.
66808         * lib/open.c: New file.
66809         * m4/open.m4: New file.
66810         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66811         lib/open.c does.
66812         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66814         macros.
66815         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66816         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66817         REPLACE_OPEN.
66818         * doc/functions/open.texi: Mention the 'open' module.
66819
66820 2007-10-04  Bruno Haible  <bruno@clisp.org>
66821
66822         * modules/ceill-tests: New file.
66823         * tests/test-ceill.c: New file.
66824
66825         * modules/ceill: New file.
66826         * lib/ceill.c: Replace entire file.
66827         * m4/ceill.m4: New file.
66828         * lib/math.in.h (ceill): Replace declaration.
66829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66830         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66831         * doc/functions/ceill.texi: Mention the 'ceill' module.
66832         * modules/mathl (Files): Remove lib/ceill.c.
66833         (Depends-on): Add ceill.
66834
66835 2007-10-04  Bruno Haible  <bruno@clisp.org>
66836
66837         * modules/ceilf-tests: New file.
66838         * tests/test-ceilf.c: New file.
66839
66840         * modules/ceilf: New file.
66841         * lib/ceil.c: New file.
66842         * lib/ceilf.c: New file.
66843         * m4/ceilf.m4: New file.
66844         * lib/math.in.h (ceilf): New declaration.
66845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66846         HAVE_DECL_CEILF.
66847         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66848         HAVE_DECL_CEILF.
66849         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66850
66851 2007-10-04  Bruno Haible  <bruno@clisp.org>
66852
66853         * modules/floorl-tests: New file.
66854         * tests/test-floorl.c: New file.
66855
66856         * modules/floorl: New file.
66857         * lib/floorl.c: Replace entire file.
66858         * m4/floorl.m4: New file.
66859         * lib/math.in.h (floorl): Replace declaration.
66860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66862         * doc/functions/floorl.texi: Mention the 'floorl' module.
66863         * modules/mathl (Files): Remove lib/floorl.c.
66864         (Depends-on): Add floorl.
66865
66866 2007-10-04  Bruno Haible  <bruno@clisp.org>
66867
66868         * modules/floorf-tests: New file.
66869         * tests/test-floorf.c: New file.
66870
66871         * modules/floorf: New file.
66872         * lib/floor.c: New file.
66873         * lib/floorf.c: New file.
66874         * m4/floorf.m4: New file.
66875         * lib/math.in.h (floorf): New declaration.
66876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66877         HAVE_DECL_FLOORF.
66878         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66879         HAVE_DECL_FLOORF.
66880         * doc/functions/floorf.texi: Mention the 'floorf' module.
66881
66882 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66883             Bruno Haible  <bruno@clisp.org>
66884
66885         Advertise for the Git server instead of the CVS server.
66886         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66887         repository instead of the CVS one.
66888         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66889         about all VCS systems generically.
66890         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66891
66892 2007-10-04  Bruno Haible  <bruno@clisp.org>
66893
66894         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66895         means.
66896         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66897
66898 2007-10-04  Bruno Haible  <bruno@clisp.org>
66899
66900         * modules/truncl-tests: New file.
66901         * tests/test-truncl.c: New file.
66902
66903         * modules/truncl: New file.
66904         * lib/truncl.c: New file.
66905         * m4/truncl.m4: New file.
66906         * lib/math.in.h (truncl): New declaration.
66907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66908         HAVE_DECL_TRUNCL.
66909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66910         HAVE_DECL_TRUNCL.
66911         * doc/functions/truncl.texi: Mention the 'truncl' module.
66912
66913 2007-10-04  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/truncf-tests: New file.
66916         * tests/test-truncf.c: New file.
66917
66918         * modules/truncf: New file.
66919         * lib/trunc.c: Make paramerizable through USE_* macros.
66920         * lib/truncf.c: New file.
66921         * m4/truncf.m4: New file.
66922         * lib/math.in.h (truncf): New declaration.
66923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66924         HAVE_DECL_TRUNCF.
66925         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66926         HAVE_DECL_TRUNCF.
66927         * doc/functions/truncf.texi: Mention the 'truncf' module.
66928
66929 2007-10-03  Bruno Haible  <bruno@clisp.org>
66930
66931         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66932         augmentation also for tests modules.
66933         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66934         * modules/atexit-tests (Makefile.am): Likewise.
66935         * modules/binary-io-tests (Makefile.am): Likewise.
66936         * modules/c-strcase-tests (Makefile.am): Likewise.
66937         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66938         * modules/canonicalize-tests (Makefile.am): Likewise.
66939         * modules/closein-tests (Makefile.am): Likewise.
66940         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66941         * modules/freadahead-tests (Makefile.am): Likewise.
66942         * modules/fseek-tests (Makefile.am): Likewise.
66943         * modules/fseeko-tests (Makefile.am): Likewise.
66944         * modules/ftell-tests (Makefile.am): Likewise.
66945         * modules/ftello-tests (Makefile.am): Likewise.
66946         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66947         * modules/isnanl-tests (Makefile.am): Likewise.
66948         * modules/lseek-tests (Makefile.am): Likewise.
66949         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66950         * modules/mbscasestr-tests (Makefile.am): Likewise.
66951         * modules/mbschr-tests (Makefile.am): Likewise.
66952         * modules/mbscspn-tests (Makefile.am): Likewise.
66953         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66954         * modules/mbspbrk-tests (Makefile.am): Likewise.
66955         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66956         * modules/mbsrchr-tests (Makefile.am): Likewise.
66957         * modules/mbsspn-tests (Makefile.am): Likewise.
66958         * modules/mbsstr-tests (Makefile.am): Likewise.
66959         * modules/printf-posix-tests (Makefile.am): Likewise.
66960         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66961         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66962         * modules/tsearch-tests (Makefile.am): Likewise.
66963         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66964         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66965         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66966         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66967         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66968         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66969         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66970         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66971         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66972         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66973         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66974         * modules/xstrtol-tests (Makefile.am): Likewise.
66975         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66976         * modules/yesno-tests (Makefile.am): Likewise.
66977
66978 2007-10-03  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/trunc-tests: New file.
66981         * tests/test-trunc.c: New file.
66982
66983         * modules/trunc: New file.
66984         * lib/trunc.c: New file.
66985         * m4/trunc.m4: New file.
66986         * lib/math.in.h (trunc): New declaration.
66987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66988         HAVE_DECL_TRUNC.
66989         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66990         HAVE_DECL_TRUNC.
66991         * doc/functions/trunc.texi: Mention the 'trunc' module.
66992
66993 2007-10-03  Bruno Haible  <bruno@clisp.org>
66994
66995         * tests/test-fpending.c: New file, mostly copied
66996         from coreutils/lib/t-fpending.c.
66997         * modules/fpending-tests: New file.
66998
66999 2007-10-03  Bruno Haible  <bruno@clisp.org>
67000
67001         Port the stdio extensions to QNX (untested).
67002         * lib/fseterr.c (fseterr): Add support for QNX.
67003         * lib/fbufmode.c (fbufmode): Likewise.
67004         * lib/freadable.c (freadable): Likewise.
67005         * lib/fwritable.c (fwritable): Likewise.
67006         * lib/freading.c (freading): Likewise.
67007         * lib/fwriting.c (fwriting): Likewise.
67008         * lib/freadahead.c (freadahed): Likewise.
67009         * lib/fpurge.c (fpurge): Likewise.
67010         * lib/fseeko.c (rpl_fseeko): Likewise.
67011
67012 2007-10-03  Bruno Haible  <bruno@clisp.org>
67013             Jim Meyering  <jim@meyering.net>
67014             Eric Blake  <ebb9@byu.net>
67015
67016         * doc/relocatable.texi: Use @command instead of @program.
67017
67018 2007-10-02  Jim Meyering  <jim@meyering.net>
67019
67020         Perform one more "_.h" -> ".in.h" substitution.
67021         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67022         instead of unistd_.h here, too.
67023
67024 2007-10-01  Bruno Haible  <bruno@clisp.org>
67025
67026         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67027         Needed for the alloca-opt module.
67028
67029 2007-09-30  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67032         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67033         alloca_.h.
67034         * lib/argz.in.h: Renamed from lib/argz_.h.
67035         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67036         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67037         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67038         byteswap_.h.
67039         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67040         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67041         dirent_.h.
67042         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67043         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67044         fcntl_.h.
67045         * lib/float.in.h: Renamed from lib/float_.h.
67046         * modules/float (Files, Makefile.am): Use float.in.h instead of
67047         float_.h.
67048         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67049         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67050         fnmatch_.h.
67051         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67052         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67053         getopt_.h.
67054         * lib/glob.in.h: Renamed from lib/glob_.h.
67055         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67056         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67057         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67058         iconv_.h.
67059         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67060         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67061         inttypes_.h.
67062         * lib/locale.in.h: Renamed from lib/locale_.h.
67063         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67064         locale_.h.
67065         * lib/math.in.h: Renamed from lib/math_.h.
67066         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67067         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67068         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67069         of netinet_in_.h. Add dependency.
67070         * lib/poll.in.h: Renamed from lib/poll_.h.
67071         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67072         * lib/search.in.h: Renamed from lib/search_.h.
67073         * modules/search (Files, Makefile.am): Use search.in.h instead of
67074         search_.h.
67075         * lib/signal.in.h: Renamed from lib/signal_.h.
67076         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67077         _signal.h.
67078         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67079         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67080         stdbool_.h.
67081         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67082         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67083         stdint_.h.
67084         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67085         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67086         stdio_.h.
67087         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67088         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67089         stdlib_.h.
67090         * lib/string.in.h: Renamed from lib/string_.h.
67091         * modules/string (Files, Makefile.am): Use string.in.h instead of
67092         string_.h.
67093         * doc/gnulib-tool.texi (Initial import): Update.
67094         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67095         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67096         of sys_select_.h. Add dependency.
67097         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67098         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67099         of sys_socket_.h.
67100         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67101         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67102         sys_stat_.h.
67103         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67104         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67105         sys_time_.h.
67106         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67107         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67108         sysexits_.h.
67109         * lib/time.in.h: Renamed from lib/time_.h.
67110         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67111         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67112         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67113         unistd_.h.
67114         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67115         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67116         wchar_.h.
67117         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67118         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67119         wctype_.h.
67120         * build-aux/bootstrap (slurp): Update.
67121         * lib/.cppi-disable: Update.
67122
67123 2007-09-30  Bruno Haible  <bruno@clisp.org>
67124
67125         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67126         Needed on BeOS.
67127
67128 2007-09-30  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67131
67132 2007-09-29  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67135
67136 2007-09-29  Bruno Haible  <bruno@clisp.org>
67137
67138         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67139         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67140         * build-aux/install-reloc: Compile also areadlink.c.
67141         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67142
67143 2007-09-29  Bruno Haible  <bruno@clisp.org>
67144
67145         * gnulib-tool (func_emit_initmacro_done): Indentation.
67146
67147 2007-09-29  Bruno Haible  <bruno@clisp.org>
67148
67149         * README: Add CVS checkout update instructions.
67150         Info from Bob Proulx <bob@proulx.com>.
67151
67152 2007-09-28  Eric Blake  <ebb9@byu.net>
67153
67154         Provide move-if-change.
67155         * build-aux/move-if-change: New file, based on best practice
67156         rather than any canonical upstream location.
67157
67158 2007-09-28  Jim Meyering  <jim@meyering.net>
67159
67160         Fix canonicalize loop-detection corner case.
67161         Do not attempt to stat the symlink values stored via seen_triple.
67162         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67163         on linux-2.6.18, (but not 2.6.22).
67164         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67165         triple_compare.  The former compares dev,ino,filename, while the latter
67166         would actually stat dirname(filename) when dev and ino were equal.
67167         * lib/hash-triple.c: Install <string.h>.
67168         (STREQ): Define.
67169         (triple_compare_ino_str): New function.
67170         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67171
67172 2007-09-28  Eric Blake  <ebb9@byu.net>
67173
67174         Enforce that AC_REPLACE_FUNCS files exist.
67175         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67176         override check for typos.
67177
67178         Fix test-closein on Solaris 10.
67179         * tests/test-closein.c (main): Don't assume stdin can be inherited
67180         closed on all systems.
67181         * tests/test-closein.sh: Likewise.
67182         Reported by Piotr Tarnowski.
67183
67184 2007-09-28  Jim Meyering  <jim@meyering.net>
67185
67186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67187
67188 2007-09-27  Jim Meyering  <jim@meyering.net>
67189
67190         canonicalize: Avoid a false-positive cycle failure.
67191         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67192         Sort.  Remove cycle-check.
67193         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67194         not cycle-check.h.
67195         (seen_triple): New function.
67196         (canonicalize_filename_mode): Use it instead of cycle-check.
67197         * tests/test-canonicalize.c: Add a test for this bug.
67198         * tests/test-canonicalize.sh: Set up and run the test.
67199
67200         New module, file-set, from coreutils.
67201         * modules/file-set: Define it.
67202         * lib/file-set.c, lib/file-set.h: Implement.
67203
67204         New module, hash-triple, from coreutils.
67205         * modules/hash-triple: Define it.
67206         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67207
67208 2007-09-25  Eric Blake  <ebb9@byu.net>
67209
67210         Fix strerror on Interix.
67211         * lib/string_.h (strerror): Declare replacement.
67212         * doc/functions/strerror.texi (strerror): Document the Interix
67213         shortcoming.
67214         * modules/string (Makefile.am): Support new hooks.
67215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67216         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67217         gl_FUNC_STRERROR_SEPARATE.
67218         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67219         * lib/strerror.c (rpl_strerror): Provide replacement.
67220         * modules/strerror (Depends-on): Add string.
67221         (configure.ac): Detect use of module.
67222         * tests/test-strerror.c: New file.
67223         * modules/strerror-tests: New test module.
67224         * modules/argp (Depends-on): Add strerror.
67225         * modules/error (Depends-on): Likewise.
67226         Reported by Martin Koeppe.
67227
67228 2007-09-24  Bruno Haible  <bruno@clisp.org>
67229
67230         * README: Update git instructions.
67231
67232 2007-09-24  Eric Blake  <ebb9@byu.net>
67233
67234         Revert fpending breakage from 2007-09-08.
67235         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67236         __fpending.c.
67237
67238 2007-09-24  Jim Meyering  <jim@meyering.net>
67239
67240         filenamecat.c: Add a test.
67241         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67242         showing how the function works when DIR is the empty string.
67243
67244 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67245
67246         * tests/test-canonicalize.sh: Turn on executable bit.
67247
67248 2007-09-19  Eric Blake  <ebb9@byu.net>
67249
67250         * README: Update CVS instructions.
67251
67252 2007-09-18  Bruno Haible  <bruno@clisp.org>
67253
67254         * modules/areadlink: New file.
67255         * lib/areadlink.h (areadlink): New declaration.
67256         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67257
67258 2007-09-17  Jim Meyering  <jim@meyering.net>
67259
67260         * lib/savewd.c (ESTALE) [!defined]: Define.
67261         Reported to be required on Interix by Martin Koeppe.
67262
67263 2007-09-17  Bruno Haible  <bruno@clisp.org>
67264
67265         * gnulib-tool (func_version): Use $version.
67266
67267 2007-09-16  Bruno Haible  <bruno@clisp.org>
67268
67269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67270         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67271         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67272         Reported by Greg Schafer <gschafer@zip.com.au>.
67273
67274 2007-09-15  Bruno Haible  <bruno@clisp.org>
67275
67276         * gnulib-tool (sed): Try a little harder to make bash understand the
67277         alias.
67278         Reported by Bruce Korb <bruce.korb@gmail.com>.
67279
67280 2007-09-13  Eric Blake  <ebb9@byu.net>
67281
67282         * ChangeLog: Remove conflict markers.
67283
67284 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67285
67286         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67287         Reported by Bruno Haible <bruno@clisp.org>.
67288
67289 2007-09-12  Bruno Haible  <bruno@clisp.org>
67290
67291         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67292         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67293         is not defined.
67294
67295 2007-09-12  Eric Blake  <ebb9@byu.net>
67296
67297         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67299         Autoconf definition.
67300         * modules/euidaccess (Depends-on): Add extensions, for
67301         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67302         * modules/fnmatch (Depends-on): Likewise.
67303         * modules/getaddrinfo (Depends-on): Likewise.
67304         * modules/getdelim (Depends-on): Likewise.
67305         * modules/getline (Depends-on): Likewise.
67306         * modules/getsubopt (Depends-on): Likewise.
67307         * modules/gettext (Depends-on): Likewise.
67308         * modules/group-member (Depends-on): Likewise.
67309         * modules/mbchar (Depends-on): Likewise.
67310         * modules/memmem (Depends-on): Likewise.
67311         * modules/mempcpy (Depends-on): Likewise.
67312         * modules/memrchr (Depends-on): Likewise.
67313         * modules/pagealign_alloc (Depends-on): Likewise.
67314         * modules/readutmp (Depends-on): Likewise.
67315         * modules/stpcpy (Depends-on): Likewise.
67316         * modules/stpncpy (Depends-on): Likewise.
67317         * modules/strchrnul (Depends-on): Likewise.
67318         * modules/strndup (Depends-on): Likewise.
67319         * modules/strsep (Depends-on): Likewise.
67320         * modules/strverscmp (Depends-on): Likewise.
67321         * modules/vasprintf (Depends-on): Likewise.
67322         * modules/wcwidth (Depends-on): Likewise.
67323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67324         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67325         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67328         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67329         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67330         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67331         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67332         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67337         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67338         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67340         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67342         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67345         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67346         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67347         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67350         so that lock.m4 can be used in gettext without extensions module.
67351
67352 2007-09-11  Bruno Haible  <bruno@clisp.org>
67353
67354         * m4/isc-posix.m4: Remove file.
67355         Suggested by Eric Blake.
67356
67357 2007-09-11  Eric Blake  <ebb9@byu.net>
67358
67359         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67360
67361 2007-09-10  Bruno Haible  <bruno@clisp.org>
67362
67363         * posix-modules: Fix typo in error message.
67364         Reported by Matt <mkraai@beckman.com>.
67365
67366 2007-09-09  Bruno Haible  <bruno@clisp.org>
67367
67368         * doc/functions/getdelim.texi: Update list of platforms lacking the
67369         function.
67370         * doc/functions/getline.texi: Likewise.
67371
67372 2007-09-09  Jim Meyering  <jim@meyering.net>
67373
67374         * lib/hash.c (hash_initialize): Detect calloc failure.
67375         Reported by Bruno Haible.
67376
67377 2007-09-09  Bruno Haible  <bruno@clisp.org>
67378
67379         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67380         malloc or realloc fails.
67381
67382 2007-09-09  Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/getcwd (Depends-on): Add malloc-posix.
67385         * modules/glob (Depends-on): Likewise.
67386         * modules/putenv (Depends-on): Likewise.
67387         * modules/strdup (Depends-on): Likewise.
67388         * modules/getdelim (Depends-on): Add realloc-posix.
67389         * modules/read-file (Depends-on): Likewise.
67390
67391 2007-09-09  Bruno Haible  <bruno@clisp.org>
67392
67393         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67394         (gl_FUNC_MALLOC_POSIX): Require it.
67395         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67396         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67397         * modules/realloc (Files): Add m4/malloc.m4.
67398         * modules/calloc (Files): Likewise.
67399
67400 2007-09-09  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/malloc-posix: New file.
67403         * modules/malloc (Depends-on): Add malloc-posix.
67404         * lib/malloc.c: Include errno.h.
67405         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67406         and a POSIX-compatible malloc into a single function. Set ENOMEM
67407         when returning NULL.
67408         * m4/malloc.m4: New file.
67409         * doc/functions/malloc.texi: Mention the malloc-posix module.
67410         * lib/stdlib_.h (malloc): New declaration.
67411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67412         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67413         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67414         and HAVE_MALLOC_POSIX.
67415
67416 2007-09-09  Bruno Haible  <bruno@clisp.org>
67417
67418         * modules/realloc-posix: New file.
67419         * modules/realloc (Depends-on): Add realloc-posix.
67420         * lib/realloc.c: Include errno.h.
67421         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67422         and a POSIX-compatible realloc into a single function. Set ENOMEM
67423         when returning NULL.
67424         * m4/realloc.m4: New file.
67425         * doc/functions/realloc.texi: Mention the realloc-posix module.
67426         * lib/stdlib_.h (realloc): New declaration.
67427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67428         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67429         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67430         and HAVE_REALLOC_POSIX.
67431
67432 2007-09-09  Bruno Haible  <bruno@clisp.org>
67433
67434         * modules/calloc-posix: New file.
67435         * modules/calloc (Depends-on): Add calloc-posix.
67436         * lib/calloc.c: Include errno.h.
67437         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67438         and a POSIX-compatible calloc into a single function. Set ENOMEM
67439         when returning NULL.
67440         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67441         * doc/functions/calloc.texi: Mention the calloc-posix module.
67442         * lib/stdlib_.h (calloc): New declaration.
67443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67444         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67445         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67446         and HAVE_CALLOC_POSIX.
67447
67448 2007-09-09  Bruno Haible  <bruno@clisp.org>
67449
67450         Allow for modules to show an arbitrary notice.
67451         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67452         * gnulib-tool: New option --extract-notice.
67453         (func_usage): Document it.
67454         (sed_extract_prog): Update.
67455         (func_get_notice): New function.
67456         (func_modules_notice): New function.
67457         (func_import, func_create_testdir): Invoke it.
67458         Suggested by Jim Meyering.
67459
67460 2007-09-09  Bruno Haible  <bruno@clisp.org>
67461
67462         * gnulib-tool: New options --verbose, --quiet.
67463         (func_usage): Document them.
67464         (verbose): New variable.
67465         (func_execute_command): New function.
67466         (func_import): Don't show the module list and the file list if
67467         $verbose < 0.
67468         (func_create_testdir): Likewise. Use func_execute_command.
67469         (func_create_megatestdir): Use func_execute_command.
67470
67471 2007-09-08  Bruno Haible  <bruno@clisp.org>
67472
67473         * gnulib-tool (func_import): Prefer rsync over wget when available,
67474         for fetching the PO files.
67475
67476 2007-09-08  Bruno Haible  <bruno@clisp.org>
67477
67478         * posix-modules: New file. Portions copied from gnulib-tool.
67479         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67480
67481 2007-09-08  Jim Meyering  <jim@meyering.net>
67482
67483         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67484         * lib/fpending.h: Rename from __fpending.h.
67485         * lib/fpending.c: Rename from __fpending.c.
67486         Include "fpending.h", not "__fpending.h".
67487         * lib/__fpending.h, lib/__fpending.c: Remove files.
67488         * modules/fpending (Files): Reflect new file names.
67489         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67490
67491 2007-09-08  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/inttypes-h.m4: Remove stub file.
67494
67495 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67496
67497         * doc/headers/stdint.texi: Discuss #include_next issue.
67498
67499 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67502
67503 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67504
67505         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67506         in variable name.
67507
67508 2007-09-03  Jim Meyering  <jim@meyering.net>
67509
67510         New module: git-version-gen.
67511         * modules/git-version-gen: New file.
67512
67513         Import changes from coreutils for bootstrap script.
67514
67515         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67516
67517         bootstrap: uses rsync to download the .po files
67518         * build-aux/bootstrap (po_download_command_format): New global.
67519         (download_po_files): Use rsync.
67520         (update_po_files): Don't remove .po files after download,
67521         so future rsync runs can take advantage of the copies.
67522
67523         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67524
67525         Solve the unnecessary-.po-file-regeneration problem once and for all.
67526         * build-aux/bootstrap (download_po_files): New function, renamed from
67527         get_translations.  Now, downloads, but doesn't update LINGUAS.
67528         (update_po_files): New function.
67529
67530         bootstrap: Ignore more.
67531         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67532         uniwidth to e.g., lib/.gitignore.
67533         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67534
67535         * build-aux/bootstrap: New setting: vc_ignore.
67536         (insert_sorted_if_absent): Create $file if absent.
67537         Adapt to new, possibly empty, list: $vc_ignore.
67538
67539         bootstrap: generate more ignorable names
67540         * build-aux/bootstrap (slurp): When generating ignorable names,
67541         also map .sin to .sed, .gperf to .c, and .y to .c.
67542
67543 2007-09-03  Jim Meyering  <jim@meyering.net>
67544
67545         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67546         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67547
67548 2007-09-02  Bruno Haible  <bruno@clisp.org>
67549
67550         Fix mis-recognition of 'mcs' on QNX 6.
67551         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67552         output contains the string "Mono".
67553         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67554         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67555
67556 2007-09-01  Bruno Haible  <bruno@clisp.org>
67557
67558         Fix collision between uniwidth/* and linebreak modules.
67559         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67560         u32_width): Remove declarations.
67561         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67562         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67563         streq3, streq2, streq1, streq0): Remove functions.
67564         (STREQ): Remove macro.
67565         (is_cjk_encoding): Remove function.
67566         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67567         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67568         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67569         * NEWS: Document the change.
67570
67571 2007-09-01  Bruno Haible  <bruno@clisp.org>
67572
67573         * lib/streq.h: Add double-inclusion guard.
67574
67575 2007-09-01  Karl Berry  <karl@gnu.org>
67576
67577         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67578
67579 2007-08-28  Jim Meyering  <jim@meyering.net>
67580
67581         Rename mreadlink_with_size to areadlink_with_size.
67582         * NEWS: Document the change.
67583         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67584         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67585         * lib/mreadlink.h: Rename this to...
67586         * lib/areadlink.h: ...this.
67587         * modules/mreadlink-with-size: Rename this to...
67588         * modules/areadlink-with-size: ...this.
67589         * lib/canonicalize.c: Reflect the renaming.
67590         * modules/canonicalize: Likewise.
67591
67592 2007-08-26  Bruno Haible  <bruno@clisp.org>
67593
67594         * gnulib-tool (func_import): When deciding which files to remove,
67595         consider also dangling symbolic links.
67596         Reported by Eric Blake.
67597
67598 2007-08-26  Bruno Haible  <bruno@clisp.org>
67599
67600         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67601
67602 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67603
67604         * lib/readline.c: Don't include getline.h, the prototype is now
67605         found in stdio.h.
67606
67607 2007-08-23  Jim Meyering  <jim@meyering.net>
67608
67609         Getdelim touchup.
67610         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67611         around the funlockfile call, since funlockfile never sets errno.
67612         Don't set errno upon failed realloc.
67613
67614 2007-08-22  Eric Blake  <ebb9@byu.net>
67615
67616         Getline touchups.
67617         * lib/getdelim.c (getdelim): Revert regression that required *n to
67618         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67619         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67620         getdelim, rather than whether implementation is missing.
67621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67622         * lib/stdio_.h (getline): Also declare if replacement is
67623         required.
67624         * doc/functions/getdelim.texi: New file.
67625         * doc/functions/getline.texi: Likewise.
67626         * doc/gnulib.texi (Function Substitutes): Add new files.
67627         Reported by Bruno Haible.
67628
67629 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67630
67631         * users.txt: Add Guile.
67632
67633 2007-08-22  Eric Blake  <ebb9@byu.net>
67634
67635         * tests/test-getdelim.c (main): Use remove, not unlink.
67636         * tests/test-getline.c (main): Likewise.
67637
67638         Move getline and getdelim into stdio.h, per POSIX 200x.
67639         * modules/getline (Files): Remove getline.h.
67640         (Depends-on): Add stdio.
67641         (configure.ac): Add module indicator.
67642         * modules/getdelim (Files): Remove getdelim.h.
67643         (Depends-on): Add stdio.
67644         (configure.ac): Add module indicator.
67645         * modules/stdio (Makefile.am): Work with new indicators.
67646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67649         * lib/getdelim.h: Delete.
67650         * lib/getline.h: Delete.
67651         * lib/stdio_.h (getdelim, getline): Declare.
67652         * modules/getdelim-tests: New module.
67653         * modules/getline-tests: Likewise.
67654         * tests/test-getdelim.c: New file.
67655         * tests/test-getline.c: Likewise.
67656         * NEWS: Document the change.
67657         * lib/getline.c: Update choice of header.
67658         * lib/csharpcomp.c: Likewise.
67659         * lib/getpass.c: Likewise.
67660         * lib/javacomp.c: Likewise.
67661         * lib/javaversion.c: Likewise.
67662         * lib/yesno.c: Likewise.
67663         * lib/getdelim.c: Likewise.
67664         (getdelim): Set errno on failure, and avoid memory leak.
67665
67666 2007-08-19  Bruno Haible  <bruno@clisp.org>
67667
67668         * modules/closein (Depends-on): Add freadahead.
67669         * lib/closein.c: Include freadahead.h.
67670         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67671         is zero.
67672
67673 2007-08-19  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/freadahead-tests: New file.
67676         * tests/test-freadahead.sh: New file.
67677         * tests/test-freadahead.c: New file.
67678
67679         * modules/freadahead: New file.
67680         * lib/freadahead.h: New file.
67681         * lib/freadahead.c: New file.
67682         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67683         fbufmode, fpurge, freadable, fwritable.
67684
67685 2007-08-19  Eric Blake  <ebb9@byu.net>
67686
67687         Test yesno in combination with closein.
67688         * lib/yesno.c (yesno): Document use of stdin.
67689         * modules/yesno-tests (Files): New module.
67690         * tests/test-yesno.c (main): New file.
67691         * tests/test-yesno.sh: Likewise.
67692
67693 2007-08-19  Bruno Haible  <bruno@clisp.org>
67694
67695         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67696         * lib/fseeko.c (rpl_fseeko): Likewise.
67697         * lib/fseterr.c (fseterr): Likewise.
67698
67699 2007-08-19  Bruno Haible  <bruno@clisp.org>
67700
67701         * tests/test-lseek.c (main): Disable a test for BeOS.
67702         * doc/functions/lseek.texi: Document the BeOS bug.
67703
67704 2007-08-19  Bruno Haible  <bruno@clisp.org>
67705             Eric Blake  <ebb9@byu.net>
67706
67707         * lib/lseek.c: Include <sys/stat.h>.
67708         (rpl_lseek): Add workaround code also for Unix platforms.
67709         Needed for BeOS.
67710         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67711         * doc/functions/lseek.texi: Document BeOS definiency.
67712
67713 2007-08-18  Bruno Haible  <bruno@clisp.org>
67714
67715         * modules/fstrcmp-tests: New file.
67716         * tests/test-fstrcmp.c: New file.
67717
67718 2007-08-18  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/fstrcmp: New file, from GNU gettext with modifications.
67721         * lib/fstrcmp.h: New file, from GNU gettext.
67722         * lib/fstrcmp.c: New file, from GNU gettext.
67723         * MODULES.html.sh (String handling): Add fstrcmp.
67724
67725 2007-08-18  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67728         'bool'.
67729         (diag, compareseq): Remove const from the ctxt argument.
67730         (USE_HEURISTIC): Undefine at the end.
67731
67732 2007-08-18  Jim Meyering  <jim@meyering.net>
67733
67734         New file: lib/idcache.h
67735         * NEWS: Mention the addition.
67736         * modules/idcache (Files): Add lib/idcache.h
67737         * lib/idcache.c: Include "idcache.h".
67738         Don't include <sys/types.h>.
67739         Add a FIXME comment.
67740         Move file-scoped "static" declarations to the top.
67741         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67742
67743 2007-08-17  Bruno Haible  <bruno@clisp.org>
67744         and Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * MODULES.html.sh: Add diffseq.
67747         * modules/diffseq: New file.
67748         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67749         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67750
67751 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         Import changes from coreutils for bootstrap script.
67754
67755         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * build-aux/bootstrap (slurp): Work even in environments where
67758         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67759         current code does not slurp files whose names start with ".", and
67760         this looks like it might be a troublesome area.
67761
67762         2007-07-11  Jim Meyering  <jim@meyering.net>
67763
67764         If there's a GPL vN copyright comment, require that N == 3.
67765
67766         2007-07-08  Jim Meyering  <jim@meyering.net>
67767
67768         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67769         * build-aux/bootstrap (mam_template): Move definition out of loop.
67770
67771         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67772
67773         * build-aux/bootstrap (symlink_to_dir): Rename function from
67774         symlink_to_gnulib.  Add a directory parameter.  Update all
67775         callers.
67776         (cp_mark_as_generated): Also check for -- and link to -- files in
67777         gl/.
67778
67779         2007-07-08  Jim Meyering  <jim@meyering.net>
67780
67781         Adapt to deeper hierarchy in gnulib.
67782         * build-aux/bootstrap (symlink_to_dir): If the destination
67783         directory doesn't exist, create it. This is required at least for
67784         "lib/uniwidth/cjk.h".
67785
67786         2007-05-15  Jim Meyering  <jim@meyering.net>
67787
67788         * build-aux/bootstrap: Now that generated Makefile.am files
67789         are no longer under version control, they must be created at
67790         bootstrap time.
67791
67792 2007-08-14  Ben Pfaff  <blp@gnu.org>
67793
67794         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67795
67796 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67799         given the changes below.
67800         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67801         even on hosts that have padding bits beyond the supported 64.
67802
67803 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67806         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67807         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67808         depends on it.
67809         (xstrtol_error): Remove.
67810         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67811         but with a different signature.
67812         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67813         * lib/xstrtol-error.c: Include exitfail.h.
67814         (xstrtol_fatal): New function, with a different signature from the
67815         old xstrtol_error, so that the caller need not worry about passing
67816         in an exit status, or about storage management of the option argument.
67817         (xstrtol_error): Now a static function.  Redo signature to
67818         implement xstrtol_fatal.  Output the correct number of hyphens in
67819         front of the option so that the caller need not worry about
67820         storage management.
67821         (N_): New macro.
67822         (_): Remove; not used now.
67823         * modules/xstrtol: Depend on getopt.
67824         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67825         of old STRTOL_FATAL_ERROR macro.
67826         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67827         of test program.
67828         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67829         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67830
67831 2007-08-08  Eric Blake  <ebb9@byu.net>
67832
67833         * lib/xstrtol-error.c: Add missing include.
67834
67835         Move xstrtol messages into gnulib domain, when --pobase is used.
67836         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67837         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67838         * modules/xstrtol (Files): Distribute new file.
67839         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67840         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67841         * tests/test-xstrtol.c: ...into new file.
67842         * tests/test-xstrtoul.c: Also test xstrtoul.
67843         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67844         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67845         * tests/test-xstrtol.sh: Drive the tests.
67846         * tests/test-xstrtoimax.sh: Likewise.
67847         * tests/test-xstrtoumax.sh: Likewise.
67848         * modules/xstrtol-tests: New module.
67849         * modules/xstrtoimax-tests: Likewise.
67850         * modules/xstrtoumax-tests: Likewise.
67851
67852 2007-08-08  Jim Meyering  <jim@meyering.net>
67853
67854         New function: mfile_name_concat.
67855         * lib/filenamecat.c (mfile_name_concat): New function, just like
67856         file_name_concat, but return NULL upon failure rather than exiting
67857         with a diagnostic.
67858         * lib/filenamecat.h: Declare it.
67859
67860 2007-08-07  Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67863         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67864         warning from gcc.
67865         Reported by Eric Blake.
67866
67867 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67868
67869         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67870         * modules/crypto/arcfour (License): Likewise.
67871         * modules/crypto/des-tests (License): Likewise.
67872         * modules/crypto/gc-arctwo-tests (License): Likewise.
67873         * modules/crypto/gc-des-tests (License): Likewise.
67874         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67875         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67876         * modules/crypto/gc-md2-tests (License): Likewise.
67877         * modules/crypto/gc-md4-tests (License): Likewise.
67878         * modules/crypto/gc-md5-tests (License): Likewise.
67879         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67880         * modules/crypto/gc-rijndael-tests (License): Likewise.
67881         * modules/crypto/gc-sha1-tests (License): Likewise.
67882         * modules/crypto/gc-tests (License): Likewise.
67883         * modules/crypto/hmac-md5 (License): Likewise.
67884         * modules/crypto/hmac-sha1 (License): Likewise.
67885         * modules/crypto/md2-tests (License): Likewise.
67886         * modules/crypto/md4-tests (License): Likewise.
67887         * modules/crypto/md5 (License): Likewise.
67888         * modules/crypto/rijndael (License): Likewise.
67889         * modules/crypto/sha1 (License): Likewise.
67890         * modules/memxor (License): Likewise.
67891
67892 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67893         and Bruno Haible  <bruno@clisp.org>
67894
67895         * NEWS: Describe interface changes to human, xstrtol.
67896         * lib/human.h: Include <xstrtol.h>.
67897         (human_options): Return enum strtol_error, not int.  Remove
67898         bool arg; take int * instead.
67899         * lib/human.c: Don't include "gettext.h".
67900         (_): Remove; no longer used.
67901         Don't include <xstrtol.h>, since human.h does it.
67902         (human_options): Adjust to abovementioned interface changes.
67903         Do not report error to stderr; that's now the caller's
67904         responsibility.
67905         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67906         interface change.
67907         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67908         Str, Argument_type_string.  All uses changed.  Put " argument"
67909         in diagnostics to make them clearer.  Change wording of suffix
67910         message for clarity.
67911         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67912         Argument_type_string.
67913         (STRTOL_FATAL_WARN): Remove; no longer used.
67914         * modules/human (Depends-on): Remove gettext-h.
67915
67916 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67917
67918         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67919
67920 2007-07-31  Bruno Haible  <bruno@clisp.org>
67921
67922         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67923         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67924         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67925
67926 2007-07-31  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67929         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67930
67931 2007-07-30  Bruno Haible  <bruno@clisp.org>
67932
67933         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67934         * modules/c-ctype (License): Likewise.
67935         * modules/c-strcase (License): Likewise.
67936         * modules/check-version (License): Likewise.
67937         * modules/iconv (License): Likewise.
67938         * modules/iconv_open (License): Likewise.
67939         * modules/read-file (License): Likewise.
67940         * modules/striconv (License): Likewise.
67941         * modules/strverscmp (License): Likewise.
67942         * modules/vasprintf (License): Likewise.
67943         * modules/crypto/des (License): Likewise.
67944         * modules/crypto/gc (License): Likewise.
67945         * modules/crypto/gc-arcfour (License): Likewise.
67946         * modules/crypto/gc-arctwo (License): Likewise.
67947         * modules/crypto/gc-des (License): Likewise.
67948         * modules/crypto/gc-hmac-md5 (License): Likewise.
67949         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67950         * modules/crypto/gc-md2 (License): Likewise.
67951         * modules/crypto/gc-md4 (License): Likewise.
67952         * modules/crypto/gc-md5 (License): Likewise.
67953         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67954         * modules/crypto/gc-random (License): Likewise.
67955         * modules/crypto/gc-rijndael (License): Likewise.
67956         * modules/crypto/gc-sha1 (License): Likewise.
67957         * modules/crypto/md2 (License): Likewise.
67958         * modules/crypto/md4 (License): Likewise.
67959
67960 2007-07-30  Jim Meyering  <jim@meyering.net>
67961
67962         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67963         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67964         it has valid stat data.  This bug would cause du not to count the
67965         sizes of inaccessible directories.
67966         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67967         in <http://bugzilla.redhat.com/250077>.
67968
67969 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67970             Bruno Haible  <bruno@clisp.org>
67971
67972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67973         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67974         #include_next, gives a diagnostic about it, but reports no error in
67975         the exit code.
67976         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67977
67978 2007-07-24  Ben Pfaff  <blp@gnu.org>
67979
67980         Improve name: "count-one-bits" is better than "popcount".
67981         * MODULES.html.sh: Update name.
67982         * lib/popcount.h: Renamed lib/count-one-bits.h.
67983         (popcount): Renamed count_one_bits.
67984         (popcountl): Renamed count_one_bits_l.
67985         (popcountll): Renamed count_one_bits_ll.
67986         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67987         * modules/popcount: Renamed module/count-one-bits.
67988         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67989         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67990
67991 2007-07-23  Ben Pfaff  <blp@gnu.org>
67992
67993         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67994         better code generation, and add U to large constants to avoid
67995         warnings, in non-GCC case.
67996         Suggested by Bruno Haible.
67997
67998 2007-07-23  Ben Pfaff  <blp@gnu.org>
67999
68000         * lib/popcount.h: Use verify_true instead of if...abort.
68001         * modules/popcount: Depend on verify module.
68002         Suggested by Jim Meyering.
68003
68004 2007-07-23  Bruno Haible  <bruno@clisp.org>
68005
68006         * gnulib-tool (func_import): Create a .cvsignore file also when the
68007         directory is not yet in CVS but the toplevel directory is. When
68008         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68009         Reported by Karl Berry.
68010
68011 2007-07-22  Ben Pfaff  <blp@gnu.org>
68012
68013         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68014         case.
68015         Suggested by Eric Blake.
68016
68017 2007-07-22  Ben Pfaff  <blp@gnu.org>
68018
68019         New module: popcount.
68020         * MODULES.html.sh: Add popcount.
68021         * modules/popcount: New file.
68022         * modules/popcount-tests: New file.
68023         * tests/test-popcount.c: New file.
68024         * lib/popcount.h: New file.
68025         * m4/popcount.m4: New file.
68026
68027 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         * build-aux/announce-gen: Update to GPLv3.
68030
68031         * build-aux/config.guess: Update from config.
68032
68033 2007-07-21  Bruno Haible  <bruno@clisp.org>
68034
68035         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68036         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68037
68038 2007-07-20  Jim Meyering  <jim@meyering.net>
68039
68040         * check-module: Diagnose a self-dependency.
68041
68042 2007-07-19  Bruno Haible  <bruno@clisp.org>
68043
68044         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68045         empty.
68046         Reported by Eric Blake.
68047
68048 2007-07-18  Bruno Haible  <bruno@clisp.org>
68049
68050         * gnulib-tool: New options --po-base, --po-domain.
68051         (func_usage): Document them.
68052         (pobase, po_domain): New variables.
68053         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68054         DEFAULT_TEXT_DOMAIN.
68055         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68056         (func_import): Consider pobase and po_domain. Create a po/ directory.
68057         (func_create_testdir): Set pobase and po_domain to empty.
68058         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68059         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68060
68061 2007-07-18  Bruno Haible  <bruno@clisp.org>
68062
68063         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68064         EXTRA_DIST augmentation for files in build-aux/.
68065
68066 2007-07-16  Bruno Haible  <bruno@clisp.org>
68067
68068         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68069         * modules/getdelim (License): Likewise.
68070
68071 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68072
68073         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68074         * modules/d-type (License): Likewise.
68075         * modules/extensions (License): Likewise.
68076         * modules/fnmatch (License): Likewise.
68077         * modules/fseeko (License): Likewise.
68078         * modules/getaddrinfo (License): Likewise.
68079         * modules/getline (License): Likewise.
68080         * modules/getlogin_r (License): Likewise.
68081         * modules/getpass (License): Likewise.
68082         * modules/gettimeofday (License): Likewise.
68083         * modules/glob (License): Likewise.
68084         * modules/inet_ntop (License): Likewise.
68085         * modules/malloc (License): Likewise.
68086         * modules/malloca (License): Likewise.
68087         * modules/memmem (License): Likewise.
68088         * modules/mempcpy (License): Likewise.
68089         * modules/memset (License): Likewise.
68090         * modules/minmax (License): Likewise.
68091         * modules/mktime (License): Likewise.
68092         * modules/netinet_in (License): Likewise.
68093         * modules/pathmax (License): Likewise.
68094         * modules/poll (License): Likewise.
68095         * modules/regex (License): Likewise.
68096         * modules/snprintf (License): Likewise.
68097         * modules/stdbool (License): Likewise.
68098         * modules/stdint (License): Likewise.
68099         * modules/stdio (License): Likewise.
68100         * modules/strcase (License): Likewise.
68101         * modules/strcasestr (License): Likewise.
68102         * modules/strdup (License): Likewise.
68103         * modules/string (License): Likewise.
68104         * modules/strndup (License): Likewise.
68105         * modules/strnlen (License): Likewise.
68106         * modules/strpbrk (License): Likewise.
68107         * modules/strptime (License): Likewise.
68108         * modules/strsep (License): Likewise.
68109         * modules/sys_select (License): Likewise.
68110         * modules/sys_socket (License): Likewise.
68111         * modules/sys_stat (License): Likewise.
68112         * modules/sys_time (License): Likewise.
68113         * modules/time (License): Likewise.
68114         * modules/time_r (License): Likewise.
68115         * modules/timegm (License): Likewise.
68116         * modules/unistd (License): Likewise.
68117         * modules/vsnprintf (License): Likewise.
68118         * modules/wctype (License): Likewise.
68119
68120 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68121
68122         * modules/argz (License): LGPLv2+.
68123
68124 2007-07-15  Karl Berry  <karl@gnu.org>
68125
68126         * doc/gnulib.texi: revise node structure per new fdl.texi.
68127
68128 2007-07-14  Bruno Haible  <bruno@clisp.org>
68129
68130         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68131         the output file.
68132         * lib/uniname/uninames.h: Regenerated.
68133
68134 2007-07-14  Karl Berry  <karl@gnu.org>
68135
68136         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68137         omitting sectioning and index commands.
68138
68139 2007-07-13  Bruno Haible  <bruno@clisp.org>
68140
68141         New gnulib-tool option --more-symlinks.
68142         * gnulib-tool (func_usage): Document --more-symlinks.
68143         (do_copyrights): New variable.
68144         Recognize option --more-symlinks.
68145         (func_import): Don't add a copyright notice transform to
68146         sed_transform_lib_file if do_copyrights is empty.
68147
68148 2007-07-13  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/vasnprintf.c (decimal_point_char): Define also if
68151         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68152         && !NEED_PRINTF_DIRECTIVE_A.
68153         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68154         Gary V. Vaughan <gary@gnu.org>.
68155
68156 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * lib/inttypes_.h: Undo previous change, since it was fixed
68159         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68160
68161 2007-07-13  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68164         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68165
68166 2007-07-13  Jim Meyering  <jim@meyering.net>
68167
68168         df: Don't fail for Tru64's "file-on-file mount".
68169         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68170         so we fall through and use statfs instead.  Details here:
68171         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68172         Reported by Albert Chin.
68173
68174 2007-07-13  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68177         * modules/configmake (License): Likewise.
68178         * modules/gettext (License): Likewise.
68179         * modules/gettext-h (License): Likewise.
68180         * modules/include_next (License): Likewise.
68181         * modules/link-warning (License): Likewise.
68182         * modules/localcharset (License): Likewise.
68183         * modules/localename (License): Likewise.
68184         * modules/lock (License): Likewise.
68185         * modules/relocatable-lib-lgpl (License): Likewise.
68186         * modules/size_max (License): Likewise.
68187         * modules/vasnprintf (License): Likewise.
68188         * modules/wchar (License): Likewise.
68189         * modules/xsize (License): Likewise.
68190
68191 2007-07-13  Bruno Haible  <bruno@clisp.org>
68192
68193         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68194         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68195
68196 2007-07-12  Bruno Haible  <bruno@clisp.org>
68197
68198         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68199         in the modules files.
68200
68201 2007-07-11  Karl Berry  <karl@gnu.org>
68202
68203         * MODULES.html.sh (func_module): use
68204          sed -e '\|^'"${includefile}"'$|d'
68205          instead of /.../d, to avoid errors on $includefile's containing /.
68206
68207 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68208
68209         * gnulib-tool (func_import): Avoid duplication of --avoid
68210         statements
68211         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68212         names to `_' in variable names.
68213
68214 2007-07-10  Eric Blake  <ebb9@byu.net>
68215
68216         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68217         * NEWS: Document this change.
68218
68219 2007-07-08  Bruno Haible  <bruno@clisp.org>
68220
68221         Update to Unicode 5.0.
68222         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68223         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68224         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68225         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68226         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68227         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68228         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68229         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68230         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68231         U+10A3F, U+1D242..U+1D244.
68232         (nonspacing_table_ind): Update.
68233         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68234         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68235
68236 2007-07-08  Bruno Haible  <bruno@clisp.org>
68237
68238         Update to Unicode 5.0.
68239         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68240         code transform. Extend the name index field of unicode_name_to_code and
68241         unicode_code_to_name from 16 to 24 bits.
68242         * lib/uniname/uniname.c (unicode_character_name,
68243         unicode_name_character): Add the range 0x12xxx to the code transform.
68244         * lib/uniname/uninames.h: Regenerated.
68245         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68246
68247 2007-07-07  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/wcwidth-tests: New file.
68250         * tests/test-wcwidth.c: New file.
68251
68252         Work around MacOS X wcwidth() bug.
68253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68254         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68255         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68256         original wcwidth in non-UTF-8 locales.
68257         * modules/wcwidth (Depends-on): Add localcharset, streq,
68258         uniwidth/width.
68259         * doc/functions/wcwidth.texi: Update.
68260
68261 2007-07-07  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68264         (wcwidth): New declaration.
68265         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68266         macros.
68267         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68268         here. Prepare for creating <wchar.h> unconditionally.
68269         * modules/wchar (Depends-on): Add link-warning.
68270         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68271         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68272         * lib/wcwidth.h: Remove file.
68273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68274         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68275         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68276         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68277         (Include): Replace wcwidth.h with <wchar.h>.
68278         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68279         * lib/mbchar.h: Don't include wcwidth.h.
68280         * lib/mbswidth.c: Likewise.
68281         * NEWS: Mention the change.
68282
68283 2007-07-07  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68286         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68287         definition with an external declaration.
68288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68289         defined as a function. Remove AC_C_INLINE requirement.
68290         * modules/wcwidth (Files): Add lib/wcwidth.c.
68291         (Makefile.am): Remove redundant statement.
68292
68293 2007-07-07  Bruno Haible  <bruno@clisp.org>
68294
68295         * MODULES.html.sh (Unicode string functions): Add the new modules.
68296
68297         * tests/uniwidth/test-u32-strwidth.c: New file.
68298         * modules/uniwidth/u32-strwidth-tests: New file.
68299
68300         * lib/uniwidth/u32-strwidth.c: New file.
68301         * modules/uniwidth/u32-strwidth: New file.
68302
68303         * tests/uniwidth/test-u16-strwidth.c: New file.
68304         * modules/uniwidth/u16-strwidth-tests: New file.
68305
68306         * lib/uniwidth/u16-strwidth.c: New file.
68307         * modules/uniwidth/u16-strwidth: New file.
68308
68309         * tests/uniwidth/test-u8-strwidth.c: New file.
68310         * modules/uniwidth/u8-strwidth-tests: New file.
68311
68312         * lib/uniwidth/u8-strwidth.c: New file.
68313         * modules/uniwidth/u8-strwidth: New file.
68314
68315         * tests/uniwidth/test-u32-width.c: New file.
68316         * modules/uniwidth/u32-width-tests: New file.
68317
68318         * lib/uniwidth/u32-width.c: New file.
68319         * modules/uniwidth/u32-width: New file.
68320
68321         * tests/uniwidth/test-u16-width.c: New file.
68322         * modules/uniwidth/u16-width-tests: New file.
68323
68324         * lib/uniwidth/u16-width.c: New file.
68325         * modules/uniwidth/u16-width: New file.
68326
68327         * tests/uniwidth/test-u8-width.c: New file.
68328         * modules/uniwidth/u8-width-tests: New file.
68329
68330         * lib/uniwidth/u8-width.c: New file.
68331         * modules/uniwidth/u8-width: New file.
68332
68333         * tests/uniwidth/test-uc_width.c: New file.
68334         * modules/uniwidth/width-tests: New file.
68335
68336         * lib/uniwidth/width.c: New file, from GNU libiconv.
68337         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68338         * modules/uniwidth/width: New file.
68339
68340         * lib/uniwidth.h: New file, from GNU libiconv.
68341         * modules/uniwidth/base: New file.
68342
68343 2007-07-07  Bruno Haible  <bruno@clisp.org>
68344
68345         * lib/uniname.h: New file, from GNU gettext.
68346         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68347         * lib/uniname/uninames.h: New file, from GNU gettext.
68348         * lib/uniname/uniname.c: New file, from GNU gettext.
68349         * tests/uniname/test-uninames.sh: New file.
68350         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68351         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68352         * modules/uniname/base: New file.
68353         * modules/uniname/uniname: New file.
68354         * modules/uniname/uniname-tests: New file.
68355         * MODULES.html.sh (Unicode string functions): Add the new modules.
68356
68357 2007-07-06  Bruno Haible  <bruno@clisp.org>
68358
68359         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68360
68361 2007-07-06  Bruno Haible  <bruno@clisp.org>
68362
68363         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68364         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68365         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68366         include <sys/time.h>.
68367         Reported by Eric Blake.
68368
68369 2007-07-06  Eric Blake  <ebb9@byu.net>
68370
68371         Fix testing canonicalize on cygwin.
68372         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68373         Revert patch from 2007-06-19.
68374         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68375         canonicalize module is also in use.
68376         * tests/test-canonicalize.c: New file.
68377         * tests/test-canonicalize.sh: Likewise.
68378         * modules/canonicalize-tests: Likewise.
68379
68380 2007-07-06  Jim Meyering  <jim@meyering.net>
68381
68382         * lib/getugroups.c (getugroups): Detect getgrent failure.
68383         Adjust comment to reflect reality: this function may return -1.
68384
68385 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68386
68387         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68388         the new TP address.
68389         (usage): Fix typo
68390         (gnulib_mk): New variable.
68391
68392 2007-07-05  Jim Meyering  <jim@meyering.net>
68393
68394         Don't let endgrent clobber errno, no matter how improbable.
68395         * lib/getugroups.c (getugroups): Save and restore errno around
68396         endgrent call.
68397
68398         Close the group DB even when failing with 2^31 or more members.
68399         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68400
68401 2007-07-04  Jim Meyering  <jim@meyering.net>
68402
68403         * lib/getugroups.h: New file.
68404         * lib/getugroups.c: Include "getugroups.h".
68405         Remove uses of "register" keyword.
68406         Move local variable, "cp", down into scope where used.
68407         Give "username" parameter the "const" attribute.
68408         * modules/getugroups (Files): Add lib/getugroups.h
68409
68410 2007-07-04  Karl Berry  <karl@gnu.org>
68411
68412         * MODULES.html.sh (func_all_modules): Complete rename of
68413         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68414
68415 2007-07-02  Bruno Haible  <bruno@clisp.org>
68416
68417         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68418         mode, when inttypes.h comes from gnulib.
68419         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68420
68421 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68422
68423         * NEWS: Mention lgpl module name change.
68424
68425         * modules/lgpl-2.1: Renamed from lgpl.
68426
68427         * NEWS: Mention gpl module name change.
68428
68429         * modules/gpl-3.0: New file, based on gpl-2.0.
68430
68431         * modules/gpl-2.0: Renamed from gpl.
68432
68433         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68434         doc/gpl-2.0.texi.
68435
68436 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68439         #define __STDC_LIMIT_MACROS temporarily while including
68440         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68441         Problem reported by Joel E. Denny in
68442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68443
68444 2007-07-01  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/unistdio.h: New file.
68447         * lib/unistdio/u-asnprintf.h: New file.
68448         * lib/unistdio/u-asprintf.h: New file.
68449         * lib/unistdio/u-printf-args.c: New file.
68450         * lib/unistdio/u-printf-args.h: New file.
68451         * lib/unistdio/u-printf-parse.h: New file.
68452         * lib/unistdio/u-snprintf.h: New file.
68453         * lib/unistdio/u-sprintf.h: New file.
68454         * lib/unistdio/u-vasprintf.h: New file.
68455         * lib/unistdio/u-vsnprintf.h: New file.
68456         * lib/unistdio/u-vsprintf.h: New file.
68457         * lib/unistdio/ulc-asnprintf.c: New file.
68458         * lib/unistdio/ulc-asprintf.c: New file.
68459         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68460         * lib/unistdio/ulc-printf-parse.c: New file.
68461         * lib/unistdio/ulc-snprintf.c: New file.
68462         * lib/unistdio/ulc-sprintf.c: New file.
68463         * lib/unistdio/ulc-vasnprintf.c: New file.
68464         * lib/unistdio/ulc-vasprintf.c: New file.
68465         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68466         * lib/unistdio/ulc-vsnprintf.c: New file.
68467         * lib/unistdio/ulc-vsprintf.c: New file.
68468         * lib/unistdio/u8-asnprintf.c: New file.
68469         * lib/unistdio/u8-asprintf.c: New file.
68470         * lib/unistdio/u8-printf-parse.c: New file.
68471         * lib/unistdio/u8-snprintf.c: New file.
68472         * lib/unistdio/u8-sprintf.c: New file.
68473         * lib/unistdio/u8-vasnprintf.c: New file.
68474         * lib/unistdio/u8-vasprintf.c: New file.
68475         * lib/unistdio/u8-vsnprintf.c: New file.
68476         * lib/unistdio/u8-vsprintf.c: New file.
68477         * lib/unistdio/u8-u8-asnprintf.c: New file.
68478         * lib/unistdio/u8-u8-asprintf.c: New file.
68479         * lib/unistdio/u8-u8-snprintf.c: New file.
68480         * lib/unistdio/u8-u8-sprintf.c: New file.
68481         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68482         * lib/unistdio/u8-u8-vasprintf.c: New file.
68483         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68484         * lib/unistdio/u8-u8-vsprintf.c: New file.
68485         * lib/unistdio/u16-asnprintf.c: New file.
68486         * lib/unistdio/u16-asprintf.c: New file.
68487         * lib/unistdio/u16-printf-parse.c: New file.
68488         * lib/unistdio/u16-snprintf.c: New file.
68489         * lib/unistdio/u16-sprintf.c: New file.
68490         * lib/unistdio/u16-vasnprintf.c: New file.
68491         * lib/unistdio/u16-vasprintf.c: New file.
68492         * lib/unistdio/u16-vsnprintf.c: New file.
68493         * lib/unistdio/u16-vsprintf.c: New file.
68494         * lib/unistdio/u16-u16-asnprintf.c: New file.
68495         * lib/unistdio/u16-u16-asprintf.c: New file.
68496         * lib/unistdio/u16-u16-snprintf.c: New file.
68497         * lib/unistdio/u16-u16-sprintf.c: New file.
68498         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68499         * lib/unistdio/u16-u16-vasprintf.c: New file.
68500         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68501         * lib/unistdio/u16-u16-vsprintf.c: New file.
68502         * lib/unistdio/u32-asnprintf.c: New file.
68503         * lib/unistdio/u32-asprintf.c: New file.
68504         * lib/unistdio/u32-printf-parse.c: New file.
68505         * lib/unistdio/u32-snprintf.c: New file.
68506         * lib/unistdio/u32-sprintf.c: New file.
68507         * lib/unistdio/u32-vasnprintf.c: New file.
68508         * lib/unistdio/u32-vasprintf.c: New file.
68509         * lib/unistdio/u32-vsnprintf.c: New file.
68510         * lib/unistdio/u32-vsprintf.c: New file.
68511         * lib/unistdio/u32-u32-asnprintf.c: New file.
68512         * lib/unistdio/u32-u32-asprintf.c: New file.
68513         * lib/unistdio/u32-u32-snprintf.c: New file.
68514         * lib/unistdio/u32-u32-sprintf.c: New file.
68515         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68516         * lib/unistdio/u32-u32-vasprintf.c: New file.
68517         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68518         * lib/unistdio/u32-u32-vsprintf.c: New file.
68519         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68520         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68521         * tests/unistdio/test-ulc-printf1.h: New file.
68522         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68523         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68524         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68525         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68526         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68527         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68528         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68529         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68530         * tests/unistdio/test-u8-asnprintf1.c: New file.
68531         * tests/unistdio/test-u8-asnprintf1.h: New file.
68532         * tests/unistdio/test-u8-printf1.h: New file.
68533         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68534         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68535         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68536         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68537         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68538         * tests/unistdio/test-u8-vasprintf1.c: New file.
68539         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68540         * tests/unistdio/test-u8-vsprintf1.c: New file.
68541         * tests/unistdio/test-u16-asnprintf1.c: New file.
68542         * tests/unistdio/test-u16-asnprintf1.h: New file.
68543         * tests/unistdio/test-u16-printf1.h: New file.
68544         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68545         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68546         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68547         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68548         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68549         * tests/unistdio/test-u16-vasprintf1.c: New file.
68550         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68551         * tests/unistdio/test-u16-vsprintf1.c: New file.
68552         * tests/unistdio/test-u32-asnprintf1.c: New file.
68553         * tests/unistdio/test-u32-asnprintf1.h: New file.
68554         * tests/unistdio/test-u32-printf1.h: New file.
68555         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68556         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68557         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68558         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68559         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68560         * tests/unistdio/test-u32-vasprintf1.c: New file.
68561         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68562         * tests/unistdio/test-u32-vsprintf1.c: New file.
68563         * modules/unistdio/base: New file.
68564         * modules/unistdio/u-printf-args: New file.
68565         * modules/unistdio/ulc-asnprintf: New file.
68566         * modules/unistdio/ulc-asprintf: New file.
68567         * modules/unistdio/ulc-fprintf: New file.
68568         * modules/unistdio/ulc-printf-parse: New file.
68569         * modules/unistdio/ulc-snprintf: New file.
68570         * modules/unistdio/ulc-sprintf: New file.
68571         * modules/unistdio/ulc-vasnprintf: New file.
68572         * modules/unistdio/ulc-vasprintf: New file.
68573         * modules/unistdio/ulc-vfprintf: New file.
68574         * modules/unistdio/ulc-vsnprintf: New file.
68575         * modules/unistdio/ulc-vsprintf: New file.
68576         * modules/unistdio/u8-asnprintf: New file.
68577         * modules/unistdio/u8-asprintf: New file.
68578         * modules/unistdio/u8-printf-parse: New file.
68579         * modules/unistdio/u8-snprintf: New file.
68580         * modules/unistdio/u8-sprintf: New file.
68581         * modules/unistdio/u8-vasnprintf: New file.
68582         * modules/unistdio/u8-vasprintf: New file.
68583         * modules/unistdio/u8-vsnprintf: New file.
68584         * modules/unistdio/u8-vsprintf: New file.
68585         * modules/unistdio/u8-u8-asnprintf: New file.
68586         * modules/unistdio/u8-u8-asprintf: New file.
68587         * modules/unistdio/u8-u8-snprintf: New file.
68588         * modules/unistdio/u8-u8-sprintf: New file.
68589         * modules/unistdio/u8-u8-vasnprintf: New file.
68590         * modules/unistdio/u8-u8-vasprintf: New file.
68591         * modules/unistdio/u8-u8-vsnprintf: New file.
68592         * modules/unistdio/u8-u8-vsprintf: New file.
68593         * modules/unistdio/u16-asnprintf: New file.
68594         * modules/unistdio/u16-asprintf: New file.
68595         * modules/unistdio/u16-printf-parse: New file.
68596         * modules/unistdio/u16-snprintf: New file.
68597         * modules/unistdio/u16-sprintf: New file.
68598         * modules/unistdio/u16-vasnprintf: New file.
68599         * modules/unistdio/u16-vasprintf: New file.
68600         * modules/unistdio/u16-vsnprintf: New file.
68601         * modules/unistdio/u16-vsprintf: New file.
68602         * modules/unistdio/u16-u16-asnprintf: New file.
68603         * modules/unistdio/u16-u16-asprintf: New file.
68604         * modules/unistdio/u16-u16-snprintf: New file.
68605         * modules/unistdio/u16-u16-sprintf: New file.
68606         * modules/unistdio/u16-u16-vasnprintf: New file.
68607         * modules/unistdio/u16-u16-vasprintf: New file.
68608         * modules/unistdio/u16-u16-vsnprintf: New file.
68609         * modules/unistdio/u16-u16-vsprintf: New file.
68610         * modules/unistdio/u32-asnprintf: New file.
68611         * modules/unistdio/u32-asprintf: New file.
68612         * modules/unistdio/u32-printf-parse: New file.
68613         * modules/unistdio/u32-snprintf: New file.
68614         * modules/unistdio/u32-sprintf: New file.
68615         * modules/unistdio/u32-vasnprintf: New file.
68616         * modules/unistdio/u32-vasprintf: New file.
68617         * modules/unistdio/u32-vsnprintf: New file.
68618         * modules/unistdio/u32-vsprintf: New file.
68619         * modules/unistdio/u32-u32-asnprintf: New file.
68620         * modules/unistdio/u32-u32-asprintf: New file.
68621         * modules/unistdio/u32-u32-snprintf: New file.
68622         * modules/unistdio/u32-u32-sprintf: New file.
68623         * modules/unistdio/u32-u32-vasnprintf: New file.
68624         * modules/unistdio/u32-u32-vasprintf: New file.
68625         * modules/unistdio/u32-u32-vsnprintf: New file.
68626         * modules/unistdio/u32-u32-vsprintf: New file.
68627         * modules/unistdio/ulc-asnprintf-tests: New file.
68628         * modules/unistdio/ulc-vasnprintf-tests: New file.
68629         * modules/unistdio/ulc-vasprintf-tests: New file.
68630         * modules/unistdio/ulc-vsnprintf-tests: New file.
68631         * modules/unistdio/ulc-vsprintf-tests: New file.
68632         * modules/unistdio/u8-asnprintf-tests: New file.
68633         * modules/unistdio/u8-vasnprintf-tests: New file.
68634         * modules/unistdio/u8-vasprintf-tests: New file.
68635         * modules/unistdio/u8-vsnprintf-tests: New file.
68636         * modules/unistdio/u8-vsprintf-tests: New file.
68637         * modules/unistdio/u16-asnprintf-tests: New file.
68638         * modules/unistdio/u16-vasnprintf-tests: New file.
68639         * modules/unistdio/u16-vasprintf-tests: New file.
68640         * modules/unistdio/u16-vsnprintf-tests: New file.
68641         * modules/unistdio/u16-vsprintf-tests: New file.
68642         * modules/unistdio/u32-asnprintf-tests: New file.
68643         * modules/unistdio/u32-vasnprintf-tests: New file.
68644         * modules/unistdio/u32-vasprintf-tests: New file.
68645         * modules/unistdio/u32-vsnprintf-tests: New file.
68646         * modules/unistdio/u32-vsprintf-tests: New file.
68647         * MODULES.html.sh (Unicode string functions): Add the new modules.
68648
68649 2007-07-01  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/sprintf.c (sprintf): Limit the available length estimation,
68652         to avoid address wraparound.
68653         * lib/vsprintf.c (vsprintf): Likewise.
68654         * modules/sprintf-posix (Dependencies): Add stdint.
68655         * modules/vsprintf-posix (Dependencies): Likewise.
68656
68657 2007-07-01  Bruno Haible  <bruno@clisp.org>
68658
68659         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68660         Windows PATH as well. Conservative double-quoting. Comments.
68661
68662 2007-07-01  Bruno Haible  <bruno@clisp.org>
68663             Eric Blake  <ebb9@byu.net>
68664             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68665
68666         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68667         empty components in $PATH, denoting '.'.
68668
68669 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68670
68671         * gnulib-tool: Fix indentation.
68672         (func_create_megatestdir): Likewise.
68673         Report by Bruno Haible.
68674
68675 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68676
68677         Sync from Automake.
68678         * build-aux/gnupload: Fix shell portability issues with for loops.
68679         Report by Karl Berry.
68680
68681 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68682
68683         * build-aux/maint.mk (POURL): Use translationproject.org.
68684
68685 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68686             Bruno Haible  <bruno@clisp.org>
68687
68688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68689         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68690         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68691         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68692         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68693
68694 2007-06-27  Bruno Haible  <bruno@clisp.org>
68695
68696         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68697         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68698
68699 2007-06-26  Karl Berry  <karl@gnu.org>
68700
68701         * MODULES.html.sh: remove xreadlink-with-size.
68702
68703 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68706         method that I hope also handles the double-include problem noted
68707         by Bruno Haible in
68708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68709
68710 2007-06-23  Bruno Haible  <bruno@clisp.org>
68711
68712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68713         Don't let the 'mostlyclean' target fail if the last subdirectory could
68714         not be removed.
68715         Reported by Karl Berry.
68716
68717 2007-06-23  Bruno Haible  <bruno@clisp.org>
68718
68719         * gnulib-tool (echo): Add a speedier workaround for ksh.
68720         * tests/test-echo.sh: Likewise.
68721
68722 2007-06-23  Bruno Haible  <bruno@clisp.org>
68723
68724         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68725         * tests/test-echo.sh: Likewise.
68726
68727 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68728
68729         * gnulib-tool (IFS): Initialize early, so we don't set it to
68730         empty later.
68731         (self_abspathname): Rewrite algorithm to set it, reindent.
68732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68733         (func_create_megatestdir): Merge some sed scripts.
68734
68735 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68738         exposed by Sun Studio 11 cc on Solaris 8.
68739
68740 2007-06-22  Bruno Haible  <bruno@clisp.org>
68741
68742         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68743         backslashes.
68744         * tests/test-echo.sh: New file.
68745
68746 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68747
68748         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68749         simplify `sed_replace_build_aux' scripts, they are portable but
68750         echoing them with `echo' is not.
68751         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68752
68753 2007-06-21  Karl Berry  <karl@gnu.org>
68754
68755         * config/srclist.txt: guess we can't handle the licenses via
68756         srclist at the moment.
68757
68758 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * MODULES.html.sh: Add include_next.
68761         * modules/include_next: New file.
68762
68763 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68766         INCLUDE_NEXT.
68767         (gl_CHECK_NEXT_HEADERS): New macro.
68768         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68769         the obsolescent gl_ABSOLUTE_HEADER.
68770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68771         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68772         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68773         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68774         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68775         * m4/math_h.m4 (gl_MATH_H): Likewise.
68776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68778         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68779         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68781         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68787         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68790         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68792         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68793         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68794         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68795         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68796         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68797         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68798         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68799         * lib/float_.h: Likewise.
68800         * lib/inttypes_.h: Likewise.
68801         * lib/math_.h: Likewise.
68802         * lib/search_.h: Likewise.
68803         * lib/signal_.h: Likewise.
68804         * lib/stdint_.h: Likewise.
68805         * lib/stdio_.h: Likewise.
68806         * lib/stdlib_.h: Likewise.
68807         * lib/string_.h: Likewise.
68808         * lib/sys_stat_.h: Likewise.
68809         * lib/sys_time_.h: Likewise.
68810         * lib/time_.h: Likewise.
68811         * lib/unistd_.h: Likewise.
68812         * lib/wchar_.h: Likewise.
68813         * lib/wctype_.h: Likewise.
68814         * lib/dirent_.h: Likewise.
68815         * lib/iconv_.h: Likewise.
68816         * lib/locale_.h: Likewise.
68817         * lib/netinet_in_.h: Likewise.
68818         * lib/sys_select_.h: Likewise.
68819         * lib/sys_socket_.h: Likewise.
68820         * lib/sysexits_.h: Likewise.
68821         * modules/fcntl (Depends-on): Depend on include_next, not
68822         absolute_header.
68823         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68824         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68825         * modules/fchdir: Likewise.
68826         * modules/float: Likewise.
68827         * modules/iconv_open: Likewise.
68828         * modules/inttypes: Likewise.
68829         * modules/locale: Likewise.
68830         * modules/math: Likewise.
68831         * modules/netinet_in: Likewise.
68832         * modules/search: Likewise.
68833         * modules/signal: Likewise.
68834         * modules/stdint: Likewise.
68835         * modules/stdio: Likewise.
68836         * modules/stdlib: Likewise.
68837         * modules/string: Likewise.
68838         * modules/sys_select: Likewise.
68839         * modules/sys_socket: Likewise.
68840         * modules/sys_stat: Likewise.
68841         * modules/sys_time: Likewise.
68842         * modules/sysexits: Likewise.
68843         * modules/time: Likewise.
68844         * modules/unistd: Likewise.
68845         * modules/wchar: Likewise.
68846         * modules/wctype: Likewise.
68847         * modules/sys_stat: Change maintainer to "all".
68848         * modules/unistd: Likewise.
68849
68850 2007-06-20  Karl Berry  <karl@gnu.org>
68851
68852         * config/srclist.txt: track www changes in license files.
68853
68854 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68855
68856         * build-aux/bootstrap: Remove stray dot.
68857         Make sure build_aux settings are honored when linking
68858         gnulib_extra_files.
68859
68860 2007-06-19  Eric Blake  <ebb9@byu.net>
68861
68862         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68863         Allow compilation on cygwin.
68864
68865 2007-06-19  Jim Meyering  <jim@meyering.net>
68866
68867         xreadlink-with-size: Remove module.  No longer used.
68868         Ex-callers now use xreadlink or mreadlink-with-size.
68869         * modules/xreadlink-with-size: Remove module.
68870         * lib/xreadlink-with-size.c: Remove file.
68871         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68872         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68873         just before the function definition *is* accurate.
68874
68875         Eliminate one way canonicalize_filename_mode could exit.
68876         * lib/canonicalize.c (canonicalize_filename_mode):
68877         Use mreadlink_with_size, not xreadlink_with_size.
68878
68879 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68880
68881         Detect porting problems to FreeBSD/arm, which has time_t wider than
68882         long int.  Original problem reported for GNU diff by Xin Li in
68883         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68884         * modules/getdate (Depends-on): Add intprops, verify.
68885         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68886         is an integer type no wider than long int.
68887
68888 2007-06-18  Jim Meyering  <jim@meyering.net>
68889
68890         New module: mreadlink-with-size.
68891         * MODULES.html.sh: Add mreadlink-with-size.
68892         * modules/mreadlink-with-size: New module
68893         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68894         not xreadlink-with-size.
68895         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68896
68897 2007-06-16  Bruno Haible  <bruno@clisp.org>
68898
68899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68900         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68901         Reported by Gary V. Vaughan <gary@gnu.org>.
68902
68903 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68904
68905         Revamp lchown so that it lives in unistd.h where it belongs.
68906         * lib/lchown.h: Remove.
68907         * lib/dirchownmod.c: Don't include lib/lchown.h.
68908         * lib/fchownat.c: Likewise.
68909         * lib/openat.c: Likewise.
68910         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68911         does not follow symlinks.
68912         (EOPNOTSUPP): Define if not defined.
68913         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68914         is defined to 0.
68915         (lchown): New decl.
68916         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68917         Do not check for lchown decl.
68918         Set REPLACE_LCHOWN.
68919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68920         REPLACE_LCHOWN.
68921         * modules/chown: Make it clear it follows symlinks.
68922         * modules/lchown: Make it clear it doesn't follow symlinks.
68923         (Files): Remove lib/lchown.h
68924         (Depends-on): Add unistd.
68925         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68926         (Include): Include <unistd.h>, not "lchown.h".
68927         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68928         REPLACE_LCHOWN.
68929
68930 2007-06-15  Jim Meyering  <jim@meyering.net>
68931
68932         Change license (GPL to LGPL) of fsusage and dependents.
68933         * modules/fsusage (License): Change to LGPL.
68934         * modules/full-read (License): Likewise.
68935         * modules/full-write (License): Likewise.
68936         * modules/safe-read (License): Likewise.
68937         * modules/safe-write (License): Likewise.
68938
68939 2007-06-14  Ben Pfaff  <blp@gnu.org>
68940
68941         Missing part of allocsa -> malloca transition.
68942         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68943         gl_MALLOCA.
68944
68945 2007-06-12  Bruno Haible  <bruno@clisp.org>
68946
68947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68948         to ia64, x86_64, i386.
68949         Reported by Eric Blake.
68950
68951 2007-06-12  Bruno Haible  <bruno@clisp.org>
68952
68953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68954         cross-compiling to x86_64.
68955
68956 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68957
68958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68959         glitch reported by Ralf Wildenhues in
68960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68961
68962         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68963         Vin Shelton.
68964
68965 2007-06-11  Bruno Haible  <bruno@clisp.org>
68966
68967         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68968         replacement string.
68969         Reported by Eric Blake.
68970
68971 2007-06-10  Bruno Haible  <bruno@clisp.org>
68972
68973         Prepare vasnprintf code for use with Unicode strings.
68974         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68975         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68976         TYPE_U32_STRING.
68977         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68978         a_u32_string variants.
68979         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68980         * lib/printf-args.c: Don't include config.h and the specification
68981         header if PRINTF_FETCHARGS is already defined.
68982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68983         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68984         TYPE_U16_STRING, TYPE_U32_STRING.
68985         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68986         u16_directive, u16_directives, u32_directive, u32_directives): New
68987         types.
68988         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68989         New declarations.
68990         * lib/printf-parse.c: Don't include config.h and the specification
68991         header if PRINTF_PARSE is already defined. Eliminate the set of
68992         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68993         them now. Include c-ctype.h.
68994         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68995         directive and CHAR_T_ONLY_ASCII.
68996         * lib/vasnprintf.c: Don't include config.h and the specification header
68997         if VASNPRINTF is already defined.
68998         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68999         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69000         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69001         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69002         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69003         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69004         code accordingly.
69005         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69006         pad_ourselves also in this case, with the 'c' and 's' directives, and
69007         with a different notion of "width".
69008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69009
69010 2007-06-10  Bruno Haible  <bruno@clisp.org>
69011
69012         * modules/unistr/u32-mbsnlen: New file.
69013         * lib/unistr/u32-mbsnlen.c: New file.
69014
69015         * modules/unistr/u16-mbsnlen: New file.
69016         * lib/unistr/u16-mbsnlen.c: New file.
69017
69018         * modules/unistr/u8-mbsnlen: New file.
69019         * lib/unistr/u8-mbsnlen.c: New file.
69020
69021         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69022         declarations.
69023
69024 2007-06-10  Bruno Haible  <bruno@clisp.org>
69025
69026         * lib/string_.h (mbsnlen): New declaration.
69027         * lib/mbsnlen.c: New file.
69028         * m4/mbsnlen.m4: New file.
69029         * modules/mbsnlen: New file.
69030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69031         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69032         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69033
69034 2007-06-10  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69037
69038 2007-06-10  Bruno Haible  <bruno@clisp.org>
69039
69040         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69041         * lib/mbuiter.h: Likewise.
69042
69043 2007-06-10  Bruno Haible  <bruno@clisp.org>
69044
69045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69046         declaration.
69047
69048 2007-06-10  Karl Berry  <karl@gnu.org>
69049
69050         * config/srclist.txt: remove gettext entries, Bruno prefers
69051         to update individually.
69052
69053 2007-06-10  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69056         'maxlen'. Ensure only length + width bytes are allocated, not
69057         length + 1 + width.
69058
69059 2007-06-09  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69062         (CHAR_T): Remove macro.
69063         (VASNPRINTF): Update.
69064
69065 2007-06-09  Bruno Haible  <bruno@clisp.org>
69066
69067         * MODULES.html.sh (Unicode string functions): Add the new modules.
69068
69069         * modules/uniconv/u32-conv-to-enc: New file.
69070         * lib/uniconv/u32-conv-to-enc.c: New file.
69071         * modules/uniconv/u32-conv-to-enc-tests: New file.
69072         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69073
69074         * modules/uniconv/u16-conv-to-enc: New file.
69075         * lib/uniconv/u16-conv-to-enc.c: New file.
69076         * lib/uniconv/u-conv-to-enc.h: New file.
69077         * modules/uniconv/u16-conv-to-enc-tests: New file.
69078         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69079
69080         * modules/uniconv/u8-conv-to-enc: New file.
69081         * lib/uniconv/u8-conv-to-enc.c: New file.
69082         * modules/uniconv/u8-conv-to-enc-tests: New file.
69083         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69084
69085         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69086         u32_conv_to_encoding): New declarations.
69087
69088 2007-06-09  Bruno Haible  <bruno@clisp.org>
69089
69090         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69091
69092 2007-06-09  Bruno Haible  <bruno@clisp.org>
69093
69094         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69095         * modules/malloca: Renamed from modules/allocsa, updated.
69096         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69097         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69098         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69099         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69100         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69101         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69102         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69103         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69104         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69105         * modules/c-strcasestr (Depends-on): Update.
69106         * lib/c-strcasestr.c: Update.
69107         * modules/c-strstr (Depends-on): Update.
69108         * lib/c-strstr.c: Update.
69109         * modules/canonicalize-lgpl (Depends-on): Update.
69110         * lib/canonicalize-lgpl.c: Update.
69111         * modules/clean-temp (Depends-on): Update.
69112         * lib/clean-temp.c: Update.
69113         * modules/csharpcomp (Depends-on): Update.
69114         * lib/csharpcomp.c: Update.
69115         * modules/csharpexec (Depends-on): Update.
69116         * lib/csharpexec.c: Update.
69117         * modules/javacomp (Depends-on): Update.
69118         * lib/javacomp.c: Update.
69119         * modules/javaexec (Depends-on): Update.
69120         * lib/javaexec.c: Update.
69121         * modules/mbscasestr (Depends-on): Update.
69122         * lib/mbscasestr.c: Update.
69123         * modules/mbsstr (Depends-on): Update.
69124         * lib/mbsstr.c: Update.
69125         * modules/setenv (Depends-on): Update.
69126         * lib/setenv.c: Update.
69127         * modules/strcasestr (Depends-on): Update.
69128         * lib/strcasestr.c: Update.
69129         * modules/striconveha (Depends-on): Update.
69130         * lib/striconveha.c: Update.
69131         * modules/relocatable-prog-wrapper (Files): Update.
69132         * lib/relocwrapper.c: Update.
69133         * build-aux/install-reloc: Update.
69134         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69135
69136 2007-06-08  Bruno Haible  <bruno@clisp.org>
69137
69138         Port to uClibc.
69139         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69140         * lib/fpurge.c (fpurge): Likewise.
69141         * lib/freading.c (freading): Likewise.
69142         * lib/fseeko.c (rpl_fseeko): Likewise.
69143         * lib/fseterr.c (fseterr): Likewise.
69144         * lib/fwriting.c (fwriting): Likewise.
69145         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69146
69147 2007-06-08  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69150         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69151         * modules/gettext (Files): Add m4/intlmacosx.m4.
69152
69153 2007-06-07  Bruno Haible  <bruno@clisp.org>
69154
69155         * modules/localename-tests: New file.
69156         * tests/test-localename.c: New file.
69157
69158         New module 'localename'.
69159         * lib/localename.h: New file.
69160         * lib/localename.c: New file, from GNU gettext.
69161         * m4/localename.m4: New file.
69162         * modules/localename: New file.
69163
69164 2007-06-07  Bruno Haible  <bruno@clisp.org>
69165
69166         Work around the lack of <wchar.h> on some builds of uClibc.
69167         * doc/headers/wchar.texi: Update.
69168         * lib/wchar_.h: Include <wchar.h> only if it exists.
69169         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69170         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69171         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69172         doesn't exist.
69173         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69174         * modules/mbfile (Depends-on): Add wchar.
69175         * modules/mbiter (Depends-on): Likewise.
69176         * modules/mbuiter (Depends-on): Likewise.
69177         Reported by Simon Josefsson.
69178
69179 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         Work around problem reported by Steven M. Schweda in
69182         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69183         Tru64 5.1B with the Compaq compiler environment installed declares
69184         an 'isblank' function but does not define it in the C library.
69185         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69186         * lib/regex_internal.h (isblank): Likewise.
69187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69188         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69189
69190 2007-06-05  Bruno Haible  <bruno@clisp.org>
69191
69192         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69193         ia64.
69194         * modules/printf-safe: New file.
69195         * modules/fprintf-posix (Depends-on): Add printf-safe.
69196         * modules/printf-posix (Depends-on): Likewise.
69197         * modules/snprintf-posix (Depends-on): Likewise.
69198         * modules/sprintf-posix (Depends-on): Likewise.
69199         * modules/vasnprintf-posix (Depends-on): Likewise.
69200         * modules/vasprintf-posix (Depends-on): Likewise.
69201         * modules/vfprintf-posix (Depends-on): Likewise.
69202         * modules/vprintf-posix (Depends-on): Likewise.
69203         * modules/vsnprintf-posix (Depends-on): Likewise.
69204         * modules/vsprintf-posix (Depends-on): Likewise.
69205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69206         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69207         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69208         "no" on i386, x86_64, ia64.
69209         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69211         on i386, x86_64, ia64.
69212         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69214         on i386, x86_64, ia64.
69215         * tests/test-vasnprintf-posix.c: Include float.h.
69216         (LDBL80_WORDS): New macro.
69217         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69218         on i386, x86_64, ia64.
69219         * tests/test-vasprintf-posix.c: Include float.h.
69220         (LDBL80_WORDS): New macro.
69221         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69222         on i386, x86_64, ia64.
69223         * tests/test-snprintf-posix.c: Include float.h.
69224         * tests/test-sprintf-posix.c: Likewise.
69225         * tests/test-vsnprintf-posix.c: Likewise.
69226         * tests/test-vsprintf-posix.c: Likewise.
69227
69228 2007-06-05  Bruno Haible  <bruno@clisp.org>
69229
69230         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69232         non-IEEE numbers on i386, x86_64, ia64.
69233         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69234         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69235         * tests/test-isnanl.h: Include float.h.
69236         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69237
69238 2007-06-05  Bruno Haible  <bruno@clisp.org>
69239
69240         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69241         also the %a / %A. Handle the %a / %A code before this extra handling.
69242
69243 2007-06-05  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69246         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69247
69248 2007-06-05  Bruno Haible  <bruno@clisp.org>
69249
69250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69251         typo in variable name.
69252
69253 2007-06-05  Eric Blake  <ebb9@byu.net>
69254
69255         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69256         Reported by Simon Josefsson.
69257
69258 2007-06-04  Bruno Haible  <bruno@clisp.org>
69259
69260         Avoid test failures on some PowerPC platforms.
69261         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69262         Define differently for PowerPC.
69263         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69264         Reported by Gary V. Vaughan <gary@gnu.org>.
69265
69266 2007-06-02  Bruno Haible  <bruno@clisp.org>
69267
69268         Fix test-stdint failure on FreeBSD/ia64.
69269         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69270         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69271         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69272         * doc/headers/stdint.texi: Update.
69273
69274 2007-06-01  Bruno Haible  <bruno@clisp.org>
69275
69276         * tests/test-binary-io.c (main): Pass a third argument to open().
69277         Reported by Gary V. Vaughan <gary@gnu.org>.
69278
69279 2007-06-01  Bruno Haible  <bruno@clisp.org>
69280
69281         * doc/functions/frexpl.texi: Update for mingw.
69282
69283 2007-06-01  Bruno Haible  <bruno@clisp.org>
69284
69285         * tests/test-lseek.c (main): Disable test of errno for invalid third
69286         argument.
69287         * doc/functions/lseek.texi: Update.
69288         Reported by Gary V. Vaughan <gary@gnu.org>.
69289
69290 2007-05-28  Bruno Haible  <bruno@clisp.org>
69291
69292         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69293
69294 2007-05-31  Eric Blake  <ebb9@byu.net>
69295
69296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69297         cross compiling.
69298
69299 2007-05-30  Eric Blake  <ebb9@byu.net>
69300         and Bruno Haible  <bruno@clisp.org>
69301
69302         Work around mingw test failures exposed by m4-1.4.9b.
69303         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69304         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69305         moment.
69306
69307 2007-05-30  Bruno Haible  <bruno@clisp.org>
69308
69309         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69310         assuming that they are closed. Needed on HP-UX 11.
69311
69312 2007-05-29  Bruno Haible  <bruno@clisp.org>
69313
69314         Fix a problem with #include_next.
69315         * lib/dirent_.h: Split the double-inclusion guard.
69316         * lib/fcntl_.h: Likewise.
69317         * lib/float_.h: Likewise.
69318         * lib/iconv_.h: Likewise.
69319         * lib/inttypes_.h: Likewise.
69320         * lib/locale_.h: Likewise.
69321         * lib/math_.h: Likewise.
69322         * lib/netinet_in_.h: Likewise.
69323         * lib/search_.h: Likewise.
69324         * lib/signal_.h: Likewise.
69325         * lib/stdint_.h: Likewise.
69326         * lib/stdio_.h: Likewise.
69327         * lib/stdlib_.h: Likewise.
69328         * lib/string_.h: Likewise.
69329         * lib/sys_select_.h: Likewise.
69330         * lib/sys_socket_.h: Likewise.
69331         * lib/sys_stat_.h: Likewise.
69332         * lib/sys_time_.h: Likewise.
69333         * lib/sysexits_.h: Likewise.
69334         * lib/time_.h: Likewise.
69335         * lib/unistd_.h: Likewise.
69336         * lib/wchar_.h: Likewise.
69337         * lib/wctype_.h: Likewise.
69338
69339 2007-05-29  Bruno Haible  <bruno@clisp.org>
69340
69341         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69342         for the moment.
69343
69344 2007-05-29  Bruno Haible  <bruno@clisp.org>
69345
69346         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69347         invocation.
69348         Reported by Eric Blake.
69349
69350 2007-05-29  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69353         compiling case.
69354
69355 2007-05-29  Eric Blake  <ebb9@byu.net>
69356             Bruno Haible  <bruno@clisp.org>
69357
69358         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69359         cross compiles.
69360
69361 2007-05-28  Eric Blake  <ebb9@byu.net>
69362
69363         * modules/closein-tests (test_closein_LDADD): Support test on
69364         cygwin with libtool.
69365
69366 2007-05-28  Bruno Haible  <bruno@clisp.org>
69367
69368         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69369         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69370         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69371         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69372         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69373         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69374         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69377
69378 2007-05-28  Eric Blake  <ebb9@byu.net>
69379
69380         Unconditionally include <config.h> in unit tests.
69381         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69382         * tests/test-allocsa.c, tests/test-arcfour.c,
69383         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69384         tests/test-array_list.c, tests/test-array_oset.c,
69385         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69386         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69387         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69388         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69389         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69390         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69391         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69392         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69393         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69394         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69395         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69396         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69397         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69398         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69399         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69400         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69401         test-md5.c, test-memmem.c, test-printf-posix.c,
69402         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69403         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69404         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69405         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69406         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69407         test-vasnprintf-posix2.c, test-vasnprintf.c,
69408         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69409         test-vfprintf-posix.c, test-vprintf-posix.c,
69410         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69411         test-xvasprintf.c: Likewise.
69412
69413 2007-05-28  Bruno Haible  <bruno@clisp.org>
69414
69415         * gnulib-tool (func_import): Remember the --with-tests command-line
69416         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69417         Reported by Eric Blake.
69418
69419 2007-05-28  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/ftell-tests: New file.
69422         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69423         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69424
69425         * lib/ftell.c: New file.
69426         * modules/ftell: New file.
69427         * m4/ftell.m4: New file.
69428         * doc/functions/ftell.texi: Update.
69429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69430         REPLACE_FTELL.
69431         * lib/stdio_.h (rpl_ftell): New declaration.
69432         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69433         REPLACE_FTELL.
69434
69435 2007-05-28  Eric Blake  <ebb9@byu.net>
69436
69437         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69438
69439 2007-05-28  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/fseek-tests: New file.
69442         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69443         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69444
69445         * lib/fseek.c: New file.
69446         * modules/fseek: New file.
69447         * m4/fseek.m4: New file.
69448         * doc/functions/fseek.texi: Update.
69449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69450         REPLACE_FSEEK.
69451         * lib/stdio_.h (rpl_fseek): New declaration.
69452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69453         REPLACE_FSEEK.
69454
69455 2007-05-28  Bruno Haible  <bruno@clisp.org>
69456
69457         * lib/stdio_.h (fflush): More comments.
69458
69459 2007-05-28  Bruno Haible  <bruno@clisp.org>
69460
69461         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69462         runtime test.
69463
69464 2007-05-28  Eric Blake  <ebb9@byu.net>
69465
69466         Improve lseek module.
69467         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69468         * lib/unistd_.h (lseek): Scale back link warning message.
69469         * tests/test-lseek.c: Beef up test.
69470         * tests/test-lseek.sh: Exercise more facets of lseek.
69471         Reported by Bruno Haible.
69472
69473 2007-05-28  Bruno Haible  <bruno@clisp.org>
69474
69475         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69476         to define.
69477
69478 2007-05-27  Bruno Haible  <bruno@clisp.org>
69479
69480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69481
69482 2007-05-27  Bruno Haible  <bruno@clisp.org>
69483
69484         * modules/openmp: New file.
69485         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69486         Noah Misch.
69487
69488 2007-05-26  Bruno Haible  <bruno@clisp.org>
69489
69490         * modules/chdir-long (Depends-on): Add fchdir.
69491         * modules/chdir-safer (Depends-on): Likewise.
69492         * modules/fts (Depends-on): Likewise.
69493         * modules/fts-lgpl (Depends-on): Likewise.
69494         * modules/openat (Depends-on): Likewise.
69495         * modules/savewd (Depends-on): Likewise.
69496
69497 2007-05-24  Eric Blake  <ebb9@byu.net>
69498
69499         Fix lseek on mingw.
69500         * modules/lseek: New module.
69501         * m4/lseek.m4: New file.
69502         * lib/lseek.c: New file.
69503         * modules/lseek-tests: New file.
69504         * tests/test-lseek.c: New file.
69505         * tests/test-lseek.sh: New file.
69506         * MODULES.html.sh: Document lseek module.
69507         * modules/fflush (Depends-on): Add lseek, fseeko.
69508         * modules/fseeko (Depends-on): Likewise.
69509         * modules/ftello (Depends-on): Likewise.
69510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69511         broken.
69512         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69513         broken.
69514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69515         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69516         * lib/ftello.c (rpl_ftello): Likewise.
69517         * tests/test-fseeko.c (main): Test this.
69518         * tests/test-fseeko.sh: Likewise.
69519         * tests/test-ftello.c (main): Likewise.
69520         * tests/test-ftello.sh: Likewise.
69521         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69522         implies replacing fseek.
69523         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69524         HAVE_FTELLO.
69525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69526         * modules/unistd (Makefile.am): Likewise.
69527         * lib/unistd_.h (lseek): Declare a replacement.
69528         * doc/functions/lseek.texi (lseek): Document this fix.
69529         * doc/functions/fseek.texi (fseek): Likewise.
69530         * doc/functions/ftell.texi (ftell): Likewise.
69531
69532 2007-05-24  Bruno Haible  <bruno@clisp.org>
69533
69534         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69535         in the printed representation of a NaN.
69536         * tests/test-vasprintf-posix.c (test_function): Likewise.
69537         * tests/test-snprintf-posix.h (test_function): Likewise.
69538         * tests/test-sprintf-posix.h (test_function): Likewise.
69539         Reported by Eric Blake.
69540
69541 2007-05-23  Eric Blake  <ebb9@byu.net>
69542
69543         Fix fseeko/ftello on cygwin 1.5.24.
69544         * doc/functions/fseeko.texi (fseeko): Document the fix.
69545         * doc/functions/ftello.texi (ftello): Document the fix.
69546         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69547         * doc/functions/stdout.text (stdout): New file.
69548         * doc/functions/stderr.text (stderr): New file.
69549         * doc/gnulib.texi (Function Substitutes): Use new files.
69550         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69551         prior to 1.7.0.
69552         * tests/test-ftello.c (main): Likewise for ftello.
69553         * tests/test-fseeko.sh: New file.
69554         * tests/test-ftello.sh: New file.
69555         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69556         with seekable stdin.
69557         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69559         (gl_REPLACE_FSEEKO): New macro.
69560         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69561         * modules/fseeko (Files): Distribute fseeko.c.
69562         * modules/ftello (Files): Distribute ftello.c.
69563         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69564         mode.
69565         * lib/ftello.c (rpl_ftello): New file.
69566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69567         fseeko, ftello.
69568         (gl_STDIN_LARGE_OFFSET): New macro.
69569         * modules/stdio (Makefile.am): Perform the replacement.
69570         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69571
69572 2007-05-23  Bruno Haible  <bruno@clisp.org>
69573
69574         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69575         GNULIB_POSIXCHECK is defined.
69576
69577 2007-05-21  Bruno Haible  <bruno@clisp.org>
69578
69579         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69580         Check also the output for NaN arguments. When cross-compiling, guess
69581         no on IRIX.
69582         * lib/vasnprintf.c: Update comments.
69583         * tests/test-vasnprintf-posix.c (strisnan): New function.
69584         (test_function): Use it.
69585         * tests/test-vasprintf-posix.c (strisnan): New function.
69586         (test_function): Use it.
69587         * tests/test-snprintf-posix.h (strisnan): New function.
69588         (test_function): Use it.
69589         * tests/test-sprintf-posix.h (strisnan): New function.
69590         (test_function): Use it.
69591         Reported by Eric Blake.
69592
69593 2007-05-20  Bruno Haible  <bruno@clisp.org>
69594
69595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69596         numbers that fails on BeOS.
69597         * doc/functions/frexpl.texi: Update.
69598
69599 2007-05-20  Jim Meyering  <jim@meyering.net>
69600
69601         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69602         forced upon us by glibc-2.6.
69603
69604 2007-05-20  Bruno Haible  <bruno@clisp.org>
69605
69606         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69607         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69608         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69609         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69610         NEED_PRINTF_INFINITE.
69611         (is_infinitel): New function.
69612         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69614         gl_PREREQ_VASNPRINTF_INFINITE.
69615         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69617         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69618         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69619         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69620         gl_PREREQ_VASNPRINTF_INFINITE.
69621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69628         * doc/functions/fprintf.texi: Update.
69629         * doc/functions/printf.texi: Update.
69630         * doc/functions/snprintf.texi: Update.
69631         * doc/functions/sprintf.texi: Update.
69632         * doc/functions/vfprintf.texi: Update.
69633         * doc/functions/vprintf.texi: Update.
69634         * doc/functions/vsnprintf.texi: Update.
69635         * doc/functions/vsprintf.texi: Update.
69636
69637 2007-05-20  Bruno Haible  <bruno@clisp.org>
69638
69639         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69640         was not found in libc.
69641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69642
69643 2007-05-20  Bruno Haible  <bruno@clisp.org>
69644
69645         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69646         printed as "-nan" instead of "nan".
69647         * tests/test-vasprintf-posix.c (test_function): Likewise.
69648         * tests/test-snprintf-posix.h (test_function): Likewise.
69649         * tests/test-sprintf-posix.h (test_function): Likewise.
69650         Needed for HP-UX 11.
69651
69652 2007-05-20  Jim Meyering  <jim@meyering.net>
69653
69654         Fix buggy test for the fchownat-deref bug.
69655         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69656         symlink required for the run-test.  Without it, this test would
69657         always declare that fchownat doesn't work, and client code would
69658         unnecessarily use the replacement function with fixed libc.
69659         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69660         Reported by Greg Schafer.
69661
69662 2007-05-19  Bruno Haible  <bruno@clisp.org>
69663
69664         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69665         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69666         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69667         Needed for IRIX 6.5 and Solaris 2.5.1.
69668
69669 2007-05-19  Bruno Haible  <bruno@clisp.org>
69670
69671         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69672         (test_function): Skip tests involving -0.0 on platforms where
69673         -0.0 = 0.0.
69674         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69675         (test_function): Skip tests involving -0.0 on platforms where
69676         -0.0 = 0.0.
69677         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69678         (test_function): Skip tests involving -0.0 on platforms where
69679         -0.0 = 0.0.
69680         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69681         (test_function): Skip tests involving -0.0 on platforms where
69682         -0.0 = 0.0.
69683         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69684         tests.
69685         * tests/test-printf-posix.h (test_function): Likewise.
69686         * tests/test-printf-posix.output: Remove all -0.0 related results.
69687         Needed for IRIX 6.5.
69688
69689 2007-05-19  Bruno Haible  <bruno@clisp.org>
69690
69691         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69692         printed as "nan0x7fffffff" instead of "nan".
69693         * tests/test-vasprintf-posix.c (test_function): Likewise.
69694         * tests/test-snprintf-posix.h (test_function): Likewise.
69695         * tests/test-sprintf-posix.h (test_function): Likewise.
69696         * tests/test-fprintf-posix.h (NaN): Remove macro.
69697         (test_function): Remove all NaN related tests.
69698         * tests/test-printf-posix.h (NaN): Remove macro.
69699         (test_function): Remove all NaN related tests.
69700         * tests/test-printf-posix.output: Remove all NaN related results.
69701         Needed for IRIX 6.5.
69702
69703 2007-05-19  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69707
69708 2007-05-19  Bruno Haible  <bruno@clisp.org>
69709
69710         * lib/float_.h: New file.
69711         * m4/float_h.m4: New file.
69712         * modules/float: New file.
69713         * modules/isnanl (Dependencies): Add float.
69714         * modules/isnanl-nolibm (Dependencies): Likewise.
69715         * modules/mathl (Dependencies): Likewise.
69716         * modules/printf-frexpl (Dependencies): Likewise.
69717         * modules/signbit (Dependencies): Likewise.
69718         * modules/vasnprintf (Dependencies): Likewise.
69719         * doc/headers/float.texi: Update.
69720
69721 2007-05-19  Jim Meyering  <jim@meyering.net>
69722
69723         * lib/utimens.c (gl_futimens): Rename from futimens,
69724         now that glibc-2.6 declares futimens.
69725         * lib/utimens.h: Likewise.
69726
69727 2007-05-19  Bruno Haible  <bruno@clisp.org>
69728
69729         Avoid test failures on mingw.
69730         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69731         * tests/test-printf-posix.sh: Likewise.
69732         * tests/test-vfprintf-posix.sh: Likewise.
69733         * tests/test-vprintf-posix.sh: Likewise.
69734
69735 2007-05-19  Bruno Haible  <bruno@clisp.org>
69736
69737         Fix *printf result for NaN, Inf, -0.0 on mingw.
69738         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69739         * lib/vasnprintf.c: Include math.h and isnan.h.
69740         (is_infinite_or_zero): New function.
69741         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69742         values in the %f, %F, %e, %E, %g, %G directives.
69743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69745         gl_PRINTF_INFINITE and test its result. Invoke
69746         gl_PREREQ_VASNPRINTF_INFINITE.
69747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69754         * doc/functions/fprintf.texi: Update.
69755         * doc/functions/printf.texi: Update.
69756         * doc/functions/snprintf.texi: Update.
69757         * doc/functions/sprintf.texi: Update.
69758         * doc/functions/vfprintf.texi: Update.
69759         * doc/functions/vprintf.texi: Update.
69760         * doc/functions/vsnprintf.texi: Update.
69761         * doc/functions/vsprintf.texi: Update.
69762
69763 2007-05-19  Bruno Haible  <bruno@clisp.org>
69764
69765         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69766         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69767         Instead of multiplying with 10^k, set extra_zeroes to k.
69768         (scale10_round_long_double): Remove function.
69769
69770 2007-05-18  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69773         introduced on 2007-05-06.
69774
69775 2007-05-18  Bruno Haible  <bruno@clisp.org>
69776
69777         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69778         %g directives.
69779         * tests/test-vasprintf-posix.c (test_function): Likewise.
69780         * tests/test-snprintf-posix.h (test_function): Likewise.
69781         * tests/test-sprintf-posix.h (test_function): Likewise.
69782
69783 2007-05-18  Bruno Haible  <bruno@clisp.org>
69784
69785         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69786         (strmatch): New function.
69787         (test_function): Test the %f directive on numbers of various exponents.
69788         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69789         (strmatch): New function.
69790         (test_function): Test the %f directive on numbers of various exponents.
69791         * tests/test-snprintf-posix.h (strmatch): New function.
69792         (test_function): Test the %f directive on numbers of various exponents.
69793         * tests/test-sprintf-posix.h (strmatch): New function.
69794         (test_function): Test the %f directive on numbers of various exponents.
69795         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69796         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69797         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69798         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69799
69800 2007-05-18  Bruno Haible  <bruno@clisp.org>
69801
69802         Add support for 'long double' number output.
69803         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69804         * lib/vasnprintf.c: Include math.h and float+.h.
69805         (mp_limb_t): New type.
69806         (GMP_LIMB_BITS): New macro.
69807         (mp_twolimb_t): New type.
69808         (GMP_TWOLIMB_BITS): New macro.
69809         (mpn_t): New type.
69810         (multiply, divide, convert_to_decimal, decode_long_double,
69811         scale10_round_long_double, scale10_round_decimal_long_double,
69812         floorlog10l): New functions.
69813         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69814         for the %f, %F, %e, %E, %g, %G directives.
69815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69817         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69826         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69827         * modules/snprintf-posix (Depends-on): Likewise.
69828         * modules/sprintf-posix (Depends-on): Likewise.
69829         * modules/vasnprintf-posix (Depends-on): Likewise.
69830         * modules/vasprintf-posix (Depends-on): Likewise.
69831         * modules/vfprintf-posix (Depends-on): Likewise.
69832         * modules/vsnprintf-posix (Depends-on): Likewise.
69833         * modules/vsprintf-posix (Depends-on): Likewise.
69834         * modules/vasnprintf (Files): Add lib/float+.h.
69835         * doc/functions/fprintf.texi: Update.
69836         * doc/functions/printf.texi: Update.
69837         * doc/functions/snprintf.texi: Update.
69838         * doc/functions/sprintf.texi: Update.
69839         * doc/functions/vfprintf.texi: Update.
69840         * doc/functions/vprintf.texi: Update.
69841         * doc/functions/vsnprintf.texi: Update.
69842         * doc/functions/vsprintf.texi: Update.
69843
69844 2007-05-18  Bruno Haible  <bruno@clisp.org>
69845
69846         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69847
69848 2007-05-18  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69851         for printing 64-bit integers. Needed for mingw.
69852
69853 2007-05-18  Bruno Haible  <bruno@clisp.org>
69854
69855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69856         gl_FUNC_FREXPL_WORKS.
69857         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69858
69859 2007-05-18  Bruno Haible  <bruno@clisp.org>
69860
69861         * modules/frexpl-nolibm-tests: New file.
69862
69863         * modules/frexpl-nolibm: New file.
69864         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69865
69866 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69869         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69870         GCC 4.2, which otherwise issues a lot of warnings.
69871         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69872         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69873         Likewise.
69874         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69875         * modules/iconv_open (iconv.h): Likewise.
69876         * modules/locale (locale.h): Likewise.
69877         * modules/netinet_in (netinet/in.h): Likewise.
69878         * modules/sys_select (sys_select.h): Likewise.
69879         * modules/sys_socket (sys/socket.h): Likewise.
69880         * modules/sys_stat (sys/stat.h): Likewise.
69881         * modules/sysexits (sysexits.h): Likewise.
69882         * modules/unistd (unistd.h): Likewise.
69883
69884 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69885
69886         * modules/closein-tests (Makefile.am): Distribute
69887         `test-closein.sh'.
69888
69889 2007-05-17  Bruno Haible  <bruno@clisp.org>
69890
69891         * tests/test-printf-posix.output: Renamed from
69892         tests/test-fprintf-posix.out.
69893         * modules/fprintf-posix-tests: Update.
69894         * modules/printf-posix-tests: Update.
69895         * modules/vfprintf-posix-tests: Update.
69896         * modules/vprintf-posix-tests: Update.
69897         * tests/test-fprintf-posix.sh: Update.
69898         * tests/test-printf-posix.sh: Update.
69899         * tests/test-vfprintf-posix.sh: Update.
69900         * tests/test-vprintf-posix.sh: Update.
69901         Reported by Ralf Wildenhues.
69902
69903 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69906         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69907         GCC 4.2, which otherwise issues a lot of warnings.
69908         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69909         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69910         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69911         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69912         it should no longer be needed.
69913         * lib/string_.h: Likewise.
69914         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69915         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69916         * modules/inttypes (inttypes.h): Likewise.
69917         * modules/math (math.h): Likewise.
69918         * modules/search (search.h): Likewise.
69919         * modules/signal (signal.h): Likewise.
69920         * modules/stdint (stdint.h): Likewise.
69921         * modules/stdio (stdio.h): Likewise.
69922         * modules/stdlib (stdlib.h): Likewise.
69923         * modules/string (string.h): Likewise.
69924         * modules/sys_time (sys/time.h): Likewise.
69925         * modules/time (time.h): Likewise.
69926         * modules/wchar (wchar.h): Likewise.
69927         * modules/wctype (wtype.h): Likewise.
69928
69929 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69930
69931         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69932
69933 2007-05-13  Bruno Haible  <bruno@clisp.org>
69934
69935         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69936         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69937         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69938         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69939         (gl_PREREQ_STRTOK_R): Don't require it here.
69940
69941 2007-05-13  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69944         when used in C++ mode.
69945
69946 2007-05-12  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/linebuffer.h: Tweak doc.
69949         * lib/linebuffer.c: Likewise.
69950
69951 2007-05-12  James Youngman  <jay@gnu.org>
69952
69953         * lib/linebuffer.c (readlinebuffer_delim): New function,
69954         like readlinebuffer, but use a caller-specified delimiter.
69955         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69956         as the delimiter.
69957         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69958
69959 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69960
69961         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69962         * modules/openat (Files): Remove openat-die.c.
69963         (Depends-on): Add openat-die.
69964         * modules/openat-die: New module.
69965
69966 2007-05-06  Bruno Haible  <bruno@clisp.org>
69967
69968         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69969         Update with info about Cygwin.
69970         * doc/functions/fprintf.texi: Update.
69971         * doc/functions/printf.texi: Update.
69972         * doc/functions/snprintf.texi: Update.
69973         * doc/functions/sprintf.texi: Update.
69974         * doc/functions/vfprintf.texi: Update.
69975         * doc/functions/vprintf.texi: Update.
69976         * doc/functions/vsnprintf.texi: Update.
69977         * doc/functions/vsprintf.texi: Update.
69978         Reported by Eric Blake.
69979
69980 2007-05-06  Bruno Haible  <bruno@clisp.org>
69981
69982         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69983         padding ourselves for the floating-point directives.
69984         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69987         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69988         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69996         * tests/test-snprintf-posix.h (test_function): Also check the width
69997         and some flags in the %f directive.
69998         * tests/test-sprintf-posix.h (test_function): Likewise.
69999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70000         * tests/test-vasprintf-posix.c (test_function): Likewise.
70001         * doc/functions/fprintf.texi: Update.
70002         * doc/functions/printf.texi: Update.
70003         * doc/functions/snprintf.texi: Update.
70004         * doc/functions/sprintf.texi: Update.
70005         * doc/functions/vfprintf.texi: Update.
70006         * doc/functions/vprintf.texi: Update.
70007         * doc/functions/vsnprintf.texi: Update.
70008         * doc/functions/vsprintf.texi: Update.
70009
70010 2007-05-06  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70013         pass the ' flag character to sprintf or snprintf.
70014         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70017         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70018         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70026         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70027         flag.
70028         * tests/test-sprintf-posix.h (test_function): Likewise.
70029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70030         * tests/test-vasprintf-posix.c (test_function): Likewise.
70031         * doc/functions/fprintf.texi: Update.
70032         * doc/functions/printf.texi: Update.
70033         * doc/functions/snprintf.texi: Update.
70034         * doc/functions/sprintf.texi: Update.
70035         * doc/functions/vfprintf.texi: Update.
70036         * doc/functions/vprintf.texi: Update.
70037         * doc/functions/vsnprintf.texi: Update.
70038         * doc/functions/vsprintf.texi: Update.
70039
70040 2007-05-01  Bruno Haible  <bruno@clisp.org>
70041
70042         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70043
70044 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70047         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70048
70049 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70052         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70054
70055 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70056
70057         * lib/argp-help.c (struct hol_entry): New member `ord'.
70058         (HOL_ENTRY_PTRCMP): Use ord for comparison
70059         (hol_sort): Initialize ord.
70060
70061 2007-05-01  Bruno Haible  <bruno@clisp.org>
70062
70063         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70064         Reported by Eric Blake.
70065         * doc/gnulib.texi (Function Substitutes): Update.
70066
70067 2007-05-01  Bruno Haible  <bruno@clisp.org>
70068
70069         * doc/functions.texi: Remove file, now redundant through
70070         doc/functions/*.texi.
70071
70072 2007-05-01  Bruno Haible  <bruno@clisp.org>
70073
70074         * modules/argp (Depends-on): Add sleep.
70075
70076 2007-05-01  Bruno Haible  <bruno@clisp.org>
70077
70078         * modules/sleep-tests: New file.
70079         * tests/test-sleep.c: New file.
70080
70081         * modules/sleep: New file.
70082         * lib/sleep.c: New file.
70083         * m4/sleep.m4: New file.
70084         * lib/unistd_.h (sleep): New declaration.
70085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70086         HAVE_SLEEP.
70087         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70088         * doc/functions/sleep.texi: Document the sleep module.
70089
70090 2007-05-01  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/sigprocmask.h: Remove file.
70093         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70094         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70095         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70096         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70097         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70098         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70099         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70100         HAVE_SIGSET_T as a shell variable.
70101         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70102         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70103         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70104         (Depends-on): Add signal. Remove verify.
70105         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70106         (Include): Mention <signal.h> instead of sigprocmask.h.
70107         * NEWS: Mention the change.
70108         * lib/fatal-signal.c: Don't include sigprocmask.h.
70109
70110 2007-05-01  Bruno Haible  <bruno@clisp.org>
70111
70112         * modules/signal: New file.
70113         * lib/signal_.h: New file.
70114         * m4/signal_h.m4: New file.
70115
70116 2007-05-01  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70119         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70120         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70121         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70122
70123 2007-05-01  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70126         configure time.
70127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70128         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70129         * modules/sys_stat (Makefile.am): Substitute their values into
70130         sys/stat.h.
70131
70132 2007-05-01  Bruno Haible  <bruno@clisp.org>
70133
70134         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70135         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70136         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70137
70138 2007-05-01  Bruno Haible  <bruno@clisp.org>
70139
70140         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70141         'assert' module here.
70142
70143 2007-05-01  Bruno Haible  <bruno@clisp.org>
70144
70145         * doc/functions/*.texi: New files.
70146         * doc/functions/google-ranking.txt: New file.
70147         * doc/gnulib.texi (Function Substitutes): New chapter.
70148         (ctime, inet_ntoa): Remove sections.
70149         * doc/ctime.texi: Remove file.
70150         * doc/inet_ntoa.texi: Remove file.
70151         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70152         dependencies.
70153         (%.info): New rule, specifying a --reference-limit.
70154
70155 2007-05-01  Bruno Haible  <bruno@clisp.org>
70156
70157         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70158
70159 2007-05-01  Bruno Haible  <bruno@clisp.org>
70160
70161         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70162         the portability of 'mkdir' to mingw systems.
70163
70164 2007-05-01  Bruno Haible  <bruno@clisp.org>
70165
70166         * doc/headers/google-ranking.txt: New file.
70167
70168 2007-04-30  Eric Blake  <ebb9@byu.net>
70169
70170         Prefer fseeko to fseek.
70171         * modules/getpass (Depends-on): Add fseeko.
70172         * lib/getpass.c (getpass): Use fseeko, not fseek.
70173
70174 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70175
70176         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70177         assumes the sorting is stable, while most qsort implementations
70178         are not.  Use argument addresses to ensure they never compare as
70179         equal.
70180
70181         * tests/test-argp-2.sh (usage-indent test): Fix output
70182         (func_compare): Restore diff options
70183         * tests/test-argp.c: Restore #include "progname.h"
70184
70185 2007-04-29  Bruno Haible  <bruno@clisp.org>
70186
70187         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70189         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70191         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70192         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70193         (TESTS, check_PROGRAMS): Add test-snprintf.
70194         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70195         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70196         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70197         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70198         assertions that fail on HP-UX, OSF/1, or IRIX.
70199         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70200
70201 2007-04-29  Bruno Haible  <bruno@clisp.org>
70202
70203         * MODULES.html.sh (posix_functions): Remove 'contents'.
70204
70205 2007-04-29  Karl Berry  <karl@gnu.org>
70206
70207         * config/srclist.txt (gendocs_template_min): new entry.
70208
70209 2007-04-29  Bruno Haible  <bruno@clisp.org>
70210
70211         Work around fpurge bug on BSD systems.
70212         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70214         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70215         fpurge to rpl_fpurge if the system already has this function.
70216         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70217         the case where the system already has this function. Correct invariants
70218         on BSD systems.
70219         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70220         BSD systems.
70221
70222 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70223
70224         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70225         proposed by Sven Verdoolaege.
70226
70227         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70228         options.
70229         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70230         (usage and help tests): Update
70231
70232 2007-04-29  Bruno Haible  <bruno@clisp.org>
70233
70234         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70235         Print more information in case of failure. Disable a test on BeOS.
70236
70237 2007-04-29  Bruno Haible  <bruno@clisp.org>
70238
70239         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70240         This helps debugging on systems on which no gdb is available.
70241
70242 2007-04-29  Bruno Haible  <bruno@clisp.org>
70243
70244         * lib/freading.h: Improve comments.
70245         * lib/fwriting.h: Likewise.
70246         * tests/test-freading.c (main): Don't check freading immediately after
70247         repositioning. Needed for glibc.
70248
70249 2007-04-29  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/freading.c (freading): Trivial simplification.
70252
70253 2007-04-28  Bruno Haible  <bruno@clisp.org>
70254
70255         * tests/test-fwriting.c (main): Also test the interaction between
70256         fflush and fwriting.
70257         * modules/fwriting-tests (Depends-on): Add fflush.
70258
70259         * tests/test-freading.c (main): Also test the interaction between
70260         fflush and freading.
70261         * modules/freading-tests (Depends-on): Add fflush.
70262
70263 2007-04-28  Bruno Haible  <bruno@clisp.org>
70264
70265         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70266         fseeko and ftello.
70267         Suggested by Eric Blake.
70268
70269 2007-04-28  Jim Meyering  <jim@meyering.net>
70270
70271         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70272         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70273         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70274
70275 2007-04-27  Eric Blake  <ebb9@byu.net>
70276
70277         * doc/headers/assert.texi (assert.h): Document assert module use.
70278
70279 2007-04-27  Bruno Haible  <bruno@clisp.org>
70280
70281         * doc/headers/*.texi: New files.
70282         * doc/gnulib.texi (Header File Substitutes): New chapter.
70283         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70284         dependencies.
70285         (standards.info ,standards.html, standards.dvi): Update dependencies.
70286         (mostlyclean, clean): New targets.
70287
70288 2007-04-27  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70291         * modules/sysexits (Files, Makefile.am): Update.
70292
70293         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70294         * modules/sys_socket (Files, Makefile.am): Update.
70295
70296         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70297         * modules/sys_stat (Files, Makefile.am): Update.
70298
70299 2007-04-27  Eric Blake  <ebb9@byu.net>
70300
70301         * lib/freading.h: Improve comments.
70302         * lib/fwriting.h: Likewise.
70303         * lib/fflush.c: Likewise.
70304
70305         Fix closein for mingw.
70306         * modules/closein-tests: Add tests for closein.
70307         * tests/test-closein.c: New file.
70308         * tests/test-closein.sh: Likewise.
70309         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70310         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70311
70312 2007-04-27  Bruno Haible  <bruno@clisp.org>
70313
70314         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70315         version is < 6.
70316         * lib/math_.h [__DECC]: Likewise.
70317         * lib/stdio_.h [__DECC]: Likewise.
70318         * lib/stdlib_.h [__DECC]: Likewise.
70319         * lib/string_.h [__DECC]: Likewise.
70320         * lib/time_.h [__DECC]: Likewise.
70321         * lib/wchar_.h [__DECC]: Likewise.
70322         * lib/wctype_.h [__DECC]: Likewise.
70323
70324 2007-04-27  Bruno Haible  <bruno@clisp.org>
70325
70326         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70327
70328 2007-04-27  Bruno Haible  <bruno@clisp.org>
70329
70330         * lib/fflush.c: Add comments.
70331         * modules/fpurge-tests (Depends-on): Add fflush.
70332         * modules/freadable-tests (Depends-on): Likewise.
70333         * modules/fwritable-tests (Depends-on): Likewise.
70334
70335 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70336
70337         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70338         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70339         Report by Bruno Haible <bruno@clisp.org>.
70340
70341 2007-04-26  Eric Blake  <ebb9@byu.net>
70342
70343         Fix fflush on mingw.
70344         * modules/fflush (Depends-on): Add freading.
70345         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70346         but unread data.
70347
70348 2007-04-26  Eric Blake  <ebb9@byu.net>
70349         and Bruno Haible  <bruno@clisp.org>
70350
70351         Implement freading and fwriting.
70352         * lib/freading.c: New file.
70353         * lib/freading.h: Likewise.
70354         * m4/freading.m4: Likewise.
70355         * modules/freading: Likewise.
70356         * modules/freading-tests: Likewise.
70357         * tests/test-freading.c: Likewise.
70358         * lib/fwriting.c: New file.
70359         * lib/fwriting.h: Likewise.
70360         * m4/fwriting.m4: Likewise.
70361         * modules/fwriting: Likewise.
70362         * modules/fwriting-tests: Likewise.
70363         * tests/test-fwriting.c: Likewise.
70364         * MODULES.html.sh (File stream based Input/Output): Mention them.
70365
70366 2007-04-26  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70369         'long' when we assume it.
70370         Suggested by Eric Blake.
70371
70372 2007-04-26  Bruno Haible  <bruno@clisp.org>
70373
70374         Ensure fseeko, ftello are declared on glibc systems.
70375         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70376         * modules/fseeko (configure.ac-early): Likewise.
70377         * modules/ftello (configure.ac-early): Likewise.
70378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70379         AC_FUNC_FSEEKO for this.
70380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70381         (gl_CHECK_FSEEKO): Remove macro.
70382
70383 2007-04-26  Bruno Haible  <bruno@clisp.org>
70384
70385         * tests/test-fflush.c (main): Also check the ftell result after
70386         fflush and fseek/fseeko.
70387         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70388         file descriptor position cache in the stream.
70389         * lib/fseeko.c (rpl_fseeko): Likewise.
70390
70391 2007-04-26  Bruno Haible  <bruno@clisp.org>
70392
70393         * modules/fflush-tests (Depends-on): Add fseeko.
70394
70395 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70397
70398         * lib/argz_.h: ensure error_t definition is obtained in same
70399         mechanism system argz.h would have.
70400         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70401         argz facilities are known bad.  Err on the side of caution if
70402         cross-compiling.
70403
70404 2007-04-25  Eric Blake  <ebb9@byu.net>
70405
70406         * lib/fpurge.c (includes): Use stdlib.h for free.
70407         * tests/test-fflush.c (main): Also test fflush-fseeko.
70408
70409 2007-04-25  Bruno Haible  <bruno@clisp.org>
70410
70411         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70412         * lib/fseeko.c: New file.
70413         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70414         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70415         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70416         gl_FUNC_FSEEKO.
70417         (gl_FUNC_FSEEKO): Invoke it.
70418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70419         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70420         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70421
70422 2007-04-25  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/fflush (Depends-on): Add ftello.
70425
70426 2007-04-25  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/ftello-tests: New file.
70429         * tests/test-ftello.c: New file.
70430
70431         * modules/ftello: New file.
70432         * m4/ftello.m4: New file.
70433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70434         HAVE_FTELLO.
70435         * lib/stdio_.h (ftello): New declaration.
70436         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70437         HAVE_FTELLO.
70438
70439 2007-04-25  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/fseeko-tests: New file.
70442         * tests/test-fseeko.c: New file.
70443
70444         * modules/fseeko: New file.
70445         * m4/fseeko.m4: New file.
70446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70447         HAVE_FSEEKO.
70448         * lib/stdio_.h (fseeko): New declaration.
70449         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70450         HAVE_FSEEKO.
70451
70452 2007-04-25  Bruno Haible  <bruno@clisp.org>
70453
70454         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70455
70456 2007-04-25  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70459         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70460         * tests/test-unistd.c: Likewise.
70461         * tests/test-fcntl.c: Likewise.
70462
70463 2007-04-23  Eric Blake  <ebb9@byu.net>
70464
70465         * lib/fflush.c: Fix missing include.
70466         Reported by Bruno Haible.
70467
70468 2007-04-23  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70471         Reported by Eric Blake.
70472
70473 2007-04-23  Bruno Haible  <bruno@clisp.org>
70474
70475         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70476
70477 2007-04-23  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70480
70481 2007-04-23  Bruno Haible  <bruno@clisp.org>
70482
70483         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70484         Needed on HP-UX 11.
70485
70486 2007-04-16  Eric Blake  <ebb9@byu.net>
70487
70488         Make fflush rely on fpurge.
70489         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70490         open coding all variants.
70491         * modules/fflush (Depends-on): Add fpurge and unistd.
70492         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70494
70495         Fix --with-tests compilation on cygwin.
70496         * modules/argmatch-tests (Makefile.am): List gnulib library first
70497         in LDADD.
70498         * modules/argp-tests (Makefile.am): Likewise.
70499         * modules/array-list-tests (Makefile.am): Likewise.
70500         * modules/array-oset-tests (Makefile.am): Likewise.
70501         * modules/avltree-list-tests (Makefile.am): Likewise.
70502         * modules/avltree-oset-tests (Makefile.am): Likewise.
70503         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70504         * modules/carray-list-tests (Makefile.am): Likewise.
70505         * modules/dirname-tests (Makefile.am): Likewise.
70506         * modules/frexp-tests (Makefile.am): Likewise.
70507         * modules/isnanl-tests (Makefile.am): Likewise.
70508         * modules/linked-list-tests (Makefile.am): Likewise.
70509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70510         * modules/lock-tests (Makefile.am): Likewise.
70511         * modules/rbtree-list-tests (Makefile.am): Likewise.
70512         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70514         * modules/tls-tests (Makefile.am): Likewise.
70515         * modules/tsearch-tests (Makefile.am): Likewise.
70516         * modules/xvasprintf-tests (Makefile.am): Likewise.
70517
70518         Fix fpurge for cygwin.
70519         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70520         value.
70521         * modules/fpurge-tests (Depends-on): Clean up trash.
70522
70523 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70524
70525         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70526
70527         * m4/autobuild.m4: Re-indent.
70528
70529 2007-04-13  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/fpurge-tests: New file.
70532         * tests/test-fpurge.c: New file.
70533
70534         * modules/fpurge: New file.
70535         * lib/fpurge.h: New file.
70536         * lib/fpurge.c: New file.
70537         * m4/fpurge.m4: New file.
70538
70539 2007-04-13  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/fbufmode-tests: New file.
70542         * tests/test-fbufmode.c: New file.
70543
70544         * modules/fbufmode: New file.
70545         * lib/fbufmode.h: New file.
70546         * lib/fbufmode.c: New file.
70547         * m4/fbufmode.m4: New file.
70548
70549 2007-04-13  Bruno Haible  <bruno@clisp.org>
70550
70551         * modules/fwritable-tests: New file.
70552         * tests/test-fwritable.c: New file.
70553
70554         * modules/fwritable: New file.
70555         * lib/fwritable.h: New file.
70556         * lib/fwritable.c: New file.
70557         * m4/fwritable.m4: New file.
70558
70559 2007-04-13  Bruno Haible  <bruno@clisp.org>
70560
70561         * modules/freadable-tests: New file.
70562         * tests/test-freadable.c: New file.
70563
70564         * modules/freadable: New file.
70565         * lib/freadable.h: New file.
70566         * lib/freadable.c: New file.
70567         * m4/freadable.m4: New file.
70568
70569 2007-04-13  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70572         MOSTLYCLEANFILES.
70573
70574 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70577         gzip bootstrap.conf to avoid dragging in i18n machinery.
70578         (gnulib_tool_option): Use it.
70579
70580 2007-04-13  Bruno Haible  <bruno@clisp.org>
70581
70582         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70583         %F directives.
70584         * tests/test-vasprintf-posix.c (test_function): Likewise.
70585         * tests/test-snprintf-posix.h (test_function): Likewise.
70586         * tests/test-sprintf-posix.h (test_function): Likewise.
70587         * tests/test-fprintf-posix.h (test_function): Likewise.
70588         * tests/test-printf-posix.h (test_function): Likewise.
70589         * tests/test-fprintf-posix.out: Likewise.
70590
70591 2007-04-13  Bruno Haible  <bruno@clisp.org>
70592
70593         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70594         * modules/tls-tests (configure.ac): Likewise.
70595         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70596
70597 2007-04-13  Bruno Haible  <bruno@clisp.org>
70598
70599         * lib/tls.c (glthread_tls_get): Fix return type.
70600         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70601
70602 2007-04-12  Eric Blake  <ebb9@byu.net>
70603
70604         * modules/gettime (Depends-on): Remove gettime.
70605         Reported by Dmitry V. Levin.
70606
70607 2007-04-12  Bruno Haible  <bruno@clisp.org>
70608
70609         * modules/fflush (Include): Mention <stdio.h>.
70610         * modules/strtoimax (Include): Mention <inttypes.h>.
70611         * modules/strtoumax (Include): Likewise.
70612
70613 2007-04-12  Eric Blake  <ebb9@byu.net>
70614
70615         * .cvsignore: New file.
70616         * .gitignore: Likewise.
70617
70618 2007-04-12  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70621         not before, since $(LDADD) often contains libgnu.a.
70622         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70623         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70624         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70625         Needed on Cygwin.
70626
70627 2007-04-12  Eric Blake  <ebb9@byu.net>
70628
70629         Work around glibc's failure to flush stdin on fclose.
70630         * lib/closein.c (close_stdin): Flush stdin before closing.
70631
70632         Work around glibc's failure to reset seekable stdin on exit.
70633         * modules/closein: New module.
70634         * lib/closein.c: New file.
70635         * lib/closein.h: Likewise.
70636         * m4/closein.m4: Likewise.
70637         * MODULES.html.sh (File stream based Input/Output): Document it.
70638
70639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70640
70641         * gnulib-tool: Rename generated 'autobuild' script to
70642         'do-autobuild' in --create-megatestdir output.
70643
70644         * doc/gnulib.texi (Build robot for gnulib): Fix.
70645
70646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70647
70648         * modules/sysexits (Depends-on): Add absolute-header.
70649
70650 2007-04-12  Eric Blake  <ebb9@byu.net>
70651
70652         No need to preserve errno on success.
70653         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70654         Reported by Bruno Haible.
70655
70656 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70657
70658         * MODULES.html.sh (Support for maintaining and releasing
70659         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70660
70661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70662
70663         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70664
70665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70666
70667         * modules/autobuild: New module.
70668
70669         * m4/autobuild.m4: New file.
70670
70671 2007-04-11  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70674         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70701         Reported by Eric Blake.
70702
70703 2007-04-11  Bruno Haible  <bruno@clisp.org>
70704
70705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70706
70707 2007-04-10  Bruno Haible  <bruno@clisp.org>
70708
70709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70710         for NaN and Infinity. Needed on FreeBSD 6.1.
70711         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70712         regarding results for "%010a" of Infinity and NaN.
70713         * tests/test-vasprintf-posix.c (test_function): Likewise.
70714         * tests/test-snprintf-posix.h (test_function): Likewise.
70715         * tests/test-sprintf-posix.h (test_function): Likewise.
70716         * tests/test-fprintf-posix.h (test_function): Likewise.
70717         * tests/test-printf-posix.h (test_function): Likewise.
70718         * tests/test-fprintf-posix.out: Likewise.
70719
70720 2007-04-10  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/locale-tests: New file.
70723         * tests/test-locale.c: New file.
70724
70725         * modules/locale: New file.
70726         * lib/locale_.h: New file.
70727         * m4/locale_h.m4: New file.
70728
70729 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70730             Bruno Haible  <bruno@clisp.org>
70731
70732         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70733         be determined, test for availability of the copysignf, copysign,
70734         copysignl functions.
70735         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70736         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70737         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70738
70739 2007-04-09  Eric Blake  <ebb9@byu.net>
70740
70741         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70742         * modules/stdio (Makefile.am): Support fflush.
70743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70744         * modules/fflush: New file.
70745         * lib/fflush.c: Likewise.
70746         * m4/fflush.m4: Likewise.
70747         * modules/fflush-tests: New test.
70748         * tests/test-fflush.c: Likewise.
70749         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70750
70751 2007-04-06  Bruno Haible  <bruno@clisp.org>
70752
70753         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70754         (VASNPRINTF): Use signbit for faster determination whether to print a
70755         minus sign.
70756         * modules/vasnprintf (Files): Remove lib/float+.h.
70757         * modules/fprintf-posix (Depends-on): Add signbit.
70758         * modules/snprintf-posix (Depends-on): Likewise.
70759         * modules/sprintf-posix (Depends-on): Likewise.
70760         * modules/vasnprintf-posix (Depends-on): Likewise.
70761         * modules/vasprintf-posix (Depends-on): Likewise.
70762         * modules/vfprintf-posix (Depends-on): Likewise.
70763         * modules/vsnprintf-posix (Depends-on): Likewise.
70764         * modules/vsprintf-posix (Depends-on): Likewise.
70765
70766 2007-04-06  Bruno Haible  <bruno@clisp.org>
70767
70768         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70769         * tests/test-frexpl.c (main): Likewise.
70770         * tests/test-ldexpl.c (main): Likewise.
70771         * modules/frexp-tests (Depends-on): Add signbit.
70772         * modules/frexpl-tests (Depdends-on): Likewise.
70773         * modules/ldexpl-tests (Depdends-on): Likewise.
70774
70775 2007-04-06  Bruno Haible  <bruno@clisp.org>
70776
70777         * modules/signbit-tests: New file.
70778         * tests/test-signbit.c: New file.
70779
70780         * modules/signbit: New file.
70781         * lib/signbitf.c: New file.
70782         * lib/signbitd.c: New file.
70783         * lib/signbitl.c: New file.
70784         * m4/signbit.m4: New file.
70785         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70786         (signbit): New macro.
70787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70788         REPLACE_SIGNBIT.
70789         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70790         REPLACE_FREXPL into math.h.
70791
70792 2007-04-06  Bruno Haible  <bruno@clisp.org>
70793
70794         * modules/isnanf-nolibm-tests: New file.
70795         * tests/test-isnanf.c: New file.
70796
70797         * modules/isnanf-nolibm: New file.
70798         * lib/isnanf.h: New file.
70799         * lib/isnanf.c: New file.
70800         * lib/isnan.c: Consider the USE_FLOAT macro.
70801         * m4/isnanf.m4: New file.
70802
70803 2007-04-06  Bruno Haible  <bruno@clisp.org>
70804
70805         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70806         (Link): New section.
70807
70808         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70809
70810 2007-04-06  Bruno Haible  <bruno@clisp.org>
70811
70812         Assume the 'long double' type.
70813         * m4/longdouble.m4: Remove file.
70814         * config/srclist.txt: Don't mention longdouble.m4.
70815         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70816         * lib/float+.h: Likewise.
70817         * lib/frexp.c: Likewise.
70818         * lib/printf-args.h: Likewise.
70819         * lib/printf-args.c: Likewise.
70820         * lib/printf-frexp.c: Likewise.
70821         * lib/printf-parse.c: Likewise.
70822         * lib/vasnprintf.c: Likewise.
70823         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70824         * m4/intl.m4: Likewise.
70825         * m4/isnanl.m4: Likewise.
70826         * m4/printf.m4: Likewise.
70827         * m4/printf-frexpl.m4: Likewise.
70828         * m4/vasnprintf.m4: Likewise.
70829         * modules/allocsa (Files): Remove m4/longdouble.m4.
70830         * modules/gettext (Files): Likewise.
70831         * modules/relocatable-prog-wrapper (Files): Likewise.
70832         * modules/vasnprintf (Files): Likewise.
70833         * modules/isnanl (Files): Likewise.
70834         (Include): Simplify.
70835         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70836         (Include): Simplify.
70837         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70838         (Include): Simplify.
70839         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70841         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70843         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70844         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70845         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70846         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70847         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70848         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70849         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70850         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70851         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70852         * tests/test-isnanl.c: Likewise.
70853         * tests/test-snprintf-posix.h: Likewise.
70854         * tests/test-sprintf-posix.h: Likewise.
70855         * tests/test-vasnprintf-posix.c: Likewise.
70856         * tests/test-vasnprintf-posix2.c: Likewise.
70857         * tests/test-vasprintf-posix.c: Likewise.
70858
70859 2007-04-06  Bruno Haible  <bruno@clisp.org>
70860
70861         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70862         * lib/math_.h [__DECC]: Include the overridden include file through
70863         #include_next, outside the double-inclusion guard.
70864         * lib/stdio_.h [__DECC]: Likewise.
70865         * lib/stdlib_.h [__DECC]: Likewise.
70866         * lib/string_.h [__DECC]: Likewise.
70867         * lib/time_.h [__DECC]: Likewise.
70868         * lib/wchar_.h [__DECC]: Likewise.
70869         * lib/wctype_.h [__DECC]: Likewise.
70870         * lib/inttypes_.h [__DECC]: Likewise.
70871         Reported by Albert Chin <china@thewrittenword.com> in
70872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70873
70874 2007-04-04  Eric Blake  <ebb9@byu.net>
70875
70876         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70877         1.5.x.
70878
70879 2007-04-04  Bruno Haible  <bruno@clisp.org>
70880
70881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70882         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70883
70884 2007-04-04  Bruno Haible  <bruno@clisp.org>
70885
70886         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70887         results for "%010a" of Infinity and NaN.
70888         * tests/test-vasprintf-posix.c (test_function): Likewise.
70889         * tests/test-snprintf-posix.h (test_function): Likewise.
70890         * tests/test-sprintf-posix.h (test_function): Likewise.
70891         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70892         * tests/test-printf-posix.h (test_function): Likewise.
70893         * tests/test-fprintf-posix.out: Update.
70894         Needed for FreeBSD 6.1.
70895
70896 2007-04-04  Bruno Haible  <bruno@clisp.org>
70897
70898         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70899         directly used by the gnulib modules nor by gnulib-tool.
70900
70901 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         * DEPENDENCIES: Give overall description of version dependency
70904         desirability.  Use more-typical names for apps.
70905         Add shell, coreutils, diffutils, grep, tar, gzip.
70906
70907 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70908
70909         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70910
70911 2007-04-04  Karl Berry  <karl@gnu.org>
70912
70913         * MODULES.html.sh (func_module): missing '.
70914
70915 2007-04-03  Bruno Haible  <bruno@clisp.org>
70916
70917         * modules/argmatch-tests (Makefile.am): New variable
70918         test_argmatch_LDADD.
70919         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70920         * modules/array-list-tests (Makefile.am): New variable
70921         test_array_list_LDADD.
70922         * modules/array-oset-tests (Makefile.am): New variable
70923         test_array_oset_LDADD.
70924         * modules/avltree-list-tests (Makefile.am): New variable
70925         test_avltree_list_LDADD.
70926         * modules/avltree-oset-tests (Makefile.am): New variable
70927         test_avltree_oset_LDADD.
70928         * modules/avltreehash-list-tests (Makefile.am): New variable
70929         test_avltreehash_list_LDADD.
70930         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70931         test_canonicalize_lgpl_LDADD.
70932         * modules/carray-list-tests (Makefile.am): New variable
70933         test_carray_list_LDADD.
70934         * modules/dirname-tests (Makefile.am): New variable
70935         test_dirname_LDADD.
70936         * modules/linked-list-tests (Makefile.am): New variable
70937         test_linked_list_LDADD.
70938         * modules/linkedhash-list-tests (Makefile.am): New variable
70939         test_linkedhash_list_LDADD.
70940         * modules/rbtree-list-tests (Makefile.am): New variable
70941         test_rbtree_list_LDADD.
70942         * modules/rbtree-oset-tests (Makefile.am): New variable
70943         test_rbtree_oset_LDADD.
70944         * modules/rbtreehash-list-tests (Makefile.am): New variable
70945         test_rbtreehash_list_LDADD.
70946         * modules/xvasprintf-tests (Makefile.am): New variable
70947         test_xvasprintf_LDADD.
70948         Reported by Eric Blake.
70949
70950 2007-04-03  Eric Blake  <ebb9@byu.net>
70951
70952         * DEPENDENCIES: Weaken m4 requirements.
70953
70954 2007-04-03  Bruno Haible  <bruno@clisp.org>
70955
70956         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70957         * modules/isnanl-tests (configure.ac): Likewise.
70958
70959 2007-04-03  Ben Pfaff  <blp@gnu.org>
70960
70961         * modules/iconv_open: Add $(srcdir)/ to source directory
70962         references in Makefile fragments that call gperf, to fix VPATH
70963         builds.
70964
70965 2007-04-03  Bruno Haible  <bruno@clisp.org>
70966
70967         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70968         * lib/ldexpl.c: Undo last change.
70969
70970 2007-04-03  Bruno Haible  <bruno@clisp.org>
70971
70972         * modules/printf-frexpl (Depends-on): Undo last change.
70973         (Files): Add m4/ldexpl.m4.
70974
70975 2007-04-03  Bruno Haible  <bruno@clisp.org>
70976
70977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70978         * modules/isnanl (Link): New section.
70979
70980         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70981         * modules/frexp (Link): New section.
70982
70983         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70984         * modules/frexpl (Link): New section.
70985
70986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70987         * modules/ldexpl (Link): New section.
70988
70989 2007-04-03  Bruno Haible  <bruno@clisp.org>
70990
70991         * modules/TEMPLATE-EXTENDED: New file.
70992         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70993
70994 2007-04-03  Bruno Haible  <bruno@clisp.org>
70995
70996         * DEPENDENCIES: New file.
70997         Suggested by Simon Josefsson.
70998
70999 2007-04-03  Bruno Haible  <bruno@clisp.org>
71000
71001         * doc/gnulib.texi: Escape @.
71002
71003 2007-04-03  James Youngman  <jay@gnu.org>
71004         and Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71007         birthtime on all systems that have birthtime, not just those which
71008         use st_birthtimensec rather than st_birthtim.  Putting zero in
71009         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71010         that the birth time is not available for files on an NFS mount.
71011
71012 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71013
71014         * modules/memxor: Move back from crypto/, suggested by Bruno.
71015         * modules/crypto/hmac-sha1: Fix memxor dependency.
71016
71017         * modules/crypto/gc: Moved from ../.
71018
71019 2007-04-02  Eric Blake  <ebb9@byu.net>
71020
71021         * lib/ldexpl.c (includes): Avoid libm.
71022
71023         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71024
71025 2007-04-02  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71028         on IRIX.
71029
71030 2007-04-02  Bruno Haible  <bruno@clisp.org>
71031
71032         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71033         x86 or x86_64 platforms running MacOS X.
71034         Reported by Ryan Schmidt <@ryandesign.com>.
71035
71036 2007-04-02  Bruno Haible  <bruno@clisp.org>
71037
71038         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71039         i386.
71040
71041 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71042
71043         * modules/crypto/arcfour: Moved from ../.
71044         * modules/crypto/arcfour-tests: Moved from ../.
71045         * modules/crypto/arctwo: Moved from ../.
71046         * modules/crypto/arctwo-tests: Moved from ../.
71047         * modules/crypto/des: Moved from ../.
71048         * modules/crypto/des-tests: Moved from ../.
71049         * modules/crypto/gc-arcfour: Moved from ../.
71050         * modules/crypto/gc-arcfour-tests: Moved from ../.
71051         * modules/crypto/gc-arctwo: Moved from ../.
71052         * modules/crypto/gc-arctwo-tests: Moved from ../.
71053         * modules/crypto/gc-des: Moved from ../.
71054         * modules/crypto/gc-des-tests: Moved from ../.
71055         * modules/crypto/gc-hmac-md5: Moved from ../.
71056         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71057         * modules/crypto/gc-hmac-sha1: Moved from ../.
71058         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71059         * modules/crypto/gc-md2: Moved from ../.
71060         * modules/crypto/gc-md2-tests: Moved from ../.
71061         * modules/crypto/gc-md4: Moved from ../.
71062         * modules/crypto/gc-md4-tests: Moved from ../.
71063         * modules/crypto/gc-md5: Moved from ../.
71064         * modules/crypto/gc-md5-tests: Moved from ../.
71065         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71066         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71067         * modules/crypto/gc-random: Moved from ../.
71068         * modules/crypto/gc-rijndael: Moved from ../.
71069         * modules/crypto/gc-rijndael-tests: Moved from ../.
71070         * modules/crypto/gc-sha1: Moved from ../.
71071         * modules/crypto/gc-sha1-tests: Moved from ../.
71072         * modules/crypto/gc-tests: Moved from ../.
71073         * modules/crypto/hmac-md5: Moved from ../.
71074         * modules/crypto/hmac-md5-tests: Moved from ../.
71075         * modules/crypto/hmac-sha1: Moved from ../.
71076         * modules/crypto/hmac-sha1-tests: Moved from ../.
71077         * modules/crypto/md2: Moved from ../.
71078         * modules/crypto/md2-tests: Moved from ../.
71079         * modules/crypto/md4: Moved from ../.
71080         * modules/crypto/md4-tests: Moved from ../.
71081         * modules/crypto/md5: Moved from ../.
71082         * modules/crypto/md5-tests: Moved from ../.
71083         * modules/crypto/memxor: Moved from ../.
71084         * modules/crypto/rijndael: Moved from ../.
71085         * modules/crypto/rijndael-tests: Moved from ../.
71086         * modules/crypto/sha1: Moved from ../.
71087
71088 2007-03-30  James Youngman  <jay@gnu.org>
71089
71090         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71091         rename() to change the ctime of a file (because ctime is unaffected
71092         by rename on jfs2 on AIX 5.1).
71093         (main): Start by doing cleanup, in case a previous run failed leaving
71094         test files behind.
71095
71096 2007-03-31  Bruno Haible  <bruno@clisp.org>
71097
71098         Support old proprietary implementations of iconv.
71099         * modules/iconv_open: New file.
71100         * lib/iconv_.h: New file.
71101         * m4/iconv_h.m4: New file.
71102         * lib/iconv_open.c: New file.
71103         * lib/iconv_open-aix.gperf: New file.
71104         * lib/iconv_open-hpux.gperf: New file.
71105         * lib/iconv_open-irix.gperf: New file.
71106         * lib/iconv_open-osf.gperf: New file.
71107         * m4/iconv_open.m4: New file.
71108         * modules/linebreak (Depends-on): Add iconv_open.
71109         * modules/striconv (Depends-on): Likewise.
71110         * modules/striconveh (Depends-on): Likewise.
71111         * modules/unicodeio (Depends-on): Likewise.
71112         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71113         (iconv_t)(-1).
71114         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71115         conversion if cd is (iconv_t)(-1).
71116         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71117         is not possible.
71118
71119 2007-03-31  Bruno Haible  <bruno@clisp.org>
71120
71121         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71122         work on Solaris either. Protect also second use of "autodetect_jp".
71123
71124 2007-03-31  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71127         the function is not present.
71128
71129 2007-03-31  Bruno Haible  <bruno@clisp.org>
71130
71131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71132         the function is not present.
71133
71134 2007-03-31  Bruno Haible  <bruno@clisp.org>
71135
71136         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71137         a bug in HP-UX iconv_open().
71138
71139 2007-03-31  Bruno Haible  <bruno@clisp.org>
71140
71141         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71142         (Mathematics <math.h>): New section, add fpieee.
71143         (Input/output <stdio.h>): Add fseterr.
71144         (Mathematics <math.h>): New section, add printf-frexp.
71145         (Container data structures): Add sublist.
71146         (Core language properties): Add fpucw, inline.
71147         (Functions for greatest-width integer types <inttypes.h>): Add
71148         imaxabs, imaxdiv, inttypes.
71149         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71150         isnanl-nolibm, ldexp.
71151         (Mathematics <math.h>): New section, add printf-frexpl.
71152         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71153         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71154         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71155         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71156         (Unicode string functions): Add unistr/u*-mbtoucr.
71157         (Java): Add javacomp-script, javaexec-script.
71158         (C#): Add csharpcomp-script, csharpexec-script.
71159         (Support for building libraries and executables): Add havelib,
71160         relocatable-*.
71161         (Support for maintaining and releasing projects): Renamed from
71162         'Support for maintaining and release projects'. Add announce-gen.
71163
71164 2007-03-31  Bruno Haible  <bruno@clisp.org>
71165
71166         * README: Talk primarily about git.
71167         (git and CVS): Renamed from CVS.
71168         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71169         gnulib is available through git.
71170         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71171
71172 2007-03-30  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71175         * lib/poll_.h: Likewise.
71176         * lib/stat_.h: Likewise.
71177         * lib/sys_time_.h: Likewise.
71178         * lib/sysexit_.h: Likewise.
71179         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71180         * lib/stdbool_.h: Likewise.
71181         * lib/byteswap_.h: Add double-inclusion guard.
71182
71183 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71184
71185         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71186
71187 2007-03-30  Karl Berry  <karl@gnu.org>
71188
71189         * config/srclist-update: double space after USA in the license
71190         substitution, since that's how it's usually (?) written.
71191
71192 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71193
71194         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71195         reported by Bruno Haible.
71196
71197 2007-03-29  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71200         a bug in AIX iconv().
71201
71202 2007-03-29  Bruno Haible  <bruno@clisp.org>
71203
71204         * modules/ldexpl-tests: New file.
71205         * tests/test-ldexpl.c: New file.
71206
71207 2007-03-29  Bruno Haible  <bruno@clisp.org>
71208
71209         * lib/ldexpl.c: Include fpucw.h.
71210         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71211         multiplication.
71212         * modules/ldexpl (Depends-on): Add fpucw.
71213
71214 2007-03-29  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/ldexpl: New file.
71217         * m4/ldexpl.m4: New file.
71218         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71219         set.
71220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71221         REPLACE_LDEXPL.
71222         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71223         REPLACE_LDEXPL.
71224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71225         gl_FUNC_LDEXPL_WORKS.
71226         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71227         * modules/mathl (Files): Remove lib/ldexpl.c.
71228         (Depends-on): Add ldexpl.
71229
71230 2007-03-29  Bruno Haible  <bruno@clisp.org>
71231
71232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71233
71234 2007-03-29  Bruno Haible  <bruno@clisp.org>
71235
71236         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71237         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71238         and possibly also HP-UX.
71239         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71240         work on AIX, IRIX, HP-UX, OSF/1.
71241         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71242         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71243         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71244         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71245         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71246         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71247
71248 2007-03-29  Bruno Haible  <bruno@clisp.org>
71249
71250         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71251
71252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71253
71254         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71255         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71256
71257 2007-03-29  Eric Blake  <ebb9@byu.net>
71258
71259         * lib/acl-internal.h: Remove redundant include.
71260         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71261         Cygwin when a file is locked.
71262
71263 2007-03-29  Bruno Haible  <bruno@clisp.org>
71264
71265         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71266         file.
71267         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71268
71269 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71270
71271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71272         try to remove a parent directory if the child couldn't be removed
71273         (except for the first rmdir, which could fail because the child
71274         doesn't exist).  Problem reported by Jeff Blaine in
71275         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71276
71277 2007-03-28  Bruno Haible  <bruno@clisp.org>
71278
71279         * lib/striconveh.c (utf8conv_carefully): New function.
71280         (mem_cd_iconveh_internal): Invoke it.
71281
71282 2007-03-28  Bruno Haible  <bruno@clisp.org>
71283
71284         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71285         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71286         input.
71287         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71288         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71289         unistr/u8-uctomb.
71290
71291 2007-03-28  Bruno Haible  <bruno@clisp.org>
71292
71293         * modules/unistr/u8-mbtoucr: New file.
71294         * lib/unistr/u8-mbtoucr.c: New file.
71295         * modules/unistr/u16-mbtoucr: New file.
71296         * lib/unistr/u16-mbtoucr.c: New file.
71297         * modules/unistr/u16-mbtoucr: New file.
71298         * lib/unistr/u16-mbtoucr.c: New file.
71299         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71300
71301 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71302             Bruno Haible  <bruno@clisp.org>
71303
71304         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71305         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71306         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71307
71308         * m4/stdio_h.m4: Add stubs for vasprintf too.
71309
71310         * modules/stdio: Support vasprintf in sed command.
71311
71312         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71313         vasprintf.h.  Add stdio module indicator.
71314
71315         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71316         vasprintf.h.
71317
71318         * lib/vasprintf.h: File removed.
71319
71320         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71321         * lib/vasprintf.c: Ditto.
71322         * lib/xvasprintf.c: Ditto.
71323         * tests/test-vasprintf-posix.c: Ditto.
71324         * tests/test-vasprintf.c: Ditto.
71325
71326 2007-03-27  Bruno Haible  <bruno@clisp.org>
71327
71328         Make vasnprintf multithread-safe.
71329         * lib/vasnprintf.c (decimal_point_char): New function.
71330         (VASNPRINTF): Use it.
71331         Suggested by Simon Josefsson.
71332
71333 2007-03-27  Eric Blake  <ebb9@byu.net>
71334
71335         Support sub-second birthtime on cygwin.
71336         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71337         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71338         (get_stat_birthtime): Also work with st_birthtim.
71339
71340 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71341
71342         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71343         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71344         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71345         (get_stat_birthtime_ns): Simplify compile-time tests.
71346         (get_stat_birthtime): Change the API to look like
71347         get_stat_mtime etc., except return a negative tv_nsec on error.
71348         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71349         Don't check for "spare" fields.
71350         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71351         or for struct stat.st_birthtime, as these tests aren't used.
71352         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71353
71354 2007-03-27  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/stat-time.h: Include <sys/stat.h>.
71357
71358 2007-03-27  James Youngman  <jay@gnu.org>
71359
71360         * lib/stat-time.h (get_stat_birthtime): New function for
71361           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71362         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71363           and its variants.
71364         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71365         * modules/stat-time-test: New file.
71366         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71367
71368 2007-03-26  Bruno Haible  <bruno@clisp.org>
71369
71370         Better support of signalling NaNs.
71371         * lib/atanl.c: Include isnanl.h.
71372         (atanl): Perform test for NaN at the beginning of the function and
71373         through a call to isnanl.
71374         * lib/cosl.c: Include isnanl.h.
71375         (cosl): Perform test for NaN at the beginning of the function and
71376         through a call to isnanl.
71377         * lib/ldexpl.c: Include isnanl.h.
71378         (ldexpl): Perform test for NaN through a call to isnanl.
71379         * lib/logl.c: Include isnanl.h.
71380         (logl): Perform test for NaN at the beginning of the function and
71381         through a call to isnanl.
71382         * lib/sinl.c: Include isnanl.h.
71383         (sinl): Perform test for NaN at the beginning of the function and
71384         through a call to isnanl.
71385         * lib/sqrtl.c: Include isnanl.h.
71386         (sqrtl): Perform test for NaN at the beginning of the function and
71387         through a call to isnanl.
71388         * lib/tanl.c: Include isnanl.h.
71389         (tanl): Perform test for NaN at the beginning of the function and
71390         through a call to isnanl.
71391         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71392         * modules/mathl (Depends-on): Add isnanl.
71393
71394 2007-03-26  Eric Blake  <ebb9@byu.net>
71395
71396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71397         regression in logic sense of previous patch.
71398
71399 2007-03-26  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71402         unportable shell command "if ! ...".
71403         Reported by Ralf Wildenhues.
71404
71405 2007-03-25  Bruno Haible  <bruno@clisp.org>
71406
71407         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71408         <sysexits.h> file, and only add EX_CONFIG.
71409         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71410         absolute file name and whether it is sufficient. Substitute also
71411         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71412         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71413         ABSOLUTE_SYSEXITS_H into sysexits.h.
71414
71415 2007-03-25  Bruno Haible  <bruno@clisp.org>
71416
71417         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71418         hints is NULL.
71419
71420 2007-03-25  Bruno Haible  <bruno@clisp.org>
71421
71422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71423         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71424
71425 2007-03-25  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/vasnprintf.c: Include langinfo.h.
71428         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71429         multithread-safe.
71430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71439         Reported by Simon Josefsson.
71440
71441 2007-03-25  Bruno Haible  <bruno@clisp.org>
71442
71443         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71444         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71445         * modules/vasnprintf (Depends-on): Add stdint.
71446
71447 2007-03-25  Bruno Haible  <bruno@clisp.org>
71448
71449         * modules/fpieee: New file.
71450         * m4/fpieee.m4: New file.
71451         * modules/isnan-nolibm (Depends-on): Add fpieee.
71452         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71453         * modules/isnanl (Depends-on): Add fpieee.
71454
71455 2007-03-25  Bruno Haible  <bruno@clisp.org>
71456
71457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71458
71459 2007-03-25  Bruno Haible  <bruno@clisp.org>
71460
71461         Avoid test failures on IRIX 6.5.
71462         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71463         (main): Use it.
71464         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71465         macros.
71466         (main): Use them.
71467
71468 2007-03-25  Bruno Haible  <bruno@clisp.org>
71469
71470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71471         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71472         exists but doesn't work.
71473         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71474         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71476         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71477         math.h.
71478
71479 2007-03-25  Bruno Haible  <bruno@clisp.org>
71480
71481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71482         returns inf. Needed on IRIX 6.5.
71483
71484 2007-03-25  Bruno Haible  <bruno@clisp.org>
71485
71486         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71487         (main): Use isnanl instead of x != x idiom.
71488         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71489
71490         * tests/test-frexp.c: Include isnan.h.
71491         (main): Use isnan instead of x != x idiom.
71492         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71493
71494 2007-03-25  Bruno Haible  <bruno@clisp.org>
71495
71496         * tests/test-frexp.c (NaN): New function/macro.
71497         (main): Use it instead of 0.0 / 0.0.
71498         * tests/test-isnan.c (NaN): New function/macro.
71499         (main): Use it instead of 0.0 / 0.0.
71500         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71501         (test_function): Use it instead of 0.0 / 0.0.
71502         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71503         (test_function): Use it instead of 0.0 / 0.0.
71504         * tests/test-snprintf-posix.h (NaN): New function/macro.
71505         (test_function): Use it instead of 0.0 / 0.0.
71506         * tests/test-sprintf-posix.h (NaN): New function/macro.
71507         (test_function): Use it instead of 0.0 / 0.0.
71508         * tests/test-fprintf-posix.h (NaN): New function/macro.
71509         (test_function): Use it instead of 0.0 / 0.0.
71510         * tests/test-printf-posix.h (NaN): New function/macro.
71511         (test_function): Use it instead of 0.0 / 0.0.
71512
71513         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71514
71515 2007-03-25  Bruno Haible  <bruno@clisp.org>
71516
71517         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71518
71519 2007-03-25  Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/regexec.c (merge_state_with_log): Make static.
71522
71523 2007-03-25  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/trigl.c (kernel_rem_pio2): Make static.
71526
71527 2007-03-25  Bruno Haible  <bruno@clisp.org>
71528
71529         * lib/sincosl.c (sincosl_table): Make static.
71530
71531 2007-03-25  Bruno Haible  <bruno@clisp.org>
71532
71533         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71534         if the compiler does not support C99.
71535
71536 2007-03-25  Bruno Haible  <bruno@clisp.org>
71537
71538         * modules/time (Makefile.am): Ensure all rule action lines start with a
71539         tab.
71540
71541 2007-03-24  Bruno Haible  <bruno@clisp.org>
71542
71543         * modules/tsearch-tests: New file.
71544         * tests/test-tsearch.sh: New file.
71545         * tests/test-tsearch.c: New file, mostly copied from glibc.
71546
71547         * modules/search-tests: New file.
71548         * tests/test-search.c: New file.
71549
71550         * modules/search: New file.
71551         * lib/search_.h: New file, incorporating lib/tsearch.h.
71552         * m4/search_h.m4: New file.
71553         * lib/tsearch.h: Remove file.
71554         * lib/tsearch.c: Include search.h instead of tsearch.h.
71555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71556         HAVE_TSEARCH.
71557         * modules/tsearch (Files): Remove lib/tsearch.h.
71558         (Depends-on): Add search.
71559         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71560         (Include): Change tsearch.h into search.h.
71561
71562 2007-03-24  Bruno Haible  <bruno@clisp.org>
71563
71564         * modules/fpucw: New file.
71565         * lib/fpucw.h: New file.
71566         * lib/frexp.c: Include fpucw.h.
71567         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71568         (FUNC): Use them.
71569         * lib/printf-frexp.c: Include fpucw.h.
71570         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71571         (FUNC): Use them.
71572         * lib/vasnprintf.c: Include fpucw.h.
71573         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71574         'long double' calculations.
71575         * tests/test-frexpl.c: Include fpucw.h.
71576         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71577         * tests/test-printf-frexpl.c: Include fpucw.h.
71578         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71579         * modules/frexpl (Depends-on): Add fpucw.
71580         * modules/printf-frexpl (Depends-on): Likewise.
71581         * modules/fprintf-posix (Depends-on): Likewise.
71582         * modules/snprintf-posix (Depends-on): Likewise.
71583         * modules/sprintf-posix (Depends-on): Likewise.
71584         * modules/vasnprintf-posix (Depends-on): Likewise.
71585         * modules/vasprintf-posix (Depends-on): Likewise.
71586         * modules/vfprintf-posix (Depends-on): Likewise.
71587         * modules/vsnprintf-posix (Depends-on): Likewise.
71588         * modules/vsprintf-posix (Depends-on): Likewise.
71589         * modules/frexpl-tests (Depends-on): Likewise.
71590         * modules/printf-frexpl-tests (Depends-on): Likewise.
71591
71592 2007-03-24  Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/float+.h: New file.
71595         * lib/isnan.c: Include float+.h.
71596         (SIZE): New macro.
71597         (FUNC): Compare only SIZE bytes of the value.
71598         * lib/vasnprintf.c: Include float+.h.
71599         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71600         SIZEOF_LDBL or SIZEOF_DBL bytes.
71601         * modules/isnan-nolibm (Files): Add lib/float+.h.
71602         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71603         * modules/isnanl (Files): Add lib/float+.h.
71604         * modules/vasnprintf (Files): Add lib/float+.h.
71605
71606 2007-03-24  Bruno Haible  <bruno@clisp.org>
71607
71608         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71609         include isnanl-nolibm.h.
71610
71611 2007-03-24  Bruno Haible  <bruno@clisp.org>
71612
71613         * tests/test-read-file.c (main): Don't produce spurious output for
71614         expected situations. Make the test fail if it encountered unexpected
71615         results.
71616
71617 2007-03-24  Bruno Haible  <bruno@clisp.org>
71618
71619         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71620         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71621
71622 2007-03-24  Bruno Haible  <bruno@clisp.org>
71623
71624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71625
71626 2007-03-24  Bruno Haible  <bruno@clisp.org>
71627
71628         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71629         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71630
71631         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71632         * modules/utf8-ucs4: Turn into a symbolic link to module
71633         unistr/u8-mbtouc.
71634
71635         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71636         utf8-ucs4-unsafe.
71637         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71638         unistr/u8-mbtouc-unsafe.
71639
71640         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71641         * modules/utf16-ucs4: Turn into a symbolic link to module
71642         unistr/u16-mbtouc.
71643
71644         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71645         utf16-ucs4-unsafe.
71646         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71647         unistr/u16-mbtouc-unsafe.
71648
71649         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71650         * modules/ucs4-utf8: Turn into a symbolic link to module
71651         unistr/u8-ubtomb.
71652
71653         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71654         * modules/ucs4-utf16: Turn into a symbolic link to module
71655         unistr/u16-ubtomb.
71656
71657 2007-03-24  Bruno Haible  <bruno@clisp.org>
71658
71659         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71660         Enable the function only if HAVE_INLINE.
71661         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71662         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71663         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71664         Enable the function only if HAVE_INLINE.
71665         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71666         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71667         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71668         Enable the function only if HAVE_INLINE.
71669         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71670         Enable the function only if HAVE_INLINE.
71671         * modules/utf8-ucs4: Update.
71672         * modules/utf8-ucs4-unsafe: Update.
71673         * modules/utf16-ucs4: Update.
71674         * modules/utf16-ucs4-unsafe: Update.
71675         * modules/ucs4-utf8: Update.
71676         * modules/ucs4-utf16: Update.
71677
71678 2007-03-24  Bruno Haible  <bruno@clisp.org>
71679
71680         * lib/utf8-ucs4.h: Remove file.
71681         * lib/utf8-ucs4-unsafe.h: Remove file.
71682         * lib/utf16-ucs4.h: Remove file.
71683         * lib/utf16-ucs4-unsafe.h: Remove file.
71684         * lib/ucs4-utf8.h: Remove file.
71685         * lib/ucs4-utf16.h: Remove file.
71686         * lib/unistr.h: Include their previous contents.
71687         * m4/utf-ucs4.m4: Remove file.
71688         * m4/ucs4-utf.m4: Remove file.
71689         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71690         (Depends-on): Add unistr/base.
71691         (configure.ac): Remove gl_UTF_UCS4.
71692         (Makefile.am): Update.
71693         (Include): Change to unistr.h.
71694         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71695         (Depends-on): Add unistr/base.
71696         (configure.ac): Remove gl_UTF_UCS4.
71697         (Makefile.am): Update.
71698         (Include): Change to unistr.h.
71699         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71700         (Depends-on): Add unistr/base.
71701         (configure.ac): Remove gl_UTF_UCS4.
71702         (Makefile.am): Update.
71703         (Include): Change to unistr.h.
71704         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71705         (Depends-on): Add unistr/base.
71706         (configure.ac): Remove gl_UTF_UCS4.
71707         (Makefile.am): Update.
71708         (Include): Change to unistr.h.
71709         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71710         (Depends-on): Add unistr/base.
71711         (configure.ac): Remove gl_UCS4_UTF.
71712         (Makefile.am): Update.
71713         (Include): Change to unistr.h.
71714         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71715         (Depends-on): Add unistr/base.
71716         (configure.ac): Remove gl_UCS4_UTF.
71717         (Makefile.am): Update.
71718         (Include): Change to unistr.h.
71719         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71720         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71721         utf8-ucs4-unsafe.h.
71722         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71723         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71724         utf16-ucs4-unsafe.h.
71725         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71726         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71727         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71728         * lib/unistr/u8-strchr.c: Likewise.
71729         * lib/unistr/u8-strrchr.c: Likewise.
71730         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71731         * lib/unistr/u16-strchr.c: Likewise.
71732         * lib/unistr/u16-strrchr.c: Likewise.
71733         * lib/striconveh.c: Update.
71734         * lib/linebreak.c: Update.
71735
71736 2007-03-24  Bruno Haible  <bruno@clisp.org>
71737
71738         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71739         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71740
71741 2007-03-22  Bruno Haible  <bruno@clisp.org>
71742
71743         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71744
71745 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71746
71747         * MODULES.html.sh (File system functions): New module write-any-file.
71748         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71749         * m4/write-any-file.m4: New files.
71750
71751 2007-03-23  Eric Blake  <ebb9@byu.net>
71752
71753         * gnulib-tool: Rearrange space-tab sequences, since some editors
71754         like to eat them.
71755
71756 2007-03-23  Eric Blake  <ebb9@byu.net>
71757
71758         * lib/version-etc.c (version_etc_va): Update license wording to
71759         be more concise.  Recommended by Richard Stallman.
71760
71761 2007-03-22  Bruno Haible  <bruno@clisp.org>
71762
71763         * lib/poll.c (MSG_PEEK): New fallback definition.
71764
71765 2007-03-22  Bruno Haible  <bruno@clisp.org>
71766
71767         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71768         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71769         (main): Update.
71770         Fixes a compilation error on BeOS.
71771
71772 2007-03-22  Bruno Haible  <bruno@clisp.org>
71773
71774         * modules/frexpl-tests: New file.
71775         * tests/test-frexpl.c: New file.
71776
71777         * modules/frexpl: New file.
71778         * m4/frexpl.m4: New file.
71779         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71780         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71782         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71783         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71784         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71785
71786 2007-03-22  Bruno Haible  <bruno@clisp.org>
71787
71788         * lib/frexpl.c: Share code with lib/frexp.c.
71789         * modules/mathl (Files): Add lib/frexp.c.
71790         (Depends-on): Add isnanl-nolibm.
71791
71792 2007-03-22  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/printf-frexp (Files): Add m4/frexp.m4.
71795         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71796         only if the found frexp function actually works.
71797
71798 2007-03-22  Bruno Haible  <bruno@clisp.org>
71799
71800         * lib/frexp.c: Remove older implementation that uses divisions.
71801
71802 2007-03-21  Bruno Haible  <bruno@clisp.org>
71803
71804         * modules/frexp-tests: New file.
71805         * tests/test-frexp.c: New file.
71806
71807         * modules/frexp: New file.
71808         * lib/frexp.c: New file.
71809         * m4/frexp.m4: New file.
71810         * lib/math_.h (frexp): New declaration.
71811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71812         REPLACE_FREXP.
71813         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71814
71815 2007-03-21  Bruno Haible  <bruno@clisp.org>
71816
71817         * modules/isnanl-tests: New file.
71818         * tests/test-isnanl.c: New file.
71819
71820         * modules/isnanl: New file.
71821         * lib/isnanl.h: New file.
71822         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71823         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71824         gl_FUNC_ISNANL_WORKS.
71825         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71826         New macros.
71827
71828 2007-03-21  Bruno Haible  <bruno@clisp.org>
71829
71830         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71831         lib/isnanl.h.
71832         (Include): Update.
71833         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71834         * lib/vasnprintf.c: Update.
71835         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71836         tests/test-isnanl.h, remove tests/test-isnanl.c.
71837         (Makefile.am): Update.
71838         * tests/test-isnanl-nolibm.c: New file.
71839         * tests/test-isnanl.h: New file.
71840         * tests/test-isnanl.c: Remove file.
71841
71842 2007-03-21  Jim Meyering  <jim@meyering.net>
71843
71844         When trying to open ".", treat ESTALE like EACCES.
71845         * lib/savewd.c (savewd_save): Resort to forking not just upon
71846         failure with EACCES, but also when errno is ESTALE.
71847
71848 2007-03-20  Bruno Haible  <bruno@clisp.org>
71849
71850         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71851         Needed on AIX 5.1. Reported by Matthew Woehlke.
71852
71853 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         Suggestions by Bruno Haible:
71856         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71857         our own.
71858         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71859         * modules/acl (Depends-on): Add gettext.
71860
71861 2007-03-19  Bruno Haible  <bruno@clisp.org>
71862
71863         * modules/iconvme: Remove file.
71864         * lib/iconvme.h: Remove file.
71865         * lib/iconvme.c: Remove file.
71866         * m4/iconvme.m4: Remove file.
71867
71868 2007-03-19  Bruno Haible  <bruno@clisp.org>
71869
71870         * doc/relocatable-maint.texi: Break long shell script line.
71871         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71872
71873 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71876         handle file_has_acl.
71877         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71878         * lib/acl.c: Move header inclusions and related macro defns into
71879         lib/acl-internal.h.
71880         (S_ISLNK): Remove defn, since that's now done for us.
71881         (file_has_acl): Move to lib/file-has-acl.c.
71882         Call acl_trivial if available.  This is the crucial part of the fix.
71883         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71884         shared within the library.  Rewrite a bit, partly to make it compatible
71885         with the GNU coding style.
71886         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71887         Remove unnecessary double-quotes.
71888         Don't test for acl_to_text; the build will catch that.
71889         Replace acl_entries if it doesn't exist and it is needed.
71890         Check for -lsec and acl_trivial (as used on Solaris 10).
71891         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71892         lib/file-has-acl.c.
71893         (Depends-on): Add sys_stat, for S_ISLNK.
71894
71895 2007-03-19  Ben Pfaff  <blp@gnu.org>
71896
71897         * doc/gnulib.texi: Fix typos.
71898         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71899
71900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71903         If size is zero here, buf must be zero.
71904
71905 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71906
71907         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71908         <bruno@clisp.org>.
71909
71910 2007-03-18  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71913         Suggested by Eric Blake.
71914
71915 2007-03-18  Ben Pfaff  <blp@gnu.org>
71916
71917         * doc/relocatable.texi: Recommend using as prefix a directory
71918         that does not exist and will never be created.  Based on
71919         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71920         and others.
71921
71922 2007-03-17  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/fchownat.c: Include lchown.h.
71925
71926 2007-03-17  Bruno Haible  <bruno@clisp.org>
71927
71928         Fix endless loop when the given allocated size was > INT_MAX.
71929         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71930         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71931         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71932         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71933         * lib/sprintf.c (sprintf): Likewise.
71934
71935 2007-03-17  Bruno Haible  <bruno@clisp.org>
71936
71937         * tests/test-argp-2.sh (func_compare): Output a context diff.
71938
71939 2007-03-17  Bruno Haible  <bruno@clisp.org>
71940
71941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71942         locale's decimal-point character.
71943
71944 2007-03-17  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71947         before comparing it. Needed because on some platforms (e.g. x86) a
71948         'long double' occupies less bytes than sizeof (long double).
71949
71950 2007-03-17  Bruno Haible  <bruno@clisp.org>
71951
71952         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71953         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71954         * tests/test-getaddrinfo.c (simple): Likewise.
71955         * tests/test-read-file.c (main): Likewise.
71956
71957 2007-03-17  Bruno Haible  <bruno@clisp.org>
71958
71959         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71960
71961 2007-03-17  Bruno Haible  <bruno@clisp.org>
71962
71963         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71964         unused variable.
71965
71966 2007-03-17  Bruno Haible  <bruno@clisp.org>
71967
71968         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71969         * tests/test-c-strncasecmp.c: Likewise.
71970
71971 2007-03-17  Bruno Haible  <bruno@clisp.org>
71972
71973         * modules/stdlib (Depends-on): Add unistd.
71974         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71975         Needed for MacOS X 10.3.
71976
71977 2007-03-17  Bruno Haible  <bruno@clisp.org>
71978
71979         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71980
71981 2007-03-17  Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71984
71985 2007-03-17  Bruno Haible  <bruno@clisp.org>
71986
71987         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71988         to reflect files copied from gnulib (with or without modifications).
71989         Suggested by Jim Meyering.
71990
71991 2007-03-17  Eric Blake  <ebb9@byu.net>
71992
71993         * NEWS: Document stdlib change from 2007-02-18.
71994
71995 2007-03-17  Jim Meyering  <jim@meyering.net>
71996
71997         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71998         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71999         someone uses a name containing shell meta-characters.
72000         Reported by Alfred M. Szmidt.
72001
72002         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72003
72004 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72005
72006         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72007         and copy gettext configuration files only if configure.ac contains
72008         a use of AM_GNU_GETTEXT_VERSION.
72009
72010 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72011
72012         * build-aux/bootstrap (gnulib_name): New variable.
72013         (gnulib_tool_options): Use it.
72014
72015 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72016
72017         * tests/test-des.c: Use new namespace.
72018
72019 2007-03-15  Bruno Haible  <bruno@clisp.org>
72020
72021         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72022         Reported by James Youngman <jay@gnu.org>.
72023
72024 2007-03-15  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72027         declared prototype. Needed with cc on OSF/1 5.1.
72028
72029 2007-03-15  Bruno Haible  <bruno@clisp.org>
72030
72031         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72032         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72033         (struct gl_list_implementation): Add dispose_fn argument to the
72034         'create_empty', 'create' methods.
72035         (struct gl_list_impl_base): Add field 'dispose_fn'.
72036         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72037         argument.
72038         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72039         dispose_fn argument.
72040         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72041         dispose_fn on the dropped values.
72042         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72043         dispose_fn argument.
72044         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72045         dropped values.
72046         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72047         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72048         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72049         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72050         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72051         argument.
72052         (gl_tree_list_free): Call dispose_fn on the dropped values.
72053         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72054         the dropped values.
72055         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72056         Add dispose_fn argument.
72057         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72058         Call dispose_fn on the dropped values.
72059         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72060         Add dispose_fn argument.
72061         (gl_sublist_create): Initialize the 'dispose_fn' field.
72062         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72063         * tests/test-array_list.c (main): Update.
72064         * tests/test-carray_list.c (main): Update.
72065         * tests/test-avltree_list.c (main): Update.
72066         * tests/test-rbtree_list.c (main): Update.
72067         * tests/test-avltreehash_list.c (main): Update.
72068         * tests/test-rbtreehash_list.c (main): Update.
72069         * tests/test-linked_list.c (main): Update.
72070         * tests/test-linkedhash_list.c (main): Update.
72071         * tests/test-array_oset.c (main): Update.
72072
72073 2007-03-15  Bruno Haible  <bruno@clisp.org>
72074
72075         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72076         (gl_oset_create_empty): Add dispose_fn argument.
72077         (struct gl_oset_implementation): Add dispose_fn argument to
72078         'create_empty' method.
72079         (struct gl_oset_impl_base): Add dispose_fn field.
72080         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72081         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72082         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72083         values.
72084         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72085         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72086         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72087         dropped value.
72088         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72089         dropped value.
72090         * tests/test-array_oset.c (main): Update.
72091         * tests/test-avltree_oset.c (main): Update.
72092         * tests/test-rbtree_oset.c (main): Update.
72093         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72094
72095 2007-03-13  Bruno Haible  <bruno@clisp.org>
72096
72097         * tests/test-stdbool.c (i): Update after last patch.
72098
72099 2007-03-12  Bruno Haible  <bruno@clisp.org>
72100
72101         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72102         the iswprint macro. Needed on Solaris 2.5.1.
72103
72104 2007-03-12  Bruno Haible  <bruno@clisp.org>
72105
72106         * tests/test-printf-frexp.c (main): Declare x as volatile.
72107
72108 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72109
72110         * doc/gnulib.texi (Build robot for gnulib): New section.
72111
72112 2007-03-12  Jim Meyering  <jim@meyering.net>
72113
72114         * build-aux/bootstrap: New file.
72115         * build-aux/bootstrap.conf: New file, from coreutils.
72116
72117 2007-03-11  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72120
72121 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72122
72123         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72124         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72125         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72126
72127 2007-03-11  Bruno Haible  <bruno@clisp.org>
72128
72129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72130         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72131
72132 2007-03-11  Bruno Haible  <bruno@clisp.org>
72133
72134         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72135         formula. Needed for SunPRO C 5.0.
72136
72137 2007-03-11  Bruno Haible  <bruno@clisp.org>
72138
72139         * modules/long-options (Depends-on): Add getopt.
72140
72141 2007-03-11  Bruno Haible  <bruno@clisp.org>
72142
72143         * modules/modechange (Depends-on): Add stdbool.
72144
72145 2007-03-11  Bruno Haible  <bruno@clisp.org>
72146
72147         * modules/i-ring (Depends-on): Add stdbool.
72148
72149 2007-03-11  Bruno Haible  <bruno@clisp.org>
72150
72151         * modules/gc-des (Depends-on): Add stdbool.
72152
72153 2007-03-11  Bruno Haible  <bruno@clisp.org>
72154
72155         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72156
72157 2007-03-11  Bruno Haible  <bruno@clisp.org>
72158
72159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72160
72161 2007-03-11  Bruno Haible  <bruno@clisp.org>
72162
72163         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72164
72165 2007-03-11  Bruno Haible  <bruno@clisp.org>
72166
72167         * lib/vasnprintf.c (sprintf): Undefine.
72168
72169 2007-03-11  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72172         initializers in SunPRO C and Compaq C compilers.
72173
72174 2007-03-11  Bruno Haible  <bruno@clisp.org>
72175
72176         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72177         decrementing code ANSI C compliant.
72178
72179 2007-03-11  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72182         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72183
72184 2007-03-11  Bruno Haible  <bruno@clisp.org>
72185
72186         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72187         <stdbool.h> substitute doesn't pass.
72188
72189 2007-03-11  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72192
72193 2007-03-11  Bruno Haible  <bruno@clisp.org>
72194
72195         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72196         script, for submission to autobuild.josefsson.org.
72197
72198 2007-03-10  Bruno Haible  <bruno@clisp.org>
72199
72200         * modules/canonicalize-lgpl-tests: New file.
72201         * tests/test-canonicalize-lgpl.sh: New file.
72202         * tests/test-canonicalize-lgpl.c: New file.
72203
72204         * modules/c-strcase-tests: New file.
72205         * tests/test-c-strcase.sh: New file.
72206         * tests/test-c-strcasecmp.c: New file.
72207         * tests/test-c-strncasecmp.c: New file.
72208
72209         * modules/atexit-tests: New file.
72210         * tests/test-atexit.sh: New file.
72211         * tests/test-atexit.c: New file.
72212
72213 2007-03-10  Bruno Haible  <bruno@clisp.org>
72214
72215         * tests/test-binary-io.sh: Use temporary filenames that are not so
72216         likely to clash with those of other tests (in a parallel make).
72217         * tests/test-binary-io.c: Likewise.
72218
72219 2007-03-10  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72222         fallback; use #error instead.
72223         Suggested by Simon Josefsson.
72224
72225 2007-03-10  Bruno Haible  <bruno@clisp.org>
72226
72227         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72228         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72229         first and the last.
72230
72231 2007-03-10  Bruno Haible  <bruno@clisp.org>
72232
72233         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72234
72235 2007-03-10  Bruno Haible  <bruno@clisp.org>
72236
72237         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72238         "make distcheck".
72239         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72240         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72241         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72242
72243 2007-03-10  Bruno Haible  <bruno@clisp.org>
72244
72245         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72246         variable.
72247         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72248         variable.
72249
72250 2007-03-09  Eric Blake  <ebb9@byu.net>
72251         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72252
72253         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72254         types are not being provided by gnulib.
72255         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72256         types are supported.
72257
72258 2007-03-10  Bruno Haible  <bruno@clisp.org>
72259
72260         * lib/stdio_.h (__attribute__): New macro.
72261         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72262         vsprintf): Specify __attribute__ __format__ for GCC.
72263         Suggested by Eric Blake.
72264
72265 2007-03-09  Bruno Haible  <bruno@clisp.org>
72266
72267         * modules/printf-posix-tests: New file.
72268         * tests/test-printf-posix.sh: New file.
72269         * tests/test-printf-posix.c: New file.
72270
72271         * modules/printf-posix: New file.
72272         * lib/printf.c: New file.
72273         * m4/printf-posix-rpl.m4: New file.
72274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72275         REPLACE_PRINTF.
72276         * lib/stdio_.h (printf): New declaration.
72277         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72278         ____strfmon____): New macros.
72279         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72280         REPLACE_PRINTF.
72281
72282 2007-03-09  Bruno Haible  <bruno@clisp.org>
72283
72284         * tests/test-vasnprintf-posix2.sh: New file.
72285         * tests/test-vasnprintf-posix2.c: New file.
72286         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72287         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72288         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72289
72290         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72291         a locale dependent decimal point, rather than always '.'.
72292
72293 2007-03-09  Eric Blake  <ebb9@byu.net>
72294
72295         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72296         spite of platforms like Tandem/NSK that define it to -1.
72297
72298 2007-03-08  Bruno Haible  <bruno@clisp.org>
72299
72300         * modules/vprintf-posix-tests: New file.
72301         * tests/test-vprintf-posix.sh: New file.
72302         * tests/test-vprintf-posix.c: New file.
72303         * tests/test-printf-posix.h: New file.
72304
72305         * modules/vprintf-posix: New file.
72306         * lib/vprintf.c: New file.
72307         * m4/vprintf-posix.m4: New file.
72308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72309         REPLACE_VPRINTF.
72310         * lib/stdio_.h (vprintf): New declaration.
72311         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72312         REPLACE_VPRINTF.
72313
72314 2007-03-08  Bruno Haible  <bruno@clisp.org>
72315
72316         * modules/fprintf-posix-tests: New file.
72317         * tests/test-fprintf-posix.sh: New file.
72318         * tests/test-fprintf-posix.c: New file.
72319
72320         * modules/fprintf-posix: New file.
72321         * lib/fprintf.c: New file.
72322         * m4/fprintf-posix.m4: New file.
72323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72324         REPLACE_FPRINTF.
72325         * lib/stdio_.h (fprintf): New declaration.
72326         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72327         REPLACE_FPRINTF.
72328
72329 2007-03-08  Bruno Haible  <bruno@clisp.org>
72330
72331         * modules/vfprintf-posix-tests: New file.
72332         * tests/test-vfprintf-posix.sh: New file.
72333         * tests/test-vfprintf-posix.c: New file.
72334         * tests/test-fprintf-posix.h: New file.
72335         * tests/test-fprintf-posix.out: New file.
72336
72337         * modules/vfprintf-posix: New file.
72338         * lib/vfprintf.c: New file.
72339         * m4/vfprintf-posix.m4: New file.
72340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72341         REPLACE_VFPRINTF.
72342         * lib/stdio_.h (vfprintf): New declaration.
72343         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72344         REPLACE_VFPRINTF.
72345
72346 2007-03-08  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72349
72350 2007-03-08  Bruno Haible  <bruno@clisp.org>
72351
72352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72353         instead of 'expr' invocations.
72354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72359         Suggested by Paul Eggert.
72360
72361 2007-03-08  Bruno Haible  <bruno@clisp.org>
72362
72363         * modules/fseterr-tests: New file.
72364         * tests/test-fseterr.c: New file.
72365
72366         * modules/fseterr: New file.
72367         * lib/fseterr.h: New file.
72368         * lib/fseterr.c: New file.
72369
72370 2007-03-08  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72373         * lib/getopt_.h: Likewise.
72374         * lib/mbswidth.h: Likewise.
72375         * lib/setenv.h: Likewise.
72376         * lib/vasnprintf.h: Likewise.
72377         * lib/vasprintf.h: Likewise.
72378         * lib/verror.h: Likewise.
72379         * lib/xsetenv.h: Likewise.
72380         * lib/xvasprintf.h: Likewise.
72381
72382 2007-03-08  Jim Meyering  <jim@meyering.net>
72383
72384         * users.txt: Add parted.
72385
72386         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72387
72388 2007-03-07  Bruno Haible  <bruno@clisp.org>
72389
72390         * m4/printf.m4: Make the shell script snippets copy&pastable.
72391
72392 2007-03-02  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/netinet_in_.h: New file.
72395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72396         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72397         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72398         (Depends-on): Add absolute-header.
72399         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72400         into netinet/in.h.
72401
72402 2007-03-03  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/sys_select_.h: New file.
72405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72406         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72407         * modules/sys_select (Files): Add lib/sys_select_.h.
72408         (Depends-on): Add absolute-header.
72409         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72410         into sys/select.h.
72411
72412 2007-03-02  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72415         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72416         values.
72417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72418         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72419         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72420         * modules/sys_socket (Depends-on): Add absolute-header.
72421         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72422         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72423         (Include): Remove requirement of inclusion of <sys/types.h>.
72424
72425 2007-03-02  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/byteswap_.h (bswap_32): Fix formula.
72428
72429 2007-03-06  Bruno Haible  <bruno@clisp.org>
72430
72431         * modules/sprintf-posix-tests: New file.
72432         * tests/test-sprintf-posix.c: New file.
72433
72434         * modules/sprintf-posix: New file.
72435         * lib/sprintf.c: New file.
72436         * m4/sprintf-posix.m4: New file.
72437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72438         REPLACE_SPRINTF.
72439         * lib/stdio_.h (sprintf): New declaration.
72440         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72441         REPLACE_SPRINTF.
72442
72443 2007-03-06  Bruno Haible  <bruno@clisp.org>
72444
72445         * modules/vsprintf-posix-tests: New file.
72446         * tests/test-vsprintf-posix.c: New file.
72447         * tests/test-sprintf-posix.h: New file.
72448
72449         * modules/vsprintf-posix: New file.
72450         * lib/vsprintf.c: New file.
72451         * m4/vsprintf-posix.m4: New file.
72452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72453         REPLACE_VSPRINTF.
72454         * lib/stdio_.h (vsprintf): New declaration.
72455         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72456         REPLACE_VSPRINTF.
72457
72458 2007-03-06  Bruno Haible  <bruno@clisp.org>
72459
72460         * modules/vsnprintf (Depend-on): Remove minmax.
72461
72462 2007-03-06  Bruno Haible  <bruno@clisp.org>
72463
72464         * modules/snprintf-posix-tests: New file.
72465         * tests/test-snprintf-posix.c: New file.
72466
72467         * modules/snprintf-posix: New file.
72468         * m4/snprintf-posix.m4: New file.
72469         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72470         gl_FUNC_SNPRINTF.
72471         (gl_FUNC_SNPRINTF): Invoke it.
72472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72473         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72474         is set.
72475         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72476
72477 2007-03-06  Bruno Haible  <bruno@clisp.org>
72478
72479         * modules/vsnprintf-posix-tests: New file.
72480         * tests/test-vsnprintf-posix.c: New file.
72481         * tests/test-snprintf-posix.h: New file.
72482
72483         * modules/vsnprintf-posix: New file.
72484         * m4/vsnprintf-posix.m4: New file.
72485         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72486         gl_FUNC_VSNPRINTF.
72487         (gl_FUNC_VSNPRINTF): Invoke it.
72488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72489         * lib/stdio_.h (vsnprintf): Define as a replacement if
72490         REPLACE_VSNPRINTF is set.
72491         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72492
72493 2007-03-06  Bruno Haible  <bruno@clisp.org>
72494
72495         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72497
72498 2007-03-06  Bruno Haible  <bruno@clisp.org>
72499
72500         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72501         (asinl): Declare also if HAVE_DECL_ASINL is set.
72502         (atanl): Declare also if HAVE_DECL_ATANL is set.
72503         (ceill): Declare also if HAVE_DECL_CEILL is set.
72504         (cosl): Declare also if HAVE_DECL_COSL is set.
72505         (expl): Declare also if HAVE_DECL_EXPL is set.
72506         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72507         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72508         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72509         (logl): Declare also if HAVE_DECL_LOGL is set.
72510         (sinl): Declare also if HAVE_DECL_SINL is set.
72511         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72512         (tanl): Declare also if HAVE_DECL_TANL is set.
72513         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72516         declaration of frexpl, ldexpl.
72517         * modules/printf-frexpl (Depends-on): Add math.
72518         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72519
72520 2007-03-05  Bruno Haible  <bruno@clisp.org>
72521
72522         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72523         frexpl and ldexpl are declared.
72524         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72525
72526 2007-03-05  Bruno Haible  <bruno@clisp.org>
72527
72528         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72529         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72530
72531 2007-03-05  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/stdio_.h: Include <stddef.h>.
72534
72535 2007-03-05  Bruno Haible  <bruno@clisp.org>
72536
72537         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72538
72539 2007-03-05  Bruno Haible  <bruno@clisp.org>
72540
72541         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72542         NetBSD 4, from Ralf Wildenhues.
72543
72544 2007-03-04  Bruno Haible  <bruno@clisp.org>
72545
72546         * lib/vasprintf.h: Update #if logic for the case when the functions
72547         exist but are overridden.
72548
72549 2007-03-04  Bruno Haible  <bruno@clisp.org>
72550
72551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72552         implementations: glibc-2.4 and MacOS X 10.3.
72553         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72554         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72555         * tests/test-vasprintf-posix.c (test_function): Likewise.
72556
72557 2007-03-04  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/vasprintf-posix-tests: New file.
72560         * tests/test-vasprintf-posix.c: New file.
72561
72562         * modules/vasprintf-posix: New file.
72563         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72564         defined.
72565         * m4/vasprintf-posix.m4: New file.
72566         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72567         gl_FUNC_VASPRINTF.
72568         (gl_FUNC_VASPRINTF): Invoke it.
72569         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72570         here.
72571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72572
72573 2007-03-04  Bruno Haible  <bruno@clisp.org>
72574
72575         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72576         REPLACE_GETTIMEOFDAY.
72577         * modules/sys_time (Makefile.am): Likewise.
72578         * m4/sys_time_h.m4: Likewise.
72579         * m4/gettimeofday.m4: Likewise.
72580
72581 2007-03-04  Bruno Haible  <bruno@clisp.org>
72582
72583         * modules/vasnprintf-posix-tests: New file.
72584         * tests/test-vasnprintf-posix.c: New file.
72585
72586         * modules/vasnprintf-posix: New file.
72587         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72588         printf-frexpl.h.
72589         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72590         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72591         REPLACE_VASNPRINTF is defined.
72592         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72593         gl_FUNC_VASNPRINTF.
72594         (gl_FUNC_VASNPRINTF): Invoke it.
72595         * m4/vasnprintf-posix.m4: New file.
72596         * m4/printf.m4: New file.
72597
72598 2007-03-04  Bruno Haible  <bruno@clisp.org>
72599
72600         Compile progreloc.c only if --enable-relocatable is specified.
72601         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72602         if --enable-relocatable was specified.
72603         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72604         lib_SOURCES.
72605
72606 2007-03-04  Jim Meyering  <jim@meyering.net>
72607
72608         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72609         Use it consistently, rather than enumerating errno constants.
72610
72611 2007-03-04  Bruno Haible  <bruno@clisp.org>
72612
72613         * modules/xvasprintf-tests: New file.
72614         * tests/test-xvasprintf.c: New file.
72615
72616         * modules/vasprintf-tests: New file.
72617         * tests/test-vasprintf.c: New file.
72618
72619         * modules/vasnprintf-tests: New file.
72620         * tests/test-vasnprintf.c: New file.
72621
72622         * modules/vsnprintf-tests: New file.
72623         * tests/test-vsnprintf.c: New file.
72624
72625         * modules/snprintf-tests: New file.
72626         * tests/test-snprintf.c: New file.
72627
72628 2007-03-04  Bruno Haible  <bruno@clisp.org>
72629
72630         Compile relocatable.c only if --enable-relocatable is specified.
72631         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72632         gl_RELOCATABLE_LIBRARY.
72633         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72634         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72635         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72636         gl_RELOCATABLE_LIBRARY.
72637         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72638         (Makefile.am): Remove lib_SOURCES.
72639         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72640         gl_RELOCATABLE_LIBRARY.
72641         (Makefile.am): Remove lib_SOURCES.
72642         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72643         always.
72644         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72645         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72646
72647 2007-03-04  Bruno Haible  <bruno@clisp.org>
72648
72649         * modules/argmatch-tests: New file.
72650         * tests/test-argmatch.c: New file.
72651
72652         * tests/test-allocsa.c (main): Halve the number of loop runs.
72653
72654         * modules/alloca-opt-tests: New file.
72655         * tests/test-alloca-opt.c: New file.
72656
72657 2007-03-04  Jim Meyering  <jim@meyering.net>
72658
72659         Work around difference between Linux ACLs and Solaris 10 ZFS.
72660         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72661         for EINVAL.
72662
72663 2007-03-03  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/relocatable-prog (Depends-on): Add back progreloc's
72666         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72667
72668 2007-03-03  Bruno Haible  <bruno@clisp.org>
72669
72670         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72671         * modules/relocatable-lib: New file.
72672
72673 2007-03-03  Bruno Haible  <bruno@clisp.org>
72674
72675         * modules/relocatable-prog: Renamed from modules/relocatable.
72676         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72677
72678 2007-03-03  Bruno Haible  <bruno@clisp.org>
72679
72680         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72681         m4/relocatable-lib.m4.
72682         (Depends-on): Remove 'relocatable'.
72683         (configure.ac): Add gl_RELOCATABLE_NOP.
72684
72685 2007-03-03  Bruno Haible  <bruno@clisp.org>
72686
72687         * modules/relocatable-prog-wrapper: New file.
72688         * modules/relocatable (Depends-on): Add it. Remove all other
72689         dependencies except progname.
72690         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72691
72692         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72693         (gl_FUNC_STRERROR): Nop.
72694         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72695
72696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72697         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72698
72699         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72700         (gl_FUNC_READLINK): Update.
72701
72702         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72703
72704 2007-03-03  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72707         * modules/xreadlink (Depends-on): Add unistd.
72708         * modules/xreadlink-with-size (Depends-on): Likewise.
72709
72710 2007-03-03  Bruno Haible  <bruno@clisp.org>
72711
72712         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72713         extracted from gt_FUNC_SETENV.
72714         (gt_FUNC_SETENV): Remove macro.
72715         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72716         remove gt_FUNC_SETENV.
72717
72718 2007-03-03  Bruno Haible  <bruno@clisp.org>
72719
72720         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72721         ENABLE_RELOCATABLE here.
72722         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72723
72724 2007-03-03  Bruno Haible  <bruno@clisp.org>
72725
72726         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72727         * tests/test-rbtreehash_list.c: Include progname.h.
72728         (main): Call set_program_name.
72729
72730         * modules/rbtree-oset-tests (Depends-on): Add progname.
72731         * tests/test-rbtree_oset.c: Include progname.h.
72732         (main): Call set_program_name.
72733
72734         * modules/rbtree-list-tests (Depends-on): Add progname.
72735         * tests/test-rbtree_list.c: Include progname.h.
72736         (main): Call set_program_name.
72737
72738         * modules/linked-list-tests (Depends-on): Add progname.
72739         * tests/test-linked_list.c: Include progname.h.
72740         (main): Call set_program_name.
72741
72742 2007-03-03  Bruno Haible  <bruno@clisp.org>
72743
72744         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72745         All uses of __restrict changed to _Restrict_.
72746         * lib/glob_.h (__restrict): Remove macro.
72747
72748 2007-03-02  Bruno Haible  <bruno@clisp.org>
72749
72750         * modules/gettext (configure.ac): Require gettext infrastructure
72751         from version 0.16.1.
72752
72753 2007-03-02  Bruno Haible  <bruno@clisp.org>
72754
72755         * modules/linkedhash-list-tests (Depends-on): Add progname.
72756         * tests/test-linkedhash_list.c: Include progname.h.
72757         (main): Call set_program_name.
72758
72759         * modules/carray-list-tests (Depends-on): Add progname.
72760         * tests/test-carray_list.c: Include progname.h.
72761         (main): Call set_program_name.
72762
72763         * modules/avltreehash-list-tests (Depends-on): Add progname.
72764         * tests/test-avltreehash_list.c: Include progname.h.
72765         (main): Call set_program_name.
72766
72767         * modules/avltree-oset-tests (Depends-on): Add progname.
72768         * tests/test-avltree_oset.c: Include progname.h.
72769         (main): Call set_program_name.
72770
72771         * modules/avltree-list-tests (Depends-on): Add progname.
72772         * tests/test-avltree_list.c: Include progname.h.
72773         (main): Call set_program_name.
72774
72775         * modules/array-oset-tests (Depends-on): Add progname.
72776         * tests/test-array_oset.c: Include progname.h.
72777         (main): Call set_program_name.
72778
72779         * modules/array-list-tests (Depends-on): Add progname.
72780         * tests/test-array_list.c: Include progname.h.
72781         (main): Call set_program_name.
72782
72783         * modules/argp-tests (Depends-on): Add progname.
72784         * tests/test-argp.c: Include argp.h first. Include progname.h.
72785         (main): Call set_program_name.
72786
72787 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * doc/gnulib-tool.texi (Initial import): Reword description of
72790         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72791         limited effect even if defined after the first system include.
72792
72793 2007-03-01  Bruno Haible  <bruno@clisp.org>
72794
72795         * build-aux/config.libpath: Update to libtool-1.5.22.
72796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72797
72798 2007-03-01  Bruno Haible  <bruno@clisp.org>
72799
72800         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72801         foo_CFLAGS.
72802         Reported by Ralf Wildenhues.
72803
72804 2007-03-01  Bruno Haible  <bruno@clisp.org>
72805
72806         * build-aux/install-reloc: Remove object files left over by some
72807         compilers.
72808         Reported by Ralf Wildenhues.
72809
72810 2007-03-01  Bruno Haible  <bruno@clisp.org>
72811
72812         * build-aux/install-reloc: Break long lines.
72813
72814 2007-03-01  Bruno Haible  <bruno@clisp.org>
72815
72816         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72817         Reported by Ralf Wildenhues.
72818
72819 2007-03-01  Bruno Haible  <bruno@clisp.org>
72820
72821         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72822         include ordering constraints.
72823
72824 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72828         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72829         as another example.
72830         * lib/time_.h: Fix misspelling.
72831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72832         Require gl_HEADER_TIME_H_DEFAULTS.
72833         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72834         * m4/time_r.m4 (gl_TIME_R): Likewise.
72835         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72836
72837 2007-03-01  Bruno Haible  <bruno@clisp.org>
72838
72839         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72840         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72841
72842 2007-03-01  Jim Meyering  <jim@meyering.net>
72843
72844         * modules/xreadlink (Maintainer): Add my name.
72845         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72846
72847 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72848             Bruno Haible  <bruno@clisp.org>
72849
72850         * build-aux/install-reloc: Compile also c-ctype.c.
72851         * build-aux/relocatable.sh.in: New file.
72852         * doc/relocatable.texi: New file.
72853         * doc/relocatable-maint.texi: New file.
72854         * doc/gnulib.texi: Include relocatable-maint.texi.
72855         * lib/progreloc.c: Include unistd.h unconditionally.
72856         * lib/relocwrapper.c: Include unistd.h unconditionally.
72857         Include c-ctype.h.
72858         (add_dotbin): Use c_tolower.
72859         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72860         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72861         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72862         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72863         to m4/relocatable-lib.m4.
72864         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72865         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72866         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72867         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72868         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72869         * modules/relocatable: New file.
72870         * modules/relocatable-lib: New file.
72871         * modules/relocatable-script: New file.
72872
72873 2007-02-28  Bruno Haible  <bruno@clisp.org>
72874
72875         Import --enable-relocatable infrastructure.
72876         * build-aux/config.libpath: New file, from GNU gettext.
72877         * build-aux/install-reloc: New file, from GNU gettext.
72878         * build-aux/reloc-ldflags: New file, from GNU gettext.
72879         * lib/relocatable.h: New file, from GNU gettext.
72880         * lib/relocatable.c: New file, from GNU gettext.
72881         * lib/relocwrapper.c: New file, from GNU gettext.
72882         * m4/relocatable.m4: New file, from GNU gettext.
72883
72884 2007-02-28  Bruno Haible  <bruno@clisp.org>
72885
72886         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72887
72888         * modules/xreadlink: New file, from GNU gettext with modifications.
72889         * lib/xreadlink.c: New file, from GNU gettext.
72890         * lib/xreadlink.h: Add comments.
72891         (xreadlink): New declaration.
72892
72893         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72894         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72895         lib/xreadlink-with-size.c.
72896         (configure.ac): Remove gl_XREADLINK invocation.
72897         (Makefile.am): Augment lib_SOURCES.
72898         * m4/xreadlink.m4: Remove file.
72899         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72900         (xreadlink_with_size): Renamed from xreadink.
72901         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72902         * modules/canonicalize (Depends-on): Replace xreadlink with
72903         xreadlink-with-size.
72904         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72905
72906 2007-02-25  Jim Meyering  <jim@meyering.net>
72907
72908         * build-aux/announce-gen: When complaining about excess arguments,
72909         list them.
72910
72911 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * README: Document signed integer overflow situation more
72914         accurately.
72915
72916 2007-02-25  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72919         'a' or 'A' conversion.
72920
72921 2007-02-25  Bruno Haible  <bruno@clisp.org>
72922
72923         * modules/filename: Renamed from modules/pathname.
72924         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72925         lib/concatpath.c with lib/concat-filename.c.
72926         (Makefile.am): Update.
72927         (Include): Replace pathname.h with filename.h.
72928         * lib/filename.h: Renamed from lib/pathname.h.
72929         (concatenated_filename): Renamed from concatenated_pathname.
72930         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72931         (concatenated_filename): Renamed from concatenated_pathname.
72932         * lib/findprog.c: Include filename.h instead of pathname.h.
72933         (find_in_path): Update.
72934         * lib/javacomp.c: Include filename.h instead of pathname.h.
72935         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72936         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72937         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72938         is_oldgcj_14_13_usable, is_javac_usable): Update.
72939         * lib/javaexec.c: Include filename.h instead of pathname.h.
72940         (execute_java_class): Update.
72941         * modules/findprog: Update.
72942         * modules/javacomp: Update.
72943         * modules/javaexec: Update.
72944         * MODULES.html.sh (File system functions): Add 'filename', remove
72945         'pathname'.
72946
72947 2007-02-25  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/printf-frexpl-tests: New file.
72950         * tests/test-printf-frexpl.c: New file.
72951
72952         * modules/printf-frexpl: New file.
72953         * lib/printf-frexpl.h: New file.
72954         * lib/printf-frexpl.c: New file.
72955         * m4/printf-frexpl.m4: New file.
72956
72957 2007-02-25  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/printf-frexp-tests: New file.
72960         * tests/test-printf-frexp.c: New file.
72961
72962         * modules/printf-frexp: New file.
72963         * lib/printf-frexp.h: New file.
72964         * lib/printf-frexp.c: New file.
72965         * m4/printf-frexp.m4: New file.
72966
72967 2007-02-25  Bruno Haible  <bruno@clisp.org>
72968
72969         Assume automake >= 1.10 for the tests.
72970         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72971         * modules/arctwo-tests: Likewise.
72972         * modules/argp-tests: Likewise.
72973         * modules/avltree-list-tests: Likewise.
72974         * modules/avltree-oset-tests: Likewise.
72975         * modules/avltreehash-list-tests: Likewise.
72976         * modules/carray-list-tests: Likewise.
72977         * modules/crc-tests: Likewise.
72978         * modules/des-tests: Likewise.
72979         * modules/gc-arcfour-tests: Likewise.
72980         * modules/gc-arctwo-tests: Likewise.
72981         * modules/gc-des-tests: Likewise.
72982         * modules/gc-hmac-md5-tests: Likewise.
72983         * modules/gc-hmac-sha1-tests: Likewise.
72984         * modules/gc-md2-tests: Likewise.
72985         * modules/gc-md4-tests: Likewise.
72986         * modules/gc-md5-tests: Likewise.
72987         * modules/gc-pbkdf2-sha1-tests: Likewise.
72988         * modules/gc-rijndael-tests: Likewise.
72989         * modules/gc-sha1-tests: Likewise.
72990         * modules/gc-tests: Likewise.
72991         * modules/getaddrinfo-tests: Likewise.
72992         * modules/hmac-md5-tests: Likewise.
72993         * modules/hmac-sha1-tests: Likewise.
72994         * modules/linked-list-tests: Likewise.
72995         * modules/linkedhash-list-tests: Likewise.
72996         * modules/lock-tests: Likewise.
72997         * modules/md2-tests: Likewise.
72998         * modules/md4-tests: Likewise.
72999         * modules/md5-tests: Likewise.
73000         * modules/rbtree-list-tests: Likewise.
73001         * modules/rbtree-oset-tests: Likewise.
73002         * modules/rbtreehash-list-tests: Likewise.
73003         * modules/read-file-tests: Likewise.
73004         * modules/rijndael-tests: Likewise.
73005         * modules/stdint-tests: Likewise.
73006         * modules/tls-tests: Likewise.
73007
73008 2007-02-24  Bruno Haible  <bruno@clisp.org>
73009
73010         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73011         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73012         function; instead check whether isnan with a double argument links.
73013         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73014         function; instead check whether isnan with a 'long double' argument
73015         links.
73016         Reported by Eric Blake <ebb9@byu.net>.
73017
73018 2007-02-24  Bruno Haible  <bruno@clisp.org>
73019
73020         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73021         defined.
73022         * lib/isnanl.c: Remove all code. Just include isnan.c.
73023         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73024
73025 2007-02-25  Jim Meyering  <jim@meyering.net>
73026
73027         Avoid conflicting types for 'unsetenv' on FreeBSD.
73028         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73029         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73030         in stdlib.h.
73031
73032 2007-02-24  Bruno Haible  <bruno@clisp.org>
73033
73034         * modules/isnanl-nolibm-tests: New file.
73035         * tests/test-isnanl.c: New file.
73036
73037         * modules/isnanl-nolibm: New file.
73038         * lib/isnanl.h: New file.
73039         * lib/isnanl.c: New file.
73040         * m4/isnanl.m4: New file.
73041
73042 2007-02-24  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/isnan-nolibm-tests: New file.
73045         * tests/test-isnan.c: New file.
73046
73047         * modules/isnan-nolibm: New file.
73048         * lib/isnan.h: New file.
73049         * lib/isnan.c: New file.
73050         * m4/isnan.m4: New file.
73051
73052 2007-02-24  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73055         assume that an exponent fits in 20 bits.
73056
73057 2007-02-24  Jim Meyering  <jim@meyering.net>
73058
73059         * m4/regex.m4: Update the description of the configure-time option,
73060         --without-included-regex, to state accurately what the defaults are,
73061         and perhaps to give people an idea why using this option is risky.
73062
73063 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73066         loops on small arguments.  This attempts to avoid the problem
73067         Bruno Haible reported for AIX 4.3.2 in
73068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73069
73070 2007-02-23  Bruno Haible  <bruno@clisp.org>
73071
73072         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73073         Needed for help2man.
73074
73075 2007-02-23  Karl Berry  <karl@gnu.org>
73076
73077         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73078         exists, foo.h should be cvs-ignored, not committed.
73079
73080 2007-02-23  Eric Blake  <ebb9@byu.net>
73081
73082         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73083         * lib/stat-time.h (includes): Likewise.
73084         * lib/utimecmp.c (includes): Likewise.
73085         * lib/utimens.h (includes): Likewise.
73086         * lib/getdate.y (includes): Also include "timespec.h" for use
73087         internal to the module.
73088         * modules/utimens (Depends-on): Revert yesterday's patch.
73089         * modules/nanosleep (Depends-on): Add missing dependency.
73090
73091 2007-02-22  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/glob.c: Don't include getlogin_r.h.
73094
73095 2007-02-22  Jim Meyering  <jim@meyering.net>
73096
73097         * modules/utimens (Depends-on): Add timespec, required for
73098         utimens.h's inclusion of timespec.h.
73099
73100 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73103         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73104         Schwab in
73105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73106         I'll try to think of a better way to fix the Solaris problem.
73107
73108         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73109         like glibc; on Solaris 10, it fails with errno == EINVAL.
73110         POSIX says the behavior is unspecified if the first argument is NULL,
73111         so play it safe and never pass NULL to the system getcwd.
73112
73113 2007-02-21  Jim Meyering  <jim@meyering.net>
73114
73115         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73116         of gettimeofday.  It would conflict with the one now always
73117         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73118         an IRIX 6.5 build failure.
73119
73120 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         Minor fixups to port to Solaris 10 with Sun C 5.8.
73123         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73124         * modules/getcwd (Depends-on): Add dirfd.
73125         * lib/putenv.c (putenv): #undef it.
73126         (rpl_putenv): New decl.
73127         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73128
73129 2007-02-20  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/stdio-tests: New file.
73132         * tests/test-stdio.c: New file.
73133
73134         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73135         (Depends-on): Add stdio.
73136         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73137         (Include): Use <stdio.h> instead of vsnprintf.h.
73138         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73139         HAVE_DECL_VSNPRINTF.
73140         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73141
73142         * modules/snprintf (Files): Remove lib/snprintf.h.
73143         (Depends-on): Add stdio.
73144         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73145         (Include): Use <stdio.h> instead of snprintf.h.
73146         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73147         HAVE_DECL_SNPRINTF.
73148         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73149         * lib/getaddrinfo.c: Likewise.
73150
73151         * modules/stdio: New file.
73152         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73153         * lib/snprintf.h: Remove file.
73154         * lib/vsnprintf.h: Remove file.
73155         * lib/.cppi-disable: Remove snprintf.h.
73156         * m4/stdio_h.m4: New file.
73157         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73158
73159 2007-02-20  Jim Meyering  <jim@meyering.net>
73160
73161         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73162         used by e.g., mingw.  From Bruno Haible.
73163
73164 2007-02-19  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73167         warnings.
73168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73169
73170 2007-02-19  Bruno Haible  <bruno@clisp.org>
73171
73172         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73173         from mingw users.
73174
73175 2007-02-19  Bruno Haible  <bruno@clisp.org>
73176
73177         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73178         warnings.
73179         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73180
73181 2007-02-19  Jim Meyering  <jim@meyering.net>
73182
73183         Don't use FD after a successful "fdopendir (fd)".
73184         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73185         Reset it by calling dirfd on the just-obtained DIR*.
73186
73187         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73188         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73189
73190 2007-02-18  Bruno Haible  <bruno@clisp.org>
73191
73192         * lib/readlink.c: Include <unistd.h>.
73193         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73194         HAVE_READLINK.
73195         * modules/readlink (Depends-on): Add unistd.
73196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73197         (Include): Add <unistd.h>.
73198
73199         * lib/getlogin_r.h: Remove file.
73200         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73201         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73202         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73203         HAVE_DECL_GETLOGIN_R.
73204         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73206         (Include): Use <unistd.h> instead of getlogin_r.h.
73207
73208         * lib/getcwd.h: Remove file.
73209         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73210         * lib/xgetcwd.c: Likewise.
73211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73212         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73213         * modules/getcwd (Files): Remove lib/getcwd.h.
73214         (Depends-on): Add unistd.
73215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73216         (Include): Use <unistd.h> instad of getcwd.h.
73217
73218         * lib/ftruncate.c: Include <unistd.h> first.
73219         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73220         Set HAVE_FTRUNCATE.
73221         * modules/ftruncate (Depends-on): Add unistd.
73222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73223
73224         * lib/fchdir.c: Include <unistd.h> first.
73225         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73227         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73228         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73229         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73230
73231         * lib/dup2.c: Include <unistd.h> first.
73232         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73233         HAVE_DUP2.
73234         * modules/dup2 (Depends-on): Add unistd.
73235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73236
73237         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73238         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73239         REPLACE_CHOWN. Don't define chown as a macro here.
73240         * modules/chown (Depends-on): Add unistd.
73241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73242
73243         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73244         Add definition for GL_LINK_WARNING.
73245         (chown, dup2): New declarations.
73246         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73247         link warning.
73248         (ftruncate): New declaration.
73249         (getcwd): New declaration, taken from old getcwd.h.
73250         (getlogin_r): New declaration, taken from old getlogin_r.h.
73251         (readlink): New declaration.
73252         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73253         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73254         (gl_PREREQ_UNISTD): Remove macro.
73255         (gl_UNISTD_MODULE_INDICATOR): New macro.
73256         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73257         many new variables. Don't set UNISTD_H.
73258         * modules/unistd (Description): Change.
73259         (Depends-on): Add link-warning.
73260         (configure.ac): Update.
73261         (Makefile.am): Create unistd.h always. Substitute many new variables
73262         into it.
73263
73264 2007-02-18  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73267         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73268         HAVE_GETSUBOPT.
73269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73270         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73271         * lib/getsubopt.h: Remove file.
73272         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73273         (Depends-on): Add stdlib.
73274         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73275         (Includes): Use <stdlib.h> instead of getsubopt.h.
73276         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73277         Set HAVE_GETSUBOPT.
73278         * lib/getsubopt.c: Don't include getsubopt.h.
73279
73280 2007-02-18  Bruno Haible  <bruno@clisp.org>
73281
73282         * modules/fchdir (Depends-on): Add dup2.
73283
73284 2007-02-18  Bruno Haible  <bruno@clisp.org>
73285
73286         * lib/stdlib_.h: Handle glibc's special invocation convention
73287         specially.
73288
73289 2007-02-18  Bruno Haible  <bruno@clisp.org>
73290
73291         * modules/stdlib-tests: New file.
73292         * tests/test-stdlib.c: New file.
73293
73294         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73295         (Depends-on): Add stdlib.
73296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73297         (Includes): Use <stdlib.h> instead of mkstemp.h.
73298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73299         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73300         * lib/mkstemp.c: Don't include mkstemp.h.
73301         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73302         * lib/stdlib--.h: Don't include mkstemp.h.
73303
73304         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73305         (Depends-on): Add stdlib.
73306         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73307         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73308         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73309         HAVE_MKDTEMP.
73310         * lib/mkdtemp.c: Don't include mkdtemp.h.
73311         * lib/clean-temp.c: Don't include mkdtemp.h.
73312
73313         * modules/exit (Files): Remove lib/exit.h.
73314         (Depends-on): Add stdlib.
73315         (Makefile.am): Remove lib_SOURCES.
73316         (Include): Use <stdlib.h> instead of exit.h.
73317         * lib/argmatch.c: Don't include exit.h.
73318         * lib/execute.c: Likewise.
73319         * lib/pagealign_alloc.c: Likewise.
73320         * lib/pipe.c: Likewise.
73321         * lib/wait-process.c: Likewise.
73322         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73323         * lib/exitfail.c: Likewise.
73324         * lib/savewd.c: Likewise.
73325         * lib/xsetenv.c: Likewise.
73326
73327         * modules/stdlib: New file.
73328         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73329         and extra comments about mkstemp().
73330         * lib/exit.h: Remove file.
73331         * lib/mkdtemp.h: Remove file.
73332         * lib/mkstemp.h: Remove file.
73333         * m4/stdlib_h.m4: New file.
73334         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73335
73336 2007-02-18  Bruno Haible  <bruno@clisp.org>
73337
73338         * modules/math-tests: New file.
73339         * tests/test-math.c: New file.
73340
73341         * modules/math: New file.
73342         * modules/mathl (Files): Remove lib/mathl.h.
73343         (Depends-on): Add math.
73344         (Makefile.am): Don't mention mathl.h.
73345         (Include): Use <math.h> instead of mathl.h.
73346         * lib/math_.h: New file.
73347         * lib/mathl.h: Remove file.
73348         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73349         mathl.h.
73350         * lib/asinl.c: Likewise.
73351         * lib/atanl.c: Likewise.
73352         * lib/ceill.c: Likewise.
73353         * lib/cosl.c: Likewise.
73354         * lib/expl.c: Likewise.
73355         * lib/floorl.c: Likewise.
73356         * lib/frexpl.c: Likewise.
73357         * lib/ldexpl.c: Likewise.
73358         * lib/logl.c: Likewise.
73359         * lib/sincosl.c: Likewise.
73360         * lib/sinl.c: Likewise.
73361         * lib/sqrtl.c: Likewise.
73362         * lib/tanl.c: Likewise.
73363         * lib/trigl.c: Likewise.
73364         * m4/math_h.m4: New file.
73365         * MODULES.html.sh (Mathematics): Add math.
73366
73367 2007-02-17  Bruno Haible  <bruno@clisp.org>
73368
73369         * modules/wctype-tests: New file.
73370         * tests/test-wctype.c: New file.
73371
73372         * modules/wchar-tests: New file.
73373         * tests/test-wchar.c: New file.
73374
73375         * modules/unistd-tests: New file.
73376         * tests/test-unistd.c: New file.
73377
73378         * modules/time-tests: New file.
73379         * tests/test-time.c: New file.
73380
73381         * modules/sysexits-tests: New file.
73382         * tests/test-sysexits.c: New file.
73383
73384         * modules/sys_time-tests: New file.
73385         * tests/test-sys_time.c: New file.
73386
73387         * modules/sys_stat-tests: New file.
73388         * tests/test-sys_stat.c: New file.
73389
73390         * modules/sys_socket-tests: New file.
73391         * tests/test-sys_socket.c: New file.
73392
73393         * modules/sys_select-tests: New file.
73394         * tests/test-sys_select.c: New file.
73395
73396         * modules/string-tests: New file.
73397         * tests/test-string.c: New file.
73398
73399         * modules/stdbool-tests: New file.
73400         * tests/test-stdbool.c: New file.
73401
73402         * modules/netinet_in-tests: New file.
73403         * tests/test-netinet_in.c: New file.
73404
73405         * modules/inttypes-tests: New file.
73406         * tests/test-inttypes.c: New file.
73407
73408         * modules/fcntl-tests: New file.
73409         * tests/test-fcntl.c: New file.
73410
73411         * modules/byteswap-tests: New file.
73412         * tests/test-byteswap.c: New file.
73413
73414         * modules/arpa_inet-tests: New file.
73415         * tests/test-arpa_inet.c: New file.
73416
73417 2007-02-17  Bruno Haible  <bruno@clisp.org>
73418
73419         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73420         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73421         if the corresponding module is not enabled. Emit link warnings if
73422         the function is used nevertheless.
73423         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73424         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73425         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73426         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73427         * modules/inttypes (Depends-on): Add link-warning.
73428         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73429         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73430         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73431         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73432         * modules/imaxdiv (configure.ac): Likewise.
73433         * modules/strtoimax (configure.ac): Likewise.
73434         * modules/strtoumax (configure.ac): Likewise.
73435
73436 2007-02-17  Bruno Haible  <bruno@clisp.org>
73437
73438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73439         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73440         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73441         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73442
73443 2007-02-17  Bruno Haible  <bruno@clisp.org>
73444
73445         * modules/link-warning: New file.
73446         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73447         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73448         * modules/string (Depends-on): Add link-warning.
73449         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73450         string.h.
73451         * MODULES.html.sh (Support for building libraries and executables): Add
73452         link-warning.
73453
73454 2007-02-17  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73457         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73458         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73459         long lines.
73460
73461 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73462             Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/tmpfile: New file.
73465         * lib/tmpfile.c: New file.
73466         * m4/tmpfile.m4: New file.
73467         * MODULES.html.sh (func_all_modules): New section "Input/output".
73468
73469 2007-02-15  Bruno Haible  <bruno@clisp.org>
73470
73471         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73472         (supports_delete_on_close): New function.
73473         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73474
73475 2007-02-14  Bruno Haible  <bruno@clisp.org>
73476
73477         * modules/mbspcasecmp-tests: New file.
73478         * tests/test-mbspcasecmp.sh: New file.
73479         * tests/test-mbspcasecmp.c: New file.
73480
73481         New module mbspcasecmp.
73482         * modules/mbspcasecmp: New file.
73483         * lib/mbspcasecmp.c: New file.
73484         * lib/string_.h (strncasecmp): Change warning message.
73485         (mbspcasecmp): New declaration.
73486         * m4/mbspcasecmp.m4: New file.
73487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73488         GNULIB_MBSPCASECMP.
73489         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73490         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73491
73492 2007-02-14  Bruno Haible  <bruno@clisp.org>
73493
73494         * modules/mbsncasecmp-tests: New file.
73495         * tests/test-mbsncasecmp.sh: New file.
73496         * tests/test-mbsncasecmp.c: New file.
73497
73498         New module mbsncasecmp.
73499         * modules/mbsncasecmp: New file.
73500         * lib/mbsncasecmp.c: New file.
73501         * lib/string_.h (mbsncasecmp): New declaration.
73502         * m4/mbsncasecmp.m4: New file.
73503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73504         GNULIB_MBSNCASECMP.
73505         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73506         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73507
73508 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73511         Verify that it doesn't overlap with our flags.
73512         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73513         do not have the desired effect in multibyte locales; instead, use
73514         mbscasecmp.
73515         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73516         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73517         we don't require GNU fnmatch ourselves (if our users require it, they
73518         should do so explicitly).
73519
73520         Fix regex code so it doesn't rely on strcasecmp.
73521         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73522         Otherwise, include gnulib's langinfo.h.
73523         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73524         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73525         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73526         * modules/regex (FILES): Remove m4/codeset.m4.
73527         (Depends-on): Add localcharset.  Remove strcase.
73528
73529 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73530
73531         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73532         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73533
73534 2007-02-13  Bruno Haible  <bruno@clisp.org>
73535
73536         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73538
73539 2007-02-12  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73543         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73544         time warning rather than a link error.
73545
73546 2007-02-12  Bruno Haible  <bruno@clisp.org>
73547
73548         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73551
73552 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73555         args, not 2.
73556
73557 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73558
73559         New module 'time', so that apps can include <time.h> as per
73560         POSIX and GNU instead of separate include files like time_r.h
73561         and timegm.h.  This implementation tries out a simpler approach
73562         for replacing decls in standard include files (as compared to
73563         the string module), somewhat as an experiment.
73564
73565         * config/srclist.txt: Comment out mktime.c for now.
73566         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73567         since it doesn't apply any more.  Use generic wording instead.
73568         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73569         'time'.
73570         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73571         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73572         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73573         Don't include <sys/types.h>; no longer needed since we assume C89.
73574         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73575         * lib/strftime.c: Likewise.
73576         * lib/time_r.c: Likewise.
73577         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73578         * lib/nanosleep.c: Include <time.h> first, to check interface.
73579         * lib/strptime.c: Likewise.
73580         * lib/time_r.c: Likewise.
73581         * lib/timegm.c: Likewise.
73582         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73583         needed.
73584         * lib/timegm.c: Don't include timegm.h; no longer needed.
73585         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73586         time.h now handles any problems in that area.
73587         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73588         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73589         that time.h defines struct timespec.
73590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73591         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73592         handles that.
73593         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73594         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73595         needed.  Set REPLACE_LOCALTIME.
73596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73597         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73598         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73599         nanosleep; time_h.m4 now does that.  Don't require
73600         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73601         module handles this now.
73602         * modules/getdate (Depends-on): Remove timespec.  Add time.
73603         * modules/nanosleep (Depends-on): Likewise.
73604         * modules/stat-time (Depends-on): Likewise.
73605         * modules/nanosleep (Include): Include time.h, not timespec.h.
73606         * modules/strptime (Files): Remove lib/strptime.h.
73607         (Depends-on): Add extensions, time.
73608         (Include): Include time.h, not strptime.h.
73609         * modules/time_r (Files): Remove lib/time_r.h.
73610         (Depends-on): Add time.
73611         (Include): Include time.h, not time_r.h.
73612         * modules/timegm: Likewise.
73613         * modules/timespec (Description): Now does timespec-related decls
73614         of our own, instead of struct timespec itself.
73615         (Depends-on): Add time; remove extensions.
73616         (Maintainer): Add self.
73617         * modules/utimecmp (Depends-on): Add time; remove timespec.
73618         * modules/utimens (Depends-on): Likewise.
73619         * modules/xnanosleep (Depends-on): Likewise.
73620
73621 2007-02-11  Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/c-strstr.c: Include allocsa.h.
73624         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73625         * lib/c-strcasestr.c: Include allocsa.h.
73626         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73627         * lib/strcasestr.c: Include allocsa.h.
73628         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73629         * lib/mbsstr.c: Include allocsa.h.
73630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73631         allocsa/freesa instead of malloc/free.
73632         * lib/mbscasestr.c: Include allocsa.h.
73633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73634         allocsa/freesa instead of malloc/free.
73635         * modules/c-strstr (Depends-on): Add allocsa.
73636         * modules/c-strcasestr (Depends-on): Likewise.
73637         * modules/strcasestr (Depends-on): Likewise.
73638         * modules/mbsstr (Depends-on): Likewise.
73639         * modules/mbscasestr (Depends-on): Likewise.
73640
73641 2007-02-11  Bruno Haible  <bruno@clisp.org>
73642
73643         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73644
73645         * modules/mbsspn-tests: New file.
73646         * tests/test-mbsspn.sh: New file.
73647         * tests/test-mbsspn.c: New file.
73648
73649 2007-02-11  Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73652
73653         * modules/mbspbrk-tests: New file.
73654         * tests/test-mbspbrk.sh: New file.
73655         * tests/test-mbspbrk.c: New file.
73656
73657 2007-02-11  Bruno Haible  <bruno@clisp.org>
73658
73659         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73660         unneeded cast.
73661
73662         * modules/mbscspn-tests: New file.
73663         * tests/test-mbscspn.sh: New file.
73664         * tests/test-mbscspn.c: New file.
73665
73666 2007-02-11  Bruno Haible  <bruno@clisp.org>
73667
73668         * modules/mbscasecmp-tests: New file.
73669         * tests/test-mbscasecmp.sh: New file.
73670         * tests/test-mbscasecmp.c: New file.
73671
73672 2007-02-11  Bruno Haible  <bruno@clisp.org>
73673
73674         Ensure O(n) worst-case complexity of mbscasestr.
73675         * lib/mbscasestr.c: Include stdbool.h.
73676         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73677         functions.
73678         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73679         the bookkeeping indicates that it's worth it.
73680         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73681
73682         * modules/mbscasestr-tests: New file.
73683         * tests/test-mbscasestr1.c: New file.
73684         * tests/test-mbscasestr2.sh: New file.
73685         * tests/test-mbscasestr2.c: New file.
73686         * tests/test-mbscasestr3.sh: New file.
73687         * tests/test-mbscasestr3.c: New file.
73688         * tests/test-mbscasestr4.sh: New file.
73689         * tests/test-mbscasestr4.c: New file.
73690         * m4/locale-tr.m4: New file.
73691
73692 2007-02-11  Bruno Haible  <bruno@clisp.org>
73693
73694         Ensure O(n) worst-case complexity of mbsstr.
73695         * lib/mbsstr.c: Include stdbool.h.
73696         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73697         functions.
73698         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73699         bookkeeping indicates that it's worth it.
73700         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73701
73702         * modules/mbsstr-tests: New file.
73703         * tests/test-mbsstr1.c: New file.
73704         * tests/test-mbsstr2.sh: New file.
73705         * tests/test-mbsstr2.c: New file.
73706         * tests/test-mbsstr3.sh: New file.
73707         * tests/test-mbsstr3.c: New file.
73708         * m4/locale-fr.m4: New file.
73709
73710 2007-02-11  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/mbsrchr.c (mbsrchr): Fix bug.
73713
73714         * modules/mbsrchr-tests: New file.
73715         * tests/test-mbsrchr.sh: New file.
73716         * tests/test-mbsrchr.c: New file.
73717
73718 2007-02-11  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/mbschr.c (mbschr): Fix bug.
73721
73722         * modules/mbschr-tests: New file.
73723         * tests/test-mbschr.sh: New file.
73724         * tests/test-mbschr.c: New file.
73725         * m4/locale-zh.m4: New file.
73726
73727 2007-02-11  Bruno Haible  <bruno@clisp.org>
73728
73729         Support for copying multibyte string iterators.
73730         * lib/mbiter.h: Include <string.h>.
73731         (mbiter_multi_copy): New function.
73732         (mbi_copy): New macro.
73733         * lib/mbuiter.h: Include <string.h>.
73734         (mbuiter_multi_copy): New function.
73735         (mbui_copy): New macro.
73736
73737 2007-02-11  Bruno Haible  <bruno@clisp.org>
73738
73739         New module mbslen.
73740         * modules/mbslen: New file.
73741         * lib/mbslen.c: New file.
73742         * lib/string_.h (mbslen): New declaration.
73743         * m4/mbslen.m4: New file.
73744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73745         GNULIB_MBSLEN.
73746         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73747         * MODULES.html.sh (Internationalization functions): Add mbslen.
73748
73749 2007-02-11  Bruno Haible  <bruno@clisp.org>
73750
73751         Ensure O(n) worst-case complexity of strcasestr substitute.
73752         * lib/strcasestr.c: Include stdbool.h.
73753         (knuth_morris_pratt): New function.
73754         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73755         bookkeeping indicates that it's worth it.
73756         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73757
73758         * modules/strcasestr-tests: New file.
73759         * tests/test-strcasestr.c: New file.
73760
73761 2007-02-11  Bruno Haible  <bruno@clisp.org>
73762
73763         Ensure O(n) worst-case complexity of c_strcasestr.
73764         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73765         (knuth_morris_pratt): New function.
73766         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73767         the bookkeeping indicates that it's worth it.
73768         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73769
73770         * modules/c-strcasestr-tests: New file.
73771         * tests/test-c-strcasestr.c: New file.
73772
73773 2007-02-11  Bruno Haible  <bruno@clisp.org>
73774
73775         Ensure O(n) worst-case complexity of c_strstr.
73776         * lib/c-strstr.c: Include stdbool.h, string.h.
73777         (knuth_morris_pratt): New function.
73778         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73779         bookkeeping indicates that it's worth it.
73780         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73781
73782         * lib/c-strstr.c: Complete rewrite for maintainability.
73783
73784         * modules/c-strstr-tests: New file.
73785         * tests/test-c-strstr.c: New file.
73786
73787 2007-02-11  Bruno Haible  <bruno@clisp.org>
73788
73789         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73790         5.2.1 and earlier, whereby \055 was treated just like the range
73791         delimiter '-'.
73792         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73793
73794 2007-02-08  Bruno Haible  <bruno@clisp.org>
73795
73796         * modules/regex (Depends-on): Add stdbool.
73797         Reported by Dalibor Topic <robilad@kaffe.org>.
73798
73799 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73800
73801         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73802         Prefer returning from main to exiting from it.
73803         Remove unnecessary parens after sizeof.
73804
73805 2007-02-05  Bruno Haible  <bruno@clisp.org>
73806
73807         New module mbssep.
73808         * modules/mbssep: New file.
73809         * lib/mbssep.c: New file.
73810         * lib/string_.h (strsep): Add a conditional link warning.
73811         (mbssep): New declaration.
73812         * m4/mbssep.m4: New file.
73813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73814         GNULIB_MBSSEP.
73815         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73816         * MODULES.html.sh (Internationalization functions): Add mbssep.
73817
73818 2007-02-05  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73821         Optimize search in case of 1 delimiter.
73822
73823 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73824
73825         * lib/acl.h: Include sys/types.h before sys/acl.h.
73826
73827 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73828
73829         Merge upstream fix for glibc bugzilla #3957:
73830
73831         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73832
73833         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73834         bit for RE_HAT_LISTS_NOT_NEWLINE.
73835         (build_charclass_op): Remove bogus comment.
73836
73837 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73838
73839         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73840
73841 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73844         * lib/memmem.c [!defined _LIBC]: Include config.h.
73845
73846 2007-02-04  Bruno Haible  <bruno@clisp.org>
73847
73848         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73849         warning message.
73850
73851 2007-02-04  Bruno Haible  <bruno@clisp.org>
73852
73853         New module mbstok_r.
73854         * modules/mbstok_r: New file.
73855         * lib/mbstok_r.c: New file.
73856         * lib/string_.h (strtok_r): Change argument names to match the
73857         comments. Add a conditional link warning.
73858         (mbstok_r): New declaration.
73859         * m4/mbstok_r.m4: New file.
73860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73861         GNULIB_MBSTOK_R.
73862         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73863         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73864
73865 2007-02-04  Bruno Haible  <bruno@clisp.org>
73866
73867         New module mbsspn.
73868         * modules/mbsspn: New file.
73869         * lib/mbsspn.c: New file.
73870         * lib/string_.h (strspn): Add a conditional link warning.
73871         (mbsspn): New declaration.
73872         * m4/mbsspn.m4: New file.
73873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73874         GNULIB_MBSSPN.
73875         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73876         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73877
73878 2007-02-04  Bruno Haible  <bruno@clisp.org>
73879
73880         New module mbspbrk.
73881         * modules/mbspbrk: New file.
73882         * lib/mbspbrk.c: New file.
73883         * lib/string_.h (strpbrk): Add a conditional link warning.
73884         (mbspbrk): New declaration.
73885         * m4/mbspbrk.m4: New file.
73886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73887         GNULIB_MBSPBRK.
73888         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73889         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73890
73891 2007-02-04  Bruno Haible  <bruno@clisp.org>
73892
73893         New module mbscspn.
73894         * modules/mbscspn: New file.
73895         * lib/mbscspn.c: New file.
73896         * lib/string_.h (strcspn): Add a conditional link warning.
73897         (mbscspn): New declaration.
73898         * m4/mbscspn.m4: New file.
73899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73900         GNULIB_MBSCSPN.
73901         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73902         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73903
73904 2007-02-04  Bruno Haible  <bruno@clisp.org>
73905
73906         New module mbscasestr, reduced goal of strcasestr.
73907         * modules/mbscasestr: New file.
73908         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73909         (mbscasestr): Renamed from strcasestr.
73910         * lib/strcasestr.c: Don't include mbuiter.h.
73911         (strcasestr): Remove support for multibyte locales.
73912         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73913         Change the conditional link warning.
73914         (mbscasestr): New declaration.
73915         * m4/mbscasestr.m4: New file.
73916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73917         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73918         REPLACE_STRCASESTR.
73919         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73921         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73922         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73923         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73924         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73925         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73926         (Depends-on): Remove mbuiter.
73927         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73928
73929 2007-02-04  Bruno Haible  <bruno@clisp.org>
73930
73931         Simplify handling of strncasecmp.
73932         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73933         the conditional link warning.
73934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73935         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73936         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73937         * modules/strcase (configure.ac): Don't invoke
73938         gl_STRING_MODULE_INDICATOR.
73939         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73940
73941 2007-02-04  Bruno Haible  <bruno@clisp.org>
73942
73943         New module mbscasecmp, reduced goal of strcasecmp.
73944         * modules/mbscasecmp: New file.
73945         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73946         (mbscasecmp): Renamed from strcasecmp.
73947         * lib/strcasecmp.c: Don't include mbuiter.h.
73948         (strcasecmp): Remove support for multibyte locales.
73949         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73950         Change the conditional link warning.
73951         (mbscasecmp): New declaration.
73952         * m4/mbscasecmp.m4: New file.
73953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73954         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73955         REPLACE_STRCASECMP.
73956         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73958         GNULIB_MBSCASECMP.
73959         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73960         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73961         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73962         (Depends-on): Remove mbuiter.
73963         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73964
73965 2007-02-04  Bruno Haible  <bruno@clisp.org>
73966
73967         New module mbsstr. Remove module strstr.
73968         * modules/mbsstr: New file.
73969         * modules/strstr: Remove file.
73970         * lib/mbsstr.c: Renamed from lib/strstr.c.
73971         (mbsstr): Renamed from strstr.
73972         * lib/string_.h (strstr): Remove declaration. Change the conditional
73973         link warning.
73974         (mbsstr): New declaration.
73975         * m4/mbsstr.m4: New file.
73976         * m4/strstr.m4: Remove file.
73977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73978         REPLACE_STRSTR.
73979         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73980         Don't initialize GNULIB_STRSTR.
73981         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73982         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73983         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73984         (Support for systems lacking ANSI C 89): Remove strstr.
73985
73986 2007-02-04  Bruno Haible  <bruno@clisp.org>
73987
73988         New module mbsrchr.
73989         * modules/mbsrchr: New file.
73990         * lib/mbsrchr.c: New file.
73991         * lib/string_.h (strrchr): Add a conditional link warning.
73992         (mbsrchr): New declaration.
73993         * m4/mbsrchr.m4: New file.
73994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73995         GNULIB_MBSRCHR.
73996         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73997         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73998
73999 2007-02-04  Bruno Haible  <bruno@clisp.org>
74000
74001         New module mbschr.
74002         * modules/mbschr: New file.
74003         * lib/mbschr.c: New file.
74004         * lib/string_.h (strchr): Add a conditional link warning.
74005         (mbschr): New declaration.
74006         * m4/mbschr.m4: New file.
74007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74008         GNULIB_MBSCHR.
74009         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74010         * MODULES.html.sh (Internationalization functions): Add mbschr.
74011
74012 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74015
74016         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74017
74018 2007-02-04  Bruno Haible  <bruno@clisp.org>
74019
74020         New module description section 'configure.ac-early'.
74021         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74022         (func_get_autoconf_early_snippet): New function.
74023         (func_import, func_create_testdir): Use it. Remove special cases for
74024         modules 'extensions' and 'lock'.
74025         * modules/extensions (configure.ac-early): Require
74026         gl_USE_SYSTEM_EXTENSIONS.
74027         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74028
74029 2007-02-04  Bruno Haible  <bruno@clisp.org>
74030
74031         Make use of gcj-4.3's -fsource and -ftarget option.
74032         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74033         and if so try the options -fsource and -ftarget.
74034         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74035         source_version, ftarget_option, target_version arguments.
74036         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74037         (is_envjavac_oldgcj_14_14_usable): Renamed from
74038         is_envjavac_gcj_14_14_usable.
74039         (is_envjavac_oldgcj_14_13_usable): Renamed from
74040         is_envjavac_gcj_14_13_usable.
74041         (is_gcj_present): Update.
74042         (is_gcj_43, is_gcj43_usable): New functions.
74043         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74044         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74045         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74046         try the options -fsource and -ftarget.
74047
74048 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74051         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74052         larger value.
74053
74054 2007-02-03  Jim Meyering  <jim@meyering.net>
74055
74056         Give tools a better chance to allocate space for very large buffers.
74057         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74058
74059         Make pwd and readlink work also when run with an unreadable parent dir
74060         on systems with openat support.
74061         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74062         provided getcwd function, even when we have openat support.
74063         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74064
74065 2007-02-02  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74068         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74069         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74070         portability problems if one of these functions is only used on specific
74071         platforms.
74072         Reported by Paul Eggert.
74073
74074 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74077         is causing more trouble than it's curing.
74078         * lib/regex_internal.h (__mempcpy): Remove.
74079         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74080         (and make the code a tad smaller to boot).
74081         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74082
74083 2007-02-02  Jim Meyering  <jim@meyering.net>
74084
74085         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74086         section, not in the Makefile.am: one.
74087
74088 2007-02-02  Eric Blake  <ebb9@byu.net>
74089
74090         * lib/strchrnul.c: Always include config.h first.
74091
74092         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74093         gnulib strstr is not necessary here.
74094
74095 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74096
74097         * m4/socklen.m4: Fix typo.
74098
74099 2007-02-02  Eric Blake  <ebb9@byu.net>
74100
74101         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74102         * modules/netinet_in (Makefile.am): Likewise.
74103
74104 2007-02-01  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/string_.h (GL_LINK_WARNING): New macro.
74107         (strcasecmp, strstr, strcasestr): If provided by the system,
74108         conditionally define as a macro that leads to a warning instead of to
74109         an error.
74110         (strncasecmp): Conditionally define as a macro that leads to a warning.
74111
74112 2007-02-01  Karl Berry  <karl@gnu.org>
74113
74114         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74115
74116 2007-02-01  Bruno Haible  <bruno@clisp.org>
74117
74118         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74119         renamings.
74120
74121 2007-02-01  Eric Blake  <ebb9@byu.net>
74122
74123         * modules/regex (Depends-on): Revert dependence on mempcpy.
74124         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74125         module's definition of mempcpy.
74126         Reported by Paul Eggert.
74127
74128 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74131         the symbol XYZ before redefining it.  This fixes a problem with
74132         programs that don't use XYZ, when compiled on systems that define
74133         XYZ to something else.
74134
74135 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74138         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74139         writeable to group or other and (2) is intended to have a special
74140         mode bit that is set or cleared.  In such a case, the directory
74141         should be neither group- nor other-writeable until the special
74142         mode bits are right.
74143
74144 2007-01-31  Eric Blake  <ebb9@byu.net>
74145
74146         * modules/mountlist (Depends-on): Add strstr.
74147
74148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74149         bug.
74150         * modules/string (Makefile.am): Remove redundant replacement.
74151         * modules/regex (Depends-on): Add mempcpy.
74152
74153 2007-01-31  Bruno Haible  <bruno@clisp.org>
74154
74155         New module description field 'Link'.
74156         * gnulib-tool (func_usage): Document --extract-link-directive.
74157         (sed_extract_prog): Recognize 'Link' directive.
74158         (func_get_link_directive): New function.
74159         (func_import): Show summary of link directives.
74160         Handle --extract-link-directive option.
74161         * modules/acl (Link): New section.
74162         * modules/clock-time (Link): New section.
74163         * modules/euidaccess (Link): New section.
74164         * modules/gettext (Link): New section.
74165         * modules/iconv (Link): New section.
74166         * modules/lock (Link): New section.
74167         * modules/nanosleep (Link): New section.
74168         * modules/readline (Link): New section.
74169
74170 2007-01-27  Bruno Haible  <bruno@clisp.org>
74171
74172         Enforce the use of gnulib modules for unportable <string.h> functions.
74173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74174         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74175         (gl_HEADER_STRING_H_BODY): Require it.
74176         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74177         the symbol XYZ to one that gives a link error.
74178         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74179         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74180         * modules/mempcpy (configure.ac): Likewise.
74181         * modules/memrchr (configure.ac): Likewise.
74182         * modules/stpcpy (configure.ac): Likewise.
74183         * modules/stpncpy (configure.ac): Likewise.
74184         * modules/strcase (configure.ac): Likewise.
74185         * modules/strcasestr (configure.ac): Likewise.
74186         * modules/strchrnul (configure.ac): Likewise.
74187         * modules/strdup (configure.ac): Likewise.
74188         * modules/strndup (configure.ac): Likewise.
74189         * modules/strnlen (configure.ac): Likewise.
74190         * modules/strpbrk (configure.ac): Likewise.
74191         * modules/strsep (configure.ac): Likewise.
74192         * modules/strstr (configure.ac): Likewise.
74193         * modules/strtok_r (configure.ac): Likewise.
74194
74195 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74196
74197         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74198
74199 2007-01-30  Jim Meyering  <jim@meyering.net>
74200
74201         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74202
74203 2007-01-29  Bruno Haible  <bruno@clisp.org>
74204
74205         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74206         * lib/execute.c: Likewise.
74207         * lib/pipe.c: Likewise.
74208         * lib/printf-args.h: Likewise.
74209         * lib/printf-args.c: Likewise.
74210         * lib/printf-parse.c: Likewise.
74211         * lib/vasnprintf.c: Likewise.
74212
74213 2007-01-29  Eric Blake  <ebb9@byu.net>
74214
74215         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74216         declaration.
74217
74218 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * lib/strptime.h (strptime): Use 'restrict' for args where
74221         POSIX requires this.
74222         * lib/strptime.c (strptime): Likewise.
74223         Change license notice from LGPL to GPL, since gnulib-tool will
74224         change this as needed.
74225         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74226         defined.
74227         Include "strptime.h" first, to check interface.
74228         Do not #undef _LIBC and _NL_CURRENT.
74229         Do not include <stdlib.h>; no longer needed.
74230         Include "time_r.h" and declare ptime_locale_status
74231         only if _LIBC is not defined.
74232         (__P): Remove unused macro.
74233         (match_string): Bring back glibc version, but use it only if _LIBC
74234         is defined.
74235         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74236         Remove unnecessary assertion and abort() call.
74237         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74238         * m4/strptime.m4: Fix serial number comment.
74239         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74240         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74241         (Depends-on): Add time_r.
74242
74243 2007-01-29  Bruno Haible  <bruno@clisp.org>
74244
74245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74246         strptime.
74247         * modules/strptime (Depends-on): Add stdbool.
74248         * lib/strptime.h: Include <time.h> always. Add comments.
74249
74250 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74251
74252         * modules/strptime: New file.
74253         * lib/strptime.h: New file.
74254         * lib/strptime.c: New file.
74255         * m4/strptime.m4: New file.
74256
74257 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * MODULES.html.sh: New module mpsort.
74260         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74261
74262         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74263         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74265         All uses changed.
74266         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74267         All uses changed.
74268         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74269         to _Restrict_.
74270         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74271         the parameter matches the prototype.
74272
74273 2007-01-28  Jim Meyering  <jim@meyering.net>
74274
74275         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74276         sys/time.h here, reverting that part of the previous patch:
74277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74278
74279 2007-01-28  Bruno Haible  <bruno@clisp.org>
74280
74281         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74282         value of $(SYS_TIME_H).
74283         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74284         remove it conditionally, too. [added by Jim Meyering]
74285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74287         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74288         GETTIMEOFDAY_REPLACEMENT to 1.
74289
74290 2007-01-28  Bruno Haible  <bruno@clisp.org>
74291
74292         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74293         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74295         Set UNISTD_H instead of UNISTD_H2.
74296         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74297
74298 2007-01-28  Bruno Haible  <bruno@clisp.org>
74299
74300         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74301         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74302
74303 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74304
74305         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74306         (func_create_testdir): Ensure C locale for `grep' and `tr'
74307         character ranges.
74308         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74309         ACLOCAL_AMFLAGS parsing state machine.
74310
74311 2007-01-27  Bruno Haible  <bruno@clisp.org>
74312
74313         * modules/unistr/base: Update.
74314
74315 2007-01-27  Bruno Haible  <bruno@clisp.org>
74316
74317         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74318         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74319         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74320         modules/unistr/u32-mbtouc.
74321         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74322         * lib/unistr.h: Update.
74323         * lib/linebreak.c: Update.
74324         * modules/unistr/u32-mbtouc: Renamed from
74325         modules/unistr/u32-mbtouc-safe.
74326         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74327         * lib/unistr.h: Update.
74328         * lib/unistr/u32-to-u8.c: Update.
74329         * lib/unistr/u32-to-u16.c: Update.
74330
74331 2007-01-27  Bruno Haible  <bruno@clisp.org>
74332
74333         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74334         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74335         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74336         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74337         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74338         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74339         modules/unistr/u16-mbtouc.
74340         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74341         * lib/unistr.h: Update.
74342         * lib/linebreak.c: Update.
74343         * modules/linebreak: Update.
74344         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74345         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74346         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74347         * modules/unistr/u16-mbtouc: Renamed from
74348         modules/unistr/u16-mbtouc-safe.
74349         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74350         * lib/unistr.h: Update.
74351         * lib/unistr/u16-to-u8.c: Update.
74352         * modules/unistr/u16-to-u8: Update.
74353         * lib/unistr/u16-to-u32.c: Update.
74354         * modules/unistr/u16-to-u32: Update.
74355
74356 2007-01-27  Bruno Haible  <bruno@clisp.org>
74357
74358         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74359         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74360         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74361         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74362         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74363         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74364         modules/unistr/u8-mbtouc.
74365         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74366         * lib/unistr.h: Update.
74367         * lib/striconveh.c: Update.
74368         * modules/striconveh: Update.
74369         * lib/linebreak.c: Update.
74370         * modules/linebreak: Update.
74371         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74372         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74373         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74374         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74375         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74376         * lib/unistr.h: Update.
74377         * lib/striconveh.c: Update.
74378         * modules/striconveh: Update.
74379         * lib/unistr/u8-to-u16.c: Update.
74380         * modules/unistr/u8-to-u16: Update.
74381         * lib/unistr/u8-to-u32.c: Update.
74382         * modules/unistr/u8-to-u32: Update.
74383
74384 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74385
74386         Sync from Libtool.
74387         * lib/argz.c: Do not include strings.h nor memory.h, include
74388         string.h unconditionally.  Patch by Simon Josefsson.
74389
74390 2007-01-27  Bruno Haible  <bruno@clisp.org>
74391
74392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74393         from gl_HEADER_STRING_H_BODY.
74394         (gl_HEADER_STRING_H_BODY): Require it.
74395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74396         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74398         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74399         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74400         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74402         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74403         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74405         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74406         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74407         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74410
74411 2007-01-27  Bruno Haible  <bruno@clisp.org>
74412
74413         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74414         check_PROGRAMS into noinst_PROGRAMS.
74415         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74416         check_PROGRAMS in this case.
74417         (func_import): Set for_test to false.
74418         (func_create_testdir): Set for_test to true.
74419
74420 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74421             Bruno Haible  <bruno@clisp.org>
74422
74423         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74424         (Depends-on): Add string.
74425         (Includes): Use <string.h> instead of strcasestr.h.
74426         * modules/string (Makefile.am): Also substitute the value of
74427         REPLACE_STRCASESTR.
74428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74429         assume strcasestr is declared in <string.h> not <strings.h>. Also
74430         set REPLACE_STRCASESTR.
74431         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74432         REPLACE_STRCASESTR.
74433         * lib/strcasestr.h: Remove file.
74434         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74435         * lib/string_.h (strcasestr): New declaration.
74436
74437 2007-01-27  Bruno Haible  <bruno@clisp.org>
74438
74439         * lib/string_.h: Use 'extern'.
74440
74441 2007-01-27  Jim Meyering  <jim@meyering.net>
74442
74443         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74444         of set-but-not-used local, "q".
74445
74446         * lib/mempcpy.c: Include <config.h> before <string.h>.
74447         This fixes a compilation error on HP-UX, due to the system's
74448         "restrict"-using mempcpy prototype.
74449
74450 2007-01-26  Bruno Haible  <bruno@clisp.org>
74451
74452         Small optimization.
74453         * lib/javacomp.c: Include c-strstr.h.
74454          (is_envjavac_gcj): Use c_strstr instead of strstr.
74455         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74456
74457 2007-01-26  Bruno Haible  <bruno@clisp.org>
74458
74459         * MODULES.html.sh (Unicode string functions): Add the new modules.
74460
74461         * modules/uniconv/u32-strconv-to-locale: New file.
74462         * lib/uniconv/u32-strconv-to-locale.c: New file.
74463
74464         * modules/uniconv/u16-strconv-to-locale: New file.
74465         * lib/uniconv/u16-strconv-to-locale.c: New file.
74466
74467         * modules/uniconv/u8-strconv-to-locale: New file.
74468         * lib/uniconv/u8-strconv-to-locale.c: New file.
74469
74470         * modules/uniconv/u32-strconv-from-locale: New file.
74471         * lib/uniconv/u32-strconv-from-locale.c: New file.
74472
74473         * modules/uniconv/u16-strconv-from-locale: New file.
74474         * lib/uniconv/u16-strconv-from-locale.c: New file.
74475
74476         * modules/uniconv/u8-strconv-from-locale: New file.
74477         * lib/uniconv/u8-strconv-from-locale.c: New file.
74478
74479         * modules/uniconv/u32-strconv-to-enc: New file.
74480         * lib/uniconv/u32-strconv-to-enc.c: New file.
74481         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74482         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74483
74484         * modules/uniconv/u16-strconv-to-enc: New file.
74485         * lib/uniconv/u16-strconv-to-enc.c: New file.
74486         * lib/uniconv/u-strconv-to-enc.h: New file.
74487         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74488         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74489
74490         * modules/uniconv/u8-strconv-to-enc: New file.
74491         * lib/uniconv/u8-strconv-to-enc.c: New file.
74492         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74493         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74494
74495         * modules/uniconv/u32-strconv-from-enc: New file.
74496         * lib/uniconv/u32-strconv-from-enc.c: New file.
74497         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74498         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74499
74500         * modules/uniconv/u16-strconv-from-enc: New file.
74501         * lib/uniconv/u16-strconv-from-enc.c: New file.
74502         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74503         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74504
74505         * modules/uniconv/u8-strconv-from-enc: New file.
74506         * lib/uniconv/u8-strconv-from-enc.c: New file.
74507         * lib/uniconv/u-strconv-from-enc.h: New file.
74508         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74509         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74510
74511         * modules/uniconv/u32-conv-from-enc: New file.
74512         * lib/uniconv/u32-conv-from-enc.c: New file.
74513         * modules/uniconv/u32-conv-from-enc-tests: New file.
74514         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74515
74516         * modules/uniconv/u16-conv-from-enc: New file.
74517         * lib/uniconv/u16-conv-from-enc.c: New file.
74518         * lib/uniconv/u-conv-from-enc.h: New file.
74519         * modules/uniconv/u16-conv-from-enc-tests: New file.
74520         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74521
74522         * modules/uniconv/u8-conv-from-enc: New file.
74523         * lib/uniconv/u8-conv-from-enc.c: New file.
74524         * modules/uniconv/u8-conv-from-enc-tests: New file.
74525         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74526
74527         * modules/uniconv/base: New file.
74528         * lib/uniconv.h: New file.
74529
74530 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * doc/gnulib-tool.texi (Initial import): Update to match current
74533         behavior with strdup module.
74534         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74535         * lib/memmem.h: Remove; all uses removed.  This is now done
74536         by <string.h>.
74537         * lib/mempcpy.h: Likewise.
74538         * lib/memrchr.h: Likewise.
74539         * lib/stpcpy.h: Likewise.
74540         * lib/stpncpy.h: Likewise.
74541         * lib/strcase.h: Likewise.
74542         * lib/strchrnul.h: Likewise.
74543         * lib/strdup.h: Likewise.
74544         * lib/strndup.h: Likewise.
74545         * lib/strnlen.h: Likewise.
74546         * lib/strpbrk.h: Likewise.
74547         * lib/strsep.h: Likewise.
74548         * lib/strstr.h: Likewise.
74549         * lib/strtok_r.h: Likewise.
74550         * lib/string_.h: New file.
74551         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74552         Rely on <string.h> instead.
74553         * lib/canon-host.c: Likewise.
74554         * lib/chdir-long.c: Likewise.
74555         * lib/concatpath.c: Likewise.
74556         * lib/exclude.c: Likewise.
74557         * lib/fchdir.c: Likewise.
74558         * lib/getaddrinfo.c: Likewise.
74559         * lib/getcwd.c: Likewise.
74560         * lib/getsubopt.c: Likewise.
74561         * lib/glob.c: Likewise.
74562         * lib/hard-locale.c: Likewise.
74563         * lib/iconvme.c: Likewise.
74564         * lib/javacomp.c: Likewise.
74565         * lib/mempcpy.c: Likewise.
74566         * lib/memrchr.c: Likewise.
74567         * lib/regex_internal.h: Likewise.
74568         * lib/stpncpy.c: Likewise.
74569         * lib/strcasecmp.c: Likewise.
74570         * lib/strchrnul.c: Likewise.
74571         * lib/strdup.c: Likewise.
74572         * lib/striconv.c: Likewise.
74573         * lib/striconveh.c: Likewise.
74574         * lib/striconveha.c: Likewise.
74575         * lib/strncasecmp.c: Likewise.
74576         * lib/strndup.c: Likewise.
74577         * lib/strnlen.c: Likewise.
74578         * lib/strsep.c: Likewise.
74579         * lib/strstr.c: Likewise.
74580         * lib/strtok_r.c: Likewise.
74581         * lib/userspec.c: Likewise.
74582         * lib/w32spawn.h: Likewise.
74583         * lib/xstrndup.c: Likewise.
74584         * lib/mountlist.c (strstr): Remove decl.
74585         * m4/string_h.m4: New file.
74586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74587         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74589         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74590         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74591         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74592         Set REPLACE_STRCASECMP if necessary.
74593         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74594         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74595         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74597         HAVE_DECL_STRDUP if necessary.
74598         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74599         since gl_FUNC_STRNDUP does that now.
74600         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74601         Check for decl here...
74602         (gl_PREREQ_STRNLEN): ... not here.
74603         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74604         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74605         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74607         necessary.
74608         * modules/string: New file.
74609         * modules/memmem (Files): Remove special-purpose include file.
74610         (Depends-on): Add string.
74611         (Include): Include <string.h>, not the removed file.
74612         * modules/mempcpy: Likewise.
74613         * modules/memrchr: Likewise.
74614         * modules/stpcpy: Likewise.
74615         * modules/stpncpy: Likewise.
74616         * modules/strcase: Likewise.
74617         * modules/strchrnul: Likewise.
74618         * modules/strdup: Likewise.
74619         * modules/strndup: Likewise.
74620         * modules/strnlen: Likewise.
74621         * modules/strpbrk: Likewise.
74622         * modules/strsep: Likewise.
74623         * modules/strstr: Likewise.
74624         * modules/strtok_r: Likewise.
74625         * tests/test-dirname.c: Don't include "strdup.h", since
74626         <string.h> now suffices.
74627         * tests/test-memmem.c: Don't include "memmem.h", since
74628         <string.h> now suffices.
74629
74630 2007-01-25  Bruno Haible  <bruno@clisp.org>
74631
74632         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74633         *resultp is 0.
74634
74635         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74636         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74637         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74638         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74639
74640         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74641         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74642         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74643         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74644         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74645         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74646
74647 2007-01-24  Bruno Haible  <bruno@clisp.org>
74648
74649         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74651         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74652         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74653         gl_FUNC_FTS_CORE.
74654         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74655         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74657         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74658         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74659         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74660         gl_FUNC_FCHOWNAT.
74661         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74662         gl_FUNC_STRFTIME.
74663         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74664         Reported by Ralf Wildenhues.
74665
74666 2007-01-24  Bruno Haible  <bruno@clisp.org>
74667
74668         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74669         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74670         gl_GETADDRINFO.
74671         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74672         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74673         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74674
74675 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74676
74677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74678         Don't use 'exit'; just return from 'main'.
74679         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74680
74681         * lib/fnmatch_.h: Readjust white space and comments to match
74682         glibc, to avoid spurious diffs.
74683
74684 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74687         2004-12-01 change by Jakub Jelinek, since this code won't compile
74688         if !LIBC.  Problem reported by Bob Proulx.
74689
74690 2007-01-23  Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/striconveh.c: Include c-strcaseeq.h.
74693         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74694         * modules/striconveh (Depends-on): Add c-strcaseeq.
74695
74696 2007-01-23  Bruno Haible  <bruno@clisp.org>
74697
74698         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74699
74700         * modules/c-strcaseeq: New file.
74701         * lib/c-strcaseeq.h: New file.
74702
74703         * modules/streq: New file.
74704         * lib/streq.h: New file.
74705
74706 2007-01-23  Bruno Haible  <bruno@clisp.org>
74707
74708         * modules/striconveha-tests: New file.
74709         * tests/test-striconveha.c: New file.
74710
74711         * lib/striconveha.h: Include <stdbool.h>.
74712         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74713         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74714         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74715         (mem_iconveha): New function.
74716         (str_iconveha_notranslit): Renamed from str_iconveha.
74717         (str_iconveha): New function.
74718         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74719         c-strcase.
74720
74721 2007-01-23  Bruno Haible  <bruno@clisp.org>
74722
74723         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74724         encodings without forgiving before trying any encoding with handler.
74725         (str_iconveha): Try all encodings without forgiving before trying any
74726         encoding with handler.
74727
74728 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         Import the following changes from libc.
74731
74732         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74733
74734         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74735
74736         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74737
74738         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74739         normal_bracket label.
74740
74741         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74742
74743         [BZ #361]
74744         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74745         to normal_bracket after fetching the next character.
74746
74747 2007-01-22  Bruno Haible  <bruno@clisp.org>
74748
74749         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74750         argument.
74751         * lib/striconveh.c (iconv_carefully_1): New function.
74752         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74753         argument.
74754         (str_cd_iconveh): Update.
74755         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74756         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74757         * tests/test-striconveh.c (MAGIC): New macro.
74758         (new_offsets): New function.
74759         (main): Test call with and without offsets.
74760
74761 2007-01-22  Bruno Haible  <bruno@clisp.org>
74762
74763         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74764         * modules/sys_select (Makefile.am): Likewise.
74765         * modules/sys_socket (Makefile.am): Likewise.
74766         * modules/sys_time (Makefile.am): Likewise.
74767
74768 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * modules/gettimeofday (License): Change from GPL to LGPL, since
74771         gettimeofday is a library function.
74772
74773 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74774
74775         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74776
74777 2007-01-21  Bruno Haible  <bruno@clisp.org>
74778
74779         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74780
74781 2007-01-21  Bruno Haible  <bruno@clisp.org>
74782
74783         * modules/striconveha: New file.
74784         * lib/striconveha.h: New file.
74785         * lib/striconveha.c: New file.
74786         * MODULES.html.sh (Internationalization functions): Add striconveha.
74787         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74788         string.
74789         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74790
74791 2007-01-21  Bruno Haible  <bruno@clisp.org>
74792
74793         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74794         * lib/striconveh.c (str_iconveh): Likewise.
74795
74796 2007-01-21  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/striconveh.h (mem_iconveh): New declaration.
74799         * lib/striconveh.c (mem_iconveh): New function.
74800         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74801
74802 2007-01-21  Bruno Haible  <bruno@clisp.org>
74803
74804         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74805
74806         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74807         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74808         original result buffer.
74809         (str_cd_iconveh): Update.
74810         * tests/test-striconveh.c (main): Update.
74811
74812         * lib/striconv.h (mem_cd_iconv): Change specification.
74813         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74814         result buffer.
74815         (str_cd_iconv): Update.
74816         * tests/test-striconv.c (main): Update.
74817
74818 2007-01-21  Bruno Haible  <bruno@clisp.org>
74819
74820         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74821
74822 2007-01-20  Jim Meyering  <jim@meyering.net>
74823
74824         * lib/userspec.c (parse_with_separator): If a user or group string
74825         starts with "+", skip the corresponding name-to-ID look-up, since
74826         such a look-up must fail: user and group names may not include "+".
74827
74828 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74831         since we now assume the sys_time module.
74832         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74833         check for sys/time.h; no longer needed.
74834         * modules/poll (Depends-on): Depend on sys_time.
74835
74836 2007-01-18  Bruno Haible  <bruno@clisp.org>
74837
74838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74839         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74840
74841         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74842         gettimeofday.
74843
74844         * tests/test-gettimeofday.c: Include <time.h>.
74845         (dummy): Remove variable.
74846
74847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74848         gl_HEADER_SYS_TIME_H.
74849         (gl_HEADER_SYS_TIME_H): New macro.
74850
74851         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74852         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74854         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74855         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74857         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74858         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74859         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74860         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74861         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74862
74863         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74864         last change; it caused a compilation error when cross-compiling to
74865         Cygwin.
74866
74867 2007-01-18  Jim Meyering  <jim@meyering.net>
74868
74869         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74870         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74871         than the race-prone "test -d sys || mkdir sys".
74872         (configure.ac): Use AC_PROG_MKDIR_P.
74873         * modules/sys_select: Likewise.
74874         * modules/sys_socket: Likewise.
74875         * modules/sys_time: Likewise.
74876
74877 2007-01-18  Eric Blake  <ebb9@byu.net>
74878
74879         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74880         replace gettimeofday.
74881         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74882         name, to avoid infinite recursion.
74883
74884 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74887         module sys_time.
74888         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74889         assume timespec.h defines struct timeval.
74890         * lib/settime.c: Likewise.
74891         * lib/utimens.c: Likewise.
74892         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74893         since we now assume the gettimeofday module.
74894         * lib/tempname.c (__gen_tempname): Likewise.
74895         * lib/gettimeofday.h: Remove.
74896         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74897         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74898         Include <time.h>, for 'time()'.
74899         (localtime_buffer_addr): Also use this workaround if
74900         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74901         to simplify the uses.  All uses changed.
74902         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74903         that #undef is inside {}, and 'const' follows type name consistently.
74904         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74905         (gettimeofday): Do not use the maximum possible value for
74906         tv->tv_usec, since that might break usages other than ls.c.
74907         Instead, we'll leave ls.c alone.  This undoes today's patch
74908         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74909         we've never observed the problem but might as well keep the
74910         canary.
74911         * lib/nanosleep.c: Include timespec.h first, for interface check.
74912         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74913         now assume the sys_time module.
74914         * lib/tempname.c: Likewise.
74915         * lib/timespec.h: Likewise.
74916         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74917         needed.
74918         * lib/strftime.c: Likewise.
74919         * lib/timespec.h: Likewise.
74920         * lib/posixtm.c: Include posixtm.h first, for interface check.
74921         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74922         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74923         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74924         * lib/sys_time_.h: New file.
74925         * lib/timespec.h (struct timespec): Use long int, not long.
74926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74927         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74928         Remove obsolescent call to AC_HEADER_TIME.
74929         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74931         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74932         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74933         Likewise.
74934         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74935         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74936         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74937         into the sys_time module.  Check for gettimeofday just once.
74938         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74939         for gettimeofday signature to just check the signature.  Merely
74940         compile it, since linking doesn't test signature.  Improve test for
74941         whether gettimeofday.o is actually needed.
74942         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74943         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74944         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74945         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74946         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74947         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74948         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74949         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74950         than worrying about sys/time.h.
74951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74952         Don't bother worrying about TIME_WITH_SYS_TIME.
74953         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74954         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74955         * m4/sys_time_h.m4: New file.
74956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74957         Don't include sys/time.h.  Return from main rather than exiting.
74958         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74959         all uses changed.
74960         * modules/gethrxtime (Depends-on): Add sys_time.
74961         * modules/gettime (Depends-on): Likewise.
74962         * modules/gettimeofday (Depends-on): Likewise.
74963         * modules/nanosleep (Depends-on): Likewise.
74964         * modules/settime (Depends-on): Likewise.
74965         * modules/tempname (Depends-on): Likewise.
74966         * modules/utimens (Depends-on): Likewise.
74967         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74968         (Include): Change back to <sys/time.h>.
74969         (Maintainer): Add self.
74970         * modules/sys_time: New file.
74971         * modules/tempname (Depends-on): Add gettimeofday.
74972         * tests/test-gettimeofday.c: Include <sys/time.h>
74973         rather than gettimeofday.h.
74974
74975 2007-01-17  Bruno Haible  <bruno@clisp.org>
74976
74977         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74978         the license default to GPL.
74979         (func_create_testdir): Don't complain if a module is LGPL and its
74980         tests module depends on GPLed modules.
74981
74982 2007-01-17  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/gettimeofday.c (gettimeofday): Add code for the case
74985         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74986         maximum possible value for tv->tv_usec, rather than the minimum one.
74987
74988 2005-10-08  Martin Lambers  <marlam@marlam.de>
74989 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74990 2007-01-16  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74993         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74994         gl_FUNC_GETTIMEOFDAY.
74995         (Include): Add gettimeofday.h.
74996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74997         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74998         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74999         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75000         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75001         * lib/gettimeofday.h: New file.
75002         * lib/gettimeofday.c: Include <sys/timeb.h>.
75003         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75004         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75005         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75006         fall back on time().
75007
75008         * tests/test-gettimeofday.c: New file.
75009         * modules/gettimeofday-tests: New file.
75010
75011 2007-01-16  Eric Blake  <ebb9@byu.net>
75012
75013         * modules/fnmatch (Depends-on): Depend on wchar.
75014         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75015         * m4/fnmatch.m4: Likewise.
75016         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75017         * m4/mbchar.m4: Likewise.
75018         * modules/mbswidth (Depends-on): Depend on wchar.
75019         * lib/mbswidth.c: Assume <wchar.h>.
75020         * m4/mbswidth.m4: Likewise.
75021         * modules/quotearg (Depends-on): Depend on wchar.
75022         * lib/quotearg.c: Assume <wchar.h>.
75023         * m4/quotearg.m4: Likewise.
75024         * modules/regex (Depends-on): Depend on wchar.
75025         * lib/regex_internal.h: Assume <wchar.h>.
75026         * m4/regex.m4: Likewise.
75027         * modules/stdint (Depends-on): Depend on wchar.
75028         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75029         * m4/stdint.m4: Likewise.
75030         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75031         * modules/strftime (Depends-on): Depend on wchar.
75032         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75033         * modules/strtol (Depends-on): Depend on wchar.
75034         * lib/strtol.c: Assume <wchar.h>.
75035         * modules/wcwidth (Depends-on): Depend on wchar.
75036         * lib/wcwidth.h: Assume <wchar.h>.
75037         * m4/wcwidth.m4: Likewise.
75038
75039 2007-01-16  Bruno Haible  <bruno@clisp.org>
75040
75041         * modules/csharpexec-script: New, created from...
75042         * modules/csharpexec: ... this.
75043
75044 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75045
75046         * modules/javaexec-script: New, created from...
75047         * modules/javaexec: ... this.
75048
75049 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75050
75051         * modules/poll (Dependencies): Add sys_select.
75052
75053 2007-01-15  Jim Meyering  <jim@meyering.net>
75054
75055         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75056         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75057         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75058         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75059
75060 2007-01-15  Bruno Haible  <bruno@clisp.org>
75061
75062         * modules/striconveh: New file.
75063         * lib/striconveh.h: New file.
75064         * lib/striconveh.c: New file.
75065         * MODULES.html.sh (Internationalization functions): Add striconveh.
75066
75067         * modules/striconveh-tests: New file.
75068         * tests/test-striconveh.c: New file.
75069
75070 2007-01-15  Bruno Haible  <bruno@clisp.org>
75071
75072         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75073         not from GNU libiconv or GNU libc.
75074
75075 2007-01-15  Bruno Haible  <bruno@clisp.org>
75076
75077         * doc/gnulib-intro.texi (Copyright): Explain the different license
75078         terms for module descriptions, autoconf macros, tests, documentation.
75079
75080 2007-01-14  Bruno Haible  <bruno@clisp.org>
75081
75082         * modules/striconv-tests: New file.
75083         * tests/test-striconv.c: New file.
75084
75085 2007-01-14  Bruno Haible  <bruno@clisp.org>
75086
75087         * modules/iconv-tests: New file.
75088         * tests/test-iconv.c: New file.
75089
75090 2007-01-14  Bruno Haible  <bruno@clisp.org>
75091
75092         * gnulib-tool (func_get_license): For test modules, use the license of
75093         the main module.
75094
75095 2007-01-14  Bruno Haible  <bruno@clisp.org>
75096
75097         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75098         if iconv is found to exist.
75099
75100 2007-01-14  Bruno Haible  <bruno@clisp.org>
75101
75102         * modules/c-ctype-tests: New file.
75103         * tests/test-c-ctype.c: New file.
75104
75105 2007-01-14  Bruno Haible  <bruno@clisp.org>
75106
75107         * modules/binary-io-tests: New file.
75108         * tests/test-binary-io.sh: New file.
75109         * tests/test-binary-io.c: New file.
75110
75111 2007-01-14  Bruno Haible  <bruno@clisp.org>
75112
75113         * modules/array-oset-tests: New file.
75114         * tests/test-array_oset.c: New file.
75115
75116 2007-01-14  Bruno Haible  <bruno@clisp.org>
75117
75118         * modules/array-list-tests: New file.
75119         * tests/test-array_list.c: New file.
75120
75121 2007-01-14  Bruno Haible  <bruno@clisp.org>
75122
75123         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75124         and make.
75125         Reported by Simon Josefsson in
75126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75127
75128 2007-01-14  Bruno Haible  <bruno@clisp.org>
75129
75130         * modules/allocsa-tests: New file.
75131         * tests/test-allocsa.c: New file.
75132
75133 2007-01-14  Bruno Haible  <bruno@clisp.org>
75134
75135         * modules/fchdir (Depends-on): Add absolute-header.
75136         * modules/unistd (Depends-on): Likewise.
75137
75138 2006-12-30  Bruno Haible  <bruno@clisp.org>
75139
75140         * modules/fchdir: New file.
75141         * modules/unistd (Files): Add lib/unistd_.h.
75142         (Makefile.am): Generate unistd.h from unistd_.h.
75143         * lib/fchdir.c: New file.
75144         * lib/dirent_.h: New file.
75145         * lib/unistd_.h: New file.
75146         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75147         * m4/fchdir.m4: New file.
75148         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75149         (gl_HEADER_UNISTD): Invoke it.
75150         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75151         function.
75152         * lib/backupfile.c (opendir, closedir): Undefine.
75153         * lib/chown.c (open, close): Undefine.
75154         * lib/clean-temp.c (open, close): Undefine.
75155         * lib/copy-file.c (open, close): Undefine.
75156         * lib/execute.c (open, close): Undefine.
75157         * lib/fsusage.c (open, close): Undefine.
75158         * lib/gc-gnulib.c (open, close): Undefine.
75159         * lib/getcwd.c (opendir, closedir): Undefine.
75160         * lib/glob.c (opendir, closedir): Undefine.
75161         * lib/javacomp.c (open, close): Undefine.
75162         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75163         * lib/openat-proc.c (open, close): Undefine.
75164         * lib/pagealign_alloc.c (open, close): Undefine.
75165         * lib/pipe.c (open, close): Undefine.
75166         * lib/progreloc.c (open, close): Undefine.
75167         * lib/savedir.c (opendir, closedir): Undefine.
75168         * lib/utime.c (open, close): Undefine.
75169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75170
75171 2007-01-10  Bruno Haible  <bruno@clisp.org>
75172
75173         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75174
75175 2007-01-12  Eric Blake  <ebb9@byu.net>
75176
75177         Provide a robust <wchar.h>.  Further simplifications are now
75178         possible in other modules, but not included here.
75179         * modules/wchar: New module.
75180         * m4/wchar.m4: New file.
75181         * lib/wchar_.h: Likewise.
75182         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75183         of the new module.
75184         * MODULES.html.sh (Extended multibyte and wide character utilities):
75185         New section.
75186
75187 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75190         to a reasonable default for memory allocation.
75191         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75192         file system that reports garbage st_size values for symlinks.
75193         Problem reported by Liyang Hu.
75194
75195 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75196
75197         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75198         Emacs .#* auto-save files).
75199
75200 2007-01-11  Bruno Haible  <bruno@clisp.org>
75201
75202         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75203         directory.
75204
75205 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         Use @...@ consistently in lib/wctype_.h.
75208         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75209         on it being set to 1 or 0.
75210         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75211         go back to AC_SUBSTing it.
75212         * modules/wctype (Makefile.am): Undo previous change.
75213
75214 2007-01-10  Eric Blake  <ebb9@byu.net>
75215
75216         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75217         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75218         * modules/wctype (Makefile.am): Likewise.
75219         Reported by Chris McGuire.
75220
75221 2007-01-10  Jim Meyering  <jim@meyering.net>
75222
75223         fts.c: a small readability/maintainability improvement
75224         * lib/fts.c (fts_read): Make this code slightly more readable and
75225         maintainable by hoisting the "sp->fts_cur = p" assignments to
75226         immediately follow the statements that set P.  Derived from
75227         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75228
75229 2007-01-10  Eric Blake  <ebb9@byu.net>
75230
75231         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75232         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75234         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75235         Reported by Chris McGuire.
75236
75237 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75238
75239         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75240         in sed script.
75241
75242 2007-01-09  Bruno Haible  <bruno@clisp.org>
75243
75244         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75245         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75246         variables.
75247         (func_module): Use them.
75248
75249 2007-01-09  Bruno Haible  <bruno@clisp.org>
75250
75251         * modules/unistr/base: New file.
75252         * lib/unistr.h: New file.
75253
75254         * modules/unistr/u8-to-u16: New file.
75255         * lib/unistr/u8-to-u16.c: New file.
75256
75257         * modules/unistr/u8-to-u32: New file.
75258         * lib/unistr/u8-to-u32.c: New file.
75259
75260         * modules/unistr/u16-to-u8: New file.
75261         * lib/unistr/u16-to-u8.c: New file.
75262
75263         * modules/unistr/u16-to-u32: New file.
75264         * lib/unistr/u16-to-u32.c: New file.
75265
75266         * modules/unistr/u32-to-u8: New file.
75267         * lib/unistr/u32-to-u8.c: New file.
75268
75269         * modules/unistr/u32-to-u16: New file.
75270         * lib/unistr/u32-to-u16.c: New file.
75271
75272         * modules/unistr/u8-check: New file.
75273         * modules/unistr/u16-check: New file.
75274         * modules/unistr/u32-check: New file.
75275         * lib/unistr/u8-check.c: New file.
75276         * lib/unistr/u16-check.c: New file.
75277         * lib/unistr/u32-check.c: New file.
75278
75279         * modules/unistr/u8-chr: New file.
75280         * modules/unistr/u16-chr: New file.
75281         * modules/unistr/u32-chr: New file.
75282         * lib/unistr/u8-chr.c: New file.
75283         * lib/unistr/u16-chr.c: New file.
75284         * lib/unistr/u32-chr.c: New file.
75285
75286         * modules/unistr/u8-cmp: New file.
75287         * modules/unistr/u16-cmp: New file.
75288         * modules/unistr/u32-cmp: New file.
75289         * lib/unistr/u8-cmp.c: New file.
75290         * lib/unistr/u16-cmp.c: New file.
75291         * lib/unistr/u32-cmp.c: New file.
75292
75293         * modules/unistr/u8-cpy: New file.
75294         * modules/unistr/u16-cpy: New file.
75295         * modules/unistr/u32-cpy: New file.
75296         * lib/unistr/u8-cpy.c: New file.
75297         * lib/unistr/u16-cpy.c: New file.
75298         * lib/unistr/u32-cpy.c: New file.
75299         * lib/unistr/u-cpy.h: New file.
75300
75301         * modules/unistr/u8-cpy-alloc: New file.
75302         * modules/unistr/u16-cpy-alloc: New file.
75303         * modules/unistr/u32-cpy-alloc: New file.
75304         * lib/unistr/u8-cpy-alloc.c: New file.
75305         * lib/unistr/u16-cpy-alloc.c: New file.
75306         * lib/unistr/u32-cpy-alloc.c: New file.
75307         * lib/unistr/u-cpy-alloc.h: New file.
75308
75309         * modules/unistr/u8-endswith: New file.
75310         * modules/unistr/u16-endswith: New file.
75311         * modules/unistr/u32-endswith: New file.
75312         * lib/unistr/u8-endswith.c: New file.
75313         * lib/unistr/u16-endswith.c: New file.
75314         * lib/unistr/u32-endswith.c: New file.
75315         * lib/unistr/u-endswith.h: New file.
75316
75317         * modules/unistr/u8-mblen: New file.
75318         * modules/unistr/u16-mblen: New file.
75319         * modules/unistr/u32-mblen: New file.
75320         * lib/unistr/u8-mblen.c: New file.
75321         * lib/unistr/u16-mblen.c: New file.
75322         * lib/unistr/u32-mblen.c: New file.
75323
75324         * modules/unistr/u8-mbtouc: New file.
75325         * modules/unistr/u16-mbtouc: New file.
75326         * modules/unistr/u32-mbtouc: New file.
75327         * lib/unistr/u8-mbtouc.c: New file.
75328         * lib/unistr/u16-mbtouc.c: New file.
75329         * lib/unistr/u32-mbtouc.c: New file.
75330
75331         * modules/unistr/u8-mbtouc-safe: New file.
75332         * modules/unistr/u16-mbtouc-safe: New file.
75333         * modules/unistr/u32-mbtouc-safe: New file.
75334         * lib/unistr/u8-mbtouc-safe.c: New file.
75335         * lib/unistr/u16-mbtouc-safe.c: New file.
75336         * lib/unistr/u32-mbtouc-safe.c: New file.
75337
75338         * modules/unistr/u8-move: New file.
75339         * modules/unistr/u16-move: New file.
75340         * modules/unistr/u32-move: New file.
75341         * lib/unistr/u8-move.c: New file.
75342         * lib/unistr/u16-move.c: New file.
75343         * lib/unistr/u32-move.c: New file.
75344         * lib/unistr/u-move.h: New file.
75345
75346         * modules/unistr/u8-next: New file.
75347         * modules/unistr/u16-next: New file.
75348         * modules/unistr/u32-next: New file.
75349         * lib/unistr/u8-next.c: New file.
75350         * lib/unistr/u16-next.c: New file.
75351         * lib/unistr/u32-next.c: New file.
75352
75353         * modules/unistr/u8-prev: New file.
75354         * modules/unistr/u16-prev: New file.
75355         * modules/unistr/u32-prev: New file.
75356         * lib/unistr/u8-prev.c: New file.
75357         * lib/unistr/u16-prev.c: New file.
75358         * lib/unistr/u32-prev.c: New file.
75359
75360         * modules/unistr/u8-set: New file.
75361         * modules/unistr/u16-set: New file.
75362         * modules/unistr/u32-set: New file.
75363         * lib/unistr/u8-set.c: New file.
75364         * lib/unistr/u16-set.c: New file.
75365         * lib/unistr/u32-set.c: New file.
75366         * lib/unistr/u-set.h: New file.
75367
75368         * modules/unistr/u8-startswith: New file.
75369         * modules/unistr/u16-startswith: New file.
75370         * modules/unistr/u32-startswith: New file.
75371         * lib/unistr/u8-startswith.c: New file.
75372         * lib/unistr/u16-startswith.c: New file.
75373         * lib/unistr/u32-startswith.c: New file.
75374         * lib/unistr/u-startswith.h: New file.
75375
75376         * modules/unistr/u8-stpcpy: New file.
75377         * modules/unistr/u16-stpcpy: New file.
75378         * modules/unistr/u32-stpcpy: New file.
75379         * lib/unistr/u8-stpcpy.c: New file.
75380         * lib/unistr/u16-stpcpy.c: New file.
75381         * lib/unistr/u32-stpcpy.c: New file.
75382         * lib/unistr/u-stpcpy.h: New file.
75383
75384         * modules/unistr/u8-stpncpy: New file.
75385         * modules/unistr/u16-stpncpy: New file.
75386         * modules/unistr/u32-stpncpy: New file.
75387         * lib/unistr/u8-stpncpy.c: New file.
75388         * lib/unistr/u16-stpncpy.c: New file.
75389         * lib/unistr/u32-stpncpy.c: New file.
75390         * lib/unistr/u-stpncpy.h: New file.
75391
75392         * modules/unistr/u8-strcat: New file.
75393         * modules/unistr/u16-strcat: New file.
75394         * modules/unistr/u32-strcat: New file.
75395         * lib/unistr/u8-strcat.c: New file.
75396         * lib/unistr/u16-strcat.c: New file.
75397         * lib/unistr/u32-strcat.c: New file.
75398         * lib/unistr/u-strcat.h: New file.
75399
75400         * modules/unistr/u8-strchr: New file.
75401         * modules/unistr/u16-strchr: New file.
75402         * modules/unistr/u32-strchr: New file.
75403         * lib/unistr/u8-strchr.c: New file.
75404         * lib/unistr/u16-strchr.c: New file.
75405         * lib/unistr/u32-strchr.c: New file.
75406
75407         * modules/unistr/u8-strcmp: New file.
75408         * modules/unistr/u16-strcmp: New file.
75409         * modules/unistr/u32-strcmp: New file.
75410         * lib/unistr/u8-strcmp.c: New file.
75411         * lib/unistr/u16-strcmp.c: New file.
75412         * lib/unistr/u32-strcmp.c: New file.
75413
75414         * modules/unistr/u8-strcpy: New file.
75415         * modules/unistr/u16-strcpy: New file.
75416         * modules/unistr/u32-strcpy: New file.
75417         * lib/unistr/u8-strcpy.c: New file.
75418         * lib/unistr/u16-strcpy.c: New file.
75419         * lib/unistr/u32-strcpy.c: New file.
75420         * lib/unistr/u-strcpy.h: New file.
75421
75422         * modules/unistr/u8-strcspn: New file.
75423         * modules/unistr/u16-strcspn: New file.
75424         * modules/unistr/u32-strcspn: New file.
75425         * lib/unistr/u8-strcspn.c: New file.
75426         * lib/unistr/u16-strcspn.c: New file.
75427         * lib/unistr/u32-strcspn.c: New file.
75428         * lib/unistr/u-strcspn.h: New file.
75429
75430         * modules/unistr/u8-strdup: New file.
75431         * modules/unistr/u16-strdup: New file.
75432         * modules/unistr/u32-strdup: New file.
75433         * lib/unistr/u8-strdup.c: New file.
75434         * lib/unistr/u16-strdup.c: New file.
75435         * lib/unistr/u32-strdup.c: New file.
75436         * lib/unistr/u-strdup.h: New file.
75437
75438         * modules/unistr/u8-strlen: New file.
75439         * modules/unistr/u16-strlen: New file.
75440         * modules/unistr/u32-strlen: New file.
75441         * lib/unistr/u8-strlen.c: New file.
75442         * lib/unistr/u16-strlen.c: New file.
75443         * lib/unistr/u32-strlen.c: New file.
75444         * lib/unistr/u-strlen.h: New file.
75445
75446         * modules/unistr/u8-strmblen: New file.
75447         * modules/unistr/u16-strmblen: New file.
75448         * modules/unistr/u32-strmblen: New file.
75449         * lib/unistr/u8-strmblen.c: New file.
75450         * lib/unistr/u16-strmblen.c: New file.
75451         * lib/unistr/u32-strmblen.c: New file.
75452
75453         * modules/unistr/u8-strmbtouc: New file.
75454         * modules/unistr/u16-strmbtouc: New file.
75455         * modules/unistr/u32-strmbtouc: New file.
75456         * lib/unistr/u8-strmbtouc.c: New file.
75457         * lib/unistr/u16-strmbtouc.c: New file.
75458         * lib/unistr/u32-strmbtouc.c: New file.
75459
75460         * modules/unistr/u8-strncat: New file.
75461         * modules/unistr/u16-strncat: New file.
75462         * modules/unistr/u32-strncat: New file.
75463         * lib/unistr/u8-strncat.c: New file.
75464         * lib/unistr/u16-strncat.c: New file.
75465         * lib/unistr/u32-strncat.c: New file.
75466         * lib/unistr/u-strncat.h: New file.
75467
75468         * modules/unistr/u8-strncmp: New file.
75469         * modules/unistr/u16-strncmp: New file.
75470         * modules/unistr/u32-strncmp: New file.
75471         * lib/unistr/u8-strncmp.c: New file.
75472         * lib/unistr/u16-strncmp.c: New file.
75473         * lib/unistr/u32-strncmp.c: New file.
75474
75475         * modules/unistr/u8-strncpy: New file.
75476         * modules/unistr/u16-strncpy: New file.
75477         * modules/unistr/u32-strncpy: New file.
75478         * lib/unistr/u8-strncpy.c: New file.
75479         * lib/unistr/u16-strncpy.c: New file.
75480         * lib/unistr/u32-strncpy.c: New file.
75481         * lib/unistr/u-strncpy.h: New file.
75482
75483         * modules/unistr/u8-strnlen: New file.
75484         * modules/unistr/u16-strnlen: New file.
75485         * modules/unistr/u32-strnlen: New file.
75486         * lib/unistr/u8-strnlen.c: New file.
75487         * lib/unistr/u16-strnlen.c: New file.
75488         * lib/unistr/u32-strnlen.c: New file.
75489         * lib/unistr/u-strnlen.h: New file.
75490
75491         * modules/unistr/u8-strpbrk: New file.
75492         * modules/unistr/u16-strpbrk: New file.
75493         * modules/unistr/u32-strpbrk: New file.
75494         * lib/unistr/u8-strpbrk.c: New file.
75495         * lib/unistr/u16-strpbrk.c: New file.
75496         * lib/unistr/u32-strpbrk.c: New file.
75497         * lib/unistr/u-strpbrk.h: New file.
75498
75499         * modules/unistr/u8-strrchr: New file.
75500         * modules/unistr/u16-strrchr: New file.
75501         * modules/unistr/u32-strrchr: New file.
75502         * lib/unistr/u8-strrchr.c: New file.
75503         * lib/unistr/u16-strrchr.c: New file.
75504         * lib/unistr/u32-strrchr.c: New file.
75505
75506         * modules/unistr/u8-strspn: New file.
75507         * modules/unistr/u16-strspn: New file.
75508         * modules/unistr/u32-strspn: New file.
75509         * lib/unistr/u8-strspn.c: New file.
75510         * lib/unistr/u16-strspn.c: New file.
75511         * lib/unistr/u32-strspn.c: New file.
75512         * lib/unistr/u-strspn.h: New file.
75513
75514         * modules/unistr/u8-strstr: New file.
75515         * modules/unistr/u16-strstr: New file.
75516         * modules/unistr/u32-strstr: New file.
75517         * lib/unistr/u8-strstr.c: New file.
75518         * lib/unistr/u16-strstr.c: New file.
75519         * lib/unistr/u32-strstr.c: New file.
75520         * lib/unistr/u-strstr.h: New file.
75521
75522         * modules/unistr/u8-strtok: New file.
75523         * modules/unistr/u16-strtok: New file.
75524         * modules/unistr/u32-strtok: New file.
75525         * lib/unistr/u8-strtok.c: New file.
75526         * lib/unistr/u16-strtok.c: New file.
75527         * lib/unistr/u32-strtok.c: New file.
75528         * lib/unistr/u-strtok.h: New file.
75529
75530         * modules/unistr/u8-uctomb: New file.
75531         * modules/unistr/u16-uctomb: New file.
75532         * modules/unistr/u32-uctomb: New file.
75533         * lib/unistr/u8-uctomb.c: New file.
75534         * lib/unistr/u16-uctomb.c: New file.
75535         * lib/unistr/u32-uctomb.c: New file.
75536
75537         * MODULES.html.sh (Unicode string functions): Add the new modules.
75538
75539 2007-01-08  Bruno Haible  <bruno@clisp.org>
75540
75541         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75542         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75543         subdirectories.
75544
75545 2007-01-08  Karl Berry  <karl@gnu.org>
75546
75547         * doc/error.texi: mention that main() fns must set program_name
75548         when progname is used.
75549
75550 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75553         WCTYPE_H is empty, for the benefit of builds from non-distclean
75554         directories.  Problem reported by Eric Blake in
75555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75556
75557 2007-01-08  Bruno Haible  <bruno@clisp.org>
75558
75559         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75560         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75561         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75562         PROVIDE_CANONICALIZE_FILENAME_MODE.
75563         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75564
75565 2007-01-08  Bruno Haible  <bruno@clisp.org>
75566
75567         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75568         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75569         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75570         * lib/fts.c: Likewise.
75571         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75572
75573 2006-12-25  Bruno Haible  <bruno@clisp.org>
75574
75575         * modules/utf8-ucs4-safe: New file.
75576         * lib/utf8-ucs4-safe.h: New file.
75577         * lib/unistr/utf8-ucs4-safe.c: New file.
75578
75579         * modules/utf16-ucs4-safe: New file.
75580         * lib/utf16-ucs4-safe.h: New file.
75581         * lib/unistr/utf16-ucs4-safe.c: New file.
75582
75583         * MODULES.html.sh (Unicode string functions): Add the new modules.
75584
75585 2007-01-08  Bruno Haible  <bruno@clisp.org>
75586
75587         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75588         (Depends-on): Add unitypes.
75589         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75590         (u8_mbtouc_aux): Move out to separate file.
75591         (u8_mbtouc): Use ucs4_t, uint8_t types.
75592         * lib/unistr/utf8-ucs4.c: New file.
75593
75594         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75595         (Depends-on): Add unitypes.
75596         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75597         (u16_mbtouc_aux): Move out to separate file.
75598         (u16_mbtouc): Use ucs4_t, uint16_t types.
75599         * lib/unistr/utf16-ucs4.c: New file.
75600
75601         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75602         (Depends-on): Add unitypes.
75603         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75604         (u8_uctomb_aux): Move out to separate file.
75605         (u8_uctomb): Use ucs4_t, uint8_t types.
75606         * lib/unistr/ucs4-utf8.c: New file.
75607
75608         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75609         (Depends-on): Add unitypes.
75610         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75611         (u16_uctomb_aux): Move out to separate file.
75612         (u16_uctomb): Use ucs4_t, uint16_t types.
75613         * lib/unistr/ucs4-utf16.c: New file.
75614
75615 2006-12-25  Bruno Haible  <bruno@clisp.org>
75616
75617         * modules/unitypes: New file.
75618         * lib/unitypes.h: New file.
75619         * MODULES.html.sh (func_all_modules): New section "Unicode string
75620         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75621         this section. Add unitypes.
75622
75623 2007-01-08  Bruno Haible  <bruno@clisp.org>
75624
75625         Avoid variable names that conflict with those from libtool.
75626         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75627         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75628         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75629         library_names_spec to acl_library_names_spec, hardcode_* to
75630         acl_hardcode_*.
75631         Reported by Ralf Wildenhues.
75632
75633 2007-01-08  Bruno Haible  <bruno@clisp.org>
75634
75635         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75636         definition.
75637         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75638         definition.
75639         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75640         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75641         definition.
75642         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75643         definition.
75644         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75645         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75646         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75647         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75648         definition.
75649         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75650         definition.
75651         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75652         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75653         GC_USE_<algorithm>.
75654         * lib/gc-libgcrypt.c: Likewise.
75655         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75656         * modules/gc-arctwo (configure.ac): Likewise.
75657         * modules/gc-des (configure.ac): Likewise.
75658         * modules/gc-hmac-md5 (configure.ac): Likewise.
75659         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75660         * modules/gc-md2 (configure.ac): Likewise.
75661         * modules/gc-md4 (configure.ac): Likewise.
75662         * modules/gc-md5 (configure.ac): Likewise.
75663         * modules/gc-random (configure.ac): Likewise.
75664         * modules/gc-rijndael (configure.ac): Likewise.
75665         * modules/gc-sha1 (configure.ac): Likewise.
75666
75667 2007-01-08  Bruno Haible  <bruno@clisp.org>
75668
75669         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75670         macro definition.
75671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75672         definition.
75673         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75674         definition.
75675         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75676         * modules/fcntl-safer (configure.ac): Likewise.
75677         * modules/fopen-safer (configure.ac): Likewise.
75678         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75679         GNULIB_FWRITEERROR macro definition.
75680
75681 2007-01-08  Bruno Haible  <bruno@clisp.org>
75682
75683         * m4/gnulib-common.m4: New file.
75684         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75685         (func_get_filelist): Add m4/gnulib-common.m4.
75686
75687 2007-01-08  Bruno Haible  <bruno@clisp.org>
75688
75689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75690         command.
75691
75692 2007-01-08  Jim Meyering  <jim@meyering.net>
75693
75694         Use a more robust test for a "can't happen" condition.
75695         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75696         narrowed the st_size value.  Presuming the "can't happen" condition
75697         is true, that narrowing could conceivably convert an invalid st_size
75698         value into a valid one.  Instead, use a change based on Matthew
75699         Woehlke's original patch.
75700
75701         Slight readability improvement: use an assert-like macro
75702         in place of literal "abort ()" uses.
75703         * lib/fts.c (fts_assert): Define.
75704         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75705         Use this macro instead of a bare 'abort'.
75706
75707 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75710         simply work around them.
75711         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75712         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75713         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75714         declaring.
75715         Don't bother to define as macros, since the standard doesn't require it.
75716         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75717         longer worry about IRIX 5.3.
75718         (HAVE_WCTYPE_CTMP_BUG): Remove.
75719
75720 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75723         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75724         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75725         Problems reported by Georg Schwarz for IRIX 5.3.
75726
75727         * gnulib-tool (autoconf_minversion): Take the maximum version number
75728         found, not the minimum.  Problem reported by James Youngman.
75729
75730 2007-01-03  Karl Berry  <karl@gnu.org>
75731
75732         * doc/error.texi: new file, explaining interaction with progname.
75733         * doc/gnulib.texi: include it.  Update copyright.
75734
75735 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75736
75737         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75738         AC_CANONICAL_HOST, to improve autobuild outputs.
75739
75740 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75741             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75742
75743         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75744         sockets, server sockets, and other file descriptors.  Count errors
75745         to compute the return value.  Reorder the code a bit to be easier
75746         to follow.  Don't set event bits that were not requested (except
75747         POLLERR and POLLHUP).
75748
75749 2007-01-01  Bruno Haible  <bruno@clisp.org>
75750
75751         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75752
75753 2007-01-03  Jim Meyering  <jim@meyering.net>
75754
75755         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75756
75757 2007-01-02  Bruno Haible  <bruno@clisp.org>
75758
75759         * modules/settime (Include): Require timespec.h.
75760         * modules/nanosleep (Include): Likewise.
75761
75762 2007-01-01  Bruno Haible  <bruno@clisp.org>
75763
75764         * gnulib-tool (func_emit_copyright_notice): Bump year.
75765         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75766
75767 2007-01-01  Bruno Haible  <bruno@clisp.org>
75768
75769         Improve support for OpenBSD.
75770         * build-aux/config.rpath (libname_spec): Export.
75771         (library_names_spec): New variable. Export.
75772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75773         library_names_spec from the config.rpath output. Locate shared library
75774         through the name pattern in library_names_spec.
75775
75776 2007-01-01  Eric Blake  <ebb9@byu.net>
75777
75778         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75779
75780 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75783         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75784         assume the C locale, and avoid an "eval" that could cause trouble.
75785         Problem with SORT reported by Bob Proulx.
75786
75787         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75788         Define.  Trivial patch from Henning Nielsen Lund, originally
75789         sent to bug-grep@gnu.org today.
75790
75791 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75794         struct stat.  Problem reported by Henning Nielsen Lund.
75795         * lib/acl.c: Include acl.h first, to check interface.  Don't
75796         bother to include sys/types.h and sys/stat.h again.
75797
75798 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         Import the following change from libc; problem reported by
75801         Sven Verdoolaege.
75802
75803         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75804
75805         [BZ #1373]
75806         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75807
75808 2006-12-28  Jim Meyering  <jim@meyering.net>
75809
75810         * build-aux/announce-gen: Do not assume that the package
75811         builds any of tar.gz, tar.bz2, and .xdelta files.
75812         Suggestion from Simon Josefsson.
75813
75814 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75815
75816         * modules/announce-gen: New file.
75817
75818 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75821         handles its gotchas now.
75822         * lib/mbswidth.c: Likewise.
75823         * lib/wcwidth.h: Likewise.
75824         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75825         and iswcntrl; the wctype module does this stuff now.
75826         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75828         * modules/mbchar (Depends-on): Add wctype.
75829         * modules/mbswidth (Depends-on): Likewise.
75830         * modules/wcwidth (Depends-on): Likewise.
75831
75832 2006-12-27  Eric Blake  <ebb9@byu.net>
75833
75834         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75835         module uses more than what <wctype.h> is required to provide.
75836
75837 2006-12-26  Eric Blake  <ebb9@byu.net>
75838
75839         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75840
75841 2006-12-26  Eric Blake  <ebb9@byu.net>
75842
75843         * modules/absolute-header: New module.
75844         * modules/fcntl (Depends-on): Depend on it.
75845         * modules/inttypes (Depends-on): Likewise.
75846         * modules/stdint (Depends-on): Likewise.
75847         * modules/sys_stat (Depends-on): Likewise.
75848         * modules/wctype (Depends-on): Likewise.
75849         * MODULES.html.sh (Support for building libraries and
75850         executables): Document it.
75851
75852 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * gnulib-tool (SED): Remove, undoing previous change.
75855         The problem was that it broke coreutils on Solaris, because
75856         "sed --posix" leaked into a makefile.
75857         (sed): New alias, if 'alias' and GNU sed.
75858
75859 2006-12-24  Jim Meyering  <jim@meyering.net>
75860
75861         Work around an fchownat bug in glibc-2.4:
75862         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75863         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75864         in spite of the -P option.
75865         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75866         New macros.
75867         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75868         * modules/openat (Files): Add lib/fchownat.c.
75869         * lib/openat.c (fchownat): Don't define here.  Move to...
75870         * lib/fchownat.c: ...this new file.
75871
75872 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75873
75874         Fix bug reported by Bruno Haible in
75875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75876         where quotearg.c didn't compile on Mac OS X 10.2 because it
75877         lacks <wchar.h> and wint_t.
75878         * lib/wctype_.h (__wctype_wint_t): New type.
75879         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75880         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75881         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75882         Arg is now of type __wctype_wint_t, not wint_t.
75883         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75884         substitute HAVE_WINT_T.
75885         * modules/wctype (Files): Add m4/wint_t.m4.
75886         (wctype.h): Substitute HAVE_WINT_T.
75887
75888 2006-12-23  Bruno Haible  <bruno@clisp.org>
75889
75890         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75891
75892 2006-12-23  Bruno Haible  <bruno@clisp.org>
75893
75894         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75895         S_ISLNK.
75896         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75897         mingw.
75898
75899 2006-12-22  Bruno Haible  <bruno@clisp.org>
75900
75901         * lib/copy-file.c: Include acl.h.
75902         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75903         Close the file descriptors only after being done with copy_acl.
75904         * modules/copy-file (Depends-on): Add acl.
75905
75906 2006-12-22  Bruno Haible  <bruno@clisp.org>
75907
75908         * gnulib-tool (SED): New variable.
75909         Use $SED instead of sed everywhere.
75910
75911 2006-12-22  Bruno Haible  <bruno@clisp.org>
75912
75913         * modules/no-c++: New file.
75914         * m4/no-c++.m4: New file.
75915         * MODULES.html.sh (Support for building libraries and executables):
75916         Add no-c++.
75917
75918 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75921         Include <limits.h>, and use its INT_MAX to rewrite the
75922         j loop so that it does not overflow 'int'.  Problem reported by
75923         Ralf Wildenhues in
75924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75925         Play it safe by shifting left by 1 rather than multiplying by 2,
75926         as GCC is less likely to optimize this away when the value
75927         is signed (when it assumes overflow leads to undefined behavior).
75928         Also, don't assume time_t uses two's complement.
75929
75930 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * MODULES.html.sh: New module wctype.
75933         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75934         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75935         <wctype.h>, since the new wctype module should fix this.
75936         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75937         the wctype module should arrange for it.
75938         * lib/regex_internal.h: Likewise.
75939         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75940         since the wctype module should handle this now.
75941         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75942         * modules/fnmatch (Depends-on): Add wctype.
75943         * modules/quotearg (Depends-on): Likewise.
75944         * modules/regex (Depends-on): Likewise.
75945
75946 2006-12-19  Bruno Haible  <bruno@clisp.org>
75947
75948         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75949         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75950
75951 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75952
75953         * modules/savewd (Depends-on): Fix dependency on fcntl.
75954
75955 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75958         conforms to C99, rather than relying on the user's environment
75959         setting of STDINT_H.
75960
75961 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75962         and Eric Blake  <ebb9@byu.net>
75963
75964         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75965         This is more consistent with the other defines here.
75966         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75967         Port to z/OS.  Problem reported by Paul Gilmartin.
75968         Change local vars to use gl_ prefix rather than ac_.
75969         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75970         with other defines.
75971         * modules/double-slash-root: New module.
75972         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75973         (Depends-on): Add double-slash-root.
75974         * MODULES.html.sh (File system functions): Mention new module.
75975
75976 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75979         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75980         This is for the benefit of gzip, which doesn't do i18n.
75981
75982 2006-12-12  Jim Meyering  <jim@meyering.net>
75983
75984         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75985         Reported by Andreas Schwab <schwab@suse.de>.
75986
75987 2006-12-12  Bruno Haible  <bruno@clisp.org>
75988
75989         Merge these changes.
75990         2006-09-05  Bruno Haible  <bruno@clisp.org>
75991         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75992         iconv_alloc succeeded.
75993         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75994         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75995         test for " && dest " at the end - dest is always != NULL there. Call
75996         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75997         with 2xNULL arguments, also to flush the state storage. Handle the
75998         IRIX iconv behaviour. Realloc the final result, to throw away unused
75999         memory.
76000
76001 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76004         and fchmodat unconditionally, since glibc 2.4 has them.
76005         Problem reported by Arkadiusz Miskiewicz.
76006
76007 2006-12-10  Bruno Haible  <bruno@clisp.org>
76008
76009         * gnulib-tool (func_import): Show the include files only for those
76010         modules that are copied and specified.
76011         Reported by Karl Berry.
76012
76013 2006-12-08  Jim Meyering  <jim@meyering.net>
76014
76015         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76016         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76017
76018         * build-aux/announce-gen: Add two new options, both optional:
76019         --bootstrap-tools=TOOL_LIST
76020               a comma-separated list of tools, e.g.,
76021               autoconf,automake,bison,gnulib
76022         --gnulib-snapshot-date=DATE
76023               if gnulib is in the bootstrap tool list,
76024               then report this as the snapshot date.
76025               If not specified, use the current date/time.
76026               If you specify a date here, be sure it's UTC.
76027
76028 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76029
76030         * tests/test-argp-2.sh: Fix test to match actual output.
76031         (func_compare): Fix sed script to be portable.
76032
76033 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76036         workaround for this case.  It is not autoconfigured now; offhand
76037         it's hard to see how to autoconfigure it.
76038
76039 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76040
76041         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76042         a directory that is about to be chowned.  Such a directory's
76043         initial file permissions should permit the owner only and this
76044         should not be changed until after the chown, since the group and
76045         other bits would be incorrect if they granted permission before
76046         the chown.
76047
76048         Fix porting problem for iswctype reported by Georg Schwarz in:
76049         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76050         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76051         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76054
76055 2006-12-03  Jim Meyering  <jim@meyering.net>
76056
76057         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76058         p->fts_statp may not yet be defined.
76059         (fts_read): Instead, set it in the caller, once p->fts_statp is
76060         sure to be defined, and corresponds to a top-level directory.
76061         This bug made du -x fail.  Here's the coreutils test case:
76062         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76063         Reported by Mike Frysinger.
76064
76065 2006-12-01  Jim Meyering  <jim@meyering.net>
76066
76067         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76068         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76069         Reported by Simon Josefsson.
76070
76071 2006-11-30  Jim Meyering  <jim@meyering.net>
76072
76073         * m4/warning.m4: Use the all-permissive copyright notice
76074         recommended by RMS (rather than LGPL).
76075         * m4/vararrays.m4: Likewise.
76076         * m4/flexmember.m4: Likewise.
76077
76078 2006-11-29  Bruno Haible  <bruno@clisp.org>
76079
76080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76081         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76082         using +=.
76083         Reported by Simon Josefsson <simon@josefsson.org>.
76084
76085 2006-11-28  James Youngman <jay@gnu.org>
76086
76087         * README: Advise users that they might find the bug-gnulib@gnu.org
76088         and autotools-announce@gnu.org mailing lists useful.
76089
76090 2006-11-28  Bruno Haible  <bruno@clisp.org>
76091
76092         * m4/ptrdiff_max.m4: Remove file.
76093
76094 2006-11-21  Bruno Haible  <bruno@clisp.org>
76095
76096         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76097         _AC_COMPUTE_INT.
76098         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76099         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76100         _AC_COMPUTE_INT.
76101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76102         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76103         _AC_COMPUTE_INT.
76104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76105
76106 2006-11-28  Jim Meyering  <jim@meyering.net>
76107
76108         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76109         warning from "gcc -Wshadow" about shadowing the builtin.
76110
76111 2006-11-27  Bruno Haible  <bruno@clisp.org>
76112
76113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76114         _AC_COMPUTE_INT.
76115         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76116
76117 2006-11-27  Bruno Haible  <bruno@clisp.org>
76118             Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76121
76122 2006-11-26  Bruno Haible  <bruno@clisp.org>
76123
76124         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76125         noinst_LTLIBRARIES.
76126
76127 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76128             Bruno Haible  <bruno@clisp.org>
76129
76130         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76131         if compiling with "gcc -ansi".
76132
76133 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         Fix some incompatibilities with gcc -ansi -pedantic.
76136         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76137         if compiling pedantically with GCC, unless it's C99 or later.
76138         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76139         it mishandles gcc -ansi -pedantic as well.
76140         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76141         if gcc -pedantic.
76142         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76143         initializers for struct if -pedantic, unless it's C99 or later.
76144
76145 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76146
76147         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76148         Don't close an fd more than once. Identical atimes indicate
76149         success, not failure.
76150
76151 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76152
76153         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76154
76155 2006-11-23  Jim Meyering  <jim@meyering.net>
76156
76157         * build-aux/announce-gen: New file.  From coreutils.
76158
76159 2006-11-22  Jim Meyering  <jim@meyering.net>
76160
76161         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76162         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76163         (fts_read): Use a temporary to narrow the overused st_size member
76164         before using it in a switch statement.  Reported by Matthew Woehlke.
76165
76166         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76167         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76168
76169 2006-11-20  Bruno Haible  <bruno@clisp.org>
76170
76171         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76172         changequote instead of pairs of brackets.
76173         Reported by Andreas Schwab <schwab@suse.de>.
76174
76175 2006-11-21  Jim Meyering  <jim@meyering.net>
76176
76177         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76178         so as to remain compatible with older compilers.
76179         Patch from Michael Deutschmann.
76180
76181 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * MODULES.html.sh (File system functions): Add openat.
76184
76185         * lib/openat.h (rpl_fstatat): New macro, if
76186         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76187         (fstatat): Define to rpl_fstatat under the same conditions,
76188         unless COMPILING_FSTATAT.
76189         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76190         seems to have the bug.
76191         * lib/fstatat.c: New file.
76192         * modules/openat (Files): Add it.
76193
76194 2006-11-20  Bruno Haible  <bruno@clisp.org>
76195
76196         * Makefile: New file.
76197
76198 2006-11-20  Jim Meyering  <jim@meyering.net>
76199
76200         The beginnings of syntax-related checks for gnulib.
76201         * lib/Makefile: New file.
76202         * lib/t-idcache: New script.  Ensure that the two halves of
76203         idcache.c stay in sync.
76204
76205         * lib/idcache.c: Adjust comments in user- and group- portions to
76206         be more accurate, and to be consistent with one another.
76207
76208 2006-11-20  Jim Meyering  <jim@meyering.net>
76209
76210         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76211         continue using the flexible array member (thus, this module performs
76212         half as many malloc calls), with the addition that...
76213         (getgroup, getuser): Consistently record a non-match via an empty
76214         "name" string, and map an empty string match to a NULL return value.
76215         * modules/idcache (Depends-on): Re-add flexmember.
76216
76217         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76218         (getuidbyname, getgroup, getgidbyname): Likewise.
76219
76220         Use cleaner syntax: NULL rather than 0.
76221         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76222
76223 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76226         It mishandled the case where the group was missing.
76227         Problem reported by Greg Schafer.
76228         * modules/idcache: Likewise.
76229
76230 2006-11-18  Jim Meyering  <jim@meyering.net>
76231
76232         * check-module (%exempt_header): Add exception for some
76233         conditionally-included headers.
76234
76235         * modules/i-ring (Depends-on): Add verify.
76236         (License): Change to LGPL.
76237
76238 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76241         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76242         and inttostr.h.  Use snprintf rather than uinttostr, so that
76243         LGPLed code doesn't depend on GPLed.
76244
76245 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * modules/inline (License): Change from GPL to LGPL.
76248
76249 2006-11-17  Jim Meyering  <jim@meyering.net>
76250
76251         * modules/d-type (License): Switch to LGPL.
76252
76253 2006-11-15  Bruno Haible  <bruno@clisp.org>
76254
76255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76256
76257 2006-11-15  Eric Blake  <ebb9@byu.net>
76258
76259         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76260         the module dependency.
76261
76262 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76263             Bruno Haible  <bruno@clisp.org>
76264
76265         * gnulib-tool (func_create_testdir): Add license consistency check.
76266
76267 2006-11-15  Eric Blake  <ebb9@byu.net>
76268
76269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76270         random "(cached)" in configure output.
76271
76272 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76273
76274         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76275         test for conforming inttypes.h is both announced and cached.
76276
76277         * MODULES.html.sh (seen_modules, seen_files): New variables.
76278         (func_module): Rewrite to use a few less gnulib-tool and sed
76279         invocations.  Avoid a couple of quadratic algorithms for ...
76280         (missed_modules, missed_files): ... these, with ...
76281         (func_append, func_tmpdir): ... these new functions, from
76282         gnulib-tool.  Analogously, install traps for cleanup.
76283
76284         * tests/test-gc.c (main): Remove unused variables.
76285         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76286
76287 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * modules/inttostr (License): Change to LGPL.
76290
76291 2006-11-14  Eric Blake  <ebb9@byu.net>
76292
76293         * modules/tempname (License): Change to LGPL.
76294
76295 2006-11-14  Eric Blake  <ebb9@byu.net>
76296
76297         * doc/functions.texi (Function Portability): *printf functions on
76298         Cygwin now understand all POSIX size specifiers.
76299
76300 2006-11-14  Bruno Haible  <bruno@clisp.org>
76301
76302         * modules/c-ctype (License): Change to LGPL.
76303
76304 2006-11-12  Bruno Haible  <bruno@clisp.org>
76305
76306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76307         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76308         for GNOME libraries, for which the include files are installed in
76309         subdirectories of $prefix/include.
76310
76311 2006-11-12  Bruno Haible  <bruno@clisp.org>
76312
76313         * m4/lib-link.m4: Require at least autoconf-2.54.
76314         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76315         name to underscores for the --with option.
76316
76317 2006-11-13  Bruno Haible  <bruno@clisp.org>
76318
76319         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76320         the tests directory.
76321         Reported by Ralf Wildenhues.
76322
76323 2006-11-13  Bruno Haible  <bruno@clisp.org>
76324
76325         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76326         (func_emit_initmacro_end): Undo the override here.
76327         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76328         Works around the famous automake error in coreutils.
76329
76330 2006-11-13  Eric Blake  <ebb9@byu.net>
76331
76332         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76333         element, not its node.
76334
76335 2006-11-12  Bruno Haible  <bruno@clisp.org>
76336
76337         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76338         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76339
76340 2006-11-12  Bruno Haible  <bruno@clisp.org>
76341
76342         * gnulib-tool: New option --local-symlink.
76343         (func_usage): Document it.
76344         (lsymbolic): New variable.
76345         (func_import, func_create_testdir): If --symlink was not specified,
76346         test whether --local-symlink was specified and the file comes from
76347         the local_gnulib_dir.
76348
76349 2006-11-12  Bruno Haible  <bruno@clisp.org>
76350
76351         * gnulib-tool (func_ln): New function.
76352         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76353
76354 2006-11-12  Bruno Haible  <bruno@clisp.org>
76355
76356         Finish support for source files in subdirectories.
76357         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76358         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76359         AUTOMAKE_OPTIONS.
76360         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76361
76362 2006-11-12  Bruno Haible  <bruno@clisp.org>
76363
76364         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76365         EXTRA_lib_SOURCES augmentation.
76366         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76367
76368 2006-11-12  Jim Meyering  <jim@meyering.net>
76369
76370         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76371         file descriptors.  This also averts a failure on systems with
76372         native openat support when a traversed directory lacks "x" access.
76373         * lib/fts_.h: Include "i-ring.h"
76374         (struct FTS) [fts_fd_ring]: New member.
76375         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76376         (FCHDIR): Add parentheses.
76377         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76378         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76379         When descending, rather than simply closing the previous
76380         fts_cwd_fd value, push that file descriptor onto the ring.
76381         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76382         (fts_open): Initialize the new fd_ring member.
76383         (fts_close): Clear the ring.
76384         (fts_safe_changedir): When possible, use our new fd_ring to skip
76385         the diropen and fstat and dev/ino comparison that would normally
76386         accompany a virtual `chdir ("..")'.
76387
76388         * modules/fts (Depends-on): Add i-ring.
76389         * modules/i-ring: New module.
76390         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76391         * m4/i-ring.m4: New file.
76392
76393 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76394
76395         * gnulib-tool (func_create_testdir): Fix replacement of
76396         `build-aux' in configure.ac.  Run autotools in gltests
76397         subdirectory.
76398         (func_create_testdir, func_create_megatestdir, test): There is
76399         no need for '--force' in most autotool invocations in a new
76400         tree.  Actually fail the whole test if any of the tools, or the
76401         configure or make stages fail.
76402
76403         Sync from Automake.
76404         * build-aux/gnupload: Revert last change.  Add pointer to upload
76405         instructions of the GNU Maintenance Instructions.
76406         Suggestion by Karl Berry.
76407
76408 2006-11-10  Jim Meyering  <jim@meyering.net>
76409
76410         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76411
76412 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76415         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76416         (bind_textdomain_codeset) [! ENABLE_NLS]:
76417         Evaluate all the arguments.  That way, callers get compatible behavior
76418         if the arguments have side effects.  Also, it avoids some GCC
76419         diagnostics in some cases; Joel E. Denny reported problems when Bison
76420         was configured with --enable-gcc-warnigs.
76421
76422 2006-11-10  Jim Meyering  <jim@meyering.net>
76423
76424         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76425         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76426         account.
76427
76428 2006-11-10  Jim Meyering  <jim@meyering.net>
76429
76430         * modules/inline: New file/module.
76431         * modules/xalloc (Files): Remove m4/inline.m4.
76432         (Depends-on): Add inline, instead.
76433         * modules/oset: Likewise.
76434         * modules/list: Likewise.
76435
76436 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76437
76438         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76439         Problem reported by Matthew Woehlke.
76440
76441 2006-11-09  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/tempname.c (gen_tempname): Remove variant that invokes
76444         __gen_tempname.
76445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76446         __gen_tempname.
76447
76448 2006-11-08  Bruno Haible  <bruno@clisp.org>
76449
76450         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76451         to 'yes' instead of 'cross-compiling'.
76452
76453 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * lib/quotearg.h (quotearg_free): New decl.
76456         * lib/quotearg.c (quotearg_free): New function.
76457         (slot0, nslots, slotvec0, slotvec):
76458         Now file-scope so that quotearg_free can get at them.
76459
76460 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76461
76462         Sync from Automake.
76463         * build-aux/gnupload: Add missing 'gnu' to example URL.
76464         Report by Karl Berry.
76465
76466 2006-11-08  Bruno Haible  <bruno@clisp.org>
76467
76468         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76469         Suggested by Paul Eggert.
76470
76471 2006-11-08  Jim Meyering  <jim@meyering.net>
76472
76473         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76474         It's already included if !_LIBC.
76475         (fts_safe_changedir): Add a comment.
76476
76477 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76478
76479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76480         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76481         Matthew Woehlke.
76482
76483         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76484         definitions up, to avoid colliding with change below.
76485         (static_inline) [HAVE_INLINE]: New macro.
76486         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76487         Provide extern decls when !HAVE_INLINE.  Do not define unless
76488         static_inline is defined, either by us or by xmalloc.c.  Use
76489         static_inline rather than static inline.
76490         (XCALLOC): Optimize sizeof(T) = 1 case.
76491         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76492
76493 2006-11-07  Bruno Haible  <bruno@clisp.org>
76494
76495         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76496         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76497         AC_C_INLINE.
76498         * modules/xalloc (Files): Add m4/inline.m4.
76499
76500 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76501
76502         * README: Fix typo.
76503         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76504         (Miscellanous Notes): ...from this.
76505
76506 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76509         Mention that offsetof should be used instead of sizeof.
76510         From Bruno Haible.
76511
76512 2006-11-07  Bruno Haible  <bruno@clisp.org>
76513
76514         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76515
76516 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76519         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76520         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76521         (gl_tree_add_before, gl_tree_add_after):
76522         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76523         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76524         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76525         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76526         (gl_linked_add_after, gl_linked_add_at): Likewise.
76527         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76528         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76529         (gl_tree_add_before, gl_tree_add_after): Likewise.
76530         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76531         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76532         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76533
76534 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76535
76536         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76537
76538 2006-11-06  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/inline.m4: New file.
76541         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76542         * modules/list (Files): Add m4/inline.m4.
76543         * modules/oset (Files): Likewise.
76544
76545 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * lib/idcache.c: Include <stddef.h>, for offsetof.
76548         (struct userid.name): Change from char * to a flexible array member.
76549         All uses changed.
76550         * modules/idcache (Depends-on): Add flexmember.
76551
76552         * MODULES.html.sh (Core language properties): New module flexmember.
76553         * modules/flexmember, m4/flexmember.m4: New files.
76554
76555         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76556         inline functions that are identical with the old xnmalloc_inline,
76557         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76558         that we can avoid some unnecessary integer multiplications and
76559         divisions in the common case where the element size is known at
76560         compile time.
76561         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76562         needed.
76563         (xnboundedmalloc): Remove.
76564         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76565         arguments, for consistency with rest of this header.
76566         (xcharalloc): Rewrite using XNMALLOC.
76567         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76568         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76569         versions have been moved to lib/xalloc.h and renamed to be the
76570         non-*_inline versions.
76571         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76572         and xnrealloc functions, since those functions are now inline and
76573         now call us.
76574         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76575         renaming described above.
76576         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76577         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76578         captures the dependency in AC_C_INLINE.
76579
76580         New module canonicalize-lgpl, proposed by Charles Wilson in
76581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76582         with a few small changes afterwards.
76583         * MODULES.html.sh (File system functions): New module
76584         canonicalize-lgpl.
76585         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76586         and canonicalize_file_name.
76587         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76588         * modules/canonicalize-lgpl: New files.
76589
76590 2006-11-05  Bruno Haible  <bruno@clisp.org>
76591
76592         * gnulib-tool (func_import, func_create_testdir): Create directories
76593         also for files in subdirectories of lib/.
76594
76595 2006-11-05  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76598         ANSI C compliant.
76599
76600 2006-11-03  Bruno Haible  <bruno@clisp.org>
76601
76602         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76604         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76605         (xnboundedmalloc): New inline function.
76606         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76607         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76608         xmalloc.
76609         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76610         xmalloc.
76611         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76612         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76613         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76614         xmalloc.
76615         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76616         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76617         xmalloc.
76618         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76619         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76620         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76621         xmalloc.
76622         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76623         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76624         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76625         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76626         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76627         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76628         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76629
76630 2006-11-03  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/c-ctype.h [C++]: Define functions without name mangling.
76633         * lib/fwriteerror.h [C++]: Likewise.
76634         * lib/gcd.h [C++]: Likewise.
76635         * lib/linebreak.h [C++]: Likewise.
76636
76637 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76640         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76641         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76643         Check for functions and headers just once.
76644         Check for declaration of canonicalize_file_name.
76645         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76646
76647 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76648
76649         * gnulib-tool (func_import): Fix typo in actioncmd.
76650
76651 2006-11-02  Bruno Haible  <bruno@clisp.org>
76652
76653         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76654         newline sequence in the Makefile.am snippet as a space, like "make"
76655         does.
76656         Reported by Roger Persson <perrog@gmail.com>.
76657
76658 2006-11-01  Bruno Haible  <bruno@clisp.org>
76659
76660         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76661         already declared in <string.h>.
76662         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76663
76664 2006-11-01  Bruno Haible  <bruno@clisp.org>
76665
76666         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76667         * lib/strcase.h: Include <string.h>.
76668         (strcasecmp): Define to rpl_strcasecmp here.
76669
76670 2006-11-01  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76673
76674 2006-11-01  Eric Blake  <ebb9@byu.net>
76675
76676         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76677
76678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76679
76680 2006-10-29  Bruno Haible  <bruno@clisp.org>
76681
76682         Make it compile in C++ mode.
76683         * lib/full-write.c (full_rw): Add a cast.
76684
76685 2006-11-01  Bruno Haible  <bruno@clisp.org>
76686
76687         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76688         be POSIX compliant.
76689         Reported by Roger Persson <perrog@gmail.com>.
76690
76691 2006-11-01  Eric Blake  <ebb9@byu.net>
76692
76693         * lib/getopt_.h: Fix comments.
76694
76695 2006-10-31  Eric Blake  <ebb9@byu.net>
76696
76697         * modules/tmpdir (Depends-on): Add sys_stat.
76698         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76699         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76700         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76701         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76702         tempname.
76703
76704 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         Avoid some C++ diagnostics reported by Bruno Haible.
76707         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76708         xmalloc.
76709         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76710         (struct slotvec): Move to top level.
76711         (quotearg_n_options): Rewrite to avoid xmalloc.
76712         * lib/xalloc.h (xcharalloc): New function.
76713         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76714         [defined __cplusplus]: Add function template that provides result
76715         type propagation.  This part of the change is from Bruno Haible.
76716
76717 2006-10-29  Bruno Haible  <bruno@clisp.org>
76718
76719         Make it compile in C++ mode.
76720         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76721         * lib/strnlen1.c (strnlen1): Cast memchr result.
76722         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76723         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76724         (create_temp_dir): Rename local variable 'template'.
76725         (compile_csharp_using_sscli): Add cast.
76726         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76727         * lib/findprog.c (find_in_path): Likewise.
76728         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76729         * lib/wait-process.c (register_slave_subprocess): Likewise.
76730
76731 2006-10-22  Bruno Haible  <bruno@clisp.org>
76732
76733         * modules/tsearch: New file.
76734         * lib/tsearch.h: New file.
76735         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76736         * m4/tsearch.m4: New file.
76737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76738
76739 2006-10-29  Eric Blake  <ebb9@byu.net>
76740
76741         * lib/arcfour.c: Assume config.h.
76742         * lib/arctwo.c: Likewise.
76743         * lib/base64.c: Likewise.
76744         * lib/check-version.c: Likewise.
76745         * lib/crc.c: Likewise.
76746         * lib/des.c: Likewise.
76747         * lib/gc-gnulib.c: Likewise.
76748         * lib/gc-libgcrypt.c: Likewise.
76749         * lib/gc-pbkdf2-sha1.c: Likewise.
76750         * lib/getaddrinfo.c: Likewise.
76751         * lib/getdelim.c: Likewise.
76752         * lib/getline.c: Likewise.
76753         * lib/hmac-md5.c: Likewise.
76754         * lib/hmac-sha1.c: Likewise.
76755         * lib/iconvme.c: Likewise.
76756         * lib/md2.c: Likewise.
76757         * lib/md4.c: Likewise.
76758         * lib/memxor.c: Likewise.
76759         * lib/read-file.c: Likewise.
76760         * lib/readline.c: Likewise.
76761         * lib/rijndael-alg-fst.c: Likewise.
76762         * lib/rijndael-api-fst.c: Likewise.
76763         * lib/xgetdomainname.c: Likewise.
76764
76765 2006-10-28  Eric Blake  <ebb9@byu.net>
76766
76767         * lib/xstrndup.c: Assume config.h.
76768
76769 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76772         stat-macros.h is now for our own macros, whereas stat_h is for
76773         macros in the <sys/stat.h> name space.
76774         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76775         (STAT_MACROS_H): Remove.
76776         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76777         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76778         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76779         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76780         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76781         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76782         Move these macros to ...
76783         * lib/stat_.h: here.  Don't include stat-macros.h.
76784         * lib/canonicalize.c: Don't include stat-macros.h.
76785         * lib/chown.c: Likewise.
76786         * lib/euidaccess.c: Likewise.
76787         * lib/file-type.c: Likewise.
76788         * lib/filemode.c: Likewise.
76789         * lib/glob.c: Likewise.
76790         * lib/isapipe.c: Likewise.
76791         * lib/lchown.c: Likewise.
76792         * lib/lstat.c: Likewise.
76793         * lib/mkdir-p.c: Likewise.
76794         * lib/rmdir.c: Likewise.
76795         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76797         unless mkdir isn't declared, to speed up 'configure'.
76798         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76799         would define all the S_* symbols.
76800         * modules/canonicalize (Depends-on):
76801         Depend on sys_stat, not stat-macros.
76802         * modules/chown: Likewise.
76803         * modules/euidaccess: Likewise.
76804         * modules/filemode: Likewise.
76805         * modules/file-type: Likewise.
76806         * modules/glob: Likewise.
76807         * modules/isapipe: Likewise.
76808         * modules/lchown: Likewise.
76809         * modules/lstat: Likewise.
76810         * modules/mkancesdirs: Likewise.
76811         * modules/rmdir: Likewise.
76812         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76813         * modules/modechange: Likewise.
76814         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76815         (configure.ac): Remove gl_STAT_MACROS.
76816         * modules/sys_stat (Depends-on): Remove stat-macros.
76817
76818 2006-10-27  Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/signed.m4: Remove file.
76821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76822         invocation.
76823         * modules/vasnprintf (Files): Remove m4/signed.m4.
76824
76825 2006-10-27  Bruno Haible  <bruno@clisp.org>
76826
76827         Update to GNU gettext 0.16.
76828         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76829         m4/inttypes-h.m4, m4/signed.m4.
76830         * m4/gettext.m4: Update to GNU gettext 0.16.
76831         * m4/intl.m4: New file, from GNU gettext.
76832         * m4/intldir.m4: New file, from GNU gettext.
76833         * config/srclist.txt: Update
76834
76835 2006-10-27  Eric Blake  <ebb9@byu.net>
76836
76837         * MODULES.html.sh: Document tempname.
76838         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76839         dependencies.
76840         (Files): Move lib/tempname.c...
76841         * modules/tempname: ...to this new module.
76842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76843         (gl_PREREQ_TEMPNAME): Move...
76844         * m4/tempname.m4: ...to this new file.
76845         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76846         * modules/sys_stat (Depends-on): Add stat-macros.
76847         * lib/stat_.h (includes): Pick up stat macros.
76848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76849         if stat macros are broken.
76850         * lib/tempname.c (includes): No need to include "stat-macros.h".
76851         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76852         (direxists, __path_search) [!_LIBC]: Don't compile these in
76853         gnulib; the tmpdir module covers that.
76854         * lib/tempname.h: New file.
76855
76856 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * COPYING: Explain how gnulib-tool converts licence headers.
76859         Almost all wording by Eric Blake.
76860
76861 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * lib/mbchar.h (is_basic_table): Make read-only.
76864         * lib/mbchar.c (is_basic_table): Likewise.
76865         Reported by John Darrington.
76866
76867 2006-10-25  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/progname.h (set_program_name): Undefine before defining.
76870
76871 2006-10-25  Bruno Haible  <bruno@clisp.org>
76872
76873         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76874         false for non-gcc C++ compilers.
76875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76876
76877 2006-10-24  Bruno Haible  <bruno@clisp.org>
76878
76879         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76880         iconv implementations like Irix iconv.
76881
76882 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76883
76884         * modules/vararrays: New file.
76885         * m4/vararrays.m4: New file, taken from diffutils.
76886         * MODULES.html.sh: New module vararrays.
76887
76888 2006-10-24  Karl Berry  <karl@gnu.org>
76889
76890         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76891         Don't call GNU Unix.
76892
76893 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76894
76895         * users.txt: Add Libtool.
76896
76897         Sync from Libtool:
76898
76899         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76902         to gnulib's policy of including config.h unconditionally.
76903
76904 2006-10-24  Bruno Haible  <bruno@clisp.org>
76905
76906         * modules/wcwidth (Files): Add m4/wint_t.m4.
76907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76908         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76909
76910 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76913         to pacify GCC with some -W flags enabled.  Problem reported by
76914         Bruno Haible.
76915
76916 2006-10-24  Jim Meyering  <jim@meyering.net>
76917
76918         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76919         Reported by Karl Berry.
76920
76921 2006-10-23  Bruno Haible  <bruno@clisp.org>
76922
76923         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76924
76925 2006-10-24  Bruno Haible  <bruno@clisp.org>
76926
76927         * lib/gl_list.h: Use C comment style, not C++ comment style.
76928
76929 2006-10-23  Eric Blake  <ebb9@byu.net>
76930
76931         * lib/getaddrinfo.c (includes): Add missing include.
76932
76933 2006-10-23  Bruno Haible  <bruno@clisp.org>
76934             Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         Ability to rename obstack_free.
76937         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76938         obstack_free.
76939         (obstack_free): Invoke the __obstack_free macro.
76940         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76941
76942 2006-10-23  Bruno Haible  <bruno@clisp.org>
76943             Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76946         __argc, __argv from the declaration. (They are defined as macros on
76947         mingw.)
76948
76949 2006-10-22  Bruno Haible  <bruno@clisp.org>
76950
76951         * doc/gnulib-intro.texi: New file.
76952         * doc/gnulib.texi: Include it.
76953
76954 2006-10-21  Bruno Haible  <bruno@clisp.org>
76955
76956         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76957         "Introduction", "Miscellanous Notes", "Particular Modules".
76958
76959 2006-10-21  Bruno Haible  <bruno@clisp.org>
76960
76961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76962         Change mostlyclean-local rule to avoid sh syntax error from bash
76963         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76964
76965 2006-10-23  Jim Meyering  <jim@meyering.net>
76966
76967         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76968         in place of snprintf.
76969
76970         * modules/inttostr (Files): Add lib/uinttostr.c.
76971         * lib/uinttostr.c (inttostr): New file/function.
76972         * lib/inttostr.h (uinttostr): Declare.
76973         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76974         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76975         Add uinttostr.
76976         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76977
76978 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * lib/canonicalize.c (ELOOP): Define if not already defined.
76981         Problem reported by Bruno Haible in
76982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76983
76984 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76987         Problem reported by Perry Smith and Ville Laurikari.
76988
76989         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76990         uses.
76991
76992 2006-10-19  Bruno Haible  <bruno@clisp.org>
76993
76994         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76995         for mingw.
76996
76997 2006-10-19  Bruno Haible  <bruno@clisp.org>
76998
76999         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77000         Needed for mingw.
77001
77002 2006-10-19  Bruno Haible  <bruno@clisp.org>
77003
77004         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77005
77006 2006-10-19  Bruno Haible  <bruno@clisp.org>
77007
77008         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77009         it.
77010
77011 2006-10-19  Bruno Haible  <bruno@clisp.org>
77012
77013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77014         invocation.
77015
77016 2006-10-19  Bruno Haible  <bruno@clisp.org>
77017
77018         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77019         mountlist by default.
77020
77021 2006-10-16  Bruno Haible  <bruno@clisp.org>
77022
77023         * lib/c-strstr.c: Include c-strstr.h.
77024
77025 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77026
77027         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77028         in a slash.
77029
77030 2006-10-18  Bruno Haible  <bruno@clisp.org>
77031
77032         * lib/lock.h [C++]: Wrap definitions in extern "C".
77033
77034 2006-10-18  Bruno Haible  <bruno@clisp.org>
77035
77036         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77037         gl_LIBOBJS list.
77038
77039 2006-10-18  Bruno Haible  <bruno@clisp.org>
77040
77041         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77042
77043 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * lib/xstrtol.h: Include gettext.h.
77046         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77047         Problem reported by Eric Blake.
77048         * modules/xstrtol (Depends-on): Add gettext-h.
77049
77050 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77051
77052         * lib/strftime.c (advance): New macro.
77053         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77054         incomplete type, so you can't add 0 to it.  Problem and patch
77055         reported by Eelco Dolstra for dietlibc.
77056
77057 2006-10-18  Jim Meyering  <jim@meyering.net>
77058
77059         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77060         type for a local, and rename it: s/up/user_proc/.
77061
77062 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77063
77064         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77065         READ_UTMP_USER_PROCESS.
77066         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77067
77068 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77071         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77072
77073 2006-10-17  Eric Blake  <ebb9@byu.net>
77074
77075         * lib/sigprocmask.c (sigprocmask): Fix typo.
77076
77077         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77078
77079         * modules/clean-temp (Makefile.am): Don't add to make output...
77080         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77081         config.h.
77082
77083 2006-10-17  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77086         differently if DEFAULT_TEXT_DOMAIN is set.
77087
77088 2006-10-16  Bruno Haible  <bruno@clisp.org>
77089
77090         * lib/clean-temp.c: Include fwriteerror.h.
77091
77092 2006-10-16  Bruno Haible  <bruno@clisp.org>
77093
77094         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77095
77096 2006-10-16  Bruno Haible  <bruno@clisp.org>
77097
77098         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77099         * lib/sigprocmask.h: Include <sys/types.h>.
77100         (sigset_t): Use the system's definition if present.
77101
77102 2006-10-17  Eric Blake  <ebb9@byu.net>
77103
77104         * lib/xvasprintf.c (includes): Assume config.h.
77105         * lib/xasprintf.c (includes): Likewise.
77106
77107 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77110         at least as wide as intmax_t.
77111
77112 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77113
77114         (Imported from Automake.)
77115         * build-aux/gnupload: Update to version 1.1 of directive file.
77116
77117 2006-10-16  Eric Blake  <ebb9@byu.net>
77118
77119         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77120         match Automake 1.10a.
77121
77122 2006-10-14  Bruno Haible  <bruno@clisp.org>
77123
77124         * modules/sigprocmask: New file.
77125         * lib/sigprocmask.h: New file.
77126         * lib/sigprocmask.c: New file.
77127         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77128         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77129         request sigprocmask.o.
77130         (gl_PREREQ_SIGPROCMASK): New macro.
77131         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77132         (Depends-on): Add sigprocmask.
77133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77134         gt_SIGNALBLOCKING. Test for 'raise' only once.
77135         * lib/fatal-signal.c: Include sigprocmask.h.
77136         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77137         unblock_fatal_signals): Define always.
77138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77139         sigprocmask.
77140
77141 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         Sync from Automake.
77144         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77145         which incorrectly sets the mode of an existing destination
77146         directory.  In some cases the unpatched install-sh could do the
77147         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77148         system.  We hope this is rare in practice, but it's clearly worth
77149         fixing.  Problem reported by Alex Unleashed in
77150         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77151         Also, don't bother to check for -m bugs unless we're using -m;
77152         suggested by Stepan Kasal.
77153
77154 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77155
77156         Sync from Automake.
77157         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77158         `-c' flag, so they appear at the same position as in %FASTDEP%
77159         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77160         which ignores unknown options only after the first non-option.
77161         Bug report against M4 by Nelson H. F. Beebe.
77162
77163 2006-10-13  Jim Meyering  <jim@meyering.net>
77164
77165         Fix a bug in yesterday's change.
77166         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77167         p->fts_statp->st_dev would be used uninitialized.
77168         Ensures that we always call fts_stat on the very first entry.
77169         Miklos Szeredi reported that find -xdev stopped working.
77170
77171 2006-10-12  Bruno Haible  <bruno@clisp.org>
77172
77173         * gnulib-tool (func_get_automake_snippet): Append an automatically
77174         computed EXTRA_DIST augmentation.
77175         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77176         * modules/alloca-opt (Makefile.am): Likewise.
77177         * modules/allocsa (Makefile.am): Likewise.
77178         * modules/arcfour (Makefile.am): Likewise.
77179         * modules/arctwo (Makefile.am): Likewise.
77180         * modules/argmatch (Makefile.am): Likewise.
77181         * modules/argz (Makefile.am): Likewise.
77182         * modules/atexit (Makefile.am): Likewise.
77183         * modules/backupfile (Makefile.am): Likewise.
77184         * modules/byteswap (Makefile.am): Likewise.
77185         * modules/c-strtod (Makefile.am): Likewise.
77186         * modules/c-strtold (Makefile.am): Likewise.
77187         * modules/calloc (Makefile.am): Likewise.
77188         * modules/canon-host (Makefile.am): Likewise.
77189         * modules/canonicalize (Makefile.am): Likewise.
77190         * modules/chdir-long (Makefile.am): Likewise.
77191         * modules/chdir-safer (Makefile.am): Likewise.
77192         * modules/check-version (Makefile.am): Likewise.
77193         * modules/chown (Makefile.am): Likewise.
77194         * modules/cloexec (Makefile.am): Likewise.
77195         * modules/close-stream (Makefile.am): Likewise.
77196         * modules/closeout (Makefile.am): Likewise.
77197         * modules/crc (Makefile.am): Likewise.
77198         * modules/csharpexec (Makefile.am): Likewise.
77199         * modules/cycle-check (Makefile.am): Likewise.
77200         * modules/des (Makefile.am): Likewise.
77201         * modules/dev-ino (Makefile.am): Likewise.
77202         * modules/dirfd (Makefile.am): Likewise.
77203         * modules/dirname (Makefile.am): Likewise.
77204         * modules/dup2 (Makefile.am): Likewise.
77205         * modules/eealloc (Makefile.am): Likewise.
77206         * modules/error (Makefile.am): Likewise.
77207         * modules/euidaccess (Makefile.am): Likewise.
77208         * modules/exclude (Makefile.am): Likewise.
77209         * modules/exitfail (Makefile.am): Likewise.
77210         * modules/fcntl-safer (Makefile.am): Likewise.
77211         * modules/fcntl (Makefile.am): Likewise.
77212         * modules/file-type (Makefile.am): Likewise.
77213         * modules/fileblocks (Makefile.am): Likewise.
77214         * modules/filemode (Makefile.am): Likewise.
77215         * modules/filenamecat (Makefile.am): Likewise.
77216         * modules/fnmatch (Makefile.am): Likewise.
77217         * modules/fopen-safer (Makefile.am): Likewise.
77218         * modules/fpending (Makefile.am): Likewise.
77219         * modules/fprintftime (Makefile.am): Likewise.
77220         * modules/free (Makefile.am): Likewise.
77221         * modules/fsusage (Makefile.am): Likewise.
77222         * modules/ftruncate (Makefile.am): Likewise.
77223         * modules/fts (Makefile.am): Likewise.
77224         * modules/gc-arcfour (Makefile.am): Likewise.
77225         * modules/gc-des (Makefile.am): Likewise.
77226         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77227         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77228         * modules/gc-md4 (Makefile.am): Likewise.
77229         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77230         * modules/gc-sha1 (Makefile.am): Likewise.
77231         * modules/gc (Makefile.am): Likewise.
77232         * modules/getaddrinfo (Makefile.am): Likewise.
77233         * modules/getcwd (Makefile.am): Likewise.
77234         * modules/getdelim (Makefile.am): Likewise.
77235         * modules/getdomainname (Makefile.am): Likewise.
77236         * modules/getgroups (Makefile.am): Likewise.
77237         * modules/gethostname (Makefile.am): Likewise.
77238         * modules/gethrxtime (Makefile.am): Likewise.
77239         * modules/getline (Makefile.am): Likewise.
77240         * modules/getloadavg (Makefile.am): Likewise.
77241         * modules/getlogin_r (Makefile.am): Likewise.
77242         * modules/getndelim2 (Makefile.am): Likewise.
77243         * modules/getopt (Makefile.am): Likewise.
77244         * modules/getpagesize (Makefile.am): Likewise.
77245         * modules/getpass-gnu (Makefile.am): Likewise.
77246         * modules/getpass (Makefile.am): Likewise.
77247         * modules/getsubopt (Makefile.am): Likewise.
77248         * modules/gettime (Makefile.am): Likewise.
77249         * modules/gettimeofday (Makefile.am): Likewise.
77250         * modules/getugroups (Makefile.am): Likewise.
77251         * modules/getusershell (Makefile.am): Likewise.
77252         * modules/glob (Makefile.am): Likewise.
77253         * modules/group-member (Makefile.am): Likewise.
77254         * modules/hard-locale (Makefile.am): Likewise.
77255         * modules/hash (Makefile.am): Likewise.
77256         * modules/hmac-md5 (Makefile.am): Likewise.
77257         * modules/hmac-sha1 (Makefile.am): Likewise.
77258         * modules/human (Makefile.am): Likewise.
77259         * modules/idcache (Makefile.am): Likewise.
77260         * modules/imaxabs (Makefile.am): Likewise.
77261         * modules/imaxdiv (Makefile.am): Likewise.
77262         * modules/inet_ntop (Makefile.am): Likewise.
77263         * modules/inet_pton (Makefile.am): Likewise.
77264         * modules/intprops (Makefile.am): Likewise.
77265         * modules/inttostr (Makefile.am): Likewise.
77266         * modules/inttypes (Makefile.am): Likewise.
77267         * modules/isapipe (Makefile.am): Likewise.
77268         * modules/javaversion (Makefile.am): Likewise.
77269         * modules/lchmod (Makefile.am): Likewise.
77270         * modules/lchown (Makefile.am): Likewise.
77271         * modules/localcharset (Makefile.am): Likewise.
77272         * modules/long-options (Makefile.am): Likewise.
77273         * modules/lstat (Makefile.am): Likewise.
77274         * modules/malloc (Makefile.am): Likewise.
77275         * modules/mathl (Makefile.am): Likewise.
77276         * modules/mbchar (Makefile.am): Likewise.
77277         * modules/md2 (Makefile.am): Likewise.
77278         * modules/md4 (Makefile.am): Likewise.
77279         * modules/md5 (Makefile.am): Likewise.
77280         * modules/memcasecmp (Makefile.am): Likewise.
77281         * modules/memchr (Makefile.am): Likewise.
77282         * modules/memcmp (Makefile.am): Likewise.
77283         * modules/memcoll (Makefile.am): Likewise.
77284         * modules/memcpy (Makefile.am): Likewise.
77285         * modules/memmem (Makefile.am): Likewise.
77286         * modules/memmove (Makefile.am): Likewise.
77287         * modules/mempcpy (Makefile.am): Likewise.
77288         * modules/memrchr (Makefile.am): Likewise.
77289         * modules/memset (Makefile.am): Likewise.
77290         * modules/memxor (Makefile.am): Likewise.
77291         * modules/mkancesdirs (Makefile.am): Likewise.
77292         * modules/mkdir-p (Makefile.am): Likewise.
77293         * modules/mkdir (Makefile.am): Likewise.
77294         * modules/mkdtemp (Makefile.am): Likewise.
77295         * modules/mkstemp (Makefile.am): Likewise.
77296         * modules/mktime (Makefile.am): Likewise.
77297         * modules/modechange (Makefile.am): Likewise.
77298         * modules/mountlist (Makefile.am): Likewise.
77299         * modules/nanosleep (Makefile.am): Likewise.
77300         * modules/obstack (Makefile.am): Likewise.
77301         * modules/openat (Makefile.am): Likewise.
77302         * modules/pagealign_alloc (Makefile.am): Likewise.
77303         * modules/pathmax (Makefile.am): Likewise.
77304         * modules/physmem (Makefile.am): Likewise.
77305         * modules/poll (Makefile.am): Likewise.
77306         * modules/posixtm (Makefile.am): Likewise.
77307         * modules/posixver (Makefile.am): Likewise.
77308         * modules/putenv (Makefile.am): Likewise.
77309         * modules/quote (Makefile.am): Likewise.
77310         * modules/quotearg (Makefile.am): Likewise.
77311         * modules/raise (Makefile.am): Likewise.
77312         * modules/read-file (Makefile.am): Likewise.
77313         * modules/readline (Makefile.am): Likewise.
77314         * modules/readlink (Makefile.am): Likewise.
77315         * modules/readtokens (Makefile.am): Likewise.
77316         * modules/readutmp (Makefile.am): Likewise.
77317         * modules/realloc (Makefile.am): Likewise.
77318         * modules/regex (Makefile.am): Likewise.
77319         * modules/rename-dest-slash (Makefile.am): Likewise.
77320         * modules/rename (Makefile.am): Likewise.
77321         * modules/rijndael (Makefile.am): Likewise.
77322         * modules/rmdir (Makefile.am): Likewise.
77323         * modules/rpmatch (Makefile.am): Likewise.
77324         * modules/safe-read (Makefile.am): Likewise.
77325         * modules/safe-write (Makefile.am): Likewise.
77326         * modules/same-inode (Makefile.am): Likewise.
77327         * modules/same (Makefile.am): Likewise.
77328         * modules/save-cwd (Makefile.am): Likewise.
77329         * modules/savedir (Makefile.am): Likewise.
77330         * modules/setenv (Makefile.am): Likewise.
77331         * modules/settime (Makefile.am): Likewise.
77332         * modules/sha1 (Makefile.am): Likewise.
77333         * modules/sig2str (Makefile.am): Likewise.
77334         * modules/snprintf (Makefile.am): Likewise.
77335         * modules/stat-macros (Makefile.am): Likewise.
77336         * modules/stat-time (Makefile.am): Likewise.
77337         * modules/stdbool (Makefile.am): Likewise.
77338         * modules/stdint (Makefile.am): Likewise.
77339         * modules/stdlib-safer (Makefile.am): Likewise.
77340         * modules/stpcpy (Makefile.am): Likewise.
77341         * modules/stpncpy (Makefile.am): Likewise.
77342         * modules/strcase (Makefile.am): Likewise.
77343         * modules/strcasestr (Makefile.am): Likewise.
77344         * modules/strchrnul (Makefile.am): Likewise.
77345         * modules/strcspn (Makefile.am): Likewise.
77346         * modules/strdup (Makefile.am): Likewise.
77347         * modules/strerror (Makefile.am): Likewise.
77348         * modules/strftime (Makefile.am): Likewise.
77349         * modules/strndup (Makefile.am): Likewise.
77350         * modules/strnlen (Makefile.am): Likewise.
77351         * modules/strpbrk (Makefile.am): Likewise.
77352         * modules/strsep (Makefile.am): Likewise.
77353         * modules/strstr (Makefile.am): Likewise.
77354         * modules/strtod (Makefile.am): Likewise.
77355         * modules/strtoimax (Makefile.am): Likewise.
77356         * modules/strtok_r (Makefile.am): Likewise.
77357         * modules/strtol (Makefile.am): Likewise.
77358         * modules/strtoll (Makefile.am): Likewise.
77359         * modules/strtoul (Makefile.am): Likewise.
77360         * modules/strtoull (Makefile.am): Likewise.
77361         * modules/strtoumax (Makefile.am): Likewise.
77362         * modules/strverscmp (Makefile.am): Likewise.
77363         * modules/sys_socket (Makefile.am): Likewise.
77364         * modules/sys_stat (Makefile.am): Likewise.
77365         * modules/sysexits (Makefile.am): Likewise.
77366         * modules/time_r (Makefile.am): Likewise.
77367         * modules/timegm (Makefile.am): Likewise.
77368         * modules/timespec (Makefile.am): Likewise.
77369         * modules/tmpfile-safer (Makefile.am): Likewise.
77370         * modules/trim (Makefile.am): Likewise.
77371         * modules/unistd-safer (Makefile.am): Likewise.
77372         * modules/unlinkdir (Makefile.am): Likewise.
77373         * modules/unlocked-io (Makefile.am): Likewise.
77374         * modules/userspec (Makefile.am): Likewise.
77375         * modules/utime (Makefile.am): Likewise.
77376         * modules/utimecmp (Makefile.am): Likewise.
77377         * modules/utimens (Makefile.am): Likewise.
77378         * modules/vasnprintf (Makefile.am): Likewise.
77379         * modules/vasprintf (Makefile.am): Likewise.
77380         * modules/vsnprintf (Makefile.am): Likewise.
77381         * modules/xalloc (Makefile.am): Likewise.
77382         * modules/xgetcwd (Makefile.am): Likewise.
77383         * modules/xnanosleep (Makefile.am): Likewise.
77384         * modules/xreadlink (Makefile.am): Likewise.
77385         * modules/xstrtod (Makefile.am): Likewise.
77386         * modules/xstrtol (Makefile.am): Likewise.
77387         * modules/xstrtold (Makefile.am): Likewise.
77388         * modules/yesno (Makefile.am): Likewise.
77389         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77390
77391 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * modules/error (Makefile.am): Distribute files through
77394         EXTRA_DIST, not lib_SOURCES.
77395
77396 2006-10-12  Eric Blake  <ebb9@byu.net>
77397
77398         * modules/error (Makefile.am): Distribute files in /lib.
77399         * modules/obstack (Makefile.am): Likewise.
77400
77401 2006-10-12  Bruno Haible  <bruno@clisp.org>
77402
77403         * modules/acl (Makefile.am): Distribute all files in lib/ through
77404         EXTRA_DIST.
77405         * modules/arcfour (Makefile.am): Likewise.
77406         * modules/arctwo (Makefile.am): Likewise.
77407         * modules/argmatch (Makefile.am): Likewise.
77408         * modules/argz (Makefile.am): Likewise.
77409         * modules/atexit (Makefile.am): Likewise.
77410         * modules/backupfile (Makefile.am): Likewise.
77411         * modules/c-strtod (Makefile.am): Likewise.
77412         * modules/c-strtold (Makefile.am): Likewise.
77413         * modules/calloc (Makefile.am): Likewise.
77414         * modules/canon-host (Makefile.am): Likewise.
77415         * modules/canonicalize (Makefile.am): Likewise.
77416         * modules/chdir-long (Makefile.am): Likewise.
77417         * modules/chdir-safer (Makefile.am): Likewise.
77418         * modules/check-version (Makefile.am): Likewise.
77419         * modules/chown (Makefile.am): Likewise.
77420         * modules/cloexec (Makefile.am): Likewise.
77421         * modules/close-stream (Makefile.am): Likewise.
77422         * modules/closeout (Makefile.am): Likewise.
77423         * modules/crc (Makefile.am): Likewise.
77424         * modules/cycle-check (Makefile.am): Likewise.
77425         * modules/des (Makefile.am): Likewise.
77426         * modules/dirfd (Makefile.am): Likewise.
77427         * modules/dirname (Makefile.am): Likewise.
77428         * modules/dup2 (Makefile.am): Likewise.
77429         * modules/euidaccess (Makefile.am): Likewise.
77430         * modules/exclude (Makefile.am): Likewise.
77431         * modules/exitfail (Makefile.am): Likewise.
77432         * modules/fcntl-safer (Makefile.am): Likewise.
77433         * modules/file-type (Makefile.am): Likewise.
77434         * modules/fileblocks (Makefile.am): Likewise.
77435         * modules/filemode (Makefile.am): Likewise.
77436         * modules/filenamecat (Makefile.am): Likewise.
77437         * modules/fnmatch (Makefile.am): Likewise.
77438         * modules/fopen-safer (Makefile.am): Likewise.
77439         * modules/fpending (Makefile.am): Likewise.
77440         * modules/fprintftime (Makefile.am): Likewise.
77441         * modules/free (Makefile.am): Likewise.
77442         * modules/fsusage (Makefile.am): Likewise.
77443         * modules/ftruncate (Makefile.am): Likewise.
77444         * modules/fts (Makefile.am): Likewise.
77445         * modules/gc (Makefile.am): Likewise.
77446         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77447         * modules/getaddrinfo (Makefile.am): Likewise.
77448         * modules/getcwd (Makefile.am): Likewise.
77449         * modules/getdelim (Makefile.am): Likewise.
77450         * modules/getdomainname (Makefile.am): Likewise.
77451         * modules/getgroups (Makefile.am): Likewise.
77452         * modules/gethostname (Makefile.am): Likewise.
77453         * modules/gethrxtime (Makefile.am): Likewise.
77454         * modules/getline (Makefile.am): Likewise.
77455         * modules/getloadavg (Makefile.am): Likewise.
77456         * modules/getlogin_r (Makefile.am): Likewise.
77457         * modules/getopt (Makefile.am): Likewise.
77458         * modules/getpass (Makefile.am): Likewise.
77459         * modules/getpass-gnu (Makefile.am): Likewise.
77460         * modules/getsubopt (Makefile.am): Likewise.
77461         * modules/gettime (Makefile.am): Likewise.
77462         * modules/gettimeofday (Makefile.am): Likewise.
77463         * modules/getugroups (Makefile.am): Likewise.
77464         * modules/getusershell (Makefile.am): Likewise.
77465         * modules/glob (Makefile.am): Likewise.
77466         * modules/group-member (Makefile.am): Likewise.
77467         * modules/hard-locale (Makefile.am): Likewise.
77468         * modules/hash (Makefile.am): Likewise.
77469         * modules/hmac-md5 (Makefile.am): Likewise.
77470         * modules/hmac-sha1 (Makefile.am): Likewise.
77471         * modules/human (Makefile.am): Likewise.
77472         * modules/idcache (Makefile.am): Likewise.
77473         * modules/imaxabs (Makefile.am): Likewise.
77474         * modules/imaxdiv (Makefile.am): Likewise.
77475         * modules/inet_ntop (Makefile.am): Likewise.
77476         * modules/inet_pton (Makefile.am): Likewise.
77477         * modules/inttostr (Makefile.am): Likewise.
77478         * modules/isapipe (Makefile.am): Likewise.
77479         * modules/lchown (Makefile.am): Likewise.
77480         * modules/long-options (Makefile.am): Likewise.
77481         * modules/lstat (Makefile.am): Likewise.
77482         * modules/malloc (Makefile.am): Likewise.
77483         * modules/mathl (Makefile.am): Likewise.
77484         * modules/mbchar (Makefile.am): Likewise.
77485         * modules/md2 (Makefile.am): Likewise.
77486         * modules/md4 (Makefile.am): Likewise.
77487         * modules/md5 (Makefile.am): Likewise.
77488         * modules/memcasecmp (Makefile.am): Likewise.
77489         * modules/memchr (Makefile.am): Likewise.
77490         * modules/memcmp (Makefile.am): Likewise.
77491         * modules/memcoll (Makefile.am): Likewise.
77492         * modules/memcpy (Makefile.am): Likewise.
77493         * modules/memmem (Makefile.am): Likewise.
77494         * modules/memmove (Makefile.am): Likewise.
77495         * modules/mempcpy (Makefile.am): Likewise.
77496         * modules/memrchr (Makefile.am): Likewise.
77497         * modules/memset (Makefile.am): Likewise.
77498         * modules/memxor (Makefile.am): Likewise.
77499         * modules/mkancesdirs (Makefile.am): Likewise.
77500         * modules/mkdir (Makefile.am): Likewise.
77501         * modules/mkdir-p (Makefile.am): Likewise.
77502         * modules/mkdtemp (Makefile.am): Likewise.
77503         * modules/mkstemp (Makefile.am): Likewise.
77504         * modules/mktime (Makefile.am): Likewise.
77505         * modules/modechange (Makefile.am): Likewise.
77506         * modules/mountlist (Makefile.am): Likewise.
77507         * modules/nanosleep (Makefile.am): Likewise.
77508         * modules/openat (Makefile.am): Likewise.
77509         * modules/pagealign_alloc (Makefile.am): Likewise.
77510         * modules/physmem (Makefile.am): Likewise.
77511         * modules/poll (Makefile.am): Likewise.
77512         * modules/posixtm (Makefile.am): Likewise.
77513         * modules/posixver (Makefile.am): Likewise.
77514         * modules/putenv (Makefile.am): Likewise.
77515         * modules/quote (Makefile.am): Likewise.
77516         * modules/quotearg (Makefile.am): Likewise.
77517         * modules/raise (Makefile.am): Likewise.
77518         * modules/read-file (Makefile.am): Likewise.
77519         * modules/readline (Makefile.am): Likewise.
77520         * modules/readlink (Makefile.am): Likewise.
77521         * modules/readtokens (Makefile.am): Likewise.
77522         * modules/readutmp (Makefile.am): Likewise.
77523         * modules/realloc (Makefile.am): Likewise.
77524         * modules/regex (Makefile.am): Likewise.
77525         * modules/rename (Makefile.am): Likewise.
77526         * modules/rename-dest-slash (Makefile.am): Likewise.
77527         * modules/rijndael (Makefile.am): Likewise.
77528         * modules/rmdir (Makefile.am): Likewise.
77529         * modules/rpmatch (Makefile.am): Likewise.
77530         * modules/safe-read (Makefile.am): Likewise.
77531         * modules/safe-write (Makefile.am): Likewise.
77532         * modules/same (Makefile.am): Likewise.
77533         * modules/save-cwd (Makefile.am): Likewise.
77534         * modules/savedir (Makefile.am): Likewise.
77535         * modules/setenv (Makefile.am): Likewise.
77536         * modules/settime (Makefile.am): Likewise.
77537         * modules/sha1 (Makefile.am): Likewise.
77538         * modules/sig2str (Makefile.am): Likewise.
77539         * modules/snprintf (Makefile.am): Likewise.
77540         * modules/stdlib-safer (Makefile.am): Likewise.
77541         * modules/stpcpy (Makefile.am): Likewise.
77542         * modules/stpncpy (Makefile.am): Likewise.
77543         * modules/strcase (Makefile.am): Likewise.
77544         * modules/strcasestr (Makefile.am): Likewise.
77545         * modules/strchrnul (Makefile.am): Likewise.
77546         * modules/strcspn (Makefile.am): Likewise.
77547         * modules/strdup (Makefile.am): Likewise.
77548         * modules/strerror (Makefile.am): Likewise.
77549         * modules/strftime (Makefile.am): Likewise.
77550         * modules/strndup (Makefile.am): Likewise.
77551         * modules/strnlen (Makefile.am): Likewise.
77552         * modules/strpbrk (Makefile.am): Likewise.
77553         * modules/strsep (Makefile.am): Likewise.
77554         * modules/strstr (Makefile.am): Likewise.
77555         * modules/strtod (Makefile.am): Likewise.
77556         * modules/strtoimax (Makefile.am): Likewise.
77557         * modules/strtok_r (Makefile.am): Likewise.
77558         * modules/strtol (Makefile.am): Likewise.
77559         * modules/strtoll (Makefile.am): Likewise.
77560         * modules/strtoul (Makefile.am): Likewise.
77561         * modules/strtoull (Makefile.am): Likewise.
77562         * modules/strtoumax (Makefile.am): Likewise.
77563         * modules/strverscmp (Makefile.am): Likewise.
77564         * modules/time_r (Makefile.am): Likewise.
77565         * modules/timegm (Makefile.am): Likewise.
77566         * modules/tmpfile-safer (Makefile.am): Likewise.
77567         * modules/unistd-safer (Makefile.am): Likewise.
77568         * modules/unlinkdir (Makefile.am): Likewise.
77569         * modules/userspec (Makefile.am): Likewise.
77570         * modules/utime (Makefile.am): Likewise.
77571         * modules/utimecmp (Makefile.am): Likewise.
77572         * modules/utimens (Makefile.am): Likewise.
77573         * modules/vasnprintf (Makefile.am): Likewise.
77574         * modules/vasprintf (Makefile.am): Likewise.
77575         * modules/vsnprintf (Makefile.am): Likewise.
77576         * modules/xalloc (Makefile.am): Likewise.
77577         * modules/xgetcwd (Makefile.am): Likewise.
77578         * modules/xnanosleep (Makefile.am): Likewise.
77579         * modules/xreadlink (Makefile.am): Likewise.
77580         * modules/xstrtod (Makefile.am): Likewise.
77581         * modules/xstrtol (Makefile.am): Likewise.
77582         * modules/xstrtold (Makefile.am): Likewise.
77583         * modules/yesno (Makefile.am): Likewise.
77584
77585 2006-10-12  Jim Meyering  <jim@meyering.net>
77586
77587         * m4/getloadavg.m4: Revert the change below.
77588
77589         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77590         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77591         fail with a symlink, which is what coreutils' ./bootstrap now
77592         creates by default.
77593
77594 2006-10-12  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77597         mingw.
77598         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77599         MSVC and mingw explicitly.
77600
77601 2006-10-11  Simon Josefsson  <jas@extundo.com>
77602             Bruno Haible  <bruno@clisp.org>
77603
77604         Add support for multiple gnulib-tool invocations in the scope of a
77605         single configure.ac file.
77606         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77607         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77608         with the same contents as the _LIBADD variable.
77609         (func_emit_initmacro_start, func_emit_initmacro_end,
77610         func_emit_initmacro_done): New functions.
77611         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77612         gl_LIBOBJS and gl_LTLIBOBJS.
77613
77614 2006-10-11  Bruno Haible  <bruno@clisp.org>
77615
77616         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77617         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77618         autoreconf. Instead, invoke autopoint explicitly but move back the
77619         *.m4 files from gnulib.
77620
77621 2006-10-11  Bruno Haible  <bruno@clisp.org>
77622
77623         * gnulib-tool (func_usage): Make module names after --create-testdir
77624         optional.
77625         (func_create_testdir): If no module was specified, use nearly all
77626         modules.
77627
77628 2006-10-12  Jim Meyering  <jim@meyering.net>
77629
77630         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77631         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77632         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77633         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77634         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77635         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77636         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77637         (fts_set_stat_required): New function.
77638         (fts_open): Defer the calls to fts_stat, if possible or requested.
77639         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77640         into fts_stat itself.
77641         (fts_read): Perform any required (deferred) fts_stat call.
77642         (fts_build): Likewise, for the directory we're about to open and read.
77643         In the readdir loop, carefully decide whether each entry will require
77644         an eventual call to fts_stat, using dirent.d_type info if available.
77645         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77646         a command line argument into this function.  Update all callers.
77647         Map a return value of FTS_DOT to FTS_D for a command line argument.
77648         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77649         Thanks to Miklos Szeredi for his tenacity and for the initial
77650         bug report about "find" failing on a FUSE-based file system.
77651
77652         * lib/fts.c (fts_open): Use consistent indentation.
77653
77654 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77657         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77658         reported by Jim Meyering.  All uses of cache variables renamed
77659         to match Autoconf's.
77660         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77661         the other one.
77662
77663         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77664         Fix misspelling in diagnostic.
77665
77666 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77669         defined.  Problem reported by Matthew Woehlke.
77670
77671         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77672         Add support for Tandem NonStop R series.
77673         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77674         Use new macro.
77675
77676         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77677         (has_trailing_slash): Omit size arg; all callers changed.
77678         Omit 'inline', since it doesn't help performance and we'd
77679         need to configure it.
77680         Don't count //, ///, etc. as having a trailing slash.
77681         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77682         (rpl_rename_dest_slash): On failure, use rename's errno rather
77683         than (in some cases) an incorrect or junk errno.
77684         Simplify code by removing need to compute length; this does
77685         cause it to make two passes instead of one over the file name,
77686         but it's worth it.
77687
77688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77689         change, since Autoconf's version may no longer be appropriate now
77690         that we are using CVS Autoconf's version.  Add support for Tandem.
77691
77692 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77693             Bruno Haible  <bruno@clisp.org>
77694
77695         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77696         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77697         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77698         gl_AC_TYPE_LONG_LONG.
77699
77700         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77701         instead of HAVE_LONG_LONG.
77702         * lib/printf-args.c (printf_fetchargs): Likewise.
77703         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77704         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77705         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77706         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77707         gl_AC_TYPE_LONG_LONG.
77708
77709 2006-10-11  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/longlong.m4: Add comments.
77712         * m4/ulonglong.m4: Likewise.
77713
77714 2006-10-10  Bruno Haible  <bruno@clisp.org>
77715
77716         Make it possible to #define stpcpy, strdup to aliases.
77717         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77718         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77719
77720 2006-10-10  Bruno Haible  <bruno@clisp.org>
77721
77722         Make it possible to #define gcd to an alias.
77723         * lib/gcd.c: Include config.h.
77724
77725 2006-10-10  Bruno Haible  <bruno@clisp.org>
77726
77727         Make it possible to #define c_isascii to an alias.
77728         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77729         defined. Undefine the macros before defining them, to avoid gcc
77730         warnings.
77731         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77732         define NO_C_CTYPE_MACROS early.
77733
77734 2006-10-10  Bruno Haible  <bruno@clisp.org>
77735
77736         Make it possible to #define set_program_name to an alias.
77737         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77738         ENABLE_RELOCATABLE early.
77739
77740 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77743         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77744         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77745         More generally, don't assume that 64-bit signed int is available
77746         if unsigned int is, and vice versa.
77747         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77748         unsigned symbols, not on their signed counterparts.
77749         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77750         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77751         (UINT64_C, UINTMAX_C):
77752         Likewise.
77753         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77754         unsigned counterparts.
77755         (Have_long_long, Unsigned): New macros.
77756         (Int): Renamed from INT.
77757         (strtoimax): Use the new macros.
77758         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77759         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77760         * modules/inttypes (inttypes.h): Substitute
77761         HAVE_UNSIGNED_LONG_LONG_INT.
77762         * modules/stdint (stdint.h): Likewise.
77763         (Files): Add m4/ulonglong.m4.
77764
77765 2006-10-10  Bruno Haible  <bruno@clisp.org>
77766
77767         Fix a gcc -Wshadow warning.
77768         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77769         to 'bucket'.
77770         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77771         gl_linked_indexof_from_to): Likewise.
77772         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77773         Likewise.
77774         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77775         Likewise.
77776         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77777         Reported by Eric Blake.
77778
77779 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77782         for NetBSD.  Problem reported by Bruno Haible.
77783
77784 2006-10-09  Jim Meyering  <jim@meyering.net>
77785
77786         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77787         Patch from Bruno Haible.
77788
77789 2006-10-09  Jim Meyering  <jim@meyering.net>
77790
77791         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77792         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77793         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77794
77795 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         Don't include <config.h> twice; this doesn't work in some cases,
77798         e.g., when config.h has "#define intmax_t long long int" and
77799         we include <config.h>, <inttypes.h>, <config.h> in that order.
77800         Problem reported by Matthew Woehlke in:
77801         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77802         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77803         * lib/fts-cycle.c: Don't include config.h.
77804         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77805         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77806         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77807         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77808         inttypes.h.
77809         * lib/xstrtoumax.c: Likewise.
77810         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77811         __strtol and the like, so that this module is more like its siblings.
77812         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77813         Remove; no longer needed now that we assume gnulib inttypes.h.
77814
77815 2006-10-08  Bruno Haible  <bruno@clisp.org>
77816
77817         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77818         option.
77819
77820 2006-10-07  Jim Meyering  <jim@meyering.net>
77821
77822         * modules/inttypes (inttypes.h): Revert what seems to have been
77823         an inadvertent part of today's change: use "|", not "/" in the
77824         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77825
77826 2006-10-07  Bruno Haible  <bruno@clisp.org>
77827
77828         * modules/sublist: New file.
77829
77830 2006-10-07  Bruno Haible  <bruno@clisp.org>
77831
77832         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77833         * modules/argz (argz.h): Likewise.
77834         * modules/arpa_inet (arpa/inet.h): Likewise.
77835         * modules/byteswap (byteswap.h): Likewise.
77836         * modules/configmake (configmake.h): Likewise.
77837         * modules/fcntl (fcntl.h): Likewise.
77838         * modules/fnmatch (fnmatch.h): Likewise.
77839         * modules/getopt (getopt.h): Likewise.
77840         * modules/glob (glob.h): Likewise.
77841         * modules/inttypes (inttypes.h): Likewise.
77842         * modules/netinet_in (netinet/in.h): Likewise.
77843         * modules/poll (poll.h): Likewise.
77844         * modules/stdbool (stdbool.h): Likewise.
77845         * modules/stdint (stdint.h): Likewise.
77846         * modules/sys_select (sys/select.h): Likewise.
77847         * modules/sys_socket (sys/socket.h): Likewise.
77848         * modules/sys_stat (sys/stat.h): Likewise.
77849         * modules/sysexits (sysexits.h): Likewise.
77850         * modules/unistd (unistd.h): Likewise.
77851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77852         Add a "DO NOT EDIT" comment to the generated file.
77853         (func_import): Likewise for gnulib-comp.m4.
77854
77855 2006-10-07  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/gl_sublist.h: New file.
77858         * lib/gl_sublist.c: New file.
77859
77860 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77863         name (relative to the original working directory) and the file
77864         name component (relative to the temporary working directory).  All
77865         callers changed.
77866         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77867         * lib/mkdir-p.c (make_dir_parents): Likewise.
77868         * lib/mkdir-p.h (make_dir_parents): Likewise.
77869
77870 2006-10-06  Eric Blake  <ebb9@byu.net>
77871
77872         Define several macros for use by the clean-temp module.
77873         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77876
77877         * lib/clean-temp.h (close_stream_temp): New declaration.
77878         * lib/clean-temp.c (includes): Pull in headers according to what
77879         other modules are in use.
77880         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77881
77882 2006-10-06  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77885         instead of fopen, fwriteerror.
77886
77887 2006-10-06  Bruno Haible  <bruno@clisp.org>
77888
77889         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77890         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77891         int.
77892         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77893         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77894         Return an error indicator.
77895         Suggested by Eric Blake.
77896
77897 2006-10-06  Bruno Haible  <bruno@clisp.org>
77898
77899         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77900         Reported by Eric Blake.
77901
77902 2006-10-06  Bruno Haible  <bruno@clisp.org>
77903
77904         * modules/closeout (Description): Mention stderr too.
77905
77906 2006-10-06  Bruno Haible  <bruno@clisp.org>
77907         and Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * lib/closeout.c (close_stdout): Also close stderr.
77910         * lib/closeout.h: Update comment.
77911
77912 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77916         * lib/dirchownmod.c: Include lchown.h.
77917         * lib/lchown.c: Don't include files that lchown.h now includes.
77918         Don't declare chown, since lchown.h now does that.
77919         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77920         (lchown): Define to rpl_chown if lchown is declared but
77921         does not exist.  Declare using a prototype if lchown is not
77922         declared.  Add a copyright notice.
77923         * lib/mkstemp.h: Include <unistd.h>.
77924         * lib/openat.c: Include lchown.h.
77925
77926         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77927         we now test for that separately.
77928         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77929         rather than O_NOFOLLOW, when testing whether it's possible to
77930         avoid a race condition reliably.
77931         * lib/savewd.c (savewd_chdir): Likewise.
77932
77933         Remove macros that are no longer needed now that stdint.h is
77934         reliable.
77935         * lib/fsusage.c (UINTMAX_MAX): Remove.
77936         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77937         * lib/utimecmp.c (SIZE_MAX): Remove.
77938
77939         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77940
77941         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77942         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77943         O_NOATIME works.
77944
77945 2006-10-05  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/gl_list.h (gl_sortedlist_search_from_to,
77948         gl_sortedlist_indexof_from_to): New declarations.
77949         (gl_list_implementation): New fields sortedlist_search_from_to,
77950         sortedlist_indexof_from_to.
77951         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77952         inline functions.
77953         * lib/gl_list.c (gl_sortedlist_search_from_to,
77954         gl_sortedlist_indexof_from_to): New functions.
77955         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77956         function.
77957         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77958         (gl_array_sortedlist_search_from_to): New function.
77959         (gl_array_list_implementation): Update.
77960         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77961         function.
77962         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77963         (gl_carray_sortedlist_search_from_to): New function.
77964         (gl_carray_list_implementation): Update.
77965         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77966         gl_linked_sortedlist_indexof_from_to): New functions.
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_list2.h (gl_tree_sortedlist_search_from_to,
77970         gl_tree_sortedlist_indexof_from_to): New functions.
77971         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77973         Update.
77974         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77975         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77976         Update.
77977
77978 2006-10-05  Bruno Haible  <bruno@clisp.org>
77979
77980         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77981         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77982         (struct gl_list_implementation): Add fields search_from_to,
77983         indexof_from_to. Remove fields search, indexof.
77984         (gl_list_search): Use the search_from_to method.
77985         (gl_list_search_from, gl_list_search_from_to): New functions.
77986         (gl_list_indexof): Use the indexof_from_to method.
77987         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77988         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77989         (gl_list_search_from, gl_list_search_from_to): New functions.
77990         (gl_list_indexof): Use the indexof_from_to method.
77991         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77992         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77993         gl_array_indexof. Add start_index, end_index arguments.
77994         (gl_array_search_from_to): Renamed from gl_array_search. Add
77995         start_index, end_index arguments.
77996         (gl_array_remove, gl_array_list_implementation): Update.
77997         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77998         gl_carray_indexof. Add start_index, end_index arguments.
77999         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78000         start_index, end_index arguments.
78001         (gl_carray_remove, gl_carray_list_implementation): Update.
78002         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78003         gl_linked_search. Add start_index, end_index arguments.
78004         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78005         start_index, end_index arguments.
78006         (gl_linked_remove): Update.
78007         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78008         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78009         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78010         field to 'size_t'.
78011         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78012         gl_tree_search. Add start_index, end_index arguments.
78013         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78014         start_index, end_index arguments.
78015         (gl_tree_remove): Update.
78016         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78017         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78018         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78019         function.
78020         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78021         gl_tree_search. Add start_index, end_index arguments.
78022         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78023         start_index, end_index arguments.
78024         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78025         Update.
78026         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78027
78028 2006-10-05  Bruno Haible  <bruno@clisp.org>
78029
78030         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78031
78032         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78033         fwriteerror_temp): New declarations.
78034         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78035         (descriptors): New variable.
78036         (cleanup): First, close the descriptors.
78037         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78038         fclose_temp, fwriteerror_temp): New functions.
78039
78040 2006-10-04  Jim Meyering  <jim@meyering.net>
78041
78042         * lib/fts.c (fts_open): Tiny comment change.
78043
78044 2006-10-04  Bruno Haible  <bruno@clisp.org>
78045
78046         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78047         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78048         gl_LOCK_BODY.
78049         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78050         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78051         gl_LOCK_EARLY_BODY.
78052         (gl_LOCK): Require gl_LOCK_BODY.
78053
78054 2006-10-04  Bruno Haible  <bruno@clisp.org>
78055
78056         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78057         (gl_oset_search_atleast): New declaration.
78058         (struct gl_oset_implementation): Add field 'search_atleast'.
78059         (gl_oset_search_atleast): New inline function.
78060         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78061         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78062         (gl_array_oset_implementation): Update.
78063         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78064         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78065         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78066
78067 2006-10-04  Bruno Haible  <bruno@clisp.org>
78068
78069         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78070
78071 2006-10-03  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78074         from gl_avltreehash_list_implementation.
78075
78076 2006-10-03  Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/gl_oset.c (gl_oset_add): Fix return type.
78079
78080 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78081
78082         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78083
78084 2006-10-02  Eric Blake  <ebb9@byu.net>
78085
78086         * modules/strnlen (Depends-on): Add extensions.
78087
78088 2006-10-02  Eric Blake  <ebb9@byu.net>
78089
78090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78091         definition in 2.60+.
78092
78093 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78094
78095         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78096         checks.
78097
78098 2006-10-02  Bruno Haible  <bruno@clisp.org>
78099
78100         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78101         to the AUTOMAKE_OPTIONS.
78102         Reported by Jim Meyering.
78103
78104 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         Work around bug in Solaris 10 /proc file system:
78107         /proc/self/fd/NNN/.. isn't the parent directory of
78108         the directory whose file descriptor is NNN.  This needs to
78109         be worked around at run time, not compile time, since a
78110         program might be built on Solaris 8, where things work, and
78111         run on Solaris 10.
78112         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78113         to use the following interface instead:
78114         (OPENAT_BUFFER_SIZE): New macro.
78115         (openat_proc_name): New function.
78116         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78117         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78118         Likewise.
78119         * lib/openat-proc.c: New file.
78120         * modules/openat (Files): Add lib/openat-proc.c.
78121         (Depends-on): Add same-inode, stdbool.
78122         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78123
78124 2006-09-29  Bruno Haible  <bruno@clisp.org>
78125
78126         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78127         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78128         argument. Set stdout_closed before testing for ferror, not after.
78129         (fwriteerror, fwriteerror_no_ebadf): New functions.
78130
78131 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78132
78133         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78134
78135 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78136
78137         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78138         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78139
78140 2006-09-28  Jim Meyering  <jim@meyering.net>
78141
78142         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78143         Include <unistd.h>.
78144
78145 2006-09-28  Bruno Haible  <bruno@clisp.org>
78146
78147         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78148         * modules/linkedhash-list (Depends-on): Likewise.
78149         * modules/rbtreehash-list (Depends-on): Likewise.
78150
78151 2006-09-28  Bruno Haible  <bruno@clisp.org>
78152
78153         * lib/strndup.h: Simplify the redefinition of strndup.
78154         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78156
78157 2006-09-28  Bruno Haible  <bruno@clisp.org>
78158
78159         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78160         * lib/gl_linkedhash_list.c: Likewise.
78161         * lib/gl_rbtreehash_list.c: Likewise.
78162
78163 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78166         getaddrinfo.
78167
78168         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78169         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78170         it causes <stdio_ext.h> to cause a compile-time error.
78171         Problem reported by Nelson H. F. Beebe.
78172         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78173         of HAVE_DECL___PENDING.
78174
78175         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78176         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78177         declaration.
78178
78179 2006-09-27  Jim Meyering  <jim@meyering.net>
78180
78181         This file could end up with a definition for a function
78182         named __strndup, rather than rpl_strndup on a system with
78183         incomplete weak_alias support.
78184         * lib/strndup.c (strndup): Rename from __strndup.
78185         Remove #defines that used to map __strndup to strndup.
78186         Don't use K&R prototypes.
78187         Remove LIBC-related code, since this file is not sync'd with glibc.
78188         * lib/strndup.h: Revamp, accordingly.
78189         * m4/strndup.m4: Modernize.
78190
78191 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * modules/savewd (Depends-on): Add 'raise'.
78194         * lib/savewd.c: Include <signal.h>, for 'raise'.
78195
78196 2006-09-26  Jim Meyering  <jim@meyering.net>
78197
78198         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78199         when we detect Darwin 8.7.0's acl_get_file bug.
78200         Rearrange to perform the new (below) run-test while $LIBS
78201         contains any acl-related library.  Set USE_ACL at the end.
78202         (gl_ACL_GET_FILE): New function.
78203
78204 2006-09-26  Eric Blake  <ebb9@byu.net>
78205
78206         * lib/verror.c: Include <config.h> unconditionally.
78207
78208 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * modules/clock-time (Maintainer): Add self.
78211         * modules/getlogin_r (Depends-on): Add extensions.
78212
78213 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78214
78215         * modules/clock-time: New module.
78216         * modules/nanosleep (Depends-on): Add clock-time.
78217         * modules/gethrxtime (Depends-on): Likewise.
78218         * modules/gettime (Depends-on): Likewise.
78219         * modules/settime (Depends-on): Likewise.
78220
78221         * modules/fts-lgpl: Depend on openat.
78222         * modules/mkancesdirs: Depend on savewd.
78223         * modules/mkdir-p: Likewise.
78224
78225 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78226
78227         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78228
78229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78230         `gl_have_arbitrary_file_name_length_limit' to
78231         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78232         actually works between configure runs.
78233
78234 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78235             Bruno Haible  <bruno@clisp.org>
78236
78237         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78238
78239 2006-09-25  Jim Meyering  <jim@meyering.net>
78240
78241         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78242         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78243
78244 2006-09-25  Eric Blake  <ebb9@byu.net>
78245
78246         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78247         exec's in 2006-09-18 patch when shuffling fds.
78248
78249 2006-09-25  Bruno Haible  <bruno@clisp.org>
78250
78251         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78252         Reported by Jim Meyering.
78253
78254 2006-09-24  Jim Meyering  <jim@meyering.net>
78255
78256         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78257         compare a pointer against a literal "0".  That caused failures with
78258         at least HP-UX's hpcc.
78259
78260 2006-09-22  Simon Josefsson  <jas@extundo.com>
78261
78262         * modules/gc-sha1:
78263         * modules/gc-md4:
78264         * modules/gc-hmac-sha1:
78265         * modules/gc-hmac-md5:
78266         * modules/gc-des:
78267         * modules/gc-arcfour: Distribute more files.
78268
78269 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78270
78271         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78272         (gl_linked_iterator_from_to): Initialize struct completely.
78273         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78274         (gl_tree_iterator_from_to): Likewise
78275         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78276         * lib/gl_array_list.c [lint] (gl_array_iterator)
78277         (gl_array_iterator_from_to): Likewise.
78278         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78279         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78280         (gl_carray_iterator_from_to): Likewise.
78281
78282         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78283         * lib/md4.c (md4_process_block): Remove unused variable.
78284         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78285         parentheses for clarity.
78286
78287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78288
78289         * modules/bison-i18n (Depends-on): Add gettext.
78290
78291 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78292
78293         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78294         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78295         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78296         also add missing comma that caused broken test.
78297         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78298         stdlib.h, for `abort'.
78299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78300         variables.
78301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78302         include unistd.h if present, for `rmdir'.
78303         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78304         variables.
78305         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78306         in the process include standard headers for prototypes.
78307         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78308         gets declared on GNU/Linux.
78309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78310         unistd.h, for `rmdir'.
78311         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78312
78313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78314         always true.
78315         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78316
78317         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78318
78319 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78320
78321         * gnulib-tool (func_version): Create output all at once.  This
78322         may help avoid triggering unnecessary SIGPIPEs, and at any
78323         rate it doesn't hurt.
78324
78325 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78326             Bruno Haible  <bruno@clisp.org>
78327
78328         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78329         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78330         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78331
78332         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78333         (gl_FUNC_VASPRINTF): Invoke it.
78334
78335 2006-09-22  Bruno Haible  <bruno@clisp.org>
78336
78337         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78338         getloadavg.c as first argument.
78339
78340 2006-09-22  Bruno Haible  <bruno@clisp.org>
78341
78342         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78343         at the beginning of the gl_INIT macro.
78344         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78345         gl_GETLOADAVG.
78346
78347 2006-09-22  Bruno Haible  <bruno@clisp.org>
78348
78349         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78350         module.
78351         Suggested by Ralf Wildenhues.
78352
78353 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         Import this patch from libc:
78356
78357         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78358
78359         * lib/regex_internal.c (re_string_reconstruct): Handle
78360         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78361         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78362         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78363         re_string_context_at.
78364
78365         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78366         now requires it.
78367         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78368         gl_REGEX now does it for us.
78369         (gl_REGEX): Add test taken from
78370         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78371
78372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78373         Check that large offsets work.  Modernize Autoconf usages.
78374         Prefer "yes" to mean a good thing rather than a bad.
78375         Don't put "#define mkstemp" in config.h, as this might interfere
78376         with standard system headers that "#define mkstemp mkstemp64".
78377
78378         * modules/mkstemp (Depends-on): Add extensions, so that
78379         mkstemp is visible on some platforms.
78380         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78381         (Include): Change to "mkstemp.h" from <stdlib.h>.
78382         (Files): Add mkstemp.h.
78383
78384         * lib/mkstemp.h: New file, since some standard headers
78385         #define mkstemp.
78386         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78387         Include "mkstemp.h".
78388         Make the _LIBC code resemble glibc original more,
78389         e.g., use K&R style.
78390         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78391         (mkstemp): Remove, since mkstemp.h does this for us.
78392         * lib/stdlib--.h: Include mkstemp.h.
78393
78394         Import this patch from libc:
78395
78396         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78397
78398         * lib/tempname.c (__gen_tempname): Change attempts_min
78399         into a macro.  Use preprocessor to decide how to initialize
78400         attempts [Coverity CID 67].
78401
78402 2006-09-20  Bruno Haible  <bruno@clisp.org>
78403
78404         * lib/mkdtemp.c: Import from libc.
78405         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78406                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78407                 attempts_min into a macro.  Use preprocessor to decide how to
78408                 initialize attempts [Coverity CID 67].
78409         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78410                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78411                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78412
78413 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78414
78415         * gnulib-tool (func_exit): New function, to allow to pass the
78416         exit status portably through the trap.  Use everywhere.
78417         (--help, --version): Signal a write error.
78418         (trap): catch SIGPIPE, for write errors.
78419         Exit at the end of the trap, with the correct exit status.
78420
78421 2006-09-19  Karl Berry  <karl@gnu.org>
78422
78423         * doc/gnulib.texi: note about the license texinfo files.
78424
78425 2006-09-19  Eric Blake  <ebb9@byu.net>
78426
78427         * gnulib-tool: Avoid space-tab.
78428
78429 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78432         that prevented coreutils 6.1 from building.  Problem reported
78433         by Petter Reinholdtsen.
78434
78435 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * gnulib-tool (avoidlist): Fix typo that broke options like
78438         --avoid=lock that are used by coreutils bootstrap.
78439
78440 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78441
78442         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78443         more systematically.
78444
78445 2006-09-18  Jim Meyering  <jim@meyering.net>
78446
78447         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78448
78449 2006-09-18  Bruno Haible  <bruno@clisp.org>
78450
78451         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78452
78453 2006-09-18  Bruno Haible  <bruno@clisp.org>
78454
78455         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78456         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78457         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78458         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78459         * m4/gettext.m4: Require autoconf >= 2.52.
78460         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78461         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78462         of gl_cv_header_inttypes_h.
78463
78464 2006-09-18  Bruno Haible  <bruno@clisp.org>
78465
78466         * lib/javaversion.c: Include configmake.h.
78467
78468 2006-09-18  Bruno Haible  <bruno@clisp.org>
78469
78470         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78471         avoid that the while loops be executed in a subshell.
78472
78473 2006-09-18  Bruno Haible  <bruno@clisp.org>
78474
78475         * MODULES.html.sh (func_module): Break long lines.
78476         Suggested by Bruce Korb <bkorb@gnu.org>.
78477
78478 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78479
78480         Speed up by a factor of 1.12.
78481         * gnulib-tool (nl): New variable.
78482         (func_import): Rewrite include directive extraction to only read each
78483         directive once.
78484
78485 2006-09-17  Bruno Haible  <bruno@clisp.org>
78486
78487         * modules/javaversion (Makefile.am): Remove DEFS setting.
78488         (Depends-on): Add configmake, for PKGDATADIR definition.
78489
78490 2006-09-17  Bruno Haible  <bruno@clisp.org>
78491
78492         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78493
78494 2006-09-17  Bruno Haible  <bruno@clisp.org>
78495
78496         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78497         (func_modules_transitive_closure, func_modules_add_dummy,
78498         func_modules_to_filelist, func_import, func_create_testdir,
78499         func_create_megatestdir, ...): Use it wherever possible.
78500         Suggested by Ralf Wildenhues.
78501
78502 2006-09-16  Karl Berry  <karl@gnu.org>
78503
78504         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78505         to avoid sectioning errors.
78506         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78507         [ifinfo]: blank line after @center-ed titles.
78508         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78509         Spell FSF address consistently with others.
78510         (These changes approved by rms.)
78511
78512 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78513
78514         Speed up by a factor of 1.61.
78515         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78516         already checked module names again.
78517
78518 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78519
78520         Speed up by a factor of 1.13.
78521         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78522         for new_files, and the input to func_add_or_update.
78523
78524 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78525
78526         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78527         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78528
78529 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * modules/mkancesdirs (Depends-on): Add fcntl.
78532         * modules/savewd: New file.
78533         * MODULES.html.sh (File system functions): Add savewd.
78534
78535         * modules/configmake (Makefile.am): Add support for the
78536         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78537
78538 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/savewd.m4: New file.
78541
78542 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78545         (dirchownmod): New arg FD.  All callers changed.
78546         Use FD rather than opening the directory ourself, as opening is
78547         now the caller's responsibility.
78548         * lib/dirchownmod.h: Likewise.
78549         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78550         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78551         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78552         (test_dir): Remove.
78553         (mkancesdirs): Return length of prefix of FILE that has already
78554         been made, or -2 if there is a child doing the work.  Redo
78555         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78556         ".", and treat ".." specially since it might stray back into
78557         already-created areas.  Use a subprocess if necessary.  New arg
78558         WD; all users changed.  MAKE_DIR function should now return 1
78559         if it creates a directory that is not readable.  Return -2 if
78560         a child process is spun off.
78561         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78562         Adjust signature to match code.
78563         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78564         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78565         all users changed.
78566         * lib/savewd.c, lib/savewd.h: New files.
78567
78568 2006-09-15  Jim Meyering  <jim@meyering.net>
78569
78570         * modules/rename-dest-slash: New module.
78571         * MODULES.html.sh (posix_compat): Add it here.
78572
78573         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78574
78575 2006-09-15  Jim Meyering  <jim@meyering.net>
78576
78577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78578         file.
78579
78580         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78581
78582 2006-09-15  Jim Meyering  <jim@meyering.net>
78583
78584         * lib/rename-dest-slash.c (has_trailing_slash): Use
78585         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78586         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78587         test before testing whether SRC is a directory.
78588         Suggestions from Bruno Haible.
78589
78590         Avoid a warning about an unused variable.
78591         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78592         into the #ifdef block where it's used.
78593
78594         * lib/rename-dest-slash.c: New file.
78595
78596 2006-09-14  Bruno Haible  <bruno@clisp.org>
78597
78598         * lib/allocsa.c: Include <config.h> unconditionally.
78599         * lib/asnprintf.c: Likewise.
78600         * lib/asprintf.c: Likewise.
78601         * lib/c-strcasecmp.c: Likewise.
78602         * lib/c-strcasestr.c: Likewise.
78603         * lib/c-strncasecmp.c: Likewise.
78604         * lib/c-strstr.c: Likewise.
78605         * lib/classpath.c: Likewise.
78606         * lib/clean-temp.c: Likewise.
78607         * lib/concatpath.c: Likewise.
78608         * lib/copy-file.c: Likewise.
78609         * lib/csharpcomp.c: Likewise.
78610         * lib/csharpexec.c: Likewise.
78611         * lib/execute.c: Likewise.
78612         * lib/fatal-signal.c: Likewise.
78613         * lib/findprog.c: Likewise.
78614         * lib/fwriteerror.c: Likewise.
78615         * lib/gl_array_list.c: Likewise.
78616         * lib/gl_array_oset.c: Likewise.
78617         * lib/gl_avltree_list.c: Likewise.
78618         * lib/gl_avltree_oset.c: Likewise.
78619         * lib/gl_avltreehash_list.c: Likewise.
78620         * lib/gl_carray_list.c: Likewise.
78621         * lib/gl_linked_list.c: Likewise.
78622         * lib/gl_linkedhash_list.c: Likewise.
78623         * lib/gl_list.c: Likewise.
78624         * lib/gl_oset.c: Likewise.
78625         * lib/gl_rbtree_list.c: Likewise.
78626         * lib/gl_rbtree_oset.c: Likewise.
78627         * lib/gl_rbtreehash_list.c: Likewise.
78628         * lib/imaxabs.c: Likewise.
78629         * lib/imaxdiv.c: Likewise.
78630         * lib/javacomp.c: Likewise.
78631         * lib/javaexec.c: Likewise.
78632         * lib/javaversion.c: Likewise.
78633         * lib/linebreak.c: Likewise.
78634         * lib/localcharset.c: Likewise.
78635         * lib/lock.c: Likewise.
78636         * lib/mbchar.c: Likewise.
78637         * lib/mbswidth.c: Likewise.
78638         * lib/mkdtemp.c: Likewise.
78639         * lib/pipe.c: Likewise.
78640         * lib/printf-args.c: Likewise.
78641         * lib/printf-parse.c: Likewise.
78642         * lib/progname.c: Likewise.
78643         * lib/progreloc.c: Likewise.
78644         * lib/readlink.c: Likewise.
78645         * lib/sh-quote.c: Likewise.
78646         * lib/stpcpy.c: Likewise.
78647         * lib/stpncpy.c: Likewise.
78648         * lib/strcasecmp.c: Likewise.
78649         * lib/strcasestr.c: Likewise.
78650         * lib/strcspn.c: Likewise.
78651         * lib/striconv.c: Likewise.
78652         * lib/strncasecmp.c: Likewise.
78653         * lib/strnlen1.c: Likewise.
78654         * lib/strstr.c: Likewise.
78655         * lib/strtok_r.c: Likewise.
78656         * lib/tls.c: Likewise.
78657         * lib/tmpdir.c: Likewise.
78658         * lib/unicodeio.c: Likewise.
78659         * lib/unsetenv.c: Likewise.
78660         * lib/vasnprintf.c: Likewise.
78661         * lib/vasprintf.c: Likewise.
78662         * lib/wait-process.c: Likewise.
78663         * lib/xallocsa.c: Likewise.
78664         * lib/xsetenv.c: Likewise.
78665         * lib/xstriconv.c: Likewise.
78666
78667 2006-09-13  Simon Josefsson  <jas@extundo.com>
78668
78669         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78670         that internally, suggested by Ralf Wildenhues
78671         <Ralf.Wildenhues@gmx.de>.
78672
78673 2006-09-13  Simon Josefsson  <jas@extundo.com>
78674
78675         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78676         @LIBOBJS@.
78677         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78678
78679 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78682         longer worry about uses that don't define HAVE_CONFIG_H.
78683         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78684         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78685         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78686         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78687         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78688         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78689         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78690         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78691         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78692         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78693         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78694         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78695         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78696         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78697         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78698         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78699         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78700         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78701         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78702         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78703         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78704         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78705         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78706         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78707         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78708         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78709         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78710         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78711         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78712         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78713         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78714         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78715         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78716         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78717         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78718         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78719         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78720         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78721         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78722         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78723         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78724         Likewise.
78725
78726 2006-09-13  Eric Blake  <ebb9@byu.net>
78727
78728         * lib/getopt.c: Fix typo in last commit.
78729
78730 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78731
78732         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78733         dgettext.
78734
78735 2006-09-12  Jim Meyering  <jim@meyering.net>
78736
78737         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78738         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78739         Reported by Nelson H. F. Beebe.
78740
78741 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78742
78743         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78744         program_invocation_name and program_invocation_short_name are
78745         initialized.
78746         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78747         and program_invocation_short_name to argp.h, so they are visible
78748         to user programs.
78749         * lib/argp.h: Likewise
78750
78751 2006-09-10  Bruno Haible  <bruno@clisp.org>
78752
78753         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78754         m4/inttypes_h.m4, m4/uintmax_t.m4.
78755
78756 2006-09-10  Bruno Haible  <bruno@clisp.org>
78757
78758         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78759         gl_AC_TYPE_UINTMAX_T.
78760
78761 2006-09-10  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78764
78765 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78766
78767         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78768         convention.  Text proposed by Bruno Haible.
78769         (struct argp_option): Document the use of N_() wrappers.
78770
78771         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78772         '\v', and translate the two parts separately, instead of feeding
78773         the whole string to gettext.  This allows to exclude
78774         '\v' from the strings visible to the translator by writing doc
78775         strings as N_("..") "\v" N_("..").
78776
78777 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * config/srclist.txt: Undo latest change; the bug was fixed.
78780
78781 2006-09-09  Bruno Haible  <bruno@clisp.org>
78782
78783         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78784         assignments if building a library without libtool.
78785         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78786         in func_emit_lib_Makefile_am.
78787         (func_import): When building a static library libfoo.a, arrange to
78788         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78789         (func_create_testdir): Likewise.
78790         * modules/gc (configure.ac, Makefile.am): If building statically,
78791         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78792         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78793         * modules/striconv (configure.ac, Makefile.am): Likewise.
78794         Based on a suggestion by Ralf Wildenhues.
78795
78796 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78799         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78800         Also:
78801
78802         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78803         Add year_2050_test to catch glibc bug 2821
78804         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78805
78806         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78807         Prefer #ifdef to #if.
78808
78809         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78810         Return from 'main' instead of calling 'exit'.
78811
78812 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78813
78814         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78815         returned the maximum time_t value rather than (time_t) -1.
78816         Problem originally reported by William Bardwell
78817         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78818
78819         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78820         Moved to here ...
78821         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78822         ... from here.
78823
78824 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78827         2821 is fixed.
78828
78829 2006-09-08  Jim Meyering  <jim@meyering.net>
78830
78831         Don't make generated files read-only.  That would bother too many
78832         people.  However, do retain the ability to work when targets are
78833         read-only: remove the destination and temporary files before writing
78834         them (when generated via sed or echo), or by using the -f option for
78835         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78836         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78837         * modules/byteswap, modules/configmake, modules/fcntl:
78838         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78839         * modules/localcharset, modules/netinet_in, modules/poll:
78840         * modules/stdbool, modules/stdint, modules/sys_select:
78841         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78842
78843 2006-09-08  Jim Meyering  <jim@meyering.net>
78844
78845         Avoid new build failure on FreeBSD 6.0.
78846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78847         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78848         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78849
78850 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78851
78852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78853
78854 2006-09-07  Jim Meyering  <jim@meyering.net>
78855
78856         Fix global typo in last change: use chmod u-w, not chmod u-x.
78857         Spotted by Paul Eggert and Bruce Korb.
78858         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78859         * modules/byteswap, modules/configmake, modules/fcntl:
78860         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78861         * modules/localcharset, modules/netinet_in, modules/poll:
78862         * modules/stdbool, modules/stdint, modules/sys_select:
78863         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78864
78865 2006-09-06  Jim Meyering  <jim@meyering.net>
78866
78867         Make generated files be read-only.
78868         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78869         Ensure that each generated file is now read-only.
78870         * modules/argz: Likewise.
78871         * modules/arpa_inet: Likewise.
78872         * modules/byteswap: Likewise.
78873         * modules/configmake: Likewise.
78874         * modules/fcntl: Likewise.
78875         * modules/fnmatch: Likewise.
78876         * modules/getopt: Likewise.
78877         * modules/glob: Likewise.
78878         * modules/inttypes: Likewise.
78879         * modules/netinet_in: Likewise.
78880         * modules/poll: Likewise.
78881         * modules/stdbool: Likewise.
78882         * modules/stdint: Likewise.
78883         * modules/sys_select: Likewise.
78884         * modules/sys_socket: Likewise.
78885         * modules/sys_stat: Likewise.
78886         * modules/sysexits: Likewise.
78887         * modules/localcharset: Same as above, but continue using temporary
78888         file named "t-$@" (why different?) rather than the "$@-t" used
78889         everywhere else.
78890
78891         * modules/sysexits (Makefile.am): Replace literal occurrences
78892         of "sysexit.h" more readable, and more consistent, "$@".
78893
78894 2006-09-06  Bruno Haible  <bruno@clisp.org>
78895
78896         * modules/striconv: New file.
78897         * modules/xstriconv: New file.
78898         * MODULES.html.sh (Internationalization functions): Add striconv,
78899         xstriconv.
78900
78901 2006-09-06  Bruno Haible  <bruno@clisp.org>
78902
78903         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78904         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78905         not using libtool correctly.
78906
78907 2006-09-06  Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/striconv.h: New file.
78910         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78911         iconvstring.c.
78912         * lib/xstriconv.h: New file.
78913         * lib/xstriconv.c: New file.
78914
78915 2006-09-06  Bruno Haible  <bruno@clisp.org>
78916
78917         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78918         lib_..._LDFLAGS.
78919
78920 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78921
78922         * lib/argz_.h: Sync from Libtool.
78923
78924         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78925                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78926
78927         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78928
78929 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78930
78931         * modules/trim: New file.
78932
78933 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78934
78935         * lib/trim.h: New file.
78936         * lib/trim.c: New file.
78937
78938 2006-09-05  Bruno Haible  <bruno@clisp.org>
78939
78940         * MODULES.html.sh (String handling): Add trim.
78941
78942 2006-09-04  Karl Berry  <karl@gnu.org>
78943
78944         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78945         until next release.
78946
78947 2006-09-03  Bruno Haible  <bruno@clisp.org>
78948
78949         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78950         correctly.
78951
78952 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78955         not gl_GETLOADAVG.  Omit unneeded semicolons.
78956         Problems reported by Ralf Wildenhues in
78957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78958         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78959         at the end, which is the usual gnulib style.
78960
78961         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78962         of doing all the work ourselves.
78963         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78964         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78965
78966 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78969         Problem reported by Ralf Wildenhues in
78970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78971
78972         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78973         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78974
78975 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78978         yesterday's patch by changing test -n to test -z.
78979
78980 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78983         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78984         the former is now obsolescent.
78985
78986         * modules/chdir-long (Depends-on): Add fcntl.
78987
78988 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78991         obsolescent, and programs should use gnulib instead.
78992         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78993         but with prefixes changed.
78994
78995 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78998         or stdbool.h, because they might not exist while configuring.
78999
79000         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79001         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79002         does that for us.
79003         (O_DIRECTORY): Remove.
79004
79005 2006-08-31  Eric Blake  <ebb9@byu.net>
79006
79007         * gnulib-tool: Don't let emacs change spaces to TAB.
79008
79009 2006-08-31  Bruno Haible  <bruno@clisp.org>
79010
79011         * gnulib-tool: When calling func_import more than once, do it in a
79012         subshell.
79013         Reported by Eric Blake <ebb9@byu.net>.
79014
79015 2006-08-31  Bruno Haible  <bruno@clisp.org>
79016
79017         * gnulib-tool (nl): Remove variable.
79018         (sed_transform_lib_file): Use more robust test for config-h module.
79019         (func_import): Fix typo in 2006-08-25 patch.
79020
79021 2006-08-31  Bruno Haible  <bruno@clisp.org>
79022
79023         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79024         specified, augment Makefile.am variables instead of assigning them.
79025
79026 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         Work around a bug in both the Linux and SunOS 64-bit kernels:
79029         nanosleep mishandles sleeps for longer than 2**31 seconds.
79030         Problem reported by Frank v Waveren in
79031         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79033         Check for nanosleep bug.
79034         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79035
79036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         Work around a bug in both the Linux and SunOS 64-bit kernels:
79039         nanosleep mishandles sleeps for longer than 2**31 seconds.
79040         Problem reported by Frank v Waveren in
79041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79042         * lib/nanosleep.c (BILLION): New constant.
79043         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79044         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79045         implementation.
79046
79047 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * modules/nanosleep (Depends-on): Add gettime.
79050
79051 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79052         and Simon Josefsson  <jas@extundo.com>
79053         and Oskar Liljeblad  <oskar@osk.mine.nu>
79054
79055         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79056         * gnulib-tool (func_import): New license type 'unmodifiable license
79057         text'.
79058         * modules/fdl: Use it.  Longer description.
79059         * module/gpl, module/lgpl: New files.
79060
79061 2006-08-30  Jim Meyering  <jim@meyering.net>
79062
79063         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79064         shadowing the parameter.
79065
79066 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79067
79068         Sync from Libtool:
79069
79070         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79071
79072         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79073         sharing with gnulib.  Report by Eric Blake.
79074
79075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * modules/isapipe: New file.
79078         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79079
79080 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * modules/configmake (Makefile.am): Add a comment, and omit
79083         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79084         by Bruno Haible.
79085
79086 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * m4/isapipe.m4: New file.
79089
79090 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * lib/isapipe.c, lib/isapipe.h: New files.
79093
79094 2006-08-29  Jim Meyering  <jim@meyering.net>
79095
79096         * modules/configmake (Makefile.am): Make configmake.h depend on
79097         Makefile.  Otherwise, a stale configmake.h could hang around.
79098
79099 2006-08-29  Eric Blake  <ebb9@byu.net>
79100
79101         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79102         resolution of upstream bug 3044.
79103
79104 2006-08-29  Bruno Haible  <bruno@clisp.org>
79105
79106         * modules/localcharset (Depends-on): Add configmake.
79107         (Makefile.am): Remove setting of LIBDIR through DEFS.
79108
79109 2006-08-29  Bruno Haible  <bruno@clisp.org>
79110
79111         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79112         defined.
79113
79114 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * modules/fcntl: New file.
79117         * modules/chdir-safer (Depends-on): Add fcntl.
79118         * modules/fts: Likewise.
79119         * modules/mkdir-p: Likewise.
79120
79121         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79122         This undoes the most recent change, since we're now addressing the
79123         problem in a different way.
79124
79125         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79126         into output, since the output might be called Makefile.am even
79127         if $makefile_name is something different.
79128         (func_import): Use $makefile_am rather than
79129         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79130         empty.
79131
79132         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79133
79134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79137         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79138         recent change to stdint.m4, since we're now addressing the problem in a
79139         different way.
79140
79141 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * m4/fcntl_h.m4: New file.
79144
79145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * lib/fcntl_.h: New file.
79148         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79149         the fcntl module.
79150         * lib/dirchownmod.c: Likewise.
79151         * lib/fts.c: Likewise.
79152
79153         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79154         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79155         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79156         just before including <inttypes.h>, to avoid circular inclusion.
79157
79158 2006-08-28  Jim Meyering  <jim@meyering.net>
79159
79160         * doc/visibility.texi: Actually read and correct the grammar of the
79161         sentence affected by yesterday's change.
79162
79163 2006-08-28  Eric Blake  <ebb9@byu.net>
79164
79165         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79166         needs wrapper.
79167
79168 2006-08-28  Eric Blake  <ebb9@byu.net>
79169
79170         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79171
79172 2006-08-28  Eric Blake  <ebb9@byu.net>
79173
79174         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79175
79176 2006-08-28  Bruno Haible  <bruno@clisp.org>
79177
79178         * modules/c-strstr: New file, from GNU gettext.
79179         * MODULES.html.sh (String handling): Add c-strstr.
79180
79181 2006-08-28  Bruno Haible  <bruno@clisp.org>
79182
79183         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79184         macros.
79185         Reported by Eric Blake.
79186
79187 2006-08-28  Bruno Haible  <bruno@clisp.org>
79188
79189         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79190         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79191         * lib/vasprintf.c: Include errno.h, limits.h.
79192         (EOVERFLOW): New fallback definition.
79193         (vasprintf): Test here whether the string length is > INT_MAX.
79194         * lib/vsnprintf.c: Include errno.h, limits.h.
79195         (EOVERFLOW): New fallback definition.
79196         (vsnprintf): Fix bug when generated string was too long for the buffer.
79197         Test here whether the string length is > INT_MAX.
79198
79199 2006-08-28  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/inttypes_.h (SCNX*): Remove definitions.
79202         Reported by Eric Blake.
79203
79204 2006-08-28  Bruno Haible  <bruno@clisp.org>
79205
79206         * lib/c-strstr.h: New file, from GNU gettext.
79207         * lib/c-strstr.c: New file, from GNU gettext.
79208
79209 2006-08-28  Bruno Haible  <bruno@clisp.org>
79210
79211         * gnulib-tool: Reorder some statements.
79212
79213 2006-08-28  Bruno Haible  <bruno@clisp.org>
79214
79215         * gnulib-tool: New option --makefile-name.
79216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79217         $makefile_name.
79218         (func_import): Write $makefile_name to the cache file, and read it from
79219         there unless explicitly specified. Use $makefile_name as file name
79220         instead of Makefile.am. Adjust the recommendations accordingly.
79221
79222 2006-08-28  Bruno Haible  <bruno@clisp.org>
79223
79224         * gnulib-tool (func_verify_module): Check against misapplying patch.
79225
79226 2006-08-28  Bruno Haible  <bruno@clisp.org>
79227
79228         * gnulib-tool (func_relativize, func_relconcat): New functions.
79229         Give an error if --local-dir is given with --update.
79230         Remove trailing slashes from $local_gnulib_dir.
79231         (func_import): Store the relativized $local_gnulib_dir in
79232         gnulib-cache.m4, and read it from there if not specified explicitly.
79233
79234 2006-08-28  Bruno Haible  <bruno@clisp.org>
79235
79236         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79237         is the current directory. Respect also $local_gnulib_dir.
79238
79239 2006-08-28  Bruno Haible  <bruno@clisp.org>
79240             Simon Josefsson  <jas@extundo.com>
79241
79242         BeOS portability.
79243         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79244
79245 2006-08-27  Jim Meyering  <jim@meyering.net>
79246
79247         * doc/visibility.texi: Remove duplicate word: "pointer".
79248
79249 2006-08-26  Bruno Haible  <bruno@clisp.org>
79250
79251         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79252         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79253         (Makefile.am): Create inttypes.h from inttypes_.h.
79254         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79255
79256         * modules/imaxabs: New file.
79257
79258         * modules/imaxdiv: New file.
79259
79260 2006-08-26  Bruno Haible  <bruno@clisp.org>
79261
79262         * m4/inttypes.m4: New file.
79263         * m4/_inttypes_h.m4: Remove file.
79264         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79265         PRI_MACROS_BROKEN.
79266         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79267
79268         * m4/imaxabs.m4: New file.
79269
79270         * m4/imaxdiv.m4: New file.
79271
79272 2006-08-26  Bruno Haible  <bruno@clisp.org>
79273
79274         * lib/inttypes_.h: New file.
79275         * lib/inttypes.h: Remove file.
79276         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79277
79278         * lib/imaxabs.c: New file.
79279
79280         * lib/imaxdiv.c: New file.
79281
79282 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79283
79284         New config-h module, so that "make" output needn't be cluttered
79285         by -DHAVE_CONFIG_H.
79286         * MODULES.html.sh (Support for building libraries and executables):
79287         Add config-h.
79288         * modules/config-h: New file.
79289         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79290         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79291         the config-h module is used.
79292
79293         New configmake module, so that "make" output needn't be cluttered
79294         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79295         * MODULES.html.sh (Support for building libraries and executables):
79296         Add configmake.
79297         * modules/configmake: New file.
79298
79299 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * m4/config-h.m4: New file.
79302
79303 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79304
79305         * config/srclist.txt: Add elisp-comp.
79306
79307 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * MODULES.html.sh (Support for building libraries and executables):
79310         Add elisp-comp.
79311         * build-aux/elisp-comp: New file.
79312         * modules/elisp-comp: New file.
79313
79314 2006-08-24  Bruno Haible  <bruno@clisp.org>
79315
79316         * gnulib-tool (func_create_testdir): Use non-default values of
79317         sourcebase and m4base.
79318
79319 2006-08-24  Bruno Haible  <bruno@clisp.org>
79320
79321         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79322         HTML structure.
79323
79324 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * modules/openat (Depends-on): Add lchown.
79327
79328 2006-08-23  Bruno Haible  <bruno@clisp.org>
79329
79330         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79331         of gl_LOCK_EARLY instead of gl_LOCK.
79332
79333 2006-08-23  Bruno Haible  <bruno@clisp.org>
79334
79335         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79336         on OSF/1 to no.
79337         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79338
79339 2006-08-23  Bruno Haible  <bruno@clisp.org>
79340
79341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79342         as unusable.
79343
79344         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79345         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79346         (gl_LOCK): New macro.
79347
79348 2006-08-22  Simon Josefsson  <jas@extundo.com>
79349
79350         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79351         to md5 module.
79352
79353 2006-08-22  Simon Josefsson  <jas@extundo.com>
79354
79355         * MODULES.html.sh: Add "Support for maintaining and release
79356         projects".
79357
79358         * build-aux/gnupload: New file, from coreutils.
79359
79360 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         Avoid the need for AC_LIBSOURCES in m4 macros.
79363         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79364         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79365         * modules/check-version (EXTRA_DIST): Add check-version.h.
79366         * modules/crc (EXTRA_DIST): Add crc.h.
79367         * modules/des (EXTRA_DIST): Add des.h.
79368         * modules/gc (EXTRA_DIST): Add gc.h.
79369         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79370         * modules/getline (EXTRA_DIST): Add getline.h.
79371         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79372         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79373         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79374         * modules/md2 (EXTRA_DIST): Add md2.h.
79375         * modules/md4 (EXTRA_DIST): Add md4.h.
79376         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79377         * modules/read-file (EXTRA_DIST): Add read-file.h.
79378         * modules/readline (EXTRA_DIST): Add readline.h.
79379         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79380         rijndael-api-fst.h.
79381
79382 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79383
79384         * m4/rijndael.m4 (gl_ARCFOUR):
79385         * m4/arctwo.m4 (gl_ARCTWO):
79386         * m4/check-version.m4 (gl_CHECK_VERSION):
79387         * m4/crc.m4 (gl_CRC):
79388         * m4/des.m4 (gl_DES):
79389         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79390         * m4/gc.m4 (gl_GC):
79391         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79392         * m4/getline.m4 (gl_FUNC_GETLINE):
79393         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79394         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79395         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79396         * m4/md2.m4 (gl_MD2):
79397         * m4/md4.m4 (gl_MD4):
79398         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79399         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79400         * m4/readline.m4 (gl_FUNC_READLINE):
79401         * m4/rijndael.m4 (gl_RIJNDAEL):
79402         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79403         to get the necessary .h files and whatnot.
79404
79405 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79408         gnulib rather than the other way around.
79409         * config/srclistvars.sh (COREUTILS): Remove.
79410
79411 2006-08-22  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79414
79415         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79416
79417 2006-08-22  Eric Blake  <ebb9@byu.net>
79418
79419         * modules/regexprops-generic: New file.
79420         * MODULES.html.sh (Support for building documentation): List it.
79421
79422 2006-08-22  Eric Blake  <ebb9@byu.net>
79423
79424         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79425         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79426         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79427         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79428
79429 2006-08-22  Bruno Haible  <bruno@clisp.org>
79430
79431         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79432         and lib_LTLIBRARIES like the other lib_* variables.
79433
79434 2006-08-22  Bruno Haible  <bruno@clisp.org>
79435
79436         * build-aux/x-to-1.in: New file, from GNU gettext.
79437
79438 2006-08-22  Bruno Haible  <bruno@clisp.org>
79439
79440         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79441         <utmpx.h> exists.
79442
79443 2006-08-22  Bruno Haible  <bruno@clisp.org>
79444
79445         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79446         <utmpx.h> exists.
79447
79448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         BeOS portability.
79451         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79452         exist.
79453         Problem reported by Bruno Haible.
79454
79455 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79456
79457         Avoid the need for AC_LIBSOURCES in m4 macros.
79458         * modules/acl (EXTRA_DIST): Add acl.h.
79459         * modules/argmatch (Files): Add m4/argmatch.m4.
79460         (configure.ac): Add gl_ARGMATCH.
79461         (EXTRA_DIST): Renamed from lib_SOURCES, for
79462         consistency with the other modules.  Remove argmatch.c.
79463         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79464         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79465         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79466         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79467         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79468         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79469         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79470         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79471         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79472         * modules/closeout (EXTRA_DIST): Add closeout.h.
79473         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79474         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79475         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79476         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79477         dirname.h; remove basename.c and stripslash.c.
79478         * modules/exclude (EXTRA_DIST): Add exclude.h.
79479         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79480         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79481         * modules/file-type (EXTRA_DIST): Add file-type.h.
79482         * modules/filemode (EXTRA_DIST): Add filemode.h.
79483         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79484         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79485         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79486         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79487         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79488         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79489         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79490         * modules/getdate (EXTRA_DIST): Add getdate.c.
79491         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79492         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79493         * modules/getpass (EXTRA_DIST): Add getpass.h.
79494         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79495         * modules/group-member (EXTRA_DIST): Add group-member.h.
79496         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79497         * modules/hash (EXTRA_DIST): Add hash.h.
79498         * modules/human (EXTRA_DIST): Add human.h.
79499         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79500         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79501         * modules/lchown (EXTRA_DIST): Add lchown.h.
79502         * modules/long-options (EXTRA_DIST): Add long-options.h.
79503         * modules/lstat (EXTRA_DIST): Add lstat.h.
79504         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79505         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79506         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79507         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79508         * modules/memxor (EXTRA_DIST): Add memxor.h.
79509         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79510         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79511         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79512         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79513         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79514         * modules/physmem (EXTRA_DIST): Add physmem.h.
79515         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79516         * modules/posixver (EXTRA_DIST): Add posixver.h.
79517         * modules/quote (EXTRA_DIST): Add quote.h.
79518         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79519         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79520         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79521         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79522         regex_internal.h regexec.c.
79523         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79524         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79525         * modules/same (EXTRA_DIST): Add same.h.
79526         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79527         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79528         * modules/savedir (EXTRA_DIST): Add savedir.h.
79529         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79530         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79531         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79532         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79533         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79534         * modules/strdup (EXTRA_DIST): Add strdup.h.
79535         * modules/strftime (EXTRA_DIST): Add strftime.h.
79536         * modules/strndup (EXTRA_DIST): Add strndup.h.
79537         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79538         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79539         * modules/time_r (EXTRA_DIST): Add time_r.h.
79540         * modules/timespec (EXTRA_DIST): Add timespec.h.
79541         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79542         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79543         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79544         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79545         * modules/userspec (EXTRA_DIST): Add userspec.h.
79546         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79547         * modules/utimens (EXTRA_DIST): Add utimens.h.
79548         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79549         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79550         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79551         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79552         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79553         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79554         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79555         * modules/yesno (EXTRA_DIST): Add yesno.h.
79556
79557 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79560
79561         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79562         * m4/dev-ino.m4, same-inode.m4: Remove.
79563
79564         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79565         * m4/acl.m4 (AC_FUNC_ACL):
79566         * m4/backupfile.m4 (gl_BACKUPFILE):
79567         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79568         * m4/canon-host.m4 (gl_CANON_HOST):
79569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79571         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79572         * m4/cloexec.m4 (gl_CLOEXEC):
79573         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79574         * m4/closeout.m4 (gl_CLOSEOUT):
79575         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79576         * m4/dirname.m4 (gl_DIRNAME):
79577         * m4/exclude.m4 (gl_EXCLUDE):
79578         * m4/exitfail.m4 (gl_EXITFAIL):
79579         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79580         * m4/file-type.m4 (gl_FILE_TYPE):
79581         * m4/filemode.m4 (gl_FILEMODE):
79582         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79583         * m4/fpending.m4 (gl_FUNC_FPENDING):
79584         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79585         * m4/fts.m4 (gl_FUNC_FTS):
79586         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79587         * m4/getdate.m4 (gl_GETDATE):
79588         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79589         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79590         * m4/getpass.m4 (gl_FUNC_GETPASS):
79591         * m4/gettime.m4 (gl_GETTIME):
79592         * m4/getugroups.m4 (gl_GETUGROUPS):
79593         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79594         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79595         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79596         * m4/hash.m4 (gl_HASH):
79597         * m4/idcache.m4 (gl_IDCACHE):
79598         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79599         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79600         * m4/long-options.m4 (gl_LONG_OPTIONS):
79601         * m4/lstat.m4 (gl_FUNC_LSTAT):
79602         * m4/md5.m4 (gl_MD5):
79603         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79604         * m4/memcoll.m4 (gl_MEMCOLL):
79605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79607         * m4/memxor.m4 (gl_MEMXOR):
79608         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79610         * m4/modechange.m4 (gl_MODECHANGE):
79611         * m4/mountlist.m4 (gl_MOUNTLIST):
79612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79613         * m4/openat.m4 (gl_FUNC_OPENAT):
79614         * m4/pathmax.m4 (gl_PATHMAX):
79615         * m4/physmem.m4 (gl_PHYSMEM):
79616         * m4/posixtm.m4 (gl_POSIXTM):
79617         * m4/posixver.m4 (gl_POSIXVER):
79618         * m4/quote.m4 (gl_QUOTE):
79619         * m4/quotearg.m4 (gl_QUOTEARG):
79620         * m4/readtokens.m4 (gl_READTOKENS):
79621         * m4/readutmp.m4 (gl_READUTMP):
79622         * m4/regex.m4 (gl_REGEX):
79623         * m4/safe-read.m4 (gl_SAFE_READ):
79624         * m4/safe-write.m4 (gl_SAFE_WRITE):
79625         * m4/same.m4 (gl_SAME):
79626         * m4/save-cwd.m4 (gl_SAVE_CWD):
79627         * m4/savedir.m4 (gl_SAVEDIR):
79628         * m4/settime.m4 (gl_SETTIME):
79629         * m4/sha1.m4 (gl_SHA1):
79630         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79631         * m4/stat-macros.m4 (gl_STAT_MACROS):
79632         * m4/stat-time.m4 (gl_STAT_TIME):
79633         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79634         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79635         * m4/strdup.m4 (gl_FUNC_STRDUP):
79636         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79637         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79638         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79639         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79640         * m4/time_r.m4 (gl_TIME_R):
79641         * m4/timespec.m4 (gl_TIMESPEC):
79642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79643         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79644         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79645         * m4/userspec.m4 (gl_USERSPEC):
79646         * m4/utimecmp.m4 (gl_UTIMECMP):
79647         * m4/utimens.m4 (gl_UTIMENS):
79648         * m4/xalloc.m4 (gl_XALLOC):
79649         * m4/xgetcwd.m4 (gl_XGETCWD):
79650         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79651         * m4/xreadlink.m4 (gl_XREADLINK):
79652         * m4/xstrtod.m4 (gl_XSTRTOD):
79653         * m4/yesno.m4 (gl_YESNO):
79654         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79655         to get the necessary .h files and whatnot.
79656
79657 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79658             Bruno Haible  <bruno@clisp.org>
79659
79660         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79661         /bin/sh understanding of '!' conditional negation.
79662
79663 2006-08-21  Jim Meyering  <jim@meyering.net>
79664
79665         * modules/openat (Depends-on): Really alphabetize.
79666
79667         * modules/acl (Depends-on): Add error and quote.
79668
79669         * check-module (find_included_lib_files): Add at-func.c to the
79670         ok-to-include-more-than-once white list.
79671
79672         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79673
79674 2006-08-21  Bruno Haible  <bruno@clisp.org>
79675
79676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79677         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79678         Reported by Martin Lambers <marlam@marlam.de>.
79679
79680 2006-08-21  Bruno Haible  <bruno@clisp.org>
79681
79682         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79683         specify an installation location, don't emit a noinst_LIBRARIES or
79684         noinst_LTLIBRARIES assignment.
79685
79686 2006-08-21  Bruno Haible  <bruno@clisp.org>
79687
79688         BeOS portability.
79689         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79690         BeOS has mbrtowc() but no <wctype.h>.
79691
79692 2006-08-21  Bruno Haible  <bruno@clisp.org>
79693
79694         BeOS portability.
79695         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79696         exist.
79697
79698 2006-08-21  Bruno Haible  <bruno@clisp.org>
79699
79700         BeOS portability.
79701         * lib/mbchar.h: Include <wctype.h> only if it exists.
79702
79703 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         Remove files that are no longer needed by their respective modules.
79706         * m4/obstack.m4: Remove.
79707         * m4/strerror_r.m4: Remove.
79708         * m4/uint32_t.m4: Remove.
79709         * m4/uintptr_t.m4: Remove.
79710         * m4/ullong_max.m4: Remove.
79711         * m4/xstrtoimax.m4: Remove.
79712         * m4/xstrtoumax.m4: Remove.
79713
79714         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79715         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79716         dependencies now capture this.
79717
79718         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79719         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79720         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79721         * m4/human.m4 (gl_HUMAN): Likewise.
79722         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79723         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79724
79725         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79726
79727         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79728         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79729         stdint.
79730         * m4/human.m4 (gl_HUMAN): Likewise.
79731         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79732         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79733         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79734         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79735         * m4/xstrtol (gl_XSTRTOL): Likewise.
79736
79737         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79738         AC_TYPE_LONG_LONG_INT.
79739         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79740         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79741         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79742         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79743
79744         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79745         on stdbool.
79746
79747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79748         (gl_PREREQ_XSTRTOUL): Remove.
79749
79750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79751
79752         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79753         mode.
79754
79755 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         Add and change modules to make it easier for coreutils to use
79758         gnulib-tool.
79759         * modules/backupfile (Files): Remove m4/d-ino.m4.
79760         (Depends-on): Add d-ino.
79761         * modules/cycle-check (Depends-on): Add stdint.
79762         (lib_SOURCES): Add cycle-check.h.
79763         * modules/d-ino: New module.
79764         * modules/d-type: New module.
79765         * modules/error (Files): Remove m4/strerror_r.m4.
79766         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79767         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79768         m4/inttypes_h.m4, m4/uintmax_t.m4.
79769         (Depends-on): Add stdint.
79770         (lib_SOURCES): Add fsusage.h.
79771         * modules/getcwd (Files): Remove d-ino.m4.
79772         (Depends-on): Add d-ino.
79773         * modules/getndelim2 (Depends-on): Add stdint.
79774         * modules/glob (Files): Remove m4/d-type.m4.
79775         (Depends-on): Add d-type.
79776         * modules/host-os: New module.
79777         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79778         m4/inttypes_h.m4, m4/uintmax_t.m4.
79779         * Depends-on: Add stdint.
79780         (lib_SOURCES): Add human.h.
79781         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79782         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79783         m4/uintmax_t.m4, m4/ulonglong.m4.
79784         (Depends-on): Add stdint.
79785         (EXTRA_DIST): Add inttostr.h.
79786         * modules/lchmod: New module.
79787         * modules/link-follow: New module.
79788         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79789         (Depends-on): Add lchmod.
79790         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79791         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79792         (Depends-on): Add stdint.
79793         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79794         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79795         (Depends-on): Add stdint.
79796         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79797         * modules/perl: New module.
79798         * modules/regex (Depends-on): Add stdint.
79799         * modules/rmdir-errno: New module.
79800         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79801         m4/intmax_t.m4.
79802         (Depends-on): Add stdint.
79803         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79804         m4/uintmax_t.m4.
79805         (Depends-on): Add stdint.
79806         * modules/unlink-busy: New module.
79807         * modules/utimecmp (Depends-on): Add stdint.
79808         * modules/uptime: New module.
79809         * modules/winsz-ioctl: New module.
79810         * modules/winsz-termios: New module.
79811         * modules/xnanosleep (Depends-on): Add nanosleep.
79812         * modules/ullong_max: Remove.
79813         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79814         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79815         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79816         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79817         (Depends-on): Add inttypes.
79818         (lib_SOURCES): Add xstrtol.h.
79819         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79820         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79821         * MODULES.html.sh: Move 'assert' into the assert section.
79822         Move 'dummy' into the linking section.
79823         Remove ullong_max.
79824         Add section for compatibility checks for POSIX:2001 functions,
79825         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79826         winsz-ioctl, and winsz-termios into it.
79827         Add lchmod.
79828         Add top-level Misc section and put host-os, perl, and uptime
79829         into it.
79830
79831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79834         now assume the stdint module.  Do not include inttypes.h.
79835         * lib/fsusage.h: Likewise.
79836         * lib/getndelim2.c: Likewise.
79837         * lib/human.h: Likewise.
79838         * lib/inttostr.h: Likewise.
79839         * lib/obstack.c: Likewise.
79840         * lib/regex_internal.h: Likewise.
79841         * lib/tempname.c: Likewise.
79842         * lib/utimecmp.c: Likewise.
79843         * lib/xstrtol.h: Likewise.
79844
79845         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79846
79847         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79848         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79849         * lib/xtime.h: Likewise.
79850
79851 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * modules/openat (Files): Add lib/fchmodat.c.
79854         Fixes problem reported by Jay Youngman.
79855
79856 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79859         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79860
79861 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79862             Bruno Haible  <bruno@clisp.org>
79863
79864         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79865         and is a script that invokes bison. Tighten the code. Add comments.
79866
79867 2006-08-18  Jim Meyering  <jim@meyering.net>
79868
79869         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79870         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79871         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79872         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79873
79874 2006-08-18  Bruno Haible  <bruno@clisp.org>
79875
79876         * modules/bison-i18n: New file.
79877         * MODULES.html.sh (Internationalization functions): Add it.
79878
79879 2006-08-18  Bruno Haible  <bruno@clisp.org>
79880
79881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79882         sys/statvfs.h. When getmntinfo was found, check its declaration and
79883         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79884
79885 2006-08-18  Bruno Haible  <bruno@clisp.org>
79886
79887         * m4/bison-i18n.m4: New file, from bison.
79888
79889 2006-08-18  Bruno Haible  <bruno@clisp.org>
79890
79891         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79892         (ME_DUMMY): Treat "kernfs" as a dummy.
79893         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79894
79895 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         Update from coreutils.
79898
79899         2006-08-15  Jim Meyering  <jim@meyering.net>
79900
79901         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79902
79903         2006-01-17  Jim Meyering  <jim@meyering.net>
79904
79905         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79906
79907         2006-01-11  Jim Meyering  <jim@meyering.net>
79908
79909         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79910         Check for the lchmod function.
79911
79912 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79913
79914         Update from coreutils.
79915
79916         * lib/__fpending.h: Add copyright notice.
79917         * lib/fprintftime.h: Likewise.
79918         * lib/savedir.c: Use (C) in copyright notice.
79919         * lib/savedir.h: Likewise.
79920
79921         2006-08-15  Jim Meyering  <jim@meyering.net>
79922
79923         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79924         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79925         in support of the EXPECTED_ERRNO macro.
79926         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79927         definitions.  Instead, define the appropriate symbols and include
79928         "at-func.c".
79929         * lib/mkdirat.c (mkdirat): Likewise.
79930         * lib/fchmodat.c (fchmodat): Likewise.
79931         (ENOSYS): Remove definition.
79932         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79933         it.  Don't include "unistd--.h" -- it wasn't ever used.
79934
79935         2006-01-17  Jim Meyering  <jim@meyering.net>
79936
79937         Rewrite fts.c not to change the current working directory,
79938         by using openat, fstatat, fdopendir, etc..
79939
79940         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79941         (HAVE_OPENAT_SUPPORT): Define.
79942         [_LIBC] (fchdir): Don't undef or define; no longer used.
79943         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79944         Now, this `function' always succeeds, and consumes its file descriptor
79945         parameter -- so callers must not close such FDs.  Update callers.
79946         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79947         (diropen): Add parameter, SP.  Adjust all callers.
79948         Implement using diropen_fd, rather than open.
79949         (fts_open): Initialize new member, fts_cwd_fd.
79950         Remove fts_rft-setting code.
79951         (fts_close): Close fts_cwd_fd, if necessary.
79952         (__opendir2): Define in terms of opendir or opendirat,
79953         depending on whether the FST_NOCHDIR flag is set.
79954         (fts_build): Since fts_safe_changedir consumes its FD, and since
79955         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79956         and close the dup'd file descriptor upon failure.
79957         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79958         (fts_safe_changedir): Tweak semantics to reflect that this function
79959         now calls cwd_advance_fd and hence consumes its FD argument.
79960         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79961         [struct FTS] (fts_rft): Remove now-unused member.
79962         [struct FTS] (fts_cycle.state): Improve comment.
79963
79964         * lib/openat.c (openat_needs_fchdir): New function.
79965         * lib/openat.h (openat_needs_fchdir): Declare it.
79966
79967 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79970         Problem and fix reported by Pádraig Brady in
79971         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79972
79973 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79976
79977 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * lib/memcoll.c (memcoll): Optimize for the common case where the
79980         arguments are bytewise equal.
79981
79982 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * doc/regexprops-generic.texi: Add a copyright notice.
79985
79986 2006-08-15  Bruno Haible  <bruno@clisp.org>
79987
79988         * modules/tmpdir (License): Change to LGPL.
79989
79990 2006-08-15  Bruno Haible  <bruno@clisp.org>
79991
79992         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79993         module.
79994
79995 2006-08-14  Simon Josefsson  <jas@extundo.com>
79996
79997         * config/srclist.txt: Add gnupload.
79998
79999 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         Change copyright notice from LGPL 2 to GPL 2, since that's the
80002         standard form used in the gnulib repository.
80003         * tests/test-lock.c: Likewise.
80004         * tests/test-stdint.c: Likewise.
80005         * tests/test-tls.c: Likewise.
80006
80007         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80008         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80009         Add copyright notice.
80010
80011         * check-module: Add copyright notice.  Output a copyright
80012         notice if "--version" is specified.
80013         * modules/COPYING: New file.
80014         * tests/test-getaddrinfo.c: Add copyright notice.
80015         * tests/test-verify.c: Likewise.
80016
80017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         Change copyright notice from LGPL 2 to GPL 2, since that's the
80020         standard form used in the gnulib repository.
80021         * lib/lock.c: LGPL -> GPL.
80022         * lib/lock.h: Likewise.
80023         * lib/strnlen1.c: Likewise.
80024         * lib/strnlen1.h: Likewise.
80025         * lib/tls.c: Likewise.
80026         * lib/tls.h: Likewise.
80027         * lib/tmpdir.c: Likewise.
80028
80029         * lib/TODO: Remove; this belongs only in coreutils.
80030
80031 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         Add copyright notices to long-enough files that lack them, since
80034         otherwise the files aren't clearly free.  Use the same notice that
80035         getdate.texi already uses.
80036         * doc/alloca-opt.texi: Add copyright notice.
80037         * doc/alloca.texi: Likewise.
80038         * doc/ctime.texi: Likewise.
80039         * doc/functions.texi: Likewise.
80040         * doc/gcd.texi: Likewise.
80041         * doc/gnulib-tool.texi: Likewise.
80042         * doc/inet_ntoa.texi: Likewise.
80043         * doc/visibility.texi: Likewise.
80044
80045         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80046         * doc/quote.texi: Add copyright notice.
80047
80048         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80049         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80050         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80051         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80052         is now obsolete, and give a pointer to the Sun list.
80053         Add copyright notice.
80054
80055 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * config/srclistvars.sh: Add copyright notice.
80058
80059 2006-08-14  Eric Blake  <ebb9@byu.net>
80060
80061         Import the following change from libc:
80062
80063         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80064
80065         Upstream bug 2997.
80066         * lib/misc/error.c: Add space between program name and message if file
80067         name is missing.
80068
80069 2006-08-12  Karl Berry  <karl@gnu.org>
80070
80071         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80072         remove, these originate in gnulib now.
80073
80074 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80075
80076         * doc/Makefile (standards.info standards.html standards.dvi):
80077         Also depend on make-stds.texi.
80078
80079 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80082         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80083
80084         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80085         in wchar_t.  Problem reported by Eric Blake.
80086
80087         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80088         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80089         Also, help the compiler to keep LEN in a register.
80090
80091 2006-08-11  Eric Blake  <ebb9@byu.net>
80092
80093         * users.txt: Sort.  Add tar.
80094
80095 2006-08-11  Bruno Haible  <bruno@clisp.org>
80096
80097         * users.txt: New file.
80098
80099 2006-08-11  Bruno Haible  <bruno@clisp.org>
80100
80101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80102         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80103
80104 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80105
80106         * modules/snprintf (Depends-on): Remove minmax.
80107         (Maintainer): Add self and Bruno.
80108
80109 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80112         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80113         (EOVERFLOW): Define if the system does not.
80114         Do not include "minmax.h"; it wasn't used.
80115         (snprintf): Don't assume size_t promotes to an unsigned type.
80116         Fix bug when generated string was too long for the buffer: the
80117         buffer's contents are supposed to be the initial prefix of the
80118         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80119         exceeds INT_MAX; do the check ourselves.
80120
80121         Import the following changes from libc:
80122
80123         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80124
80125         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80126         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80127         set wc to the byte which couldn't be converted.
80128         (re_string_reconstruct): Don't clear valid_raw_len before calling
80129         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80130         tip_context using re_string_context_at.
80131
80132         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80133
80134         * lib/posix/regex.h: g++ still cannot handled [restrict].
80135
80136         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80137
80138         * lib/posix/regex.h: Remove special handling for VMS.
80139
80140 2006-08-10  Jim Meyering  <jim@meyering.net>
80141
80142         * modules/same-inode: New module.
80143         * modules/dev-ino: New module.
80144         * modules/cycle-check: Depend on these modules, rather than simply
80145         including their .h files.
80146         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80147         required via m4/cycle-check.m4.
80148         * modules/same: Depend on new same-inode module, rather than
80149         including same-inode.h.
80150         * modules/chdir-safer: New file.
80151
80152         * modules/chown (Depends-on): Add stat-macros.
80153
80154 2006-08-10  Jim Meyering  <jim@meyering.net>
80155
80156         * m4/cycle-check.m4: New file.
80157         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80158         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80159
80160 2006-08-10  Eric Blake  <ebb9@byu.net>
80161
80162         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80163         in from original proposal.
80164
80165 2006-08-10  Eric Blake  <ebb9@byu.net>
80166         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80167
80168         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80169         namespace.
80170
80171 2006-08-10  Bruno Haible  <bruno@clisp.org>
80172
80173         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80174         as well.
80175
80176 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         Sync from coreutils.
80179
80180         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80181
80182         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80183         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80184
80185 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * modules/restrict: Remove; no longer needed now that we assume
80188         Autoconf 2.59 or later.
80189         * MODULES.html.sh: Remove 'restrict'.
80190         * modules/argp (Depends-on): Remove 'restrict'.
80191         * modules/base64 (Depends-on): Likewise.
80192         * modules/gc (Depends-on): Likewise.
80193         * modules/getaddrinfo (Depends-on): Likewise.
80194         * modules/glob (Depends-on): Likewise.
80195         * modules/inet_ntop (Depends-on): Likewise.
80196         * modules/inet_pton (Depends-on): Likewise.
80197         * modules/memxor (Depends-on): Likewise.
80198         * modules/regex (Depends-on): Likewise.
80199         * modules/strtok_r (Depends-on): Likewise.
80200         * modules/time_r (Depends-on): Likewise.
80201
80202 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80205         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80206         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80207         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80208         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80209         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80210         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80211         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80212
80213         Merge from coreutils.
80214         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80215         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80217         * m4/time_r.m4 (gl_TIME_R): Likewise.
80218
80219 2006-08-09  Karl Berry  <karl@gnu.org>
80220
80221         * config/srclist.txt: no more gettext-tools, per Bruno.
80222
80223 2006-08-08  Eric Blake  <ebb9@byu.net>
80224
80225         * modules/verror: New module.
80226         * MODULES.html.sh: Document it.
80227
80228 2006-08-08  Eric Blake  <ebb9@byu.net>
80229
80230         * lib/verror.h, lib/verror.c: New files.
80231
80232 2006-08-08  Eric Blake  <ebb9@byu.net>
80233
80234         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80235         verror_at_line output complies with GNU Coding Standards even when
80236         file is NULL.
80237
80238 2006-08-07  Bruno Haible  <bruno@clisp.org>
80239
80240         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80241         versions of AIX.
80242         Reported by Ralf Wildenhues.
80243
80244 2006-08-07  Bruno Haible  <bruno@clisp.org>
80245
80246         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80247         in an AC_DEFUN. Needed so that the autoconf snippets can use
80248         AC_REQUIRE.
80249
80250 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80251
80252         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80253         Initialize pkgdata_DATA.
80254         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80255         overriding it.
80256
80257 2006-08-06  Eric Blake  <ebb9@byu.net>
80258
80259         * lib/error.h: Fold in some upstream changes from glibc.
80260         * lib/error.c: Likewise.
80261
80262 2006-08-04  Bruno Haible  <bruno@clisp.org>
80263
80264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80265         Make the mostlyclean-local rule depend on mostlyclean-generic.
80266         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80267
80268 2006-07-31  Bruno Haible  <bruno@clisp.org>
80269
80270         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80271         <stdlib.h>, <string.h>.
80272
80273 2006-07-30  Bruno Haible  <bruno@clisp.org>
80274
80275         * modules/readlink (License): Change to LGPL.
80276
80277 2006-07-30  Bruno Haible  <bruno@clisp.org>
80278
80279         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80280         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80281         set PKGDATADIR to point to it.
80282
80283 2006-07-30  Bruno Haible  <bruno@clisp.org>
80284
80285         * modules/csharpexec (configure.ac): Comment out macro invocation.
80286         * modules/javaexec (configure.ac): Likewise.
80287         * modules/javacomp-script (configure.ac): Likewise.
80288
80289         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80290
80291 2006-07-30  Bruno Haible  <bruno@clisp.org>
80292
80293         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80294         linked-list.
80295
80296 2006-07-30  Bruno Haible  <bruno@clisp.org>
80297
80298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80299
80300 2006-07-30  Bruno Haible  <bruno@clisp.org>
80301
80302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80303         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80304         get removed.
80305
80306 2006-07-29  Bruno Haible  <bruno@clisp.org>
80307
80308         Make it possible for gnulib-tool to work with locally modified or
80309         augmented gnulib repositories.
80310         * gnulib-tool (func_usage): Document --local-dir option.
80311         (local_gnulib_dir): New variable.
80312         Handle --local-dir option.
80313         (func_lookup_file): New function.
80314         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80315         (func_get_description, func_get_filelist, func_get_description,
80316         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80317         func_get_automake_snippet, func_get_include_directive,
80318         func_get_license, func_get_maintainer): Use func_lookup_file.
80319         (func_import, func_create_testdir): Use func_lookup_file.
80320
80321 2006-07-29  Bruno Haible  <bruno@clisp.org>
80322
80323         * modules/setenv (Depends-on): Add unistd.
80324
80325 2006-07-29  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80328
80329 2006-07-29  Bruno Haible  <bruno@clisp.org>
80330
80331         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80332
80333 2006-07-29  Bruno Haible  <bruno@clisp.org>
80334
80335         * gnulib-tool (import, update): If there is no Makefile.am, look at
80336         aclocal.m4, instead of bailing out.
80337
80338 2006-07-29  Bruno Haible  <bruno@clisp.org>
80339
80340         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80341         Categorize the options by when they are useful.
80342
80343 2006-07-29  Bruno Haible  <bruno@clisp.org>
80344
80345         * gnulib-tool (func_usage): Document option --no-libtool.
80346         Handle option --no-libtool.
80347         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80348         for changed semantics of $libtool variable.
80349         (func_import): Likewise. If libtool is not used, show this through
80350         an option --no-libtool.
80351         (func_create_testdir): Update.
80352
80353 2006-07-29  Bruno Haible  <bruno@clisp.org>
80354
80355         * gnulib-tool (func_import): Extend error message about missing
80356         --doc-base.
80357
80358 2006-07-29  Bruno Haible  <bruno@clisp.org>
80359
80360         * gnulib-tool (func_import): Don't create the $docbase directory if
80361         there is no file to store there.
80362
80363 2006-07-29  Bruno Haible  <bruno@clisp.org>
80364
80365         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80366         relevant, look for configure.ac there, not in the current directory.
80367         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80368
80369 2006-07-29  Bruno Haible  <bruno@clisp.org>
80370
80371         * gnulib-tool (SORT): New variable.
80372         (func_usage): Undocument --assume-autoconf option.
80373         Remove --assume-autoconf option handling.
80374         (autoconf_minversion): Determine from the contents of configure.ac.
80375         (func_import): Remove autoconf_minversion handling.
80376         Suggested by Eric Blake.
80377
80378 2006-07-29  Bruno Haible  <bruno@clisp.org>
80379
80380         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80381
80382 2006-07-29  Bruno Haible  <bruno@clisp.org>
80383
80384         * config/srclist.txt (*setenv.[ch]): Remove rules.
80385
80386 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80387
80388         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80389
80390 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80391
80392         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80393         arpa/inet.h.
80394
80395 2006-07-28  Simon Josefsson  <jas@extundo.com>
80396
80397         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80398         * modules/inet_pton (Depends-on): Likewise.
80399
80400 2006-07-28  Simon Josefsson  <jas@extundo.com>
80401
80402         * m4/netinet_in_h.m4: New file.
80403
80404 2006-07-28  Simon Josefsson  <jas@extundo.com>
80405
80406         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80407         #include's.
80408
80409 2006-07-28  Simon Josefsson  <jas@extundo.com>
80410
80411         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80412         #include's.
80413
80414 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80415
80416         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80417         setgid on directories only if they set these bits.
80418         * lib/modechange.h: Remove obsolete comment about masks.
80419
80420 2006-07-28  Eric Blake  <ebb9@byu.net>
80421
80422         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80423         macro expansion.
80424
80425 2006-07-28  Bruno Haible  <bruno@clisp.org>
80426
80427         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80428
80429 2006-07-28  Bruno Haible  <bruno@clisp.org>
80430
80431         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80432
80433 2006-07-28  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80436         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80437         Define fallbacks.
80438         Avoids link error on FreeBSD 4.x.
80439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80440
80441         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80442         encoding.
80443         * lib/mbswidth.c (iswcntrl): Likewise.
80444
80445 2006-07-27  Bruno Haible  <bruno@clisp.org>
80446
80447         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80448         test.
80449
80450 2006-07-27  Bruno Haible  <bruno@clisp.org>
80451
80452         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80453         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80454         defined.
80455
80456 2006-07-26  Eric Blake  <ebb9@byu.net>
80457
80458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80459
80460 2006-07-26  Eric Blake  <ebb9@byu.net>
80461
80462         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80463         like mingw that lack mkstemp.
80464         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80465         avoid compilation warning on mingw.
80466
80467 2006-07-26  Bruno Haible  <bruno@clisp.org>
80468
80469         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80470         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80471         INT_FAST*_MIN, INTPTR_MIN.
80472
80473 2006-07-25  Bruno Haible  <bruno@clisp.org>
80474
80475         * modules/version-etc (Depends-on): Add stdarg.
80476
80477 2006-07-25  Bruno Haible  <bruno@clisp.org>
80478
80479         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80480         complex commands.
80481
80482 2006-07-25  Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80485         defined in <stdarg.h> or config.h.
80486
80487 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80488
80489         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80490         (gl_STDIO_SAFER): Remove.
80491
80492 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80493
80494         * MODULES.html.sh (File stream based Input/Output):
80495         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80496         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80497         * modules/fopen-safer, modules/tmpfile-safer: New files.
80498         * modules/stdio-safer: Remove.
80499
80500 2006-07-24  Bruno Haible  <bruno@clisp.org>
80501
80502         * modules/tmpdir: New file.
80503         * MODULES.html.sh (File system functions): Add it.
80504
80505 2006-07-24  Bruno Haible  <bruno@clisp.org>
80506
80507         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80508         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80509
80510 2006-07-24  Bruno Haible  <bruno@clisp.org>
80511
80512         * modules/clean-temp: New file.
80513
80514 2006-07-24  Bruno Haible  <bruno@clisp.org>
80515
80516         * m4/tmpdir.m4: New file, from GNU gettext.
80517
80518 2006-07-24  Bruno Haible  <bruno@clisp.org>
80519
80520         * lib/tmpdir.h: New file, from GNU gettext.
80521         * lib/tmpdir.c: New file, from GNU gettext.
80522
80523 2006-07-24  Bruno Haible  <bruno@clisp.org>
80524
80525         * lib/clean-temp.h: New file, from GNU gettext.
80526         * lib/clean-temp.c: New file, from GNU gettext.
80527
80528 2006-07-23  Eric Blake  <ebb9@byu.net>
80529
80530         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80531         (Depends-on): Add binary-io.
80532
80533 2006-07-23  Eric Blake  <ebb9@byu.net>
80534
80535         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80536
80537 2006-07-23  Eric Blake  <ebb9@byu.net>
80538
80539         * lib/tmpfile-safer.c: New file.
80540         * lib/stdio-safer.h (fopen_safer): Add prototype.
80541         * lib/stdio--.h (tmpfile): Make safer.
80542
80543 2006-07-23  Bruno Haible  <bruno@clisp.org>
80544
80545         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80546         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80547         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80548         gl_linked_remove_at): Use it.
80549
80550 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80551         and Simon Josefsson <jas@extundo.com>
80552
80553         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80554
80555         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80556
80557 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * modules/close-stream: New file.
80560         * modules/closeout (Description): Make it clear that it exits
80561         with a diagnostic on error.
80562         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80563         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80564
80565 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * m4/close-stream.m4: New file.
80568
80569 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * lib/close-stream.c, lib/close-stream.h: New files.
80572
80573 2006-07-22  Bruno Haible  <bruno@clisp.org>
80574
80575         Merge from GNU gettext 0.15.
80576
80577         2006-05-01  Bruno Haible  <bruno@clisp.org>
80578
80579                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80580
80581         2006-07-22  Bruno Haible  <bruno@clisp.org>
80582
80583                 * modules/javaversion: New file.
80584                 * MODULES.html.sh (Java): Add javaversion.
80585
80586         2006-03-12  Bruno Haible  <bruno@clisp.org>
80587
80588                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80589
80590         2005-12-04  Bruno Haible  <bruno@clisp.org>
80591
80592                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80593                 (untested).
80594
80595         2006-06-21  Bruno Haible  <bruno@clisp.org>
80596
80597                 Avoid warnings from recent versions of mcs.
80598                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80599                 -o, -L, -r any more. Use options documented since mcs-1.0
80600                 instead. Similarly for -g.
80601
80602         2005-12-04  Bruno Haible  <bruno@clisp.org>
80603
80604                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80605                 .resources, not .resource.
80606
80607         2005-07-09  Bruno Haible  <bruno@clisp.org>
80608
80609                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80610                 add a .dll suffix.
80611                 Reported by Mark Junker <mjscod@gmx.de>.
80612
80613         2006-07-22  Bruno Haible  <bruno@clisp.org>
80614
80615                 * modules/gettext: Upgrade to gettext-0.15.
80616                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80617                 m4/visibility.m4.
80618                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80619
80620 2006-07-22  Bruno Haible  <bruno@clisp.org>
80621
80622         Merge from GNU gettext 0.15.
80623
80624         2006-03-25  Bruno Haible  <bruno@clisp.org>
80625
80626                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80627
80628         2006-07-21  Bruno Haible  <bruno@clisp.org>
80629
80630                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80631                 "1.1".
80632
80633         2006-05-09  Bruno Haible  <bruno@clisp.org>
80634
80635                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80636                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80637                 for the conftestver execution.
80638
80639         2006-05-01  Bruno Haible  <bruno@clisp.org>
80640
80641                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80642                 optional target-version argument. Verify that the compiler
80643                 groks source of the specified source-version, or add -source
80644                 option as necessary. Verify that the compiler produces
80645                 bytecode in the specified target-version, or add -target and
80646                 -source options as necessary. Make the result of the test
80647                 available as variable CONF_JAVAC. Also log error output in
80648                 config.log.
80649
80650         2006-03-11  Bruno Haible  <bruno@clisp.org>
80651
80652                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80653
80654         2006-05-09  Bruno Haible  <bruno@clisp.org>
80655
80656                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80657                 CLASSPATH_SEPARATOR to a semicolon.
80658
80659         2006-03-12  Bruno Haible  <bruno@clisp.org>
80660
80661                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80662                 available as variable CONF_JAVA, for subsequent autoconf
80663                 tests. Also log error output in config.log.
80664
80665         2006-07-19  Bruno Haible  <bruno@clisp.org>
80666
80667                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80668                 that getline works on glibc2 systems. Needed to avoid trouble
80669                 in relocatable.c.
80670                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80671
80672         2005-12-04  Bruno Haible  <bruno@clisp.org>
80673
80674                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80675                 launcher (untested).
80676
80677         2005-12-04  Bruno Haible  <bruno@clisp.org>
80678
80679                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80680
80681         2006-07-22  Bruno Haible  <bruno@clisp.org>
80682
80683                 * gettext.m4: Update from GNU gettext-0.15.
80684                 * nls.m4: Likewise.
80685                 * po.m4: Likewise.
80686                 * inttypes-pri.m4: Likewise.
80687                 * inttypes-h.m4: Renamed from inttypes.m4.
80688                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80689
80690 2006-07-22  Bruno Haible  <bruno@clisp.org>
80691
80692         Merge from GNU gettext 0.15.
80693
80694         2005-07-05  Bruno Haible  <bruno@clisp.org>
80695
80696                 * printf-args.c (printf_fetchargs): Work around broken
80697                 definition of wint_t on mingw.
80698
80699         2005-02-12  Bruno Haible  <bruno@clisp.org>
80700
80701                 * xallocsa.h: Add extern "C" for C++.
80702
80703         2006-05-17  Bruno Haible  <bruno@clisp.org>
80704
80705                 Cygwin portability.
80706                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80707
80708         2006-04-30  Bruno Haible  <bruno@clisp.org>
80709
80710                 * progreloc.c: Include <mach-o/dyld.h> if available.
80711                 (find_executable): Use _NSGetExecutablePath when possible.
80712
80713         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80714
80715                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80716                 function.
80717
80718         2005-12-29  Bruno Haible  <bruno@clisp.org>
80719
80720                 * progreloc.c (set_program_name_and_installdir): Fix
80721                 compilation error.
80722
80723         2005-12-04  Bruno Haible  <bruno@clisp.org>
80724
80725                 Cygwin portability.
80726                 * progreloc.c: Include <windows.h> also on Cygwin.
80727                 (find_executable): Add support for Cygwin.
80728                 (set_program_name_and_installdir): Handle also platforms with
80729                 nonempty EXEEXT.
80730
80731         2006-07-11  Bruno Haible  <bruno@clisp.org>
80732
80733                 * javacomp.c: Fix a comment.
80734                 Reported by Jim Meyering.
80735
80736         2006-04-30  Bruno Haible  <bruno@clisp.org>
80737
80738                 * javacomp.h (compile_java_class): Add source_version,
80739                 target_version arguments.
80740                 * javacomp.c: Rewritten to choose only a compiler that
80741                 respects the specified source_version and target_version.
80742
80743         2006-06-27  Bruno Haible  <bruno@clisp.org>
80744
80745                 Assume correct S_ISDIR macro.
80746                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80747
80748         2006-07-22  Bruno Haible  <bruno@clisp.org>
80749
80750                 * javaversion.h: New file, from GNU gettext.
80751                 * javaversion.c: New file, from GNU gettext.
80752                 * javaversion.java: New file, from GNU gettext.
80753                 * javaversion.class: New file, from GNU gettext.
80754
80755         2006-05-17  Bruno Haible  <bruno@clisp.org>
80756
80757                 Cygwin portability.
80758                 * javaexec.c (execute_java_class): Test for jview program
80759                 also on Cygwin.
80760
80761         2006-04-09  Bruno Haible  <bruno@clisp.org>
80762
80763                 * fatal-signal.c: Don't include string.h.
80764                 (at_fatal_signal): Use a copying loop instead of memcpy.
80765
80766         2005-12-04  Bruno Haible  <bruno@clisp.org>
80767
80768                 * csharpexec.c: Add support for 'clix' launcher (untested).
80769                 (execute_csharp_using_sscli): New function.
80770                 (execute_csharp_program): Call it.
80771
80772         2006-06-21  Bruno Haible  <bruno@clisp.org>
80773
80774                 Avoid warnings from recent versions of mcs.
80775                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80776                 -o, -L, -r any more. Use options documented since mcs-1.0
80777                 instead. Similarly for -g.
80778
80779         2005-07-09  Bruno Haible  <bruno@clisp.org>
80780
80781                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80782                 add a .dll suffix.
80783                 Reported by Mark Junker <mjscod@gmx.de>.
80784
80785         2006-06-17  Bruno Haible  <bruno@clisp.org>
80786
80787                 * config.charset: Update for NetBSD 3.0.
80788
80789         2006-05-17  Bruno Haible  <bruno@clisp.org>
80790
80791                 Cygwin portability.
80792                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80793
80794         2006-05-16  Bruno Haible  <bruno@clisp.org>
80795
80796                 * localcharset.c [CYGWIN]: Include <windows.h>.
80797                 (get_charset_aliases): For Cygwin, return the same CPxxx
80798                 aliases list as under WIN32.
80799                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80800                 the environment variables. Fall back to GetACP().
80801
80802         2006-04-05  Bruno Haible  <bruno@clisp.org>
80803
80804                 * config.charset: Update Juan Manuel Guerrero's address.
80805
80806         2005-02-12  Bruno Haible  <bruno@clisp.org>
80807
80808                 * allocsa.h: Add extern "C" for C++.
80809
80810         2005-02-10  Bruno Haible  <bruno@clisp.org>
80811
80812                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80813                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80814
80815         2006-07-22  Bruno Haible  <bruno@clisp.org>
80816
80817                 * gettext.h: Update to GNU gettext-0.15.
80818
80819 2006-07-22  Bruno Haible  <bruno@clisp.org>
80820
80821         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80822         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80823         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80824
80825 2006-07-21  Eric Blake  <ebb9@byu.net>
80826
80827         * modules/stdlib-safer: New file.
80828         * MODULES.html.sh (File stream based Input/Output): Add
80829         stdlib-safer.
80830
80831 2006-07-21  Eric Blake  <ebb9@byu.net>
80832
80833         * lib/stdlib-safer.h: New file from coreutils, required by
80834         stdlib--.h.
80835
80836 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80839
80840 2006-07-20  Bruno Haible  <bruno@clisp.org>
80841
80842         * gnulib-tool: Recognize new option --assume-autoconf.
80843         (autoconf_minversion): New variable.
80844         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80845
80846 2006-07-20  Bruno Haible  <bruno@clisp.org>
80847
80848         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80849
80850 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80851
80852         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80853         Reindent and repaginate.
80854
80855 2006-07-19  Derek Price  <derek@ximbiot.com>
80856
80857         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80858         Correct grammar.
80859
80860 2006-07-17  Bruno Haible  <bruno@clisp.org>
80861
80862         * modules/list: New file.
80863         * modules/array-list: New file.
80864         * modules/carray-list, modules/carray-list-tests: New files.
80865         * modules/linked-list, modules/linked-list-tests: New files.
80866         * modules/avltree-list, modules/avltree-list-tests: New files.
80867         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80868         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80869         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80870         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80871         * modules/oset: New file.
80872         * modules/array-oset: New file.
80873         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80874         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80875         * tests/test-carray_list.c: New file.
80876         * tests/test-linked_list.c: New file.
80877         * tests/test-avltree_list.c: New file.
80878         * tests/test-rbtree_list.c: New file.
80879         * tests/test-linkedhash_list.c: New file.
80880         * tests/test-avltreehash_list.c: New file.
80881         * tests/test-rbtreehash_list.c: New file.
80882         * tests/test-avltree_oset.c: New file.
80883         * tests/test-rbtree_oset.c: New file.
80884         * MODULES.html.sh (Container data structures): New section.
80885
80886 2006-07-17  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/gl_list.m4: New file.
80889
80890 2006-07-17  Bruno Haible  <bruno@clisp.org>
80891
80892         * lib/gl_list.h: New file.
80893         * lib/gl_list.c: New file.
80894         * lib/gl_array_list.h: New file.
80895         * lib/gl_array_list.c: New file.
80896         * lib/gl_carray_list.h: New file.
80897         * lib/gl_carray_list.c: New file.
80898         * lib/gl_linked_list.h: New file.
80899         * lib/gl_linked_list.c: New file.
80900         * lib/gl_anylinked_list1.h: New file.
80901         * lib/gl_anylinked_list2.h: New file.
80902         * lib/gl_avltree_list.h: New file.
80903         * lib/gl_avltree_list.c: New file.
80904         * lib/gl_anyavltree_list1.h: New file.
80905         * lib/gl_anyavltree_list2.h: New file.
80906         * lib/gl_rbtree_list.h: New file.
80907         * lib/gl_rbtree_list.c: New file.
80908         * lib/gl_anyrbtree_list1.h: New file.
80909         * lib/gl_anyrbtree_list2.h: New file.
80910         * lib/gl_anytree_list1.h: New file.
80911         * lib/gl_anytree_list2.h: New file.
80912         * lib/gl_linkedhash_list.h: New file.
80913         * lib/gl_linkedhash_list.c: New file.
80914         * lib/gl_anyhash_list1.h: New file.
80915         * lib/gl_anyhash_list2.h: New file.
80916         * lib/gl_avltreehash_list.h: New file.
80917         * lib/gl_avltreehash_list.c: New file.
80918         * lib/gl_rbtreehash_list.h: New file.
80919         * lib/gl_rbtreehash_list.c: New file.
80920         * lib/gl_anytreehash_list1.h: New file.
80921         * lib/gl_anytreehash_list2.h: New file.
80922
80923         * lib/gl_oset.h: New file.
80924         * lib/gl_oset.c: New file.
80925         * lib/gl_array_oset.h: New file.
80926         * lib/gl_array_oset.c: New file.
80927         * lib/gl_avltree_oset.h: New file.
80928         * lib/gl_avltree_oset.c: New file.
80929         * lib/gl_rbtree_oset.h: New file.
80930         * lib/gl_rbtree_oset.c: New file.
80931         * lib/gl_anytree_oset.h: New file.
80932
80933 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80934
80935         * m4/mkancesdirs.m4: New file.
80936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80937         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80938         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80939         it.
80940
80941 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80944         * lib/mkancesdirs.h: New files.
80945         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80946         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80947         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80948         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80949         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80950         callers changed.  Revamp internals significantly, by not
80951         attempting to create directories that are temporarily more
80952         permissive than the final results.  Do not attempt to use
80953         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80954         This removes some race conditions, fixes some bugs, and simplifies
80955         things.  Use new dirchownmod function to do owner and mode changes.
80956         * lib/mkdir-p.h: Likewise.
80957         * lib/modechange.c (octal_to_mode): New function.
80958         (struct mode_change): New member mentioned.
80959         (make_node_op_equals): New arg mentioned.  All callers changed.
80960         (mode_compile): Keep track of which mode bits the user has explicitly
80961         mentioned.
80962         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80963         New arg PMODE_BITS, to keep track of which mode bits the user
80964         mentioned; it treats S_ISUID and S_ISGID speciall.
80965         All callers changed.
80966         * lib/modechange.h: Likewise.
80967
80968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         * MODULES.html.sh: Add mkancestors.
80971         * modules/mkancesdirs: New module.
80972         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80973         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80974         The chdir-safer and afs files are now orphans; I'll remove them
80975         unless someone speaks up.
80976         Add lib/dirchownmod.c, lib/dirchownmod.h.
80977         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80978         Add lchown, mkancesdirs.
80979         (Maintainer): Add self.
80980
80981 2006-07-15  Karl Berry  <karl@gnu.org>
80982
80983         * gnulib-tool: help message wording/arrangement.
80984
80985 2006-07-14  Simon Josefsson  <jas@extundo.com>
80986
80987         * doc/gnulib.texi (Libtool and Windows): New section.
80988
80989 2006-07-12  Simon Josefsson  <jas@extundo.com>
80990
80991         * modules/gendocs (License): Fix license, approved by Karl.
80992
80993 2006-07-12  Eric Blake  <ebb9@byu.net>
80994
80995         * MODULES.html.sh: Add gendocs.
80996
80997 2006-07-11  Eric Blake  <ebb9@byu.net>
80998
80999         * modules/fdl: New module, to install doc/fdl.texi.
81000         * MODULES.html.sh: Add new section for documentation modules.
81001         * gnulib-tool: Avoid space-tab.
81002         (--doc-base): New option, to manage files from doc.
81003
81004 2006-07-11  Eric Blake  <ebb9@byu.net>
81005
81006         * m4/absolute-header.m4: Fix comments to match recent change.
81007
81008 2006-07-11  Eric Blake  <ebb9@byu.net>
81009
81010         * gnulib-tool: List --doc-base before --tests-base.
81011
81012 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81013
81014         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81015
81016 2006-07-11  Bruno Haible  <bruno@clisp.org>
81017
81018         * README: Mention where to put documentation.
81019
81020 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81021
81022         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81023
81024 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81027         to stdint.m4.
81028
81029 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81032         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81033         "no/such/file/stdint.h" when there is no such file, so that
81034         the resulting C code can be parsed by dodgy compilers.
81035         Problems reported by Bob Proulx.
81036
81037 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81038
81039         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81040         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81041         macros into the GNU _D_EXACT_NAMLEN.
81042         * lib/savedir.c:  Likewise.
81043         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81044
81045 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81046         and Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81049         * m4/savedir.m4:
81050         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81051         macros into the GNU _D_EXACT_NAMLEN.
81052
81053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81056         around the absolute name, to work around a problem with the HP-UX
81057         11.23 native C compiler, reported by Bob Proulx.
81058
81059 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         * doc/maintain.texi, make-stds.texi: Sync from
81062         <http://savannah.gnu.org/projects/gnustandards>.
81063
81064 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81065
81066         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81067
81068 2006-07-09  Jim Meyering  <jim@meyering.net>
81069
81070         * m4/glob.m4: Remove a doubled word in a comment.
81071
81072 2006-07-09  Jim Meyering  <jim@meyering.net>
81073
81074         * lib/argp-pv.c: Remove a doubled word in a comment.
81075         * lib/check-version.c (check_version): Likewise.
81076         * lib/javacomp.c (compile_java_class): Likewise.
81077
81078 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81081         for the benefit of people using Autoconf 2.60.  If you want to
81082         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81083         (or m4/onceonly.m4, if pre-2.57) manually.
81084
81085 2006-07-08  Jim Meyering  <jim@meyering.net>
81086
81087         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81088         comment.
81089         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81090         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81091         comment.
81092
81093 2006-07-08  Jim Meyering  <jim@meyering.net>
81094
81095         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81096
81097 2006-07-07  Simon Josefsson  <jas@extundo.com>
81098
81099         * tests/test-crc.c: Change expected crc value, the test vector
81100         were probably computed using the old broken crc.c?
81101
81102 2006-07-06  Simon Josefsson  <jas@extundo.com>
81103
81104         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81105         now the canonical place for the M4 file).
81106
81107         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81108         from the sys_socket dependency now.
81109
81110         * modules/inet_pton (Files): Ditto.
81111
81112         * modules/inet_ntop (Files): Ditto.
81113
81114 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81115
81116         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81117         not gl_PREREQ_GETUSERSHELL.
81118
81119 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81120
81121         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81122         with only one argument, for Autoconf 2.60.
81123         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81124         expand to nothing, so add a shell command to avoid syntax error.
81125         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81126
81127 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81128
81129         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81130
81131 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81134         no longer needed.  Check for isblank decl.
81135         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81136         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81137         of existence.
81138
81139 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * lib/getloadavg.c: Use __VMS, not VMS.
81142         * lib/getopt.c: Likewise.
81143         * lib/getpagesize.h: Likewise.
81144         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81145         and probably does not work.
81146
81147 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * lib/.cppi-disable: Add wcwidth.
81150         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81151         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81152         (ISGRAPH): Remove.  All uses changed to isgraph.
81153         (FOLD) [!defined _LIBC]: Remove special case.
81154         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81155         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81156         HAVE_ISBLANK.
81157         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81158         case.
81159
81160 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81161
81162         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81163         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81164         brackets.  Other minor changes to suppress some compiler
81165         warnings.
81166
81167 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81168         and Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81171         of invoking obsolescent AC_HEADER_DIRENT macro.
81172         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81173         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81176         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81177         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81178         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81179         * m4/readdir.m4: Remove; no longer needed.
81180
81181 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81182         and Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81185         Don't worry about this obsolete case any more.
81186         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81187         directories.
81188         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81189         worry about this obsolete case any more.
81190         * lib/fts.c: Likewise.
81191         * lib/getcwd.c: Likewise.
81192         * lib/glob.h: Likewise.
81193         * lib/savedir.c: Likewise.
81194
81195 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81198         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81199         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81200         needed.
81201         All uses removed.
81202         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81203         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81204         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81205         needed.
81206         * m4/getdate.m4 (gl_GETDATE): Likewise.
81207         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81208         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81209         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81210         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81211         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81213         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81214         needed.
81215
81216 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81217
81218         * lib/memcasecmp.c: Include <limits.h>.
81219         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81220         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81221         Don't assume isdigit succeeds only on '0' through '9'.
81222
81223 2006-07-05  Eric Blake  <ebb9@byu.net>
81224
81225         * modules/getaddrinfo (Depends-on): Add snprintf.
81226
81227 2006-07-05  Eric Blake  <ebb9@byu.net>
81228
81229         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81230         to avoid 'header present but could not be compiled' on cygwin.
81231
81232 2006-07-05  Eric Blake  <ebb9@byu.net>
81233
81234         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81235         missing from netdb.h.
81236         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81237
81238 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81239
81240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81241         no longer needed.
81242         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81243         * m4/getdate.m4 (gl_GETDATE): Likewise.
81244         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81245         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81246         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81247         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81248         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81249
81250 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81251
81252         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81253         All uses of is_space replaced by isspace.
81254         * lib/exit.h: Don't talk about STDC_HEADERS.
81255         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81256         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81257         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81258         replaced by isprint etc.
81259         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81260         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81261         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81262         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81263         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81264         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81265
81266 2006-07-05  Bruno Haible  <bruno@clisp.org>
81267
81268         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81269         the function exists, before testing against AIX.
81270         Reported by Martin Lambers <marlam@marlam.de>.
81271
81272 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81275         From Mark D. Baushke.
81276
81277 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81278
81279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81280         to the absolute name, not just one, to bypass Sun C 5.8's
81281         "warning: #include of /usr/include/... may be non-portable".
81282
81283 2006-07-04  Eric Blake  <ebb9@byu.net>
81284
81285         * modules/dirname-tests: New test module.
81286         * tests/test-dirname.c: New file, replacing dirname.c
81287         TEST_DIRNAME section that was recently deleted.
81288
81289 2006-07-04  Bruno Haible  <bruno@clisp.org>
81290
81291         Assume ANSI C header files and <ctype.h> functions.
81292         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81293         (mbsnwidth): Use isprint, iscntrl instead.
81294
81295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         Merge from coreutils.
81298         * MODULES.html.sh: Add xstrtold.
81299         * modules/xstrtold: New file.
81300         * modules/cycle-check (Files): Add lib/same-inode.h.
81301         * modules/dirname (Files): Add m4/double-slash-root.m4.
81302         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81303         * modules/mkdir-p (Files): Add lib/same-inode.h.
81304         * modules/same (Files): Add lib/same-inode.h.
81305
81306 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81307
81308         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81309         This is to keep the terminology clean; POSIX talks about
81310         "absolute pathnames", not "full pathnames", but the GNU
81311         Coding Standards say to use "path" for something else;
81312         so use "absolute" to keep both sides happy.
81313         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81314         Set gl_absolute_header, not gl_full_header_path.
81315         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81316         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81317         All uses changed.
81318
81319         Merge from coreutils.
81320
81321         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81322
81323         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81324         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81325         want to require the building of c-strtod.o.
81326         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81327         needs -lm directly.
81328         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81329
81330         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81331
81332         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81333         --as-needed option if available.  Problem reported by Albert Chin in
81334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81335         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81336         cc merely issues a bunch of annoying warnings for --as-needed
81337         (this problem was reported by Bob Proulx).  Also, try linking with
81338         -lm to detect a bug in binutils 2.16 (this problem was reported
81339         by Ralf Wildenhues).
81340
81341         2006-06-18  Jim Meyering  <jim@meyering.net>
81342
81343         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81344         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81345         macro.
81346         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81347         also check for glibc-2.4's abort-inducing bug.
81348
81349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81350         Low-probability clean-up should be to use rmdir to get rid of
81351         the just-created directory, not unlink.
81352
81353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81354         configure fail, and request a bug report to inform us about it.
81355         Add a comment that, barring reports to the contrary, in 2007 we'll
81356         assume ftruncate is universally available.
81357
81358         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81361
81362         2006-03-12  Jim Meyering  <jim@meyering.net>
81363
81364         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81365         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81366         * m4/same.m4 (gl_SAME): Likewise.
81367         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81368
81369         2006-03-11  Eric Blake  <ebb9@byu.net>
81370
81371         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81372         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81373         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81374         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81375
81376 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81379         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81380         reported by Mark D. Baushke, one in
81381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81382
81383         Merge from coreutils.
81384
81385         * lib/.cppi-disable: Add stdint_.h.
81386         * lib/.cvsignore: Add stdint.h.
81387
81388         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81391         both double and long double versions.
81392         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81393         * lib/xstrtold.c: New file.
81394         * lib/xstrtod.h (xstrtold): New decl.
81395
81396         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/filemode.c (setst): Remove.
81399         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81400         (arguably) clearer, and the generated code is a bit smaller on my
81401         Debian GNU/Linux stable x86 host.
81402
81403         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81404
81405         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81406         Assume that filemode.h includes sys/types.h and sys/stat.h.
81407         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81408         (ftypelet): Reorder to put common cases first, for efficiency.
81409         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81410         to do 'M'.
81411         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81412         of 10, for compatibility with FreeBSD.  All callers changed.
81413         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81414         types that can't be deduced solely from st_mode.  First arg is now a
81415         const pointer.
81416         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81417         (strmode): Renamed from mode_string.
81418         (filemodestring): New decl.
81419         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81420         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81421         needed.
81422         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81423
81424         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81425
81426         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81427         fsusage.h now does that.  Include fsusage.h first, to test interface.
81428         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81429         at most one method (the old code could have generated decls that
81430         didn't conform to C89, not that this was ever exercised).
81431         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81432
81433         2006-03-19  Jim Meyering  <jim@meyering.net>
81434
81435         Work even in a chroot where d_ino values for entries in "/"
81436         don't match the stat.st_ino values for the same names.
81437         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81438         number, iterate through all entries again, using lstat instead.
81439         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81440         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81441
81442         * lib/getcwd.c (__getcwd): Clarify a comment.
81443         Use memcpy in place of a call to strcpy.
81444
81445         2006-03-12  Jim Meyering  <jim@meyering.net>
81446
81447         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81448         matches that of the current directory (which we're about to chdir ".."
81449         out of), then save the dev-ino of the parent, instead.
81450
81451         * lib/same-inode.h (SAME_INODE): New file/macro.
81452         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81453         Include "same-inode.h", instead.
81454         * lib/same.c: Likewise.
81455         * lib/cycle-check.h: Include "same-inode.h".
81456         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81457         * lib/cycle-check.c (SAME_INODE): Remove definition.
81458         * lib/root-dev-ino.h: Include "same-inode.h".
81459
81460         2006-03-11  Eric Blake  <ebb9@byu.net>
81461
81462         * lib/same.c (same_name): s/base_name/last_component/
81463         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81464         * lib/filenamecat.c (file_name_concat): Likewise.
81465
81466         2006-03-11  Eric Blake  <ebb9@byu.net>,
81467                     Paul Eggert  <eggert@cs.ucla.edu>
81468
81469         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81470         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81471         drive prefix.
81472         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81473         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81474         (last_component): New method.
81475         * lib/dirname.c (dir_len): Determine when drive letters need a
81476         subsequent slash.  Preserve // when it is special.
81477         (dir_name): Don't append dot when drive letter is absolute.
81478         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81479         * lib/basename.c (base_name): New semantics - malloc the result.
81480         Preserve // when it is special.  Preserve relative files that look
81481         like drive letters.
81482         (base_len): Preserve // when it is special.
81483         (last_component): New method, similar to old base_name semantics.
81484         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81485         base_name.  Strip redundant slashes from ///.
81486
81487 2006-07-03  Jim Meyering  <jim@meyering.net>
81488
81489         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81490         macro is used before the first cycle_check call.
81491
81492 2006-07-03  Eric Blake  <ebb9@byu.net>
81493
81494         * modules/dirname (Depends-on): Add xstrndup.
81495
81496 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81497
81498         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81499         test cases, so that config.log is a bit easier to follow.
81500
81501 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81502
81503         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81504         both are 64 bits, since this seems to be the tradition, and this
81505         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81506         we ever run into a host that prefers long long to long in this
81507         case, we'll need another configure-time test.  Problem reported by
81508         Jim Meyering.
81509
81510 2006-07-02  Eric Blake  <ebb9@byu.net>
81511
81512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81513
81514 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * modules/inttypes (Depends-on): No longer depends on stdint.
81517         * modules/stdint (Description): Say more about assumptions.
81518         Say that the fast types might differ.  Say macros are used.
81519         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81520         (Makefile.am): Revise list of substituted symbols to match
81521         new stdint.m4.
81522         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81523         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81524         * tests/test-stdint.c (verify_same_types)
81525         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81526         the code conforms to C99/C89.
81527         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81528         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81529
81530 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81531
81532         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81533         but fix a bug, by requiring at least 64 bits.
81534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81535         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81536         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81537         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81538
81539         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81540         changes.  Make 2.59 a prerequisite.  Check and substitute for
81541         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81542         inttypes.h.  Do not use special include files; just use the
81543         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81544         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81545         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81546         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81547         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81548         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81549         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81550         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81551         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81552         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81553         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81554         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81555         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81556         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81557         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81558         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81559         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81560         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81561         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81562         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81563         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81564         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81565         not check for things that C99 does not require, e.g., int8_t.  If
81566         a test isn't needed unless <stdint.h> isn't working, and is
81567         unlikely to be needed for any other reason, then don't do it
81568         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81569         size_t, since we assume C89 freestanding at least.  Do not check
81570         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81571         the right thing even if the types are not defined.  Instead use:
81572         (gl_STDINT_TYPE_PROPERTIES): New macro.
81573         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81574         testing whether <sys/types.h> clashes, as Autoconf does this for
81575         us now.  All uses removed.
81576         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81577         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81578         (gl_CHECK_TYPE_SAME):
81579         Remove; no longer needed.
81580         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81581         exists, since we'll return 0 anyway in that case.
81582         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81583
81584 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81587         possible collision with system files.
81588         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81589         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81590         WCHAR_MIN and WCHAR_MAX in this case.
81591         (<stddef.h>): Do not include; no longer needed.
81592         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81593         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81594         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81595         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81596         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81597         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81598         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81599         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81600         !defined(__c99))]: Include in this case too, since it's harmless
81601         now.
81602         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81603         dangerous to do so.
81604         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81605         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81606         (_STDINT_MIN, _STDINT_MAX): New macros.
81607         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81608         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81609         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81610         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81611         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81612         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81613         macros, not typedefs; this simplifies things quite a bit.
81614         Use long int for all types narrower than int64_t.
81615         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81616         Define in terms of long long int or int64_t or long int,
81617         not int64_t or int32_t.  This saves some compile-time testing.
81618         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81619         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81620         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81621         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81622         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81623         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81624         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81625         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81626         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81627         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81628         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81629         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81630         undef any previous version and define our own version, for
81631         simplicity and consistency with the new macros for types.
81632         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81633         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81634         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81635         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81636         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81637         @WINT_T_SUFFIX@ to keep things simple here.
81638         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81639         Simplify by assuming typical 8/16/32/64 host, since we're
81640         already doing that elsewhere anyway.
81641         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81642         and assume long long int is 64 bits if available.  This
81643         speeds up 'configure'.
81644
81645 2006-07-01  Eric Blake  <ebb9@byu.net>
81646
81647         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81648         Reported by Andreas Buening.
81649
81650 2006-07-01  Eric Blake  <ebb9@byu.net>
81651
81652         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81653
81654 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81655
81656         * lib/getaddrinfo.c: fixed typo
81657
81658 2006-06-29  Jim Meyering  <jim@meyering.net>
81659
81660         * modules/strftime (Maintainer): Add my name, since with the
81661         FPRINTFTIME changes strftime.c has forked from glibc.
81662
81663 2006-06-29  Eric Blake  <ebb9@byu.net>
81664
81665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81666
81667 2006-06-29  Eric Blake  <ebb9@byu.net>
81668
81669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81670
81671 2006-06-29  Eric Blake  <ebb9@byu.net>
81672
81673         * lib/stat_.h: New file.
81674
81675 2006-06-29  Eric Blake  <ebb9@byu.net>
81676
81677         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81678         unused static function.
81679
81680 2006-06-29  Eric Blake  <ebb9@byu.net>
81681
81682         * doc/functions.texi (Function Portability): Document missing lstat
81683         on mingw.
81684
81685 2006-06-29  Eric Blake  <ebb9@byu.net>
81686
81687         * MODULES.html.sh: Add sys_stat.
81688         * modules/sys_stat: New module.
81689         * modules/mkstemp (Depends-on): Add sys_stat.
81690
81691 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81692
81693         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81694
81695 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81696
81697         * m4/c-bs-a.m4: Removed.
81698
81699 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81700
81701         * lib/strftime.c: Assume strftime() exists.
81702
81703 2006-06-29  Derek Price  <derek@ximbiot.com>
81704
81705         * modules/c-bs-a: Removed - \a is C89.
81706         * MODULES.html.sh: Remove c-bs-a.
81707
81708 2006-06-29  Bruno Haible  <bruno@clisp.org>
81709
81710         * modules/wcwidth (License): Change to LGPL.
81711
81712 2006-06-28  Simon Josefsson  <jas@extundo.com>
81713
81714         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81715         on _WIN32.
81716
81717         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81718         getnameinfo.
81719
81720 2006-06-28  Simon Josefsson  <jas@extundo.com>
81721
81722         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81723
81724 2006-06-28  Simon Josefsson  <jas@extundo.com>
81725
81726         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81727         functions there.  It will succeed on Windows XP, but on Windows
81728         2000 and (presumably) earlier, it will fail, and use the internal
81729         re-implementation.
81730         (use_win32_p): New function.
81731         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81732         Support AI_NUMERICSERV to disable getservbyname.
81733         (getnameinfo): New function, only supports
81734         NI_NUMERICHOST|NI_NUMERICSERV for now.
81735
81736         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81737         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81738         getnameinfo.
81739
81740 2006-06-28  Eric Blake  <ebb9@byu.net>
81741
81742         * modules/wcwidth: New file.
81743         * modules/mbchar (Depends-on): Add wcwidth.
81744         * modules/mbswidth (Depends-on): Add wcwidth.
81745         * MODULES.html.sh: Add wcwidth.
81746
81747 2006-06-28  Eric Blake  <ebb9@byu.net>
81748
81749         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81751
81752 2006-06-28  Eric Blake  <ebb9@byu.net>
81753
81754         * lib/xvasprintf.h: Fix comments.
81755
81756 2006-06-28  Eric Blake  <ebb9@byu.net>
81757
81758         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81759         * lib/mbswidth.c (wcwidth): Move from here...
81760         * lib/wcwidth.h: ...to this new file.
81761
81762 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81763
81764         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81765
81766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81767         it's obsolete.
81768         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81769
81770 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81771
81772         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81773         Autoconf 2.60 says this stuff was obsolete.
81774
81775 2006-06-28  Bruno Haible  <bruno@clisp.org>
81776
81777         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81778
81779 2006-06-28  Bruno Haible  <bruno@clisp.org>
81780
81781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81782         gt_TYPE_WCHAR_T.
81783
81784 2006-06-28  Bruno Haible  <bruno@clisp.org>
81785
81786         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81787         declaration for wcwidth.
81788         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81789
81790 2006-06-28  Bruno Haible  <bruno@clisp.org>
81791
81792         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81793         (mkdir): Define using _mkdir.
81794
81795 2006-06-28  Bruno Haible  <bruno@clisp.org>
81796
81797         * lib/getaddrinfo.h: Fix POSIX URL.
81798         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81799         _WIN32.
81800         (use_win32_p): Make static.
81801         (getaddrinfo): Reject service name if it is empty or does not consist
81802         solely of decimal digits, or if its value is > 65535.
81803         (getnameinfo): Remove useless casts.
81804
81805 2006-06-27  Simon Josefsson  <jas@extundo.com>
81806
81807         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81808         Eggert and Martin Lambers.
81809
81810 2006-06-27  Simon Josefsson  <jas@extundo.com>
81811
81812         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81813         Eggert and Martin Lambers.
81814
81815 2006-06-27  Bruno Haible  <bruno@clisp.org>
81816
81817         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81818         result to 0, not to empty.
81819         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81820
81821 2006-06-27  Bruno Haible  <bruno@clisp.org>
81822
81823         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81824
81825 2006-06-26  Simon Josefsson  <jas@extundo.com>
81826
81827         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81828         present.
81829
81830 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81833         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81834         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81835
81836 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81837
81838         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81839
81840 2006-06-26  Bruno Haible  <bruno@clisp.org>
81841
81842         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81843
81844 2006-06-26  Bruno Haible  <bruno@clisp.org>
81845
81846         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81847
81848 2006-06-26  Bruno Haible  <bruno@clisp.org>
81849
81850         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81851         SGI C compiler in pre-C99 mode.
81852         Suggested by Mark D. Baushke and Larry Jones.
81853
81854 2006-06-26  Bruno Haible  <bruno@clisp.org>
81855
81856         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81857         WCHAR_MAX.
81858         Reported by Mark D. Baushke and Larry Jones.
81859
81860 2006-06-26  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81863         in pre-C99 mode.
81864         Suggested by Mark D. Baushke and Larry Jones.
81865
81866 2006-06-23  Simon Josefsson  <jas@extundo.com>
81867             Bruno Haible  <bruno@clisp.org>
81868
81869         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81870         Emit mostlyclean-local rule.
81871         (func_emit_tests_Makefile_am): Likewise.
81872         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81873
81874 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81875
81876         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81877
81878 2006-06-23  Bruno Haible  <bruno@clisp.org>
81879
81880         * tests/test-stdint.c: Update to match ISO C 99 Technical
81881         Corrigendum 1.
81882
81883 2006-06-23  Bruno Haible  <bruno@clisp.org>
81884
81885         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81886
81887 2006-06-23  Bruno Haible  <bruno@clisp.org>
81888
81889         * lib/stdint_.h: Treat IRIX like OpenBSD.
81890
81891 2006-06-23  Bruno Haible  <bruno@clisp.org>
81892
81893         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81894         ISO C 99 Technical Corrigendum 1.
81895
81896 2006-06-22  Simon Josefsson  <jas@extundo.com>
81897
81898         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81899         MinGW.
81900
81901 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81904         needed.  Some compiler complained about some of them.  Problem reported
81905         by Larry Jones in
81906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81907
81908 2006-06-21  Simon Josefsson  <jas@extundo.com>
81909
81910         * tests/test-getaddrinfo.c: New file.
81911
81912         * modules/getaddrinfo-tests: New file.
81913
81914         * MODULES.html.sh: Add inet_pton.
81915
81916         * modules/inet_pton: New file.
81917
81918 2006-06-21  Simon Josefsson  <jas@extundo.com>
81919
81920         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81921         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81922         of using the (limited) gnulib implementation on Windows XP.
81923
81924         * m4/inet_pton.m4: New file.
81925
81926 2006-06-21  Simon Josefsson  <jas@extundo.com>
81927
81928         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81929         variable.
81930
81931         * lib/socket_.h: Don't define WINVER.
81932
81933         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81934         slightly modified to work in gnulib.
81935
81936 2006-06-21  Simon Josefsson  <jas@extundo.com>
81937
81938         * doc/gnulib.texi (Windows sockets): Add.
81939
81940 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         * lib/read-file.c (fread_file): Start with buffer allocation of
81943         0 bytes rather than 1 byte; this simplifies the code.
81944         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81945         code to free buffer and save/restore errno.
81946         (internal_read_file): Remove unused local.
81947
81948 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81949
81950         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81951         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81952         Problem reported by Denis Excoffier in
81953         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81954
81955 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81956
81957         * modules/sys_socket, modules/socklen: Include sys/types since
81958         FreeBSD 4.x's sys/socket.h needs it.
81959
81960 2006-06-19  Simon Josefsson  <jas@extundo.com>
81961
81962         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81963
81964 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81967
81968 2006-06-19  Bruno Haible  <bruno@clisp.org>
81969
81970         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81971         and FULL_PATH_INTTYPES_H in angle brackets.
81972         Reported by Mark D. Baushke <mdb@gnu.org>.
81973
81974 2006-06-17  Eric Blake  <ebb9@byu.net>
81975
81976         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81977         errno.
81978
81979 2006-06-17  Bruno Haible  <bruno@clisp.org>
81980
81981         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81982         <sys/inttypes.h>.
81983
81984 2006-06-17  Bruno Haible  <bruno@clisp.org>
81985
81986         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81987         whether errno is declared. Assume <errno.h> declares errno.
81988
81989 2006-06-17  Bruno Haible  <bruno@clisp.org>
81990
81991         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81992
81993 2006-06-17  Bruno Haible  <bruno@clisp.org>
81994
81995         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81996         problem on Solaris 2.5.1.
81997
81998 2006-06-16  Eric Blake  <ebb9@byu.net>
81999
82000         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82001         * lib/unicodeio.c [!defined errno]: Likewise.
82002         * lib/strtol.c [!defined errno]: Likewise.
82003         * lib/strtod.c [!defined errno]: Likewise.
82004
82005 2006-06-15  Eric Blake  <ebb9@byu.net>
82006
82007         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82008
82009 2006-06-15  Eric Blake  <ebb9@byu.net>
82010
82011         * config/srclist.txt (ssize_t.m4): Lose sync.
82012
82013 2006-06-15  Bruno Haible  <bruno@clisp.org>
82014
82015         * modules/stdint (Files): Include m4/full-header-path.m4,
82016         m4/size_max.m4, m4/wchar_t.m4.
82017         (Makefile.am): Many more substitutions.
82018         * modules/stdint-tests: New file.
82019         * tests/test-stdint.c: New file.
82020
82021 2006-06-15  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82024         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82025         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82026         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82027         gl_CHECK_TYPE_SAME): New macros.
82028
82029 2006-06-15  Bruno Haible  <bruno@clisp.org>
82030
82031         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82032
82033 2006-06-15  Bruno Haible  <bruno@clisp.org>
82034
82035         * lib/stdint_.h: Rewritten to be fully auto-configured.
82036         Fixes bug on HP-UX/IA64.
82037
82038 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82039
82040         * lib/getdate.y (__attribute__): Don't define if already defined.
82041         Problem reported by Larry Jones.
82042         * lib/utimens.c (__attribute__): Likewise.
82043
82044 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82045
82046         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82047         reported by Andreas Schwab.
82048
82049 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82050             Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82053         check for the declaration of strnlen and a run test that exposes the
82054         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82055         rpl_strndup.
82056
82057 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82058             Bruno Haible  <bruno@clisp.org>
82059
82060         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82061
82062 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82063
82064         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82065         compile test, for Tru64 4.0D.
82066
82067 2006-05-28  Karl Berry  <karl@gnu.org>
82068
82069         * config/srclist.txt (printf-args.c): lose sync.
82070
82071 2006-05-26  Martin Lambers  <marlam@marlam.de>
82072
82073         * lib/getpass.c: Updates the test for the native W32 API, and adds
82074         missing includes, thus fixing compilation warnings.
82075
82076 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82077
82078         * lib/exclude.c (exclude_fnmatch): New function.
82079         (excluded_file_name): Call exclude_fnmatch.
82080         * lib/exclude.h (excluded_file_name): New prototype
82081
82082 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82083
82084         * lib/tempname.c (small_open, large_open): New macros.
82085         (__open, __open64) [!_LIBC]: Remove.
82086         (__gen_tempname): Use small_open and large_open instead of __open
82087         and __open64.  This fixes a portability bug on HP-UX 11.11i
82088         reported by Simon Wing-Tang in
82089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82090
82091 2006-05-24  Bruno Haible  <bruno@clisp.org>
82092
82093         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82094         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82095         Reported by Thorsten Maerz <torte@netztorte.de> via
82096         Aaron Stone <aaron@serendipity.cx>.
82097
82098 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82101         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82102         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82103         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82104         not really conditional on the cache.
82105         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82106
82107 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82110         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82111         (my_usleep): Don't mishandle maximum value.
82112
82113 2006-05-19  Jim Meyering  <jim@meyering.net>
82114
82115         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82116
82117 2006-05-17  Bruno Haible  <bruno@clisp.org>
82118
82119         Cygwin portability.
82120         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82121
82122 2006-05-17  Bruno Haible  <bruno@clisp.org>
82123
82124         * lib/stdint_.h: Fix recognition of Cygwin.
82125
82126 2006-05-15  Bruno Haible  <bruno@clisp.org>
82127
82128         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82129         on libtool patch by Ralf Wildenhues.
82130
82131 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82132
82133         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82134         test for C99 conformance; (bool) 0.5 is an integer constant
82135         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82136         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82137
82138 2006-05-11  Simon Josefsson  <jas@extundo.com>
82139
82140         * m4/xvasprintf.m4: Fix obvious typo.
82141
82142 2006-05-11  Jim Meyering  <jim@meyering.net>
82143
82144         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82145         James Lemley.
82146
82147 2006-05-10  Simon Josefsson  <jas@extundo.com>
82148
82149         * lib/md4.c: Typo fix, update copyright years.
82150         (K1, K2): Don't use L because it turn computations into 64-bit on
82151         64-bit platforms.
82152
82153 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82154
82155         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82156         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82157         unwanted sign propagation, e.g., on hosts with 64-bit int.
82158         There still are some problems with reeelly weird theoretical hosts
82159         (e.g., 33-bit int) but it's not worth worrying about now.
82160         * lib/sha1.c (rol): Likewise.
82161         (K1, K2, K3, K4): Remove unnecessary L suffix.
82162
82163 2006-05-10  Bruno Haible  <bruno@clisp.org>
82164
82165         * lib/des.c: Cast to avoid warnings.
82166
82167 2006-05-09  Bruno Haible  <bruno@clisp.org>
82168
82169         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82170         (Depends-on): Depend also on xsize, stdarg.
82171         (configure.ac): Add gl_XVASPRINTF.
82172
82173 2006-05-09  Bruno Haible  <bruno@clisp.org>
82174
82175         * m4/xvasprintf.m4: New file.
82176
82177 2006-05-09  Bruno Haible  <bruno@clisp.org>
82178
82179         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82180         (EOVERFLOW): Define fallback value.
82181         (xstrcat): New function.
82182         (xvasprintf): Recognize the special case of a string concatenation.
82183
82184 2006-05-08  Eric Blake  <ebb9@byu.net>
82185
82186         * gnulib-tool (func_version): Base copyright year on CVS date.
82187         (func_emit_copyright_notice): New function.
82188         (func_emit_lib_Makefile_am): Use it.
82189         (func_emit_tests_Makefile_am): Likewise.
82190         (func_import): Likewise.
82191
82192 2006-05-08  Bruno Haible  <bruno@clisp.org>
82193
82194         * modules/stdarg: New file.
82195         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82196
82197 2006-05-08  Bruno Haible  <bruno@clisp.org>
82198
82199         * m4/stdarg.m4: New file, from GNU gettext.
82200
82201 2006-05-08  Bruno Haible  <bruno@clisp.org>
82202
82203         * config/srclist.txt (build-aux/config.rpath): different from latest
82204         release.
82205
82206 2006-05-08  Bruno Haible  <bruno@clisp.org>
82207
82208         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82209
82210 2006-05-05  Jim Meyering  <jim@meyering.net>
82211
82212         * m4/warning.m4: New file, derived from bison's file by the same name.
82213
82214 2006-05-03  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/stdint_.h: Shorter URL.
82217         * lib/inttypes.h: Likewise.
82218
82219 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82222
82223 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * lib/verify.h: Document the internals better.  Most of this change
82226         was written by Bruno Haible.
82227
82228 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * doc/verify.texi: New file, partly based on a proposal by
82231         Bruno Haible.
82232
82233 2006-05-02  Bruno Haible  <bruno@clisp.org>
82234
82235         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82236         test from here...
82237         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82238
82239 2006-04-29  Bruno Haible  <bruno@clisp.org>
82240
82241         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82242         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82243
82244 2006-04-29  Bruno Haible  <bruno@clisp.org>
82245
82246         * gnulib-tool: Make --update option actually work.
82247
82248 2006-04-29  Bruno Haible  <bruno@clisp.org>
82249
82250         * doc/gcd.texi: New file.
82251         * doc/gnulib.texi: Include it.
82252
82253 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * lib/getdate.y (get_date): When adding relative date, start with the
82256         initial time, not with the result of the first mktime call.
82257
82258 2006-04-25  Bruno Haible  <bruno@clisp.org>
82259
82260         * gnulib-tool (func_import): Output the include directives in three
82261         blocks, sorted separately.
82262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82263
82264 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82267         to define main with arguments, for C++.  Reported by Eric Blake.
82268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82269         Prefer 'int main ()' to 'int main (void)', for C++.
82270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82272         for 'main', for C99 and C++.
82273
82274 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82277         Don't assume that exit status -1 is valid.
82278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82279         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82281         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82282         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82283         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82284         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82285         functions can be used without declaring them, or that you can
82286         exit with status -1.
82287         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82288
82289 2006-04-24  Karl Berry  <karl@gnu.org>
82290
82291         * config/srclist.txt (longdouble.m4): sync lost.
82292
82293 2006-04-24  Eric Blake  <ebb9@byu.net>
82294
82295         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82296
82297 2006-04-24  Bruno Haible  <bruno@clisp.org>
82298
82299         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82300         poll() implementation in AIX.
82301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82302
82303 2006-04-24  Bruno Haible  <bruno@clisp.org>
82304
82305         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82306         assigned exactly once.
82307
82308 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82309             Bruno Haible  <bruno@clisp.org>
82310
82311         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82312         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82313         for AM_CPPFLAGS.
82314
82315 2006-04-23  Bruno Haible  <bruno@clisp.org>
82316
82317         * modules/copy-file: Depend on unistd.
82318         * modules/execute: Likewise.
82319         * modules/fatal-signal: Likewise.
82320         * modules/findprog: Likewise.
82321         * modules/mkdtemp : Likewise.
82322         * modules/pipe: Likewise.
82323         * modules/wait-process: Likewise.
82324
82325 2006-04-23  Bruno Haible  <bruno@clisp.org>
82326
82327         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82328         condition was already detected.
82329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82330
82331 2006-04-23  Bruno Haible  <bruno@clisp.org>
82332
82333         * lib/copy-file.c: Include <unistd.h> unconditionally.
82334         * lib/execute.c: Likewise.
82335         * lib/fatal-signal.c: Likewise.
82336         * lib/findprog.c: Likewise.
82337         * lib/mkdtemp.c: Likewise.
82338         * lib/pipe.h: Likewise.
82339         * lib/pipe.c: Likewise.
82340         * lib/wait-process.h: Likewise.
82341
82342 2006-04-23  Bruno Haible  <bruno@clisp.org>
82343
82344         * gnulib-tool (func_usage): Fix --import description. Document
82345         --update.
82346         (func_import): Create temporary file in a temporary directory, if
82347         --dry-run is specified. Silence errors from 'grep' when there are no
82348         m4 files in $m4dir.
82349         (func_create_testdir): Silence errors from 'grep' when there are no
82350         m4 files in $m4dir.
82351         Reported by Karl Berry <karl@freefriends.org>.
82352
82353 2006-04-20  Bruno Haible  <bruno@clisp.org>
82354
82355         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82356         one argument, so that the code will be portable to Autoconf 2.60.
82357         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82359         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82360
82361 2006-04-19  Derek Price  <derek@ximbiot.com>
82362             Eric Blake  <ebb9@byu.net>
82363
82364         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82365         rather than "/full/path.h".  Update comment to match.  Shorten &
82366         generalize m4_translit call via AS_TR_CPP.
82367
82368 2006-04-19  Derek Price  <derek@ximbiot.com>
82369             Eric Blake  <ebb9@byu.net>
82370
82371         * lib/inttypes.h: Correct grammar in comment.
82372
82373 2006-04-18  Derek Price  <derek@ximbiot.com>
82374             Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * modules/inttypes: New file.
82377         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82378
82379 2006-04-18  Derek Price  <derek@ximbiot.com>
82380             Paul Eggert  <eggert@cs.ucla.edu>
82381
82382         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82383         New files.
82384
82385 2006-04-18  Derek Price  <derek@ximbiot.com>
82386             Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/inttypes.h: New file.
82389         * lib/strtoimax.c: Assume <inttypes.h>.
82390
82391 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82394         isn't mounted.  Problem reported by Kir Kolyshkin.
82395
82396 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82399         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82400         Derek R. Price.
82401         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82402         implementation.
82403
82404 2006-04-12  Eric Blake  <ebb9@byu.net>
82405
82406         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82407         is now done automatically by the corresponding Autoconf macro.
82408
82409 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82410
82411         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82412         time_r.h.
82413
82414 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         Merge regex changes from libc, removing some of our
82417         POSIX-conformance changes that were rejected and redoing them in a
82418         less-intrusive way.
82419
82420         * lib/regcomp.c (re_compile_internal, init_dfa):
82421         Length arg is now size_t, not Idx.  All uses changed.
82422         (peek_token): Forward decl now says internal_function.
82423         (__re_error_msgid, __re_error_msgid_idx):
82424         Now static rather than extern with attribute_hidden.
82425         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82426         For some reason libc prefers K&R style defns for external functions.
82427         (regerror) [!defined _LIBC]: Likewise.
82428         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82429         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82430         (build_range_exp, build_collating_symbol):
82431         Use K&R-style defn.
82432         (re_compile_fastmap): Use '\0' to memset, not 0.
82433         (utf8_sb_map): Make the calculations more obvious.
82434         (init_dfa, parse_bracket_exp, build_charclass_op):
82435         Call calloc and cast result, as glibc does.
82436         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82437         (build_range_exp, build_collating_symbol):
82438         Now internal functions.
82439
82440         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82441
82442         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82443         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82444         Don't depend on VMS; depend on __VMS instead, for POSIX
82445         namespace cleanness.
82446         (regoff_t): Define to ssize_t, not long int.
82447
82448         Remove the REG_ macros named below.  Instead, make the old names
82449         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82450         __USE_GNU_REGEX.
82451         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82452         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82453         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82454         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82455         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82456         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82457         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82458         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82459         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82460         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82461         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82462         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82463         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82464         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82465         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82466         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82467         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82468         (REG_NREGS):
82469         Remove.  All uses replaced by the old RE_* names.
82470         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82471         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82472         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82473         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82474         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82475         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82476         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82477         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82478         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82479         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82480         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82481         Don't bother having these macros be independent of each others'
82482         values, since they no longer exist in the POSIX name space.
82483
82484         Rename the following member names back to their old names,
82485         unless !__USE_GNU_REGEX.  All uses changed back.
82486         (buffer): Renamed from re_buffer.
82487         (allocated): Renamed from re_allocated.
82488         (used): Renamed from re_used.
82489         (syntax): Renamed from re_syntax.
82490         (fastmap): Renamed from re_fastmap.
82491         (translate): Renamed from re_translate.
82492         (can_be_null): Renamed from re_can_be_null.
82493         (regs_allocated): Renamed from re_regs_allocated.
82494         (fastmap_accurate): Renamed from re_fastmap_accurate.
82495         (no_sub): Renamed from re_no_sub.
82496         (not_bol): Renamed from re_not_bol.
82497         (not_eol): Renamed from re_not_eol.
82498         (newline_anchor): Renamed from re_newline_anchor.
82499         (num_regs): Renamed from rm_num_regs.
82500         (start): Renamed from rm_start.
82501         (end): Renamed from rm_end.
82502
82503         (free_state): Move up a bit.
82504
82505         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82506         #define to be empty.
82507         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82508         when that is what is intended.
82509         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82510         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82511         (MAX): New macro.
82512         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82513         All uses changed back to re_malloc, etc.  It's now the caller's
82514         responsibility to check for overflow; all callers changed.
82515         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82516         (re_x2nrealloc): Remove.
82517         (free_state): Remove decl.
82518
82519         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82520         (re_set_registers, re_exec):
82521         Use K&R-style defn.
82522
82523         2006-01-31  Roland McGrath  <roland@redhat.com>
82524
82525         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82526         Reported by Mike Frysinger <vapier@gentoo.org>.
82527
82528         2006-01-15  Andreas Jaeger  <aj@suse.de>
82529
82530         [BZ #1950]
82531         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82532         build_wcs_upper_buffer change.
82533         (build_wcs_upper_buffer): Change return type.
82534
82535         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82536
82537         * lib/regex_internal.h: Include <stdint.h> if available.
82538
82539         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82540
82541         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82542
82543         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82544
82545         * lib/regcomp.c: Adjust for changed secondary hash function.
82546
82547         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82548
82549         * lib/regex.h: Pretty printing.
82550         Clean up namespace a bit.
82551
82552         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82553
82554         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82555         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82556
82557         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82558                     Ulrich Drepper  <drepper@redhat.com>
82559
82560         [BZ #1302]
82561         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82562         changed.
82563         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82564
82565         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82566
82567         [BZ #281]
82568         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82569         * lib/regcomp.c: Remove unnecessary uses of
82570         unsigned RE_TRANSLATE_TYPE.
82571         * lib/regex_internal.h: Likewise.
82572         * lib/regex_internal.c: Likewise.
82573         * lib/regexec.c: Likewise.
82574         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82575
82576         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82577
82578         * lib/regexec.c (find_recover_state): Remove unnecessary
82579         initialization.
82580         (transit_state_bkref): Make DFA a const pointer.
82581         (get_subexp): Likewise.
82582         (check_arrival): Likewise.
82583         (update_cur_sifted_state): Likewise.
82584         (re_search_internal): Likewise.
82585         (prune_impossible_nodes): Likewise.
82586         (acquire_init_state_context): Likewise.
82587         (proceed_next_node): Likewise.
82588         (set_regs): Likewise.
82589         (free_fail_stack_return): Likewise.
82590         (check_arrival_expand_ecl): Mark DFA parameter as const.
82591         (check_arrival_expand_ecl_sub): Likewise.
82592         (check_subexp_limits): Likewise.
82593         (sub_epsilon_src_nodes):  Likewise.
82594         (add_epsilon_src_nodes):  Likewise.
82595         (merge_state_array): Likewise.
82596         (update_regs): Likewise.
82597         (build_trtable): Likewise.
82598         (sift_states_backward): Mark MCTX parameter as const.
82599         (build_sifted_states): Likewise.
82600         (update_cur_sifted_state): Likewise.
82601         (sift_states_mkref): Likewise.
82602         (check_arrival_expand_ecl): Mark eclosure as const.
82603         (check_dst_limits_calc_pos_1): Likewise.
82604         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82605         pointer.
82606
82607         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82608
82609         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82610         (transit_state_sb): Likewise.
82611         (transit_state_mb): Likewise.
82612         (sift_states_iter_mb): Likewise.
82613         (check_arrival_add_next_nodes): Likewise.
82614         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82615         [_LIBC] (re_search_2_stub): Use mempcpy.
82616
82617         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82618         mbrtowc for very simple UTF-8 case.
82619
82620         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82621         a pointer-to-const.
82622         (re_acquire_state_context): Likewise.
82623         * lib/regex_internal.h: Adjust prototypes.
82624
82625         * lib/regex.c: Prevent using C++ compilers.
82626
82627         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82628         (re_acquire_state_context): Likewise.
82629
82630 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82631
82632         * modules/regex (Depends-on): Add ssize_t.
82633
82634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82637         translation table.
82638
82639 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82640
82641         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82642
82643 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82644             Bruno Haible  <bruno@clisp.org>
82645
82646         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82647         <sys/types.h> and <inttypes.h>.
82648
82649 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82650
82651         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82652         `__error_t_defined', so argp.h will not typedef the former.
82653
82654 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82657         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82658         glibc names.  Even if glibc is changed to conform to POSIX, the
82659         traditional names will be available anyway, since regex depends on
82660         the extensions module.  Also, fix a longstanding typo in the
82661         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82662         reported by Emanuele Giaquinta.  Also, change sense of cached
82663         variable, so that the message makes sense.
82664
82665 2006-03-24  Simon Josefsson  <jas@extundo.com>
82666
82667         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82668         including some doc fixes.
82669         (base64_encode_alloc): Fix +1 bug on allocation failures.
82670
82671 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82672
82673         * lib/base64.c (base64_encode): Do not read past end of array with
82674         unsanitized input on systems with CHAR_BIT > 8.
82675
82676 2006-03-24  Eric Blake  <ebb9@byu.net>
82677
82678         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82679
82680 2006-03-22  Karl Berry  <karl@gnu.org>
82681
82682         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82683         * config/srclistvars.sh (COREUTILS): new var.
82684
82685 2006-03-17  Jim Meyering  <jim@meyering.net>
82686
82687         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82688         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82689
82690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82693         no longer needs it.  Instead, check that regoff_t is as least
82694         as wide as ptrdiff_t.
82695
82696         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82697         so that our regex.h stays compatible with the installed regex.
82698         This is helpful for installers who configure --without-included-regex.
82699         Problem reported by Emanuele Giaquinta.
82700
82701 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82702
82703         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82704         Typedef to long int, not to off_, as POSIX will likely change
82705         in that direction.
82706
82707 2006-03-15  Eric Blake  <ebb9@byu.net>
82708
82709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82710
82711 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82712
82713         * lib/argp-help.c (validate_uparams): Fix typo
82714         * lib/argp-parse.c (argp_default_options): Consistently begin help
82715         messages with a lowercase letter.
82716
82717 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82718
82719         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82720         overrun buffers and shouldn't be used (much as gets shouldn't be
82721         used).
82722         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82723
82724 2006-03-08  Simon Josefsson  <jas@extundo.com>
82725
82726         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82727         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82728
82729 2006-03-08  Simon Josefsson  <jas@extundo.com>
82730
82731         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82732         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82733
82734 2006-03-08  Simon Josefsson  <jas@extundo.com>
82735
82736         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82737         signal that configure disabled the device.
82738
82739 2006-03-08  Simon Josefsson  <jas@extundo.com>
82740
82741         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82742         languages.
82743
82744 2006-03-07  Simon Josefsson  <jas@extundo.com>
82745
82746         * modules/getopt (Depends-on): Add unistd.
82747
82748         * modules/unistd: New file.
82749
82750 2006-03-07  Simon Josefsson  <jas@extundo.com>
82751
82752         * modules/gc-random: New file.
82753
82754 2006-03-07  Simon Josefsson  <jas@extundo.com>
82755
82756         * m4/unistd_h.m4: New file.
82757
82758 2006-03-07  Simon Josefsson  <jas@extundo.com>
82759
82760         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82761         test to be side-effect free by storing the result in the cache
82762         variable gl_cv_lib_readline, and moving the assignment of
82763         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82764         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82765
82766 2006-03-07  Simon Josefsson  <jas@extundo.com>
82767
82768         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82769         error on missing devices (the functions will return an error).
82770
82771         * m4/gc.m4: Move random stuff to gc-random.m4
82772
82773 2006-03-07  Simon Josefsson  <jas@extundo.com>
82774
82775         * lib/unistd_.h: New file.
82776
82777 2006-03-07  Simon Josefsson  <jas@extundo.com>
82778
82779         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82780
82781 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82782
82783         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82784         Problem reported by Juan Manuel Guerrero.
82785
82786 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82789         the unistd module.
82790         * lib/getlogin_r.c: Likewise.
82791         * lib/getlogin_r.h: Likewise.
82792         * lib/glob.c: Likewise.
82793         * lib/pagealign_alloc.c: Likewise.
82794         * lib/unistd_.h: Remove; no longer needed.
82795
82796 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82799         Add unistd.
82800         * modules/c-stack (Depends-on): Add unistd.
82801         * modules/getlogin_r: Likewise.
82802         * modules/glob: Likewise.
82803         * modules/pagealign_alloc: Likewise.
82804         * modules/unistd (Files): Remove lib/unistd_.h.
82805         (EXTRA_DIST): Remove.
82806         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82807         need unistd_.h.
82808         (MOSTLYCLEANFILES): Remove unistd.h-t.
82809
82810 2006-03-03  Simon Josefsson  <jas@extundo.com>
82811
82812         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82813
82814 2006-03-03  Simon Josefsson  <jas@extundo.com>
82815
82816         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82817         libidn and bison.
82818
82819 2006-03-03  Simon Josefsson  <jas@extundo.com>
82820
82821         * build-aux/maint.mk: Add indent target.
82822
82823 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82824
82825         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82826         our replacement poll.h in any case, to avoid a differing
82827         declaration from a system header.  Seen on AIX.
82828
82829 2006-03-01  Simon Josefsson  <jas@extundo.com>
82830
82831         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82832         <kasal@ucw.cz>.
82833
82834 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * modules/gettime (Depends-on): Add extensions module.
82837         * modules/nanosleep (Depends-on): Likewise.
82838         * modules/settime (Depends-on): Likewise.
82839
82840 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82841
82842         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82843         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82844         pedantically.
82845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82846         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82847
82848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82849         not "==".  Reported by Ralf Wildenhues.
82850
82851 2006-03-01  Karl Berry  <karl@gnu.org>
82852
82853         * doc/Copyright/request-*: new files, synced from gnuorg.
82854
82855 2006-03-01  Karl Berry  <karl@gnu.org>
82856
82857         * config/srclist.txt (Copyright/*): new entries.
82858
82859 2006-02-28  Simon Josefsson  <jas@extundo.com>
82860
82861         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82862
82863 2006-02-27  Simon Josefsson  <jas@extundo.com>
82864
82865         * lib/base64.h: Indent #define's.  From Jim Meyering
82866         <jim@meyering.net>.
82867
82868 2006-02-27  Jim Meyering  <jim@meyering.net>
82869
82870         Revert the change of 2006-02-24, so these files can continue
82871         to be sync'd from gettext.
82872         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82873         of `config.h'.
82874
82875 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * modules/intprops: New file.
82878         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82879         Add intprops.
82880         * modules/getloadavg (Files): Remove lib/intprops.h.
82881         (Depends-on): Add intprops.
82882         * modules/human: Likewise.
82883         * modules/inttostr: Likewise.
82884         * modules/openat: Likewise.
82885         * modules/sig2str: Likewise.
82886         * modules/userspec: Likewise.
82887         * modules/utimecmp: Likewise.
82888         * modules/xnanosleep: Likewise.
82889         * modules/xstrtol: Likewise.
82890
82891 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82892
82893         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82894         * modules/lock-tests (TESTS): Use $(EXEEXT).
82895         * modules/tls-tests: Likewise.
82896         * modules/argp-tests: Likewise.
82897         (check_PROGRAMS): New var, replacing...
82898         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82899
82900 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82901
82902         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82903         `config.h'.
82904
82905 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82908
82909 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82910
82911         Sync from coreutils.
82912         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82913         gl_CHDIR_SAFER.
82914
82915 2006-02-22  Jim Meyering  <jim@meyering.net>
82916
82917         Sync from coreutils.
82918         * m4/chdir-safer.m4: New file.
82919
82920 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82921
82922         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82923         AT_FDCWD exceeds INT_MAX.
82924         * lib/openat.h (AT_FDCWD): Likewise.
82925
82926 2006-02-17  Eric Blake  <address@hidden>
82927
82928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82929
82930 2006-02-16  Simon Josefsson  <jas@extundo.com>
82931
82932         * modules/getaddrinfo (Depends-on): Add sys_socket.
82933
82934 2006-02-15  Simon Josefsson  <jas@extundo.com>
82935
82936         * build-aux/maint.mk: Add dsyntax-check rule.
82937
82938 2006-02-15  Eric Blake  <ebb9@byu.net>
82939
82940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82941         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82942         'present but cannot compile' warnings on cygwin.
82943         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82944         use ws2tcpip.h if sys/socket.h works.
82945         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82946         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82947
82948 2006-02-14  Simon Josefsson  <jas@extundo.com>
82949
82950         * modules/maintainer-makefile (Files): Rename.
82951
82952         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82953         and (the local) Makefile.cfg to maint-cfg.mk.
82954
82955         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82956         to the latter.
82957
82958         * modules/maintainer-makefile: New module.
82959
82960         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82961         severaly stripped to make it possible to build it up from scratch
82962         with reliable tests.
82963
82964         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82965         fixes to permit overriding the default actions when configure and
82966         makefile are not available.
82967
82968 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82969
82970         Sync from coreutils.
82971         * modules/lstat (Depends-on): Don't depend on xalloc.
82972         (License): Change from GPL to LGPL, since this is now simply a
82973         replacement for a libc function.
82974
82975 2006-02-14  Jim Meyering  <jim@meyering.net>
82976
82977         Sync from coreutils.
82978
82979         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82980         failure on deficient systems, and simplify gnulib lgpl dependencies.
82981         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82982         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82983
82984         * lib/xalloc-die.c: Remove unused definition of N_.
82985
82986 2006-02-14  Jim Meyering  <jim@meyering.net>
82987
82988         Sync from coreutils.
82989         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82990         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82991         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82992         double-quote uses of that variable, to accommodate the rare case in
82993         which getmntent is available in none of the libraries checked.  This
82994         happens at least on FreeBSD 5.0.
82995
82996 2006-02-13  Simon Josefsson  <jas@extundo.com>
82997
82998         * gnulib-tool (Usage): Fix --import, from
82999         karl@freefriends.org (Karl Berry).
83000
83001 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83002
83003         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83004
83005 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83006
83007         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83008         "autoupdate" on 2005-12-12.
83009
83010 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83011
83012         * modules/closeout (Depends-on): Remove atexit.
83013
83014 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83015
83016         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83017         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83018
83019 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83022         __EXTENSIONS__ if this causes compilation to fail.  Problem
83023         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83024         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83025
83026 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83027
83028         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83029         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83031         All uses changed.
83032
83033 2006-01-26  Simon Josefsson  <jas@extundo.com>
83034
83035         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83036         prototype is visible on mingw32.
83037
83038         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83039         for mingw32.
83040
83041         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83042         mingw32).
83043
83044 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83047         attempt to open for write; this always fails, at least on POSIX
83048         hosts.  This reinstates the 2006-01-09 change, which was
83049         inadvertently removed.
83050
83051 2006-01-26  Bruno Haible  <bruno@clisp.org>
83052
83053         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83054         Reported by Paul Eggert.
83055
83056 2006-01-26  Bruno Haible  <bruno@clisp.org>
83057             Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         * lib/stdbool_.h (_Bool)
83060         [(! (defined __cplusplus || defined __BEOS__)
83061           && !defined __GNUC__
83062           && !(defined __HP_cc || defined __xlc__
83063                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83064                || defined __sgi))]:
83065         #define to signed char in these cases too; this simplifies
83066         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83067         etc., separately) and makes it more conservative.
83068
83069 2006-01-25  Simon Josefsson  <jas@extundo.com>
83070
83071         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83072         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83073         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83074
83075 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83076
83077         * lib/argp-namefrob.h: Bugfix. Remove stray #
83078
83079 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83080
83081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83082         so that we test the test.
83083         Check for yet another HP-UX cc bug involving *bool |= bool.
83084
83085 2006-01-25  Karl Berry  <karl@gnu.org>
83086
83087         * config/srclist.txt (vasnprintf.c): sync lost.
83088
83089 2006-01-25  Jim Meyering  <jim@meyering.net>
83090
83091         Sync from the stable (b5) branch of coreutils:
83092
83093         * lib/fts.c (fts_children): Don't let close() clobber errno from
83094         failed fchdir().
83095
83096         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83097         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83098         a dangling symlink.  That can also happen at least for ELOOP.
83099         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83100         FYI, this bug predates the inclusion of fts.c in coreutils.
83101
83102         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83103         in their own block, so pre-c99 compilers don't object.
83104
83105         Avoid the double-free (first in fts_read, second in fts_close) that
83106         would occur when an `active' directory is made inaccessible (e.g.,
83107         via chmod a-x) during a traversal.
83108         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83109         before returning.  Reproduce this failure by
83110         mkdir -p a/b; cd a; chmod a-x . b
83111         Reported by Stavros Passas.
83112
83113 2006-01-25  Jim Meyering  <jim@meyering.net>
83114
83115         * lib/fileblocks.c: Remove more useless parentheses.
83116         * lib/readutmp.h: Likewise.
83117
83118 2006-01-25  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83121         warnings.
83122         Reported by Paul Eggert.
83123
83124 2006-01-25  Bruno Haible  <bruno@clisp.org>
83125
83126         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83127         rid of a trap command. For Solaris sh.
83128         Reported by Mark D. Baushke <mdb@gnu.org>.
83129
83130 2006-01-24  Simon Josefsson  <jas@extundo.com>
83131
83132         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83133         Bruno.
83134
83135 2006-01-24  Karl Berry  <karl@gnu.org>
83136
83137         * config/srclist.txt (argp-namefrob.h): sync lost.
83138
83139 2006-01-24  Jim Meyering  <jim@meyering.net>
83140
83141         * modules/openat (Files): Add lib/intprops.h.
83142         From Mark D. Baushke.
83143
83144 2006-01-24  Jim Meyering  <jim@meyering.net>
83145
83146         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83147         Reported by Mark D. Baushke.
83148
83149 2006-01-24  Jim Meyering  <jim@meyering.net>
83150
83151         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83152
83153 2006-01-24  Bruno Haible  <bruno@clisp.org>
83154
83155         * modules/strnlen (Maintainer): Change from glibc to all.
83156
83157 2006-01-24  Bruno Haible  <bruno@clisp.org>
83158
83159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83160         Patch by Paul Eggert.
83161
83162 2006-01-24  Bruno Haible  <bruno@clisp.org>
83163
83164         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83165         already has it.
83166         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83167         2005-11-26.
83168
83169         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83170         'signed char' to avoid problems with the built-in _Bool type.
83171         Reported by Paul Eggert on 2005-11-26.
83172
83173 2006-01-24  Bruno Haible  <bruno@clisp.org>
83174
83175         * gnulib-tool (func_import): Avoid constructing complicated sed
83176         expressions inside backquote.
83177         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83178
83179 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83180
83181         These changes imported from libc.
83182         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83183         test and two separate function calls.
83184         * lib/strndup.c (__strndup): Add libc_hidden_def.
83185
83186 2006-01-23  Simon Josefsson  <jas@extundo.com>
83187
83188         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83189         Remove the test_*_SOURCES variable: automake infers it by default.
83190         * modules/tls-tests: Likewise.
83191
83192 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83193
83194         Work around porting bugs reported by Dieter in
83195         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83196         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83197         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83198         Include "getopt.h" first, to check interface.
83199         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83200         !HAVE_DECL_GETENV.
83201         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83202         (__strndup): Revert to K&R-style function dfns, the glibc style.
83203         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83204         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83205         Include strnlen.h first, to get prototype properly.
83206         (strnlen): Renamed from __strnlen.
83207         Remove weak alias.
83208
83209 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83212
83213 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83214
83215         * config/srclist.txt: Adjust to reflect glibc reorganization.
83216         This affects only comments.
83217
83218 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83219
83220          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83221          Reported by Bruce Korb <bkorb@gnu.org>.
83222
83223 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83226         to pacify gcc -Wswitch-default.
83227
83228 2006-01-22  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83231         temporary buffer for sprintf, take into account the precision also
83232         for 'd', 'i', 'u', 'o', 'x', 'X'.
83233
83234 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83235
83236         * modules/argp-tests: New module
83237         * tests/test-argp.c: New file
83238         * tests/test-argp-2.sh: New file
83239
83240 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83241
83242         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83243         (__argp_base_name): Removed
83244         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83245         typo.
83246         (__argp_base_name): Provide macro definition or extern declaration
83247         depending on the configuration
83248
83249 2006-01-20  Simon Josefsson  <jas@extundo.com>
83250
83251         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83252
83253 2006-01-20  Simon Josefsson  <jas@extundo.com>
83254
83255         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83256
83257 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83258
83259         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83260         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83261         Suggested by Bruno Haible.
83262
83263 2006-01-20  Karl Berry  <karl@gnu.org>
83264
83265         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83266         until changes propagate, I guess.
83267
83268 2006-01-19  Simon Josefsson  <jas@extundo.com>
83269
83270         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83271
83272 2006-01-19  Simon Josefsson  <jas@extundo.com>
83273
83274         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83275
83276 2006-01-19  Simon Josefsson  <jas@extundo.com>
83277
83278         * gnulib-tool: Set check_PROGRAMS.
83279
83280         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83281         modules/des-tests, modules/gc-arcfour-tests,
83282         modules/gc-arctwo-tests, modules/gc-des-tests,
83283         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83284         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83285         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83286         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83287         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83288         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83289         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83290         test_*_SOURCES.
83291
83292 2006-01-18  Simon Josefsson  <jas@extundo.com>
83293
83294         * modules/socklen (Depends-on): Depend on sys_socket.
83295
83296 2006-01-18  Simon Josefsson  <jas@extundo.com>
83297
83298         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83299         modules/des-tests, modules/gc-arcfour-tests,
83300         modules/gc-arctwo-tests, modules/gc-des-tests,
83301         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83302         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83303         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83304         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83305         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83306         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83307         $(EXEEXT) to automake TESTS variable, for mingw32.
83308
83309 2006-01-17  Simon Josefsson  <jas@extundo.com>
83310
83311         * modules/socklen (Include): Need sys/socket.h.
83312
83313 2006-01-17  Bruno Haible  <bruno@clisp.org>
83314
83315         * modules/ssize_t (Include): Add <sys/types.h>.
83316
83317 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83318
83319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83320         it's not portable and it doesn't work with cross-compiles.
83321         Problem reported by Bruno Haible.  Fix missing-$ typo in
83322         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83323         -zignore from being used with Sun's C compiler.
83324
83325 2006-01-12  Simon Josefsson  <jas@extundo.com>
83326
83327         * lib/base64.c: Fix warning, reported by Bruno Haible
83328         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83329
83330 2006-01-12  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/ldd: New file.
83333         * build-aux/ldd.sh.in: New file.
83334         * MODULES.html.sh (Support for building libraries and executables): Add
83335         ldd.
83336
83337 2006-01-12  Bruno Haible  <bruno@clisp.org>
83338
83339         * m4/ldd.m4: New file.
83340
83341 2006-01-12  Bruno Haible  <bruno@clisp.org>
83342
83343         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83344         endless loop while replacing $auxdir with build-aux.
83345
83346 2006-01-11  Simon Josefsson  <jas@extundo.com>
83347
83348         * lib/stdint_.h (SIZE_MAX): Add missing (.
83349
83350 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83351
83352         Sync from coreutils.
83353         * lib/md5.c: Fix commentary typos.
83354         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83355         * lib/md5.h (__attribute__): Remove; unused.
83356         * lib/sha1.c: Fix commentary to match md5 better.
83357         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83358         so that we don't need to worry about alignment.  All uses changed.
83359         This merges the 2005-10-28 md5 change into sha1.
83360
83361 2006-01-11  Jim Meyering  <jim@meyering.net>
83362
83363         Sync from coreutils.
83364         * lib/md5.c (OP): Fix spacing.
83365
83366 2006-01-11  Bruno Haible  <bruno@clisp.org>
83367
83368         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83369         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83370         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83371
83372 2006-01-11  Bruno Haible  <bruno@clisp.org>
83373
83374         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83375         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83376         the "early" section as well.
83377
83378 2006-01-11  Bruno Haible  <bruno@clisp.org>
83379
83380         Avoid "ar: no archive members specified" error on MacOS X.
83381         * gnulib-tool (func_modules_add_dummy): New function.
83382         (func_import, func_create_testdir): Invoke it.
83383
83384 2006-01-11  Bruno Haible  <bruno@clisp.org>
83385
83386         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83387         with $auxdir in AC_CONFIG_FILES statements.
83388
83389 2006-01-11  Bruno Haible  <bruno@clisp.org>
83390
83391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83392         Initialize also noinst_HEADERS to empty.
83393
83394 2006-01-11  Bruno Haible  <bruno@clisp.org>
83395
83396         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83397         variables.
83398         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83399         autoreconf.
83400
83401 2006-01-11  Bruno Haible  <bruno@clisp.org>
83402
83403         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83404         overridable by the user.
83405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83406
83407 2006-01-10  Simon Josefsson  <jas@extundo.com>
83408
83409         * modules/sys_socket: New file.
83410
83411 2006-01-10  Simon Josefsson  <jas@extundo.com>
83412
83413         * m4/sys_socket_h.m4: New file.
83414
83415 2006-01-10  Simon Josefsson  <jas@extundo.com>
83416
83417         * lib/socket_.h: New file.
83418
83419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83420
83421         * modules/readutmp (Maintainer): Add myself.
83422
83423 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83426         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83427         People who are still concerned with buggy memcmp implementations
83428         can invoke gl_FUNC_MEMCMP themselves.
83429
83430 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83431
83432         * lib/regex_internal.h (BITSET_WORD_BITS):
83433         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83434         preprocessor mishandles large unsigned values as if they were signed.
83435         Problem reported by Claudio Fontana in
83436         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83437
83438 2006-01-10  Jim Meyering  <jim@meyering.net>
83439
83440         Avoid the double-free (first in fts_read, second in fts_close) that
83441         would occur when an `active' directory is made inaccessible (e.g.,
83442         via chmod a-x) during a traversal.
83443         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83444         before returning.  Reproduce this failure by
83445         mkdir -p a/b; cd a; chmod a-x . b
83446         Reported by Stavros Passas.
83447
83448         Sync from coreutils.
83449         * lib/sha1.c: Tweak grammar in a comment.
83450
83451 2006-01-10  Jim Meyering  <jim@meyering.net>
83452
83453         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83454         Patch by Joerg Sonnenberger.
83455
83456 2006-01-10  Bruno Haible  <bruno@clisp.org>
83457
83458         * modules/readutmp: Depend on module free.
83459         * modules/strtok_r: Depend on module restrict.
83460
83461 2006-01-10  Bruno Haible  <bruno@clisp.org>
83462
83463         * modules/gettext (configure.ac): Add an invocation of
83464         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83465
83466 2006-01-10  Bruno Haible  <bruno@clisp.org>
83467
83468         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83469         Reported by Werner Lemberg <wl@gnu.org>.
83470
83471 2006-01-10  Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/localcharset.c: Update from GNU gettext.
83474
83475 2006-01-10  Bruno Haible  <bruno@clisp.org>
83476
83477         * lib/argp.h (__const): Remove macro. Use const instead.
83478         * lib/argp-fmtstream.h (__const): Likewise.
83479         * lib/glob_.h (__const): Remove macro.
83480         * lib/glob-libc.h: Use const instead of __const.
83481
83482 2006-01-10  Bruno Haible  <bruno@clisp.org>
83483
83484         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83485         variable.
83486         Needed to avoid an automake error regarding the 'gettext' module.
83487
83488 2006-01-09  Simon Josefsson  <jas@extundo.com>
83489
83490         * modules/inet_ntop (Depends-on): Add restrict.
83491
83492 2006-01-09  Simon Josefsson  <jas@extundo.com>
83493
83494         * modules/gc-rijndael-tests (License): Put under LGPL.
83495
83496         * modules/gc-des-tests (License): Likewise.
83497
83498         * modules/gc-arcfour-tests (License): Likewise.
83499
83500         * modules/gc-arctwo-tests (License): Likewise.
83501
83502         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83503
83504         * modules/gc-hmac-sha1-tests (Files): Likewise.
83505
83506         * modules/gc-hmac-md5-tests (License): Likewise.
83507
83508         * modules/gc-sha1-tests (License): Likewise.
83509
83510         * modules/gc-md5-tests (License): Likewise.
83511
83512         * modules/gc-md4-tests (License): Likewise.
83513
83514         * modules/gc-md2-tests (License): Likewise.
83515
83516         * modules/gc-tests (License): Likewise.
83517
83518         * modules/des-tests (License): Likewise.
83519
83520         * modules/md4-tests (License): Likewise.
83521
83522         * modules/md2-tests (License): Likewise.
83523
83524 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         Sync from coreutils:
83527
83528         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83529         * modules/lib-ignore: New file.
83530         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83531         chdir-safer.m4, lchmod.m4.
83532         * modules/openat: Add mkdirat.c, openat-priv.h.
83533
83534 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         Sync from coreutils.
83537         * m4/lib-ignore.m4: New file.
83538         * m4/lchmod.m4: New file.
83539
83540 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83541
83542         Sync from coreutils.
83543         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83544         for write access: POSIX says that must fail.
83545         * lib/fts.c (diropen): Likewise.
83546         * lib/save-cwd.c (save_cwd): Likewise.
83547         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83548         well, for minor improvements on hosts that lack O_DIRECTORY.
83549         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83550         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83551         Fall back on chown if open failed with EACCES.
83552
83553         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83554         Report an error at compile-time if only a 1-second nominal clock
83555         resolution is found.
83556
83557         * lib/lchmod.h: New file.
83558         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83559         (make_dir_parents): Use lchown rather than chown, and
83560         lchmod rather than chmod.
83561
83562         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83563         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83564         "proc" reported by n0dalus.
83565
83566         * lib/mountlist.c: Include <limits.h>.
83567         (dev_from_mount_options)
83568         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83569         New function.  It no longer assumes "dev=" has the System V meaning
83570         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83571         (read_file_system_list)
83572         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83573         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83574         dev= in that case.
83575
83576         * lib/posixtm.h (PDS_PRE_2000): New macro.
83577         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83578         allow_century.  All usages changed.  Reject dates outside the range
83579         1969-1999 if PDS_PRE_2000 is used.
83580
83581 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83582
83583         Sync from coreutils.
83584         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83585         (Time of day items): Mention the possibility of leap seconds.
83586         Problem reported by Dr. David Alan Gilbert.
83587
83588 2006-01-09  Jim Meyering  <jim@meyering.net>
83589
83590         Sync from coreutils.
83591
83592         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83593
83594         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83595
83596         * lib/modechange.c (mode_compile): Reject an invalid mode string
83597         that starts with an octal digit.  From Andreas Gruenbacher.
83598
83599         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83600         and dup to open_safer and dup_safer, respectively.
83601         (openat_permissive): Fix typo in comment.
83602
83603         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83604         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83605         (_): Remove; no longer needed.
83606         (openat): Renamed from rpl_openat; no need for rpl_openat
83607         since openat.h renames openat for us.
83608         Replace most of the body with a call to openat_permissive,
83609         to avoid duplicate code.
83610         Port to (probably hypothetical) environments were mode_t is
83611         wider than int.
83612         (openat_permissive): Require mode arg, so that we can check
83613         types better.  Put it just after flags.  Change cwd failure
83614         indicator from pointer-to-bool to pointer-to-errno-value.
83615         All callers changed.
83616         Invoke openat_save_fail and/or openat_restore_fail if
83617         cwd_errno is null, so that openat can call us.
83618         (openat_permissive, fdopendir, fstatat, unlinkat):
83619         Simplify errno handling to avoid some duplicate code,
83620         as it's OK to set errno on success.
83621         * lib/openat.h: Revamp code so that function macros depend on
83622         __OPENAT_PREFIX only, not also on AT_FDCWD.
83623         (openat_ro): Remove.  Caller changed to use openat_permissive.
83624         (openat_permissive): Now a macro, if not a function.
83625         (openat_restore_fail, openat_save_fail): Now always functions,
83626         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83627
83628         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83629         and openat.c.
83630         * lib/mkdirat.c: Include openat-priv.h.
83631         Remove definitions of macros defined therein.
83632         * lib/openat.c: Likewise.
83633
83634         * lib/mkdirat.c (mkdirat): New file and function.
83635         * lib/openat.h (mkdirat): Declare.
83636
83637         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83638
83639         * lib/openat.h (openat_permissive): Declare.
83640         (openat_ro): Define.
83641
83642         * lib/openat.c (EXPECTED_ERRNO): New macro.
83643         (openat_permissive): New function -- used in remove.c rewrite.
83644         (all functions): Set errno just before returning, only if there
83645         was an actual failure.
83646         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83647
83648         Emulate openat-family functions using Linux's procfs, if possible.
83649         Idea and some code based on Ulrich Drepper's glibc changes.
83650
83651         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83652         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83653         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83654         before falling back on save_cwd and restore_cwd.
83655         (fdopendir, fstatat, unlinkat): Likewise.
83656
83657         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83658         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83659
83660         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83661         as second argument to va_arg.  Otherwise, some versions of gcc
83662         warn that `if this code is reached, the program will abort'.
83663
83664 2006-01-09  Jim Meyering  <jim@meyering.net>
83665
83666         Sync from coreutils.
83667         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83668         Require openat-priv.h.
83669
83670 2006-01-09  Bruno Haible  <bruno@clisp.org>
83671
83672         * modules/strnlen (Include): Use strnlen.h.
83673
83674 2006-01-09  Bruno Haible  <bruno@clisp.org>
83675
83676         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83677
83678 2006-01-09  Bruno Haible  <bruno@clisp.org>
83679
83680         * lib/sysexit_.h (EX_OK): New macro.
83681         Suggested by Martin Lambers <marlam@marlam.de>.
83682
83683 2006-01-09  Bruno Haible  <bruno@clisp.org>
83684
83685         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83686         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83687
83688 2006-01-09  Bruno Haible  <bruno@clisp.org>
83689
83690         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83691         numbers.
83692
83693 2006-01-09  Bruno Haible  <bruno@clisp.org>
83694
83695         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83696         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83697         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83698         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83699
83700 2006-01-09  Bruno Haible  <bruno@clisp.org>
83701
83702         * build-aux/javacomp.sh.in: New file, moved from lib/.
83703         * modules/javacomp-script (Files): Update.
83704         (configure.ac): Add AC_CONFIG_FILES invocation.
83705         (EXTRA_DIST): Remove variable.
83706
83707         * build-aux/javaexec.sh.in: New file, moved from lib/.
83708         * modules/javaexec (Files): Update.
83709         (configure.ac): Add AC_CONFIG_FILES invocation.
83710         (EXTRA_DIST): Remove javaexec.sh.in.
83711
83712         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83713         * modules/csharpcomp-script (Files): Update.
83714         (configure.ac): Add AC_CONFIG_FILES invocation.
83715         (EXTRA_DIST): Remove variable.
83716
83717         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83718         * modules/csharpexec (Files): Update.
83719         (configure.ac): Add AC_CONFIG_FILES invocation.
83720         (EXTRA_DIST): Remove csharpexec.sh.in.
83721
83722 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83723
83724         Sync from coreutils.
83725
83726         Add POSIX ACL support
83727         * lib/acl.h (copy_acl, set_acl): Add declarations.
83728         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83729         systems other than Linux.
83730         (chmod_or_fchmod): New function: use fchmod when possible,
83731         and chmod otherwise.
83732         (file_has_acl): Add a POSIX ACL implementation, with a
83733         Linux-specific subcase.
83734         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83735         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83736         acls are unsupported.
83737         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83738         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83739         are unsupported.
83740
83741 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83742
83743         Sync from coreutils.
83744         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83745
83746 2006-01-07  Bruno Haible  <bruno@clisp.org>
83747
83748         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83749         gl_EARLY.
83750
83751 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83752
83753         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83754         Problem reported for Mingw by Mark Junker.
83755
83756 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * README: Gnulib normally doesn't generate a tarball.
83759
83760 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83763         long int, not int, for nanosecond counts, so that people who are
83764         used to POSIX struct timespec won't be surprised.  Reported by Jim
83765         Meyering.
83766
83767 2005-12-28  Bruno Haible  <bruno@clisp.org>
83768
83769         * build-aux/config.rpath: Update from GNU gettext.
83770
83771 2005-12-16  Jim Meyering  <jim@meyering.net>
83772
83773         * modules/fprintftime: New module.
83774         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83775
83776 2005-12-16  Jim Meyering  <jim@meyering.net>
83777
83778         * m4/fprintftime.m4: New file.
83779
83780 2005-12-16  Jim Meyering  <jim@meyering.net>
83781
83782         * lib/fprintftime.c, lib/fprintftime.h: New files.
83783
83784 2005-12-15  Simon Josefsson  <jas@extundo.com>
83785
83786         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83787         new m4/socklen.m4.
83788
83789 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83790
83791         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83792         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83793
83794 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83795
83796         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83797         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83798         struct uparams is valid. Fall back to the default values if it is
83799         not.
83800
83801 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83802
83803         * modules/argp (Files): Add argp-pin.c
83804         (Depends-on): dirname
83805         (lib_SOURCES): Add argp-pin.c
83806
83807 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83808
83809         * m4/argp.m4:  Check if program_invocation_name and
83810         program_invocation_short_name are declared and define appropriate
83811         macros if they are not.
83812
83813 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83814
83815         * lib/argp-help.c (__argp_base_name): New function
83816         (__argp_short_program_name): Rewrite using __argp_base_name
83817         * lib/argp-namefrob.h: Define program_invocation_name and
83818         program_invocation_short_name if requested
83819         (__argp_base_name): Add prototype
83820         * lib/argp-parse.c (argp_def): Use gettext wrappers
83821         (argp_default_parser): Use __argp_base_name
83822         * lib/argp-pin.c: New file. Defines program_invocation_name and
83823         program_invocation_short_name on systems that lack them.
83824
83825 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83828         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83829         porting problem reported by Georg Schwarz in
83830         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83831
83832 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83835         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83836         porting problem reported by Georg Schwarz in
83837         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83838
83839 2005-12-05  Bruno Haible  <bruno@clisp.org>
83840
83841         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83842         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83843         Reported by Mark Junker <mjscod@gmx.de>.
83844
83845 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83848         Use implementation from Albert Chin, with some
83849         comments/corrections by Stepan Kasal and myself.
83850
83851 2005-12-02  Bruno Haible  <bruno@clisp.org>
83852
83853         * gnulib-tool (func_import): Accept GPLed build tool modules when
83854         --lgpl is given.
83855         * modules/csharpcomp-script: New file.
83856         * modules/csharpcomp: Depend on it.
83857         * modules/javacomp-script: New file.
83858         * modules/javacomp: Depend on it.
83859         Suggested by Simon Josefsson.
83860
83861 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83862
83863         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83864         statement, to work around an HP-UX 10.20 compiler bug reported by
83865         Peter O'Gorman.
83866
83867 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * modules/savedir (Depends-on): Add openat.
83870
83871 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83874         (uintmax_t) [defined uintmax_t]: Do not declare.
83875         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83876         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83877         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83878         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83879         sake of portability to weird hosts that C allows (though we don't
83880         know of any practical examples).
83881
83882         * lib/savedir.h (fdsavedir): New decl.
83883         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83884         contains most of the former guts of savedir.
83885         (savedir): Use savedirstream.
83886         Include "openat.h".
83887
83888 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83889
83890         * modules/obstack (Files): Add m4/ulonglong.m4.
83891         Problem reported by Davide Angelocola.
83892
83893 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83894
83895         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83896         coreutils no longer futzes with rounding modes.
83897
83898 2005-11-14  Jim Meyering  <jim@meyering.net>
83899
83900         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83901         replacement of mkstemp.
83902
83903 2005-11-10  Simon Josefsson  <jas@extundo.com>
83904
83905         * lib/readline.c: Remove EOL.
83906
83907 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * modules/gethrxtime (Depends-on): Add gettime.
83910
83911 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83914         or gettimeofday; no longer needed.
83915
83916 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83919         time business.
83920         (gethrxtime) [! (HAVE_NANOUPTIME
83921         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83922         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83923         our own approximation.
83924
83925 2005-11-08  Eric Blake  <ebb9@byu.net>
83926
83927         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83928
83929 2005-11-08  Eric Blake  <ebb9@byu.net>
83930
83931         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83932
83933 2005-11-04  Bruno Haible  <bruno@clisp.org>
83934
83935         * gnulib-tool: Implement --update mode.
83936
83937 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83938
83939         Fix porting problem reported by Theodoros V. Kalamatianos.
83940         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83941         Don't assume that futimes failing means we must fail.
83942
83943 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83946         variables to suggest the intended function of the PATH_MAX check.
83947
83948 2005-10-30  Kean Johnston  <jkj@sco.com>
83949
83950         Trivial changes to support SCO systems.
83951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83952         as PATH_MAX.
83953         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83954         where __ptr is null when no I/O is pending.
83955
83956 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83959         leave errno alone.  Problem reported by Dmitry V. Levin.
83960
83961 2005-10-28  Simon Josefsson  <jas@extundo.com>
83962
83963         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83964         Test more.
83965
83966         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83967
83968         * modules/md2, modules/md2-tests: New files.
83969
83970 2005-10-28  Simon Josefsson  <jas@extundo.com>
83971
83972         * m4/inet_ntop.m4: More tests.
83973
83974         * m4/gc-md2.m4, md2.m4: New file.
83975
83976 2005-10-28  Simon Josefsson  <jas@extundo.com>
83977
83978         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83979         "restrict" keywords, as per POSIX.  Protect the function
83980         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83981         Don't use K&R prototypes.  Check the sprintf return values.
83982         Re-define EAFNOSUPPORT if not present.  Indent.
83983
83984         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83985         suggested by Bruno Haible <bruno@clisp.org>.
83986
83987         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83988
83989         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83990
83991         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83992         libgcrypt).
83993
83994         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83995
83996         * lib/md2.h, lib/md2.c: New files.
83997
83998 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83999
84000         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84001         errno alone.  Problem reported by Frederic Jolliton.
84002
84003 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         * modules/verify (License): Change from GPL to LGPL.  This is a
84006         tiny module and there are apparently near-equivalents that are
84007         under the BSD license.
84008
84009 2005-10-24  Simon Josefsson  <jas@extundo.com>
84010
84011         * modules/sha1: Relicense to LGPL.
84012
84013 2005-10-24  Simon Josefsson  <jas@extundo.com>
84014
84015         * lib/md4.h: Shrink buffer size, now that we changed the type.
84016
84017 2005-10-23  Simon Josefsson  <jas@extundo.com>
84018
84019         * gnulib-tool (func_import): Fix --tests-base.
84020
84021 2005-10-22  Simon Josefsson  <jas@extundo.com>
84022
84023         * modules/arcfour (Depends-on): Need stdint.
84024
84025 2005-10-22  Simon Josefsson  <jas@extundo.com>
84026
84027         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84028         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84029
84030 2005-10-22  Simon Josefsson  <jas@extundo.com>
84031
84032         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84033         suggested by Bruno Haible <bruno@clisp.org>.
84034
84035 2005-10-22  Simon Josefsson  <jas@extundo.com>
84036
84037         * lib/crc.h: Include stddef.h, for size_t.
84038
84039 2005-10-22  Simon Josefsson  <jas@extundo.com>
84040
84041         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84042         arcfour_context struct (simplify test vector testing in GNU
84043         Shishi).
84044
84045 2005-10-21  Simon Josefsson  <jas@extundo.com>
84046
84047         * modules/des, modules/des-tests: New files.
84048
84049         * modules/gc-des, modules/gc-des-tests: New files.
84050
84051         * tests/test-des.c, tests/test-gc-des.c: New file.
84052
84053 2005-10-21  Simon Josefsson  <jas@extundo.com>
84054
84055         * modules/arctwo, modules/arctwo-tests: New files.
84056
84057         * tests/test-arctwo.c: New file.
84058
84059         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84060
84061         * tests/test-gc-arctwo.c: New file.
84062
84063 2005-10-21  Simon Josefsson  <jas@extundo.com>
84064
84065         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84066         Bruno Haible <bruno@clisp.org>.
84067
84068         * m4/gc-des.m4: New file.
84069
84070 2005-10-21  Simon Josefsson  <jas@extundo.com>
84071
84072         * m4/arctwo.m4: New file.
84073
84074         * m4/gc-arctwo.m4: New file.
84075
84076 2005-10-21  Simon Josefsson  <jas@extundo.com>
84077
84078         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84079         block.
84080
84081 2005-10-21  Simon Josefsson  <jas@extundo.com>
84082
84083         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84084         <bruno@clisp.org>.
84085
84086         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84087
84088         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84089         Bruno Haible <bruno@clisp.org>.
84090
84091         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84092         <bruno@clisp.org>.
84093
84094 2005-10-21  Simon Josefsson  <jas@extundo.com>
84095
84096         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84097
84098 2005-10-21  Simon Josefsson  <jas@extundo.com>
84099
84100         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84101
84102 2005-10-21  Simon Josefsson  <jas@extundo.com>
84103
84104         * lib/des.h, lib/des.c: New files.
84105
84106         * lib/gc-gnulib.c: Support DES.c
84107
84108 2005-10-21  Simon Josefsson  <jas@extundo.com>
84109
84110         * lib/arctwo.h, lib/arctwo.c: New files.
84111
84112         * lib/gc-gnulib.c: Support ARCTWO.
84113
84114 2005-10-21  Simon Josefsson  <jas@extundo.com>
84115
84116         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84117         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84118
84119 2005-10-21  Simon Josefsson  <jas@extundo.com>
84120
84121         * gnulib-tool (func_import, func_create_testdir): Define automake
84122         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84123         Makefile.am snippet),
84124         suggested by Bruno Haible <bruno@clisp.org>.
84125
84126         * modules/gc (Makefile.am): Use it.
84127
84128 2005-10-21  Bruno Haible  <bruno@clisp.org>
84129
84130         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84131         patch.
84132
84133 2005-10-19  Simon Josefsson  <jas@extundo.com>
84134
84135         * tests/test-gc-rijndael.c: New file.
84136
84137         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84138
84139 2005-10-19  Simon Josefsson  <jas@extundo.com>
84140
84141         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84142         interface too.
84143
84144 2005-10-19  Simon Josefsson  <jas@extundo.com>
84145
84146         * tests/test-gc-arcfour.c: New file.
84147
84148         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84149
84150 2005-10-19  Simon Josefsson  <jas@extundo.com>
84151
84152         * modules/gc-md4, modules/gc-md4-tests: New file.
84153
84154         * tests/test-gc-md4.c: New file.
84155
84156 2005-10-19  Simon Josefsson  <jas@extundo.com>
84157
84158         * m4/gc-md4.m4: New file.
84159
84160 2005-10-19  Simon Josefsson  <jas@extundo.com>
84161
84162         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84163         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84164         <kasal@ucw.cz>.
84165
84166 2005-10-19  Simon Josefsson  <jas@extundo.com>
84167
84168         * m4/gc-arcfour.m4: New file.
84169
84170         * m4/gc-rijndael.m4: New file.
84171
84172 2005-10-19  Simon Josefsson  <jas@extundo.com>
84173
84174         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84175
84176 2005-10-19  Simon Josefsson  <jas@extundo.com>
84177
84178         * lib/gc-gnulib.c: Support ARCFOUR.
84179
84180 2005-10-19  Simon Josefsson  <jas@extundo.com>
84181
84182         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84183         support.
84184
84185         * lib/gc.h: Add ECB enum type.
84186
84187         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84188
84189 2005-10-18  Simon Josefsson  <jas@extundo.com>
84190
84191         * tests/test-md5.c: New file.
84192
84193         * modules/md5-tests: New file.
84194
84195 2005-10-18  Simon Josefsson  <jas@extundo.com>
84196
84197         * tests/test-md4.c: New file.
84198
84199         * modules/md4, modules/md4-tests: New files.
84200
84201 2005-10-18  Simon Josefsson  <jas@extundo.com>
84202
84203         * m4/md4.m4: New file.
84204
84205 2005-10-18  Simon Josefsson  <jas@extundo.com>
84206
84207         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84208
84209 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84210
84211         * gnulib-tool (func_create_testdir): Omit the second check whether
84212         BUILT_SOURCES in nonempty.
84213
84214 2005-10-17  Simon Josefsson  <jas@extundo.com>
84215
84216         * tests/test-rijndael.c: New file.
84217
84218 2005-10-17  Simon Josefsson  <jas@extundo.com>
84219
84220         * modules/sha1: Depend on stdint instead of md5.
84221
84222         * modules/md5: Depend on stdint, remove uint32_t.
84223
84224 2005-10-17  Simon Josefsson  <jas@extundo.com>
84225
84226         * modules/gc-sha1-tests: New file.
84227
84228         * tests/test-gc-sha1.c: New file.
84229
84230 2005-10-17  Simon Josefsson  <jas@extundo.com>
84231
84232         * m4/md5.m4: Remove call to uint32_t.m4.
84233
84234 2005-10-17  Simon Josefsson  <jas@extundo.com>
84235
84236         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84237
84238         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84239         md5.h.
84240
84241         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84242
84243         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84244
84245 2005-10-17  Simon Josefsson  <jas@extundo.com>
84246
84247         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84248
84249 2005-10-17  Simon Josefsson  <jas@extundo.com>
84250
84251         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84252
84253 2005-10-17  Simon Josefsson  <jas@extundo.com>
84254
84255         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84256
84257         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84258
84259 2005-10-17  Bruno Haible  <bruno@clisp.org>
84260
84261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84262         that it can also be used in a test.
84263
84264 2005-10-16  Bruno Haible  <bruno@clisp.org>
84265
84266         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84267         TESTS_ENVIRONMENT, so that individual tests can augment it.
84268
84269         * gnulib-tool (func_create_testdir): Use an intermediate target for
84270         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84271         macros, like $(ALLOCA_H), which cannot be passed through the command
84272         line.
84273
84274 2005-10-15  Simon Josefsson  <jas@extundo.com>
84275
84276         * modules/rijndael-tests: New file.
84277
84278         * modules/rijndael: New file.
84279
84280 2005-10-15  Simon Josefsson  <jas@extundo.com>
84281
84282         * m4/rijndael.m4: New file.
84283
84284 2005-10-15  Simon Josefsson  <jas@extundo.com>
84285
84286         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84287
84288         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84289
84290 2005-10-14  Simon Josefsson  <jas@extundo.com>
84291
84292         * tests/test-arcfour.c: New file.
84293
84294         * modules/arcfour, modules/arcfour-tests: New files.
84295
84296 2005-10-14  Simon Josefsson  <jas@extundo.com>
84297
84298         * m4/arcfour.m4: New file.
84299
84300 2005-10-14  Simon Josefsson  <jas@extundo.com>
84301
84302         * lib/arcfour.h, lib/arcfour.c: New files.
84303
84304 2005-10-14  Roland McGrath  <roland@redhat.com>
84305
84306         Import from libc.  [BZ #1331]
84307         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84308         macro argument.
84309         Reported by Matej Vela <vela@debian.org>.
84310
84311 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84314         include <wchar.h>; no longer needed.
84315
84316 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84319
84320 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84321         and  Ulrich Drepper  <drepper@redhat.com>
84322
84323         Import from libc.
84324         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84325         instead of inline stream orientation test and two separate
84326         function calls.  Pay no attention to USE_IN_LIBIO.
84327
84328 2005-10-13  Simon Josefsson  <jas@extundo.com>
84329
84330         * modules/gc-hmac-md5-tests: New file.
84331
84332         * tests/test-gc-hmac-sha1.c: New file.
84333
84334         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84335
84336         * modules/gc-hmac-md5-tests: New file.
84337
84338         * tests/test-gc-md5.c: New file.
84339
84340         * modules/gc-md5-tests: New file.
84341
84342 2005-10-13  Simon Josefsson  <jas@extundo.com>
84343
84344         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84345         Move memory allocation outside of loop.
84346
84347 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84350         intermediate directory is in a read-only file system.  Problem
84351         reported by Eric Blake.
84352
84353 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84354
84355         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84356
84357 2005-10-12  Simon Josefsson  <jas@extundo.com>
84358
84359         * tests/test-hmac-sha1.c: New file.
84360
84361         * modules/hmac-sha1-tests: New file.
84362
84363         * modules/hmac-sha1: New file.
84364
84365 2005-10-12  Simon Josefsson  <jas@extundo.com>
84366
84367         * modules/gc-sha1: New file.
84368
84369 2005-10-12  Simon Josefsson  <jas@extundo.com>
84370
84371         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84372
84373         * tests/test-gc-pbkdf2-sha1.c: New file.
84374
84375 2005-10-12  Simon Josefsson  <jas@extundo.com>
84376
84377         * modules/gc-md5, modules/gc-hmac-md5: New files.
84378
84379         * modules/gc (Files): Remove md5, memxor and hmac files.
84380
84381 2005-10-12  Simon Josefsson  <jas@extundo.com>
84382
84383         * m4/gc-pbkdf2-sha1.m4: New file.
84384
84385         * m4/gc-hmac-sha1.m4: New file.
84386
84387         * m4/gc-sha1: New file.
84388
84389         * m4/hmac-sha1.m4: New file.
84390
84391 2005-10-12  Simon Josefsson  <jas@extundo.com>
84392
84393         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84394
84395         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84396
84397 2005-10-12  Simon Josefsson  <jas@extundo.com>
84398
84399         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84400         suggested by Bruno Haible <bruno@clisp.org>.
84401
84402 2005-10-12  Simon Josefsson  <jas@extundo.com>
84403
84404         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84405
84406 2005-10-12  Simon Josefsson  <jas@extundo.com>
84407
84408         * lib/gc-pbkdf2-sha1.c: New file.
84409
84410         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84411
84412 2005-10-12  Simon Josefsson  <jas@extundo.com>
84413
84414         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84415
84416         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84417
84418 2005-10-12  Simon Josefsson  <jas@extundo.com>
84419
84420         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84421         GC_USE_HMAC_MD5, respectively.
84422
84423         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84424         (gc_md5): Fix typo.
84425
84426         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84427
84428         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84429
84430         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84431
84432 2005-10-12  Bruno Haible  <bruno@clisp.org>
84433
84434         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84435         Reported by Stepan Kasal <kasal@ucw.cz>.
84436
84437 2005-10-11  Simon Josefsson  <jas@extundo.com>
84438
84439         * tests/test-crc.c: New file.
84440
84441         * modules/crc, modules/crc-tests: New files.
84442
84443 2005-10-11  Simon Josefsson  <jas@extundo.com>
84444
84445         * m4/crc.m4: New file.
84446
84447 2005-10-11  Simon Josefsson  <jas@extundo.com>
84448
84449         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84450
84451         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84452
84453         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84454
84455 2005-10-11  Simon Josefsson  <jas@extundo.com>
84456
84457         * lib/crc.h, lib/crc.c: New files.
84458
84459         * lib/gc.h (gc_hash_buffer): Add doc.
84460
84461 2005-10-11  Bruno Haible  <bruno@clisp.org>
84462
84463         * modules/c-strcasestr: New file.
84464         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84465
84466 2005-10-11  Bruno Haible  <bruno@clisp.org>
84467
84468         * modules/c-strcase: New file.
84469         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84470
84471 2005-10-11  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/strcasecmp.c: Include limits.h.
84474         (strcasecmp): Avoid integer overflow on exotic platforms.
84475         * lib/strncasecmp.c: Include limits.h.
84476         (strncasecmp): Avoid integer overflow on exotic platforms.
84477         Reported by Paul Eggert.
84478
84479 2005-10-11  Bruno Haible  <bruno@clisp.org>
84480
84481         * lib/c-strcasestr.h: New file, from GNU gettext.
84482         * lib/c-strcasestr.c: New file, from GNU gettext.
84483
84484 2005-10-11  Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/c-strcase.h: New file, from GNU gettext.
84487         * lib/c-strcasecmp.c: New file, from GNU gettext.
84488         * lib/c-strncasecmp.c: New file, from GNU gettext.
84489
84490 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84491
84492         * modules/mempcpy (License): GPL -> LGPL.
84493         * modules/strchrnul (License): Likewise.
84494         * modules/sysexits (License): Likewise.
84495
84496 2005-10-08  Simon Josefsson  <jas@extundo.com>
84497
84498         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84499
84500 2005-10-07  Simon Josefsson  <jas@extundo.com>
84501
84502         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84503
84504 2005-10-06  Simon Josefsson  <jas@extundo.com>
84505
84506         * tests/test-hmac-md5.c: New file.
84507
84508         * modules/hmac-md5-tests: New file.
84509
84510         * modules/hmac-md5: New file.
84511
84512 2005-10-06  Simon Josefsson  <jas@extundo.com>
84513
84514         * m4/hmac-md5.m4: New file.
84515
84516         * m4/memxor.m4: Require gl_C_RESTRICT.
84517
84518 2005-10-06  Simon Josefsson  <jas@extundo.com>
84519
84520         * lib/memxor.c (memxor): Avoid casts and warnings.
84521
84522 2005-10-06  Simon Josefsson  <jas@extundo.com>
84523
84524         * lib/hmac-md5.c: New file.
84525
84526         * lib/hmac.h: New file.
84527
84528 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84529
84530         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84531         promotes to int, not unsigned int, to catch the AIX 5.3
84532         compiler bug.
84533
84534 2005-10-05  Simon Josefsson  <jas@extundo.com>
84535
84536         * modules/memxor: New file.
84537
84538         * modules/iconv (Files): Move config.rpath to havelib, it is used
84539         there.
84540
84541         * modules/havelib (Files): Add config.rpath.
84542
84543 2005-10-05  Simon Josefsson  <jas@extundo.com>
84544
84545         * m4/memxor.m4: New file.
84546
84547 2005-10-05  Simon Josefsson  <jas@extundo.com>
84548
84549         * lib/memxor.c (memxor): Fix compiler error.
84550
84551         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84552         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84553
84554         * lib/memxor.h, lib/memxor.c: New files.
84555
84556         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84557         we assume all systems have it, suggested by Jim Meyering
84558         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84559         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84560         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84561         same reasons.
84562
84563 2005-10-05  Simon Josefsson  <jas@extundo.com>
84564
84565         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84566
84567 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84568
84569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84570         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84571         needed, since the source code now assumes these .h files.
84572
84573 2005-10-05  Derek Price  <derek@ximbiot.com>
84574
84575         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84576
84577 2005-10-05  Bruno Haible  <bruno@clisp.org>
84578
84579         * modules/stdint (License): Change to LGPL.
84580
84581 2005-10-04  Simon Josefsson  <jas@extundo.com>
84582
84583         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84584         D. Baushke" <mdb@gnu.org>.
84585
84586 2005-10-04  Bruno Haible  <bruno@clisp.org>
84587
84588         * lib/verify.h (verify_true): Provide alternative definition for C++.
84589
84590 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84591
84592         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84593         (SSIZE_MAX): New macro, if not already defined.
84594         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84595         than 2 GiB.
84596
84597 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         Sync from coreutils.
84600         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84601         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84602         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84603         ULLONG_MAX doesn't work with 2.7.2.1.
84604
84605 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84608         From Ben Pfaff.
84609
84610         * modules/exclude (Depends-on): Depend on verify.
84611         * modules/strtoimax (Depends-on): Likewise.
84612         * modules/utimecmp (Depends-on): Likewise.
84613
84614 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84615
84616         * lib/exclude.c: Include verify.h.
84617         (verify): Remove.  All callers changed to use verify.h's version.
84618         * lib/strtoimax.c: Likewise.
84619         * lib/utimecmp.c: Likewis.e
84620
84621         Sync from coreutils.
84622         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84623         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84624         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84625         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84626         bother returning ENOSYS if settimeofday or stime fails; just let
84627         them return whatever errno they want to return.
84628         * lib/utimens.c: Include unistd.h, for dup2.
84629         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84630         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84631
84632 2005-10-02  Jim Meyering  <jim@meyering.net>
84633
84634         Sync from coreutils.
84635         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84636         from glibc-2.2.5 that fails for read-only files.
84637
84638 2005-10-02  Jim Meyering  <jim@meyering.net>
84639
84640         Sync from coreutils.
84641         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84642         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84643         `#if HAVE_CONFIG_H'.
84644         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84645         Remove AT_FDCWD test.
84646         Do not consume the fd unless successful.
84647         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84648         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84649         block, so that we don't even try to compile it if settimeofday is
84650         available.  This works around a compilation failure on OSF1 V5.1,
84651         due to stime requiring a `long int*' while tv_sec is `int'.
84652
84653 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84654
84655         Sync from coreutils.
84656         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84657         against `yes', rather than just testing for nonempty.
84658
84659 2005-10-01  Simon Josefsson  <jas@extundo.com>
84660
84661         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84662         and Darwin.
84663
84664         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84665         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84666         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84667         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84668         Check if struct addrinfo is declared.
84669
84670 2005-10-01  Simon Josefsson  <jas@extundo.com>
84671
84672         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84673         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84674         AI_* and EAI_* definitions.  Protect function declarations.
84675
84676 2005-10-01  Jim Meyering  <jim@meyering.net>
84677
84678         Sync from coreutils.
84679
84680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84681         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84682         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84684         in the inet and nsl libraries.  Required on Solaris 5.7.
84685
84686 2005-10-01  Jim Meyering  <jim@meyering.net>
84687
84688         Sync from coreutils.
84689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84690         in the inet and nsl libraries.  Required on Solaris 5.7.
84691
84692 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84693
84694         * lib/getdelim.c (getdelim): Remove unused variables.
84695
84696 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84697
84698         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84699         so that the code works even with ancient cpp.  Portability problem
84700         with GCC 2.7.2.1 reported by Thomas M.Ott.
84701
84702 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84703
84704         * modules/regex (Depends-on): Add strcase.
84705
84706         * modules/gethostname (Licence): Change from GPL to LGPL, since
84707         gethostname.c is a trivial implementation of a standard library
84708         function.
84709         * modules/poll (License): Change from GPL to LGPL, since it's
84710         derived from LGPL code.
84711
84712 2005-09-27  Jim Meyering  <jim@meyering.net>
84713
84714         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84715         HAVE_CONFIG_H.
84716
84717         * lib/intprops.h (signed_type_or_expr__): Define.
84718         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84719         for unsigned types.
84720
84721 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * lib/verify.h (verify_expr): Remove, replacing with:
84724         (verify_true): New macro that returns true instead of void.
84725         (verify_type__): Remove.
84726         (verify): Use verify_true rather than verify_type__.
84727
84728 2005-09-26  Bruno Haible  <bruno@clisp.org>
84729
84730         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84731         is necessary.
84732         (lib_SOURCES): Remove mbchar.c.
84733         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84734         (Files): Add m4/mbrtowc.m4.
84735         * modules/mbiter: Likewise.
84736         * modules/mbuiter: Likewise.
84737
84738 2005-09-26  Bruno Haible  <bruno@clisp.org>
84739
84740         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84741         compile mbchar.c if they are not both present.
84742         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84743         * m4/mbiter.m4 (gl_MBITER): Likewise.
84744         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84745         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84746         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84747
84748 2005-09-25  Jim Meyering  <jim@meyering.net>
84749
84750         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84751         also uses socklen_t.
84752
84753 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         * lib/utimens.c (ENOSYS): Define if not already defined.
84756         (futimens): Support having a null PATH if the file descriptor
84757         is nonnegative.
84758
84759         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84760         Remove.
84761         (__attribute): Define to empty unless GCC 3.1 or later.
84762         This works around a core dump on OpenBSD 3.4, which has GCC
84763         2.95.3, which dumps core when given __attribute__(()).  It also
84764         simplifies other tests, since we really don't want to bother with
84765         worrying about which ancient version of GCC supported what.
84766         Original problem reported by Yoann Vandoorselaere, with part of
84767         the fix suggested by Derek Price.
84768
84769 2005-09-24  Jim Meyering  <jim@meyering.net>
84770
84771         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84772         so we can once again use a positive bitfield width of 1 -- now we
84773         don't have to explain why we were using a bitfield width of 2.
84774
84775 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84776
84777         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84778         and similarly for the other external symbols.  Problem reported
84779         by James Gallager.
84780
84781         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84782         bug reported by Jim Meyering.
84783
84784         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84786         not needed, since socklen is a prerequisite module.
84787
84788 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84789
84790         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84791         Problem reported by Eric Blake.
84792         (getaddrinfo): Initialize se so that it's not garbage.
84793         Redo internal storage allocation so that it doesn't make unportable
84794         assumptions about alignment.
84795         Fix a memory leak.
84796
84797         * lib/utimens.c (futimens): Use futimesat if available.
84798         Prefer it to futimes since it doesn't have the futimes bug.
84799
84800         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84801         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84802         Instead, declare a function that returns a pointer to an array,
84803         and use verify_type__ to declare the size of the array.
84804         Problem and germ of a solution reported by Bruno Haible.
84805         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84806         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84807
84808 2005-09-23  Jim Meyering  <jim@meyering.net>
84809
84810         Sync from coreutils.
84811         Correct build failure (socklen_t not defined) on at least
84812         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84814
84815 2005-09-23  Jim Meyering  <jim@meyering.net>
84816
84817         * modules/getaddrinfo (Depends-on): Add socklen.
84818
84819 2005-09-23  Bruno Haible  <bruno@clisp.org>
84820
84821         * tests/test-verify.c: New file.
84822
84823 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         Sync from coreutils.
84826
84827         * modules/argmatch (Depends-on): Add verify.
84828         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84829         unistd-safer.
84830         * modules/save-cwd (Depends-on): Likewise.
84831
84832         * modules/openat (Files): Add lib/openat-die.c.
84833         (Depends-on): Remove error, exitfail.
84834         Add dirname.
84835
84836         * modules/verify: New file.
84837         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84838         with "verify" module.
84839
84840 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         Sync from coreutils.
84843
84844         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84845         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84846         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84847         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84848         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84849         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84850         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84851         Don't bother checking for string.h, stdlib.h, unistd.h.
84852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84854         module's job.
84855         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84856         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84857
84858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84859         (gl_GETDATE): Use it.
84860
84861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84862
84863 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         Sync from coreutils.
84866
84867         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84868         stat-time.h.
84869         * lib/argmatch.h: Include verify.h
84870         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84871         (ARGMATCH_ASSERT): Remove; unused.
84872         * lib/canonicalize.c: Assume STDC_HEADERS.
84873         * lib/exclude.c: Include "strcase.h".
84874         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84875         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84876         and stdio-safer.h.
84877         (getusershell): Call fopen, not fopen_safer.
84878         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84879         Do not include unistd-safer.h.
84880         (save_cwd): Don't call fd_safer; no longer needed
84881         now that we include fcntl--.h.
84882
84883         * lib/getdate.y (relative_time): New type.
84884         (RELATIVE_TIME_0): New constant.
84885         (parser_control): Use relative_time instead of doing it ourselves.
84886         (%union): Add new relative_time rel member.
84887         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84888         Now typeless.
84889         (relunit, relunit_snumber): Now of type rel.
84890         (zone, rel, relunit, get_date): Adjust to above changes.
84891
84892         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84893         Do not include unistd-safer.h.
84894         (getloadavg): Don't call fd_safer; no longer needed
84895         now that we include fcntl--.h.
84896
84897         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84898         (make_dir_parents): Treat ENOSYS like EEXIST.
84899
84900         Improve quality of diagnostics on restore_cwd failure.
84901         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84902         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84903         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84904         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84905         each time through the loop.  Do not diagnose restore_cwd failure;
84906         that is the caller's job (and perhaps the caller does not care).
84907
84908         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84909         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84910         If the file already exists but is not a directory, don't bother
84911         to try to make its parents.
84912         Close potential file descriptor leak if we can't chdir("/") (!).
84913         Don't always return true if chdir($PWD) fails; return true only
84914         if the requested action was done successfully (except for the
84915         chdir($PWD)).
84916         Don't log final directory unless we actually made it.
84917         Refactor to avoid duplicate code to fix up permissions.
84918         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84919
84920         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84921         to make it a bit faster and (I hope) clearer.
84922         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84923         Fix bug in formats like %2N.
84924
84925         * lib/verify.h: New file.
84926
84927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         Sync from coreutils.
84930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84931
84932 2005-09-22  Jim Meyering  <jim@meyering.net>
84933
84934         Sync from coreutils.
84935
84936         * m4/lstat.m4 (gl_FUNC_LSTAT):
84937         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84938         Remove obsolete comment.
84939         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84940         * m4/xstrtod.m4: Likewise.
84941
84942         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84943
84944 2005-09-22  Jim Meyering  <jim@meyering.net>
84945
84946         Sync from coreutils.
84947
84948         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84949
84950         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84951         the .tm_year member, since otherwise gcc-4.0 would now warn about
84952         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84953
84954         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84955         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84956
84957         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84958         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84959         when run in a time zone for which daylight savings time is in effect
84960         for the starting date.
84961
84962         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84963         stop us from restricting permissions of just-created absolute-named
84964         directories.
84965         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84966         to restore initial working directory.
84967         * lib/mkdir-p.c (make_dir_parents): New parameter:
84968         different_working_dir, to tell caller if/when we change the working
84969         directory and are unable to return to the initial one.
84970         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84971         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84972         `return false'.  This fixes a bug introduced on 2004-07-30.
84973
84974         * lib/openat.c (fdopendir): Be sure to close the supplied
84975         file descriptor before returning.  This makes our replacement
84976         implementation a little closer to Solaris's, where fdopendir
84977         ties the file descriptor to the returned DIR* pointer.
84978         * lib/openat.c (unlinkat): New function.
84979         * lib/openat.h (unlinkat): Add prototype.
84980         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84981         (openat_restore_fail): Rename from openat_restore_die.
84982         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84983
84984         Provide an alternative to exiting immediately upon save_cwd or
84985         restore_cwd failure.  Now, an application can arrange e.g.,
84986         to perform a longjump in that case.
84987         * lib/openat.c: Include dirname.h.
84988         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84989         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84990         and openat_restore_die rather than calling error directly.
84991         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84992
84993         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84994         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84995         define.
84996
84997         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84998         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84999                             int utc, int nanoseconds);
85000         Background:
85001         date should not have to allocate a megabyte of virtual memory to
85002         handle a format argument like +%1048575T.  When implemented with
85003         strftime, it must allocate such a buffer, use strftime to fill it
85004         in, print it, then free it.
85005         With fprintftime, it simply prints everything and exits.
85006         With no need for memory allocation, that's one fewer way to fail.
85007         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85008         optional field width, not before, so we accept %9:z, not %:9z.
85009         (my_strftime): Be sure to use L_('x') for literals.
85010
85011         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85012         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85013         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85014         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85015         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85016         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85017         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85018         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85019         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85020         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85021         * lib/xgethostname.c, lib/xreadlink.c:
85022         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85023
85024         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85025         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85026         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85027         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85028         and don't include <sys/file.h>).
85029
85030 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85031
85032         Sync from coreutils.
85033
85034         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85035         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85036         [!LDAV_DONE]: Avoid unused variable warning.
85037
85038 2005-09-21  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/unicodeio.h (unicode_to_mb): New declaration.
85041
85042 2005-09-20  Derek Price  <derek@ximbiot.com>
85043
85044         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85045         getaddrinfo.h.
85046
85047 2005-09-20  Bruno Haible  <bruno@clisp.org>
85048
85049         * gnulib-tool: Remove trailing slashes from the values specified for
85050         --source-base, --m4-base, --tests-base, --aux-dir.
85051         Suggested by Simon Josefsson <jas@extundo.com>.
85052
85053 2005-09-20  Bruno Haible  <bruno@clisp.org>
85054
85055         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85056         func_modules_to_filelist, func_import, func_create_testdir): Make all
85057         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85058         change when gnulib-tool is invoked in a different locale.
85059
85060 2005-09-19  Simon Josefsson  <jas@extundo.com>
85061
85062         * m4/socklen.m4: Fix typo.
85063
85064 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85065
85066         Use a consistent style for including <config.h>.
85067         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85068         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85069         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85070         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85071         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85072         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85073         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85074         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85075         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85076         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85077         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85078         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85079         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85080         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85081         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85082         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85083         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85084         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85085         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85086         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85087         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85088         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85089         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85090         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85091         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85092         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85093         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85094         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85095         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85096         lib/xstrtoumax.c, lib/yesno.c:
85097         Standardize inclusion of config.h.
85098         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85099         lib/inttostr.h:  Removed inclusion of config.h from header files.
85100         * lib/inttostr.c:  Adjusted in-tree users.
85101         * lib/timespec.h: Remove superfluous warning to include config.h.
85102         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85103         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85104         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85105         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85106         config.h with HAVE_CONFIG_H.
85107
85108 2005-09-19  Jim Meyering  <jim@meyering.net>
85109
85110         * modules/pathmax (License): Change to LGPL.
85111
85112 2005-09-19  Derek Price  <derek@ximbiot.com>
85113
85114         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85115
85116 2005-09-19  Bruno Haible  <bruno@clisp.org>
85117
85118         * gnulib-tool (import): Provide default for --tests-base.
85119
85120 2005-09-19  Bruno Haible  <bruno@clisp.org>
85121
85122         * doc/quote.texi: New file, extracted from gnulib.texi.
85123         * doc/ctime.texi: New file, extracted from gnulib.texi.
85124         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85125         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85126         * doc/gnulib.texi: Include them.
85127
85128 2005-09-18  Bruno Haible  <bruno@clisp.org>
85129
85130         Portability fix.
85131         * gnulib-tool (func_readlink): New function.
85132         (func_ln_if_changed): Use it.
85133
85134 2005-09-18  Bruno Haible  <bruno@clisp.org>
85135
85136         * gnulib-tool: Support --with-tests also with --import.
85137         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85138         (func_import): Use variables $testsbase and $inctests. Emit a
85139         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85140         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85141         SUBDIRS += $testsdir.
85142         (func_create_testdir): Update.
85143
85144 2005-09-18  Bruno Haible  <bruno@clisp.org>
85145
85146         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85147         instead of $dry_run.
85148         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85149         (func_ln_if_changed): Don't handle dry-run here.
85150         (func_import): In dry-run mode, detect more precisely which actions
85151         would be performed, and don't use "...ing" verbs.
85152
85153 2005-09-18  Bruno Haible  <bruno@clisp.org>
85154
85155         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85156         (func_import): Use join on two temporary files instead of three nested
85157         loops, in order to determine which files are new or old.
85158
85159 2005-09-18  Bruno Haible  <bruno@clisp.org>
85160
85161         * gnulib-tool (func_import): Comment out code that spits out the
85162         new files with --dry-run.
85163
85164 2005-09-18  Bruno Haible  <bruno@clisp.org>
85165
85166         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85167
85168 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85169
85170         * lib/stat-time.h: New file.
85171         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85172         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85173         in a different way.
85174         (timespec_cmp): New function.
85175         * lib/utimecmp.c: Include stat-time.h.
85176         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85177         members exist, not on the obsolescent ST_MTIM_NSEC.
85178         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85179
85180 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85181
85182         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85183
85184 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * MODULES.html.sh (File system functions): Add stat-time.
85187         * modules/stat-time: New file.
85188         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85189         is now done in a different way, by the stat-time module.
85190         * modules/utimecmp (Depends-on): Add stat-time.
85191
85192 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85193
85194         * m4/st_mtim.m4: Remove.  Superseded by...
85195         * m4/stat-time.m4: New file.
85196         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85197         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85198
85199 2005-09-15  Derek Price  <derek@ximbiot.com>
85200
85201         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85202
85203 2005-09-15  Derek Price  <derek@ximbiot.com>
85204
85205         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85206         * lib/regex_internal.c: Ditto, using this...
85207         (__GNUC_PREREQ): ...new macro.
85208         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85209         using...
85210         (__GNUC_PREREQ): ...this new macro.
85211
85212         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85213
85214 2005-09-15  Derek Price  <derek@ximbiot.com>
85215             Paul Eggert  <eggert@cs.ucla.edu>
85216
85217         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85218         changes, consolidating in...
85219         * lib/regex_internal.h: ...this file.
85220
85221 2005-09-13  Jim Meyering  <jim@meyering.net>
85222
85223         * lib/canon-host.c: Filter through gnu indent and reword comments
85224         slightly.
85225         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85226
85227 2005-09-13  Derek Price  <derek@ximbiot.com>
85228
85229         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85230         failure.
85231         Reported by Jim Meyering  <jim@meyering.net>.
85232
85233 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85234
85235         * lib/base64.c: Typo.
85236         (base64_encode): Put b64str in initialized data section.
85237
85238 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         Merge glibc and coreutils changes into gnulib, plus a few
85241         extra fixes.
85242         * lib/md5.c: Use #error rather than a string.
85243         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85244         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85245         (__attribute__): Define to empty for non recent-GCC.
85246         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85247         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85248         Renamed from their non-__ counterparts, with new macros replacing
85249         them if not _LIBC.  Add __THROW attribute.
85250         (rol): Remove.
85251         (struct md5_ctx): Align buffer if using GCC.
85252         * lib/sha1.h (struct sha1_ctx): Likewise.
85253         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85254         The old name was backwards.
85255         (NOTSWAP): Remove; not used.
85256         (rol): New macro, moved here from md5.h.
85257         (sha1_process_block): Remove a FIXME that doesn't make sense.
85258
85259 2005-09-12  Derek Price  <derek@ximbiot.com>
85260
85261         Return usable errors from canon-host.
85262         * lib/canon-host.h: New file.
85263         * lib/canon-host.c (canon_host): Wrap...
85264         (canon_host_r): ...this new function, which now relies exclusively on
85265         getaddrinfo.
85266         (ch_strerror): New function.
85267         (last_cherror): New global.
85268         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85269         interface.
85270         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85271         void *.
85272         (freeaddrinfo): Free ai->ai_canonname when set.
85273
85274 2005-09-12  Derek Price  <derek@ximbiot.com>
85275
85276         Make canon-host require getaddrinfo.
85277         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85278         AC_LIBSOURCE canon-host.h.  Call...
85279         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85280         gl_GETADDRINFO.
85281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85282
85283 2005-09-12  Derek Price  <derek@ximbiot.com>
85284
85285         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85286         LGPL.
85287         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85288
85289 2005-09-12  Derek Price  <derek@ximbiot.com>
85290
85291         * lib/gai_strerror.c: Include config.h when available.  Include
85292         getaddrinfo.h before other headers to test interface.
85293         Reported by Larry Jones <lawrence.jones@ugs.com>.
85294
85295 2005-09-12  Derek Price  <derek@ximbiot.com>
85296             Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         * modules/glob (Files): Add glob-libc.h.
85299
85300 2005-09-12  Derek Price  <derek@ximbiot.com>
85301             Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85304         glob_.h, glob-libc.h.
85305         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85306
85307 2005-09-12  Derek Price  <derek@ximbiot.com>
85308             Paul Eggert  <eggert@cs.ucla.edu>
85309
85310         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85311         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85312         protecting things that should be done only in gnulib contexts.
85313         * lib/glob_.h: New file, containing only the glob things needed for
85314         gnulib.
85315         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85316         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85317         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85318         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85319         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85320         and to respect the namespace rules better.
85321
85322 2005-09-08  Simon Josefsson  <jas@extundo.com>
85323
85324         * modules/socklen: New file.
85325
85326 2005-09-08  Simon Josefsson  <jas@extundo.com>
85327
85328         * m4/socklen.m4: New file.
85329
85330 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * modules/utimens (Files): Add m4/utimbuf.m4, since
85333         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85334         Reported by Sergey Poznyakoff.
85335
85336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85339         definitions, since that's the preferred style in glibc.
85340         Fix a minor spacing issue, and update copyright notice to match
85341         glibc's.
85342
85343 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85346
85347 2005-09-06  Simon Josefsson  <jas@extundo.com>
85348
85349         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85350         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85351
85352 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85353
85354         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85355         warning.
85356
85357 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85358
85359         * config/srclist.txt: Add glibc bug 1302.
85360
85361 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85362
85363         Change bitset word type from unsigned int to unsigned long int,
85364         as this has better performance on typical 64-bit hosts.
85365         Port bitset code to hosts with unusual word sizes.
85366         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85367         (build_collating_symbol):
85368         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85369         argument is a bitset.  This is merely a style issue, but it makes
85370         it clearer that an entire array is expected.
85371         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85372         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85373         Port to the case where bitset_word is not the same as unsigned int.
85374         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85375         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85376         Likewise.
85377         * lib/regexec.c (check_dst_limits_calc_pos_1,
85378         check_subexp_matching_top):
85379         (build_trtable, group_nodes_into_DFAstates):
85380         Likewise.
85381         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85382         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85383         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85384         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85385         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85386         * lib/regcomp.c (optimize_subexps, lower_subexp):
85387         Work even if bitset_word has holes in its bitwise representation.
85388         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85389         * lib/regexec.c (check_dst_limits_calc_pos_1,
85390         check_subexp_matching_top):
85391         Likewise.
85392         * lib/regex_internal.c (re_string_reconstruct):
85393         Don't assume UCHAR_MAX == 255.
85394         * lib/regex_internal.h (bitset_set_all): Likewise.
85395         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85396         All uses changed.
85397         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85398         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85399         All uses changed.
85400         (BITSET_WORD_MAX): New macro.
85401         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85402         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85403         (bitset_empty, bitset_copy):
85404         Prefer sizeof (bitset) to multiplying it out ourselves.
85405         (bitset_not_merge): Remove; unused.
85406         (bitset_contain): Return bool, not unsigned int with one bit on.
85407         All callers changed.
85408         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85409         alignment than re_node_set; do this by defining a new internal
85410         type struct dests_alloc and using it to allocate memory.
85411
85412 2005-09-05  Bruno Haible  <bruno@clisp.org>
85413
85414         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85415         links.
85416
85417 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85418
85419         * modules/size_max (Makefile.am): Add size_max.h
85420
85421 2005-09-04  Derek Price  <derek@ximbiot.com>
85422
85423         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85424
85425 2005-09-03  Simon Josefsson  <jas@extundo.com>
85426
85427         * gnulib-tool: Fix typo.
85428
85429 2005-09-03  Simon Josefsson  <jas@extundo.com>
85430
85431         * config/srclist.txt: Add glibc bug 1293.
85432
85433 2005-09-03  Derek Price  <derek@ximbiot.com>
85434
85435         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85436         From Larry Jones <lawrence.jones@ugs.com>.
85437
85438 2005-09-02  Simon Josefsson  <jas@extundo.com>
85439
85440         * modules/socklen: New file.
85441
85442 2005-09-02  Simon Josefsson  <jas@extundo.com>
85443
85444         * modules/havelib: New module.
85445
85446         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85447         Use havelib.
85448
85449 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         Check for arithmetic overflow when calculating sizes, to prevent
85452         some buffer-overflow issues.  These patches are conservative, in the
85453         sense that when I couldn't determine whether an overflow was possible,
85454         I inserted a run-time check.
85455         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85456         macros.
85457         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85458         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85459         (re_xnrealloc, re_x2nrealloc): New inline functions.
85460         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85461         parse_bracket_exp):
85462         (build_equiv_class, build_charclass): Check for arithmetic overflow
85463         in size expression calculations.
85464         * lib/regex_internal.c (re_string_realloc_buffers):
85465         (build_wcs_upper_buffer, re_node_set_add_intersect):
85466         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85467         (re_dfa_add_node, register_state): Likewise.
85468         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85469         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85470         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85471         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85472
85473 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85476         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85477
85478 2005-09-02  Bruno Haible  <bruno@clisp.org>
85479
85480         Support for lib vs. lib64 distinction on biarch platforms.
85481         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85482         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85484
85485 2005-09-02  Bruno Haible  <bruno@clisp.org>
85486
85487         * gnulib-tool (import): In the other first-use case, provide defaults
85488         as well.
85489
85490 2005-09-02  Bruno Haible  <bruno@clisp.org>
85491
85492         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85493         patches not yet found in the latest gettext release.
85494
85495 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85498         to avoid a collision with bits/local_lim.h in glibc.
85499         All uses changed.  Problem reported by Dmitry V. Levin in
85500         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85501
85502         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85503         bugs in int versus size_t comparisons.
85504         (re_string_context_at): Fix bug where the code assumed that
85505         Idx is signed.
85506
85507         Use bool where appropriate.
85508         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85509         All callers changed.
85510         (calc_eclosure_iter): Likewise, for ROOT arg.
85511         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85512         (build_charclass_op): Likewise, for NON_MATCH arg.
85513         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85514         (re_string_construct_common): Likewise, for ICASE arg.
85515         * lib/regexec.c (re_search_2_stub, re_search_stub):
85516         Likewise, for RET_LEN arg.
85517         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85518         (set_regs): Likewise, for FL_BACKTRACK arg.
85519         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85520         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85521         (calc_eclosure_iter, parse_bracket_exp):
85522         Use bool for internal variables that are booleans.
85523         * lib/regexec.c (re_search_internal, check_matching,
85524         proceed_next_node):
85525         (set_regs, build_sifted_states, sift_states_bkref):
85526         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85527         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85528         (find_collation_sequence_value):
85529         Likewise.
85530         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85531         (re_node_set_compare):
85532         Return bool, not int. All callers changed.
85533         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85534         (build_trtable, check_node_accept): Likewise.
85535         * lib/regex_internal.h: Include stdbool.h.
85536
85537         Fix bugs uncovered when converting to bool.
85538         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85539         failure instead of charging ahead blindly.
85540         * lib/regex_internal.c (register_state): Likewise.
85541         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85542         for freeing internal storage.
85543         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85544         bitset pieces used as boolean, to avoid undefined behavior
85545         on hosts that do int overflow checking.
85546
85547 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85548
85549         * config/srclist.txt: Add glibc bugs 1285-1287.
85550
85551 2005-09-01  Jim Meyering  <jim@meyering.net>
85552
85553         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85554         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85555         Require gl_STAT_MACROS, too.
85556
85557 2005-09-01  Bruno Haible  <bruno@clisp.org>
85558
85559         * gnulib-tool (import): In the first-use case, provide defaults.
85560
85561 2005-09-01  Bruno Haible  <bruno@clisp.org>
85562
85563         * gnulib-tool (func_import): Remove the .tmp files.
85564
85565 2005-09-01  Bruno Haible  <bruno@clisp.org>
85566
85567         * gnulib-tool (func_import): Fix handling of symbolic links.
85568
85569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85572         old glibc regex code mishandles strings longer than 2**31 bytes.
85573         This patch fixes this when the regex code is used in gnulib
85574         (i.e., outside glibc).
85575
85576         This patch should not affect the use of the regex code inside
85577         glibc.  No doubt this problem also needs to be handled for glibc
85578         as well, but the result will be an incompatible change to the
85579         glibc ABI, and the old ABI will have to be supported too.  That
85580         can be the the subject for another patch.
85581
85582         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85583         governing whether the rest of this patch is active.  By default,
85584         the macro is disabled and the patch has no effect.
85585         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85586         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85587         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85588         (re_match_2, re_set_registers): Use the new types.
85589         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85590         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85591         New macros.
85592         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85593         (re_string_context_at, bin_tree_t, re_dfastate_t):
85594         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85595         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85596         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85597         (re_string_char_size_at, re_string_wchar_at):
85598         (re_string_elem_size_at):
85599         Use the new types and macros to port to 64-bit hosts.
85600         Use unsigned types for internal values, so that the code
85601         mostly works even for arrays larger than SSIZE_MAX.
85602         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85603         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85604         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85605         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85606         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85607         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85608         (calc_inveclosure, parse_dup_op, build_range_exp):
85609         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85610         (fetch_number, create_token_tree, mark_opt_subexp):
85611         Likewise.
85612         * lib/regex_internal.c (re_string_construct_common,
85613         create_ci_newstate):
85614         (create_cd_newstate, re_string_allocate, re_string_construct):
85615         (re_string_realloc_buffers, build_wcs_upper_buffer):
85616         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85617         (re_string_reconstruct, re_string_peek_byte_case):
85618         (re_string_fetch_byte_case, re_string_context_at):
85619         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85620         (re_node_set_init_copy, re_node_set_add_intersect):
85621         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85622         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85623         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85624         (re_acquire_state, re_acquire_state_context, register_state):
85625         Likewise.
85626         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85627         search_cur_bkref_entry):
85628         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85629         (re_search_internal, re_search_2_stub, re_search_stub)
85630         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85631         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85632         (update_cur_sifted_state, check_dst_limits):
85633         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85634         (check_subexp_limits, sift_states_bkref, merge_state_array):
85635         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85636         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85637         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85638         (expand_bkref_cache, check_node_accept_bytes):
85639         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85640         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85641         (acquire_init_state_context, check_halt_node_context):
85642         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85643         (sift_states_backward, clean_state_log_if_needed):
85644         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85645         (find_recover_state, transit_state_sb, transit_state_mb):
85646         (transit_state_bkref, build_trtable, match_ctx_clean):
85647         Likewise.
85648         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85649         to work around an assumption that REG_MISSING is negative.
85650
85651         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85652         (seek_collating_symbol_entry) [defined _LIBC]:
85653         (lookup_collation_sequence_value) [defined _LIBC]:
85654         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85655         Use prototypes rather than old-style function definitions.
85656         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85657         (transit_state_sb) [0]:
85658         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85659
85660         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85661         rm_eo.
85662
85663         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85664         (optimize_subexps, lower_subexp):
85665         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85666         since the signed shift might overflow.  Use 1u<<31 instead.
85667         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85668         Likewise.
85669         * lib/regexec.c (check_dst_limits_calc_pos_1,
85670         check_subexp_matching_top): Likewise.
85671
85672         * lib/regcomp.c (optimize_subexps, lower_subexp):
85673         Use CHAR_BIT rather than 8, for clarity.
85674         * lib/regexec.c (check_dst_limits_calc_pos_1):
85675         (check_subexp_matching_top): Likewise.
85676         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85677         have to worry about portability issues when shifting it left.
85678         Remove no-longer-needed test for table_size > 0.
85679         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85680         in a word, as the resulting behavior is undefined.
85681         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85682         in one case, a <= should have been an <, and in another case the
85683         whole test was missing.
85684         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85685         the standard name CHAR_BIT.
85686         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85687         this is not true on one's complement and signed-magnitude hosts.
85688
85689         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85690         next_last_offset.
85691         (struct re_dfa_t): Remove unused member states_alloc.
85692         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85693
85694 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85697         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85698         and large-file glibc and in 32-bit large-file Solaris.
85699
85700 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85703         lengths fit in regoff_t; this isn't true if regoff_t is the same
85704         width as size_t.
85705         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85706         (= START + RANGE) instead of RANGE.  This avoids overflow
85707         problems when regoff_t is the same width as size_t.
85708         All callers changed.
85709         (re_search_2_stub): Check for overflow when adding the
85710         sizes of the two strings.
85711         (re_search_stub): Check for overflow when adding START
85712         to RANGE; if it occurs, substitute the extreme value.
85713
85714 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85715
85716         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85717
85718 2005-08-31  Jim Meyering  <jim@meyering.net>
85719
85720         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85721         a pointer-to-const.
85722         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85723         (register_state): Likewise.
85724         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85725         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85726         (group_nodes_into_DFAstates): Likewise.
85727
85728 2005-08-31  Jim Meyering  <jim@meyering.net>
85729
85730         * check-module: Add a FIXME comment.
85731
85732 2005-08-31  Eric Blake  <ebb9@byu.net>
85733
85734         * modules/unistd-safer (Files): Add unistd--.h.
85735         * modules/stdio-safer (Files): Add stdio--.h.
85736
85737 2005-08-31  Derek Price  <derek@ximbiot.com>
85738
85739         * lib/getdelim.c (getdelim): Return EOF on EOF.
85740         Reported by Larry Jones <lawrence.jones@ugs.com>.
85741
85742 2005-08-31  Bruno Haible  <bruno@clisp.org>
85743
85744         Avoid unnecessary diffs in the generated lib/Makefile.am.
85745         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85746         the generated files.
85747         (func_import): Don't set cmd.
85748
85749 2005-08-31  Bruno Haible  <bruno@clisp.org>
85750
85751         * lib/strstr.c: Include <stddef.h>, for NULL.
85752         * lib/strcasestr.c: Likewise.
85753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85754
85755 2005-08-31  Bruno Haible  <bruno@clisp.org>
85756
85757         * gnulib-tool: New option --macro-prefix.
85758         (func_import): Use macro_prefix.
85759         (import): Handle option --macro-prefix.
85760
85761 2005-08-31  Bruno Haible  <bruno@clisp.org>
85762
85763         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85764         Also use new variables cached_lgpl, cached_libtool.
85765
85766 2005-08-31  Bruno Haible  <bruno@clisp.org>
85767
85768         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85769         always instantiating them.
85770
85771 2005-08-31  Bruno Haible  <bruno@clisp.org>
85772
85773         * gnulib-tool (func_import): Read the previous cached settings
85774         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85775         earlier added by gnulib but are now dropped. Warn when a gnulib file
85776         overwrites a non-gnulib file.
85777
85778 2005-08-31  Bruno Haible  <bruno@clisp.org>
85779
85780         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85781         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85782         projects that don't keep autogenerated files in CVS. Put into
85783         actioncmd only the specified modules, not the transitive closure.
85784
85785 2005-08-31  Bruno Haible  <bruno@clisp.org>
85786
85787         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85788         Create directories that shall be filled.
85789         (import): Don't look for gl_* macros in configure.ac. Recurse across
85790         all directories containing a gnulib-cache.m4 files, if meaningful.
85791
85792 2005-08-31  Bruno Haible  <bruno@clisp.org>
85793
85794         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85795         (import): Set seen_libtool when we see gl_LIBTOOL.
85796
85797 2005-08-31  Bruno Haible  <bruno@clisp.org>
85798
85799         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85800         declaration macro definitions from generated gnulib.m4.
85801
85802 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85803
85804         * lib/iconvme.h: Add prototype for iconv_alloc.
85805
85806 2005-08-29  Simon Josefsson  <jas@extundo.com>
85807
85808         * lib/iconvme.c: Fix errno.
85809
85810 2005-08-29  Bruno Haible  <bruno@clisp.org>
85811
85812         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85813         that it works when the directory contains spaces.
85814
85815 2005-08-29  Bruno Haible  <bruno@clisp.org>
85816
85817         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85818
85819 2005-08-29  Bruno Haible  <bruno@clisp.org>
85820
85821         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85822         Emit more advice.
85823
85824 2005-08-29  Bruno Haible  <bruno@clisp.org>
85825         and Stepan Kasal  <kasal@ucw.cz>
85826
85827         * check-module: If more parameters are given, check each of them
85828         separately; add more exceptions, as noted by Jim Meyering.
85829         (check_module): New procedure.
85830         (%exempt_header): Now contains all exceptions.
85831
85832 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85833
85834         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85835
85836 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85837
85838         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85839
85840 2005-08-28  Bruno Haible  <bruno@clisp.org>
85841
85842         * m4/gnulib-tool.m4: New file.
85843
85844 2005-08-27  Jim Meyering  <jim@meyering.net>
85845
85846         * modules/unistd-safer (Files): Add pipe-safer.c.
85847         * modules/fcntl-safer (Files): Add creat-safer.c.
85848
85849 2005-08-27  Jim Meyering  <jim@meyering.net>
85850
85851         * m4/stdlib-safer.m4: New file.  From coreutils.
85852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85854         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85855         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85856         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85857
85858 2005-08-27  Jim Meyering  <jim@meyering.net>
85859
85860         * lib/fopen-safer.c: Merge minor changes from coreutils.
85861         * lib/dup-safer.c: Likewise.
85862         * lib/fd-safer.c: Likewise.
85863
85864         Merge from coreutils.
85865         * lib/stdio--.h: New file.
85866         * lib/stdlib--.h: New file.
85867         * lib/mkstemp-safer.c: New file.
85868
85869         GNU tar needs these.
85870         * lib/pipe-safer.c: New file.
85871         * lib/creat-safer.c: New file.
85872         * lib/fcntl--.h (creat): Define to creat_safer.
85873         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85874         * lib/unistd--.h (pipe): Define to pipe_safer.
85875         * lib/unistd-safer.h: Declare pipe_safer.
85876
85877 2005-08-26  Simon Josefsson  <jas@extundo.com>
85878
85879         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85880         Haible <bruno@clisp.org>.
85881
85882 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * lib/regex_internal.h: Remove all references to
85885         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85886         or better.
85887         (bitset_not, bitset_merge, bitset_not_merge):
85888         (bitset_mask, re_string_allocate, re_string_construct):
85889         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85890         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85891         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85892         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85893         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85894         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85895         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85896         (re_acquire_state_context):
85897         Remove unnecessary forward decls.
85898         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85899         Put __attribute at function definition,
85900         now that the function decl has been removed.
85901         * lib/regex_internal.c (re_string_peek_byte_case):
85902         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85903         Likewise.
85904
85905 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85906
85907         * m4/regex.m4: Add AC_PREREQ(2.50).
85908         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85909
85910 2005-08-25  Simon Josefsson  <jas@extundo.com>
85911
85912         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85913         __fsetlocking.
85914
85915 2005-08-25  Simon Josefsson  <jas@extundo.com>
85916
85917         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85918         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85919         GLIBC specific code.
85920
85921 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         Make regex safe for g++.  This fixes one real bug (an "err"
85924         that should have been "*err").  g++ problem reported by
85925         Sam Steingold.
85926         * lib/regex_internal.h (re_calloc): New macro, consistent with
85927         re_malloc etc.  All callers of calloc changed to use re_calloc.
85928         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85929         not int.  All callers changed.
85930         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85931         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85932         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85933         (find_recover_state): Change "err" to "*err"; this fixes what
85934         appears to be a real bug.
85935         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85936         versus int.
85937
85938 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85939
85940         * modules/regex (Depends-on): Add malloc, since the code
85941         assumes that !malloc(0) means failure.
85942
85943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85946
85947         alloca modernization/simplification for regex.
85948         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85949         needs to be at the start of the file, and can be moved into
85950         regex_internal.h and simplified.
85951         * lib/regex_internal.h: Include <alloca.h>.
85952         (__libc_use_alloca) [!defined _LIBC]: New macro.
85953         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85954         now works outside glibc.
85955
85956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * config/srclist.txt: Add glibc bugs 1241, 1245.
85959
85960 2005-08-25  Jim Meyering  <jim@meyering.net>
85961
85962         * lib/open-safer.c: Include <config.h>.
85963         Otherwise, we'd lose LARGEFILE support in any file using
85964         e.g. "fcntl--.h"
85965
85966 2005-08-25  Bruno Haible  <bruno@clisp.org>
85967
85968         * m4/minmax.m4: Require autoconf 2.52.
85969         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85970         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85971         alternatives of translit over the alphabet.
85972         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85973
85974 2005-08-24  Simon Josefsson  <jas@extundo.com>
85975
85976         * tests/test-getpass.c: New file.
85977
85978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85981         for GNU regex features.
85982
85983 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85984
85985         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85986         * lib/regex.h (regerror): Likewise.
85987
85988         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85989         requires this.  (The code never needed it.)
85990
85991         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85992         All uses of recently-renamed identifiers changed to use the new,
85993         POSIX-compliant names.  The code will build and run just fine
85994         without these changes, but it's better to eat our own dog food
85995         and use the standard-conforming names.
85996
85997         * lib/regex.h: Fix a multitude of POSIX name space violations.
85998         These changes have an effect only for programs that define
85999         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86000         do not change anything for programs compiled in the normal way.
86001         Also, there is no effect on the ABI.
86002
86003         (_REGEX_SOURCE): New macro.
86004         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86005         defined and _GNU_SOURCE is not; this fixes a name space violation.
86006
86007         Rename the following macros to obey POSIX requirements.
86008         The old names are still visible as macros if _REGEX_SOURCE is defined.
86009         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86010         RE_BACKSLASH_ESCAPE_IN_LISTS.
86011         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86012         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86013         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86014         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86015         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86016         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86017         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86018         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86019         (REG_INTERVALS): renamed from RE_INTERVALS.
86020         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86021         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86022         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86023         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86024         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86025         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86026         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86027         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86028         RE_UNMATCHED_RIGHT_PAREN_ORD.
86029         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86030         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86031         (REG_DEBUG): renamed from RE_DEBUG.
86032         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86033         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86034         unusual, since we can't clash with the POSIX REG_ICASE.
86035         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86036         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86037         (REG_NO_SUB): renamed from RE_NO_SUB.
86038         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86039         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86040         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86041         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86042         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86043         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86044         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86045         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86046         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86047         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86048         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86049         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86050         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86051         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86052         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86053         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86054         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86055         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86056         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86057         (REG_FIXED): Renamed from REGS_FIXED.
86058         (REG_NREGS): Renamed from RE_NREGS.
86059
86060         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86061         of other REG_* macros, since POSIX says the user is allowed to
86062         #undef these macros selectively.
86063
86064         (reg_errcode_t): Update comment stating what other tables need
86065         to be consistent.
86066
86067         Rename the following enum values to obey POSIX requirements.
86068         The old names are still visible as macros.
86069         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86070         is not defined, since GNU is supposed to be a superset of POSIX as
86071         much as possible, and since we want reg_errcode_t to be a signed
86072         type for implementation consistency.
86073         (_REG_NOERROR): Renamed from REG_NOERROR.
86074         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86075         (_REG_BADPAT): Renamed from REG_BADPAT.
86076         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86077         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86078         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86079         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86080         (_REG_EBRACK): Renamed from REG_EBRACK.
86081         (_REG_EPAREN): Renamed from REG_EPAREN.
86082         (_REG_EBRACE): Renamed from REG_EBRACE.
86083         (_REG_BADBR): Renamed from REG_BADBR.
86084         (_REG_ERANGE): Renamed from REG_ERANGE.
86085         (_REG_ESPACE): Renamed from REG_ESPACE.
86086         (_REG_BADRPT): Renamed from REG_BADRPT.
86087         (_REG_EEND): Renamed from REG_EEND.
86088         (_REG_ESIZE): Renamed from REG_ESIZE.
86089         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86090         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86091         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86092         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86093         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86094
86095         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86096         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86097         changed.  But support the old name if the new one is not defined
86098         and if _REGEX_SOURCE.
86099
86100         Change the following member names in struct re_pattern_buffer.
86101         The old names are still supported if !_REGEX_SOURCE.
86102         The new names are always supported, regardless of _REGEX_SOURCE.
86103         (re_buffer): Renamed from buffer.
86104         (re_allocated): Renamed from allocated.
86105         (re_used): Renamed from used.
86106         (re_syntax): Renamed from syntax.
86107         (re_fastmap): Renamed from fastmap.
86108         (re_translate): Renamed from translate.
86109         (re_can_be_null): Renamed from can_be_null.
86110         (re_regs_allocated): Renamed from regs_allocated.
86111         (re_fastmap_accurate): Renamed from fastmap_accurate.
86112         (re_no_sub): Renamed from no_sub.
86113         (re_not_bol): Renamed from not_bol.
86114         (re_not_eol): Renamed from not_eol.
86115         (re_newline_anchor): Renamed from newline_anchor.
86116
86117         Change the following member names in struct re_registers.
86118         The old names are still supported if !_REGEX_SOURCE.
86119         The new names are always supported, regardless of _REGEX_SOURCE.
86120         (rm_num_regs): Renamed from num_regs.
86121         (rm_start): Renamed from start.
86122         (rm_end): Renamed from end.
86123
86124         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86125         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86126         Prepend __ to parameter names.
86127
86128         Undo yesterday's changes.
86129
86130 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86133         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86134         lib/regex.c.
86135
86136 2005-08-24  Jim Meyering  <jim@meyering.net>
86137
86138         Sync from coreutils.
86139         * m4/fcntl-safer.m4: New file.
86140
86141         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86142         and object files for this module.
86143
86144 2005-08-24  Jim Meyering  <jim@meyering.net>
86145
86146         Sync from coreutils.
86147         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86148
86149 2005-08-24  Jim Meyering  <jim@meyering.net>
86150
86151         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86152         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86153
86154 2005-08-24  Jim Meyering  <jim@meyering.net>
86155
86156         * modules/fcntl-safer: New module.
86157         * modules/fts (Depends-on): Add fcntl-safer.
86158         * MODULES.html.sh (File descriptor based Input/Output):
86159         Add fcntl-safer.
86160
86161 2005-08-24  Bruno Haible  <bruno@clisp.org>
86162
86163         Support for unit test modules.
86164         * modules/README: Mention tests modules.
86165         * modules/TEMPLATE-TESTS: New file.
86166         * gnulib-tool: New options --extract-tests-module, --with-tests and
86167         --tests-base (unused for the moment).
86168         (testsbase, inctests): New variables.
86169         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86170         (func_verify_module): Exclude TEMPLATE-TESTS.
86171         (func_verify_nontests_module, func_verify_tests_module): New functions.
86172         (func_get_dependencies): Add implicit dependency for tests modules.
86173         (func_get_tests_module): New function.
86174         (func_modules_transitive_closure): When --with-tests was specified,
86175         include the unit tests as well, unless explicitly avoided.
86176         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86177         (func_emit_tests_Makefile_am): New function.
86178         (func_create_testdir): When --with-tests was specified, emit a
86179         tests/ directory.
86180         * MODULES.html.sh (Future developments): Update.
86181
86182 2005-08-24  Bruno Haible  <bruno@clisp.org>
86183
86184         * modules/tls-tests: New file.
86185         * tests/test-tls.c: New file, from GNU gettext.
86186
86187 2005-08-24  Bruno Haible  <bruno@clisp.org>
86188
86189         * modules/lock-tests: New file.
86190         * tests/test-lock.c: New file, from GNU gettext.
86191
86192 2005-08-24  Bruno Haible  <bruno@clisp.org>
86193
86194         * lib/lock.h: Add multiple inclusion guard.
86195         * lib/tls.h: Add multiple inclusion guard.
86196
86197 2005-08-24  Bruno Haible  <bruno@clisp.org>
86198
86199         * gnulib-tool: Add support for the --aux-dir option to
86200         --create-testdir, --create-megatestdir, --test, --megatest.
86201         (func_create_testdir, func_create_megatestdir): Optionally emit a
86202         AC_CONFIG_AUX_DIR directive.
86203         (create-testdir, create-megatestdir, test, megatest): Provide a
86204         default value for $auxdir.
86205
86206 2005-08-24  Bruno Haible  <bruno@clisp.org>
86207
86208         * gnulib-tool (import): Use compound statement instead of subshell
86209         where possible.
86210
86211 2005-08-24  Bruno Haible  <bruno@clisp.org>
86212
86213         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86214
86215 2005-08-24  Bruno Haible  <bruno@clisp.org>
86216
86217         * gnulib-tool (func_version): Update.
86218
86219 2005-08-24  Bruno Haible  <bruno@clisp.org>
86220
86221         * gnulib-tool (func_import, func_create_testdir,
86222         func_create_megatestdir): Quote all autoconf macro arguments.
86223
86224 2005-08-24  Bruno Haible  <bruno@clisp.org>
86225
86226         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86227         option --force, because --force causes the aclocal.m4 of each
86228         subdirectory to be newer than the corresponding config.h.in.
86229
86230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86233         All contents moved to gl_REGEX.
86234         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86235         assume that it does.
86236
86237 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86238
86239         * lib/regex.h (REG_NOSYS)
86240         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86241         Define, since POSIX requires it as of 2001.
86242         (_REG_ENOSYS)
86243         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86244         New private symbol, used to keep the enum signed in all cases.
86245         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86246         Youngman in
86247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86248
86249         * lib/regex_internal.c (re_string_skip_chars, register_state):
86250         (calc_state_hash):
86251         Remove forward decls; no longer needed now that we use prototypes.
86252         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86253         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86254         (clean_state_log_if_needed): Likewise.
86255
86256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86257
86258         * config/srclist.txt: Add glibc bugs 1231-1233.
86259
86260 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         Fix problems reported by Sam Steingold in
86263         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86264         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86265         assumed that reg_errcode_t is a signed type, which is not
86266         necessarily true if _XOPEN_SOURCE is not defined.
86267         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86268         since some compilers warn about it otherwise.
86269
86270 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86271
86272         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86273         (init_word_char, create_initial_state, duplicate_node_closure):
86274         (fetch_token, peek_token_bracket, build_range_exp):
86275         (build_collating_symbol): Remove forward decls; no longer needed
86276         now that we use prototypes.
86277
86278         * lib/regcomp.c:
86279         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86280         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86281         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86282         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86283         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86284         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86285         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86286         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86287         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86288         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86289         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86290         (build_charclass, build_charclass_op, fetch_number, create_tree):
86291         (create_token_tree, mark_opt_subexp, duplicate_tree):
86292         Use prototypes rather than old-style definitions.
86293
86294         * lib/regex_internal.c:
86295         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86296         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86297         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86298         (re_string_reconstruct, re_string_peek_byte_case):
86299         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86300         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86301         (re_node_set_init_copy, re_node_set_add_intersect):
86302         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86303         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86304         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86305         (re_acquire_state, re_acquire_state_context, register_state):
86306         (create_ci_newstate, create_cd_newstate, free_state):
86307         Likewise.
86308         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86309         re_search_2):
86310         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86311         (re_search_internal, prune_impossible_nodes):
86312         (acquire_init_state_context, check_matching, static):
86313         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86314         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86315         (update_regs, sift_states_backward, build_sifted_states):
86316         (clean_state_log_if_needed, merge_state_array):
86317         (update_cur_sifted_state, add_epsilon_src_nodes):
86318         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86319         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86320         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86321         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86322         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86323         (check_arrival, check_arrival_add_next_nodes):
86324         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86325         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86326         (check_node_accept_bytes, check_node_accept, extend_buffers):
86327         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86328         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86329         (sift_ctx_init):
86330         Likewise.
86331
86332         * lib/regex_internal.h:
86333         (re_string_allocate, re_string_construct, re_string_reconstruct):
86334         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86335         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86336         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86337         (re_string_context_at, re_string_peek_byte_case):
86338         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86339         is defined, since we now use prototypes always.
86340
86341         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86342         C89 or better.  All uses removed.
86343
86344 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86345
86346         * config/srclist.txt: Add glibc bugs 1220-1227.
86347
86348 2005-08-20  Jim Meyering  <jim@meyering.net>
86349
86350         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86351         of unused local, dfa.
86352
86353 2005-08-20  Bruno Haible  <bruno@clisp.org>
86354
86355         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86356
86357 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86360         (re_node_set_insert_last, re_dfa_add_node):
86361         Rename local variables to avoid GCC shadowing warnings.
86362
86363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86366         [defined lint]: Suppress bogus uninitialized-variable warnings.
86367
86368         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86369         and let the caller return REG_ESPACE if out of space.  This
86370         removes an uninitialied-variable warning with GCC 4.0.1, and also
86371         avoids taking the address of a local variable.  All callers
86372         changed.
86373
86374 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86377         $LIBCSRC/posix/regexec.c.
86378         Add glibc bug 1217 for regcomp.c.
86379
86380 2005-08-19  Jim Meyering  <jim@meyering.net>
86381
86382         * lib/regexec.c (proceed_next_node): Redo local variables to
86383         avoid GCC shadowing warnings.
86384
86385 2005-08-18  Bruno Haible  <bruno@clisp.org>
86386
86387         * lib/strstr.c (strstr): Fix return value in multibyte case.
86388         * lib/strcasestr.c (strcasestr): Likewise.
86389
86390 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86391
86392         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86393
86394 2005-08-17  Jim Meyering  <jim@meyering.net>
86395
86396         Make the %s format (seconds since the epoch) work for a negative
86397         number and when used with a zero-padded field width, e.g. %015s.
86398
86399         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86400         label so that it precedes the code to set `digits'.  Otherwise,
86401         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86402         print `00-22'.  Now, it prints `-0022', as it should.
86403
86404 2005-08-17  Bruno Haible  <bruno@clisp.org>
86405
86406         * modules/strstr (Files): Add m4/mbrtowc.m4.
86407         (Depends-on): Add mbuiter.
86408
86409 2005-08-17  Bruno Haible  <bruno@clisp.org>
86410
86411         * modules/strcasestr: New file.
86412         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86413         strcasestr.
86414
86415 2005-08-17  Bruno Haible  <bruno@clisp.org>
86416
86417         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86418
86419 2005-08-17  Bruno Haible  <bruno@clisp.org>
86420
86421         * modules/mbuiter: New file.
86422         * MODULES.html.sh (Extended multibyte and wide character utilities):
86423         Add mbuiter.
86424
86425 2005-08-17  Bruno Haible  <bruno@clisp.org>
86426
86427         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86428         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86429
86430 2005-08-17  Bruno Haible  <bruno@clisp.org>
86431
86432         * m4/strcasestr.m4: New file.
86433
86434 2005-08-17  Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86437         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86438
86439 2005-08-17  Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/strcasestr.h: New file.
86442         * lib/strcasestr.c: New file.
86443
86444 2005-08-17  Bruno Haible  <bruno@clisp.org>
86445
86446         * lib/strcasecmp.c: Use mbuiter.h.
86447
86448 2005-08-17  Bruno Haible  <bruno@clisp.org>
86449
86450         * lib/mbuiter.h: New file.
86451
86452 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86453
86454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86455         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86456         and gl_GETOPT are both invoked via different paths (as happens
86457         with GNU tar CVS because it uses both argp and getopt), the former
86458         wins.
86459
86460 2005-08-16  Bruno Haible  <bruno@clisp.org>
86461
86462         * modules/tls: New file.
86463         * MODULES.html.sh (Multithreading): Add tls.
86464
86465 2005-08-16  Bruno Haible  <bruno@clisp.org>
86466
86467         * modules/strnlen1: New file.
86468         * MODULES.html.sh (String handling): Add strnlen1.
86469
86470 2005-08-16  Bruno Haible  <bruno@clisp.org>
86471
86472         * modules/strcase (Files): Add m4/mbrtowc.m4.
86473         (Depends-on): Add strnlen1, mbchar.
86474
86475 2005-08-16  Bruno Haible  <bruno@clisp.org>
86476
86477         * modules/mbiter: New file.
86478         * MODULES.html.sh (Extended multibyte and wide character utilities):
86479         Add mbiter.
86480
86481 2005-08-16  Bruno Haible  <bruno@clisp.org>
86482
86483         * modules/mbfile: New file.
86484         * MODULES.html.sh (Extended multibyte and wide character utilities):
86485         Add mbfile.
86486
86487 2005-08-16  Bruno Haible  <bruno@clisp.org>
86488
86489         * modules/mbchar: New file.
86490         * MODULES.html.sh (Extended multibyte and wide character utilities):
86491         New section.
86492
86493 2005-08-16  Bruno Haible  <bruno@clisp.org>
86494
86495         * m4/tls.m4: New file, from GNU gettext.
86496
86497 2005-08-16  Bruno Haible  <bruno@clisp.org>
86498
86499         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86500         always.
86501         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86502
86503 2005-08-16  Bruno Haible  <bruno@clisp.org>
86504
86505         * m4/mbiter.m4: New file.
86506
86507 2005-08-16  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/mbfile.m4: New file.
86510
86511 2005-08-16  Bruno Haible  <bruno@clisp.org>
86512
86513         * m4/mbchar.m4: New file.
86514
86515 2005-08-16  Bruno Haible  <bruno@clisp.org>
86516
86517         * lib/tls.h: New file, from GNU gettext.
86518         * lib/tls.c: New file, from GNU gettext.
86519
86520 2005-08-16  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/strnlen1.h: New file.
86523         * lib/strnlen1.c: New file.
86524
86525 2005-08-16  Bruno Haible  <bruno@clisp.org>
86526
86527         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86528         (mbi_init): Update.
86529         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86530         NUL byte, not after it.
86531
86532 2005-08-16  Bruno Haible  <bruno@clisp.org>
86533
86534         * lib/strcase.h (strcasecmp): Add note in comments.
86535         * lib/strncasecmp.c: Use code from strcasecmp.c.
86536         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86537         (strcasecmp): Work correctly in multibyte locales.
86538
86539 2005-08-16  Bruno Haible  <bruno@clisp.org>
86540
86541         * lib/mbiter.h: New file.
86542
86543 2005-08-16  Bruno Haible  <bruno@clisp.org>
86544
86545         * lib/mbfile.h: New file.
86546
86547 2005-08-16  Bruno Haible  <bruno@clisp.org>
86548
86549         * lib/mbchar.h: New file.
86550         * lib/mbchar.c: New file.
86551
86552 2005-08-16  Bruno Haible  <bruno@clisp.org>
86553
86554         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86555         the valid ones. Makes the comparison operations transitive:
86556         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86557         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86558
86559 2005-08-15  Simon Josefsson  <jas@extundo.com>
86560
86561         * modules/ssize_t (License): Change to 'unlimited'.
86562
86563         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86564
86565 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86566
86567         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86568         Add comments for each pending glibc patch.
86569
86570 2005-08-15  Bruno Haible  <bruno@clisp.org>
86571
86572         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86573         __cplusplus is defined.
86574
86575 2005-08-14  Jim Meyering  <jim@meyering.net>
86576
86577         Sync from coreutils.
86578
86579         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86580         Use the hash-table-based cycle-detection code not just when
86581         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86582         Reported by James Youngman in
86583         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86584         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86585         FTS_TIGHT_CYCLE_CHECK.
86586         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86587         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86588         once again.
86589         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86590         * lib/fts.c (fd_safer): Remove decl.
86591         Include fcntl--.h rather than unistd-safer.h
86592         (fts_safe_changedir): Don't call fd_safer; no longer needed
86593         now that we include fcntl--.h.
86594
86595 2005-08-12  Simon Josefsson  <jas@extundo.com>
86596
86597         * modules/getndelim2: Use ssize_t module.
86598         * modules/getnline: Likewise.
86599         * modules/safe-read: Likewise.
86600         * modules/xreadlink: Likewise.
86601
86602         * modules/ssize_t: New file.
86603
86604 2005-08-12  Simon Josefsson  <jas@extundo.com>
86605
86606         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86607
86608 2005-08-12  Simon Josefsson  <jas@extundo.com>
86609
86610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86611         ssize_t.
86612
86613 2005-08-12  Simon Josefsson  <jas@extundo.com>
86614
86615         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86616         readline, getdelim and check_version.
86617         (Support for systems lacking ISO C 99: Sizes of integer types):
86618         Add size_max.
86619
86620 2005-08-12  Bruno Haible  <bruno@clisp.org>
86621
86622         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86623
86624 2005-08-11  Simon Josefsson  <jas@extundo.com>
86625
86626         * modules/readline: New file.
86627
86628         * modules/strnlen (Files): Add strnlen.h.
86629
86630 2005-08-11  Simon Josefsson  <jas@extundo.com>
86631
86632         * m4/readline.m4: New file.
86633
86634 2005-08-11  Simon Josefsson  <jas@extundo.com>
86635
86636         * lib/readline.h, readline.c: New file.
86637
86638 2005-08-11  Simon Josefsson  <jas@extundo.com>
86639
86640         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86641         gl_AVOID.
86642
86643 2005-08-11  Bruno Haible  <bruno@clisp.org>
86644
86645         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86646
86647 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86648
86649         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86650
86651 2005-08-10  Simon Josefsson  <jas@extundo.com>
86652
86653         * tests/test-iconvme.c: New file.
86654
86655 2005-08-10  Simon Josefsson  <jas@extundo.com>
86656
86657         * m4/strnlen.m4: New file.
86658
86659         * m4/strndup.m4: Don't check for strnlen declaration, done in
86660         strnlen.m4.
86661
86662 2005-08-10  Simon Josefsson  <jas@extundo.com>
86663
86664         * lib/strndup.c: Use strnlen.h.
86665
86666         * lib/strnlen.h: New file.
86667
86668 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86669
86670         * README: Typos.
86671
86672 2005-08-02  Simon Josefsson  <jas@extundo.com>
86673
86674         * modules/readline: New file.
86675
86676 2005-08-02  Simon Josefsson  <jas@extundo.com>
86677
86678         * modules/getdelim: New file.
86679
86680         * modules/getline: Rewrite, don't use getndelim2.
86681
86682 2005-08-02  Simon Josefsson  <jas@extundo.com>
86683
86684         * m4/getline.m4: Separate out getdelim stuff into separate module.
86685
86686         * m4/getdelim.m4: New file.
86687
86688 2005-08-02  Simon Josefsson  <jas@extundo.com>
86689
86690         * lib/getline.h, getline.c: Rewrite.
86691
86692         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86693
86694 2005-07-31  Bruno Haible  <bruno@clisp.org>
86695
86696         * lib/lock.h (gl_lock_initializer): New macro.
86697         (gl_lock_define_initialized): Use it.
86698         (gl_rwlock_initializer): New macro.
86699         (gl_rwlock_define_initialized): Use it.
86700         (gl_recursive_lock_initializer): New macro.
86701         (gl_recursive_lock_define_initialized): Use it.
86702
86703 2005-07-30  Karl Berry  <karl@gnu.org>
86704
86705         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86706         Report from Ben Pfaff, regarding getopt.
86707
86708 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86711         normal way.
86712         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86713         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86714         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86715         (gl_GETOPT): Use the new macros.  Most of the implementation
86716         is moved to the new macros.  This is for programs like Emacs
86717         that don't want all the functionality of gl_GETOPT.
86718
86719 2005-07-26  Bruno Haible  <bruno@clisp.org>
86720
86721         * m4/lock.m4: Update from GNU gettext.
86722
86723 2005-07-26  Bruno Haible  <bruno@clisp.org>
86724
86725         * lib/lock.h: Update from GNU gettext.
86726         * lib/lock.c: Update from GNU gettext.
86727
86728 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86729
86730         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86731         obsolescent AC_TRY_RUN.  Include the default includes files, for
86732         'exit'.
86733
86734 2005-07-24  Bruno Haible  <bruno@clisp.org>
86735
86736         * modules/visibility: New file.
86737         * MODULES.html.sh (Misc): Add visibility.
86738
86739 2005-07-24  Bruno Haible  <bruno@clisp.org>
86740
86741         * m4/visibility.m4: New file.
86742
86743 2005-07-24  Bruno Haible  <bruno@clisp.org>
86744
86745         * doc/visibility.texi: New file.
86746
86747 2005-07-22  Bruno Haible  <bruno@clisp.org>
86748
86749         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86750         $(ALLOCA_H), redundant through BUILT_SOURCES.
86751         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86752         redundant through BUILT_SOURCES.
86753         * modules/byteswap (Makefile.am): Remove explicit dependency on
86754         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86755         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86756         $(FNMATCH_H), redundant through BUILT_SOURCES.
86757         * modules/getopt (Makefile.am): Remove explicit dependency on
86758         $(GETOPT_H), redundant through BUILT_SOURCES.
86759         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86760         redundant through BUILT_SOURCES.
86761         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86762         redundant through BUILT_SOURCES.
86763         * modules/stdbool (Makefile.am): Remove explicit dependency on
86764         $(STDBOOL_H), redundant through BUILT_SOURCES.
86765         * modules/stdint (Makefile.am): Remove explicit dependency on
86766         $(STDINT_H), redundant through BUILT_SOURCES.
86767         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86768         Remove explicit dependency on $(SYSEXITS_H).
86769         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86770
86771 2005-07-18  Simon Josefsson  <jas@extundo.com>
86772
86773         * lib/check-version.c (check_version): Accept identical versions too.
86774
86775 2005-07-18  Bruno Haible  <bruno@clisp.org>
86776
86777         * modules/lock: New file.
86778         * MODULES.html.sh (Multithreading): New section.
86779
86780 2005-07-18  Bruno Haible  <bruno@clisp.org>
86781
86782         * m4/lock.m4: New file, from GNU gettext.
86783
86784 2005-07-18  Bruno Haible  <bruno@clisp.org>
86785
86786         * lib/lock.h: New file, from GNU gettext.
86787         * lib/lock.c: New file, from GNU gettext.
86788
86789 2005-07-18  Bruno Haible  <bruno@clisp.org>
86790
86791         * lib/lock.h (gl_once_t): New type.
86792         (gl_once_define, gl_once): New macros.
86793         * lib/lock.c (fresh_once): New variable.
86794         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86795         functions.
86796
86797 2005-07-16  Simon Josefsson  <jas@extundo.com>
86798
86799         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86800         workaround, suggested by Bruno.
86801
86802 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86803
86804         * modules/xalloc (Depends-on): Add xalloc-die.
86805         * modules/xvasprintf (Depends-on): Add xalloc-die.
86806
86807 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86808
86809         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86810         with a minor change.
86811
86812 2005-07-15  Bruno Haible  <bruno@clisp.org>
86813
86814         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86815         When using lib/poll.c, define poll as rpl_poll.
86816
86817 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86818
86819         * modules/argp (Depends-on): Remove unlocked-io.
86820
86821 2005-07-14  Derek Price  <derek@ximbiot.com>
86822
86823         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86824         for glob symlink bug.
86825
86826 2005-07-14  Bruno Haible  <bruno@clisp.org>
86827
86828         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86829         Instead, test for *_unlocked function declarations directly.
86830
86831 2005-07-11  Simon Josefsson  <jas@extundo.com>
86832
86833         * modules/size_max: New file.
86834
86835         * modules/xsize: Depend on size_max module for size_max.m4.
86836
86837 2005-07-11  Simon Josefsson  <jas@extundo.com>
86838
86839         * lib/size_max.h: New file.
86840
86841 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86842
86843         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86844         copyright symbol and the year.
86845         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86846         (version_etc_va): Use parameterized copyright notice.
86847         Reword to conform to the current GNU coding standards.
86848
86849 2005-07-11  Karl Berry  <karl@gnu.org>
86850
86851         * doc/gnulib.texi (Quoting): new node.
86852         (Initial import): more info, from Patrice.
86853
86854 2005-07-11  Bruno Haible  <bruno@clisp.org>
86855
86856         * gnulib-tool (func_usage): Document option --avoid.
86857         (Command line options): Handle --avoid.
86858         (func_acceptable): New function.
86859         (func_modules_transitive_closure): Use it.
86860
86861 2005-07-11  Bruno Haible  <bruno@clisp.org>
86862
86863         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86864         Reported by Jim Meyering.
86865
86866 2005-07-10  Bruno Haible  <bruno@clisp.org>
86867
86868         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86869         Needed when size_t is smaller than 'unsigned int'.
86870         Reported by Paul Eggert.
86871
86872 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86873
86874         * modules/argp (Depends-on): Add unlocked-io
86875
86876 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86877
86878         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86879         block of defines.
86880
86881 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86882
86883         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86884         fix now.
86885
86886 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86887         and Paul Eggert  <eggert@cs.ucla.edu>
86888
86889         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86890         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86891
86892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         * modules/regex (Files): Add lib/regex_internal.c,
86895         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86896         (Depends-on): Add extensions.
86897         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86898
86899 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86900
86901         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86902         pathconf.
86903         * m4/same.m4 (gl_SAME): Likewise.
86904         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86905
86906         * m4/regex.m4: Adjust to new libc regex implementation.
86907         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86908         all the .c and .h parts of (the new) regex.
86909         Quote the m4 stuff better.
86910         Check for RE_ICASE bug of old gnulib.
86911         Check for REG_STARTEND of recent libc.
86912         Rename local variables from jm_* to gl_*.
86913         Quote operand of "test -f".
86914         Say "recent enough" version of libc, not "version 2".
86915         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86916         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86917         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86918         Remove check for btowc, isascii.
86919         Require AM_LANGINFO_CODESET.
86920
86921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86922
86923         * lib/regex.c, regex.h: Sync from libc.
86924         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86925         * lib/regexec.c:
86926         New files, synced from libc, except that regex_internal.h
86927         currently has a small porting fix.
86928
86929 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86930
86931         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86932         regex_internal.c, regexec.c.
86933         Add regex_internal.h too, but as a comment, since the libc version
86934         is currently broken in gnulib mode.
86935
86936 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86937
86938         Support programs like Emacs that use gnulib but not gettext.
86939         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86940         * modules/gettext-h: New file.
86941         * modules/gettext (Files): Remove lib/gettext.h.
86942         (Depends-on): Add gettext-h.
86943         (Makefile.am): Remove lib_SOURCES.
86944         * modules/argmatch, modules/c-stack, modules/closeout:
86945         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86946         * modules/execute, modules/file-type, modules/getaddrinfo:
86947         * modules/getopt, modules/human, modules/javacomp:
86948         * modules/javaexec, modules/mkdir-p, modules/obstack:
86949         * modules/openat, modules/pagealign_alloc, modules/pipe:
86950         * modules/quotearg, modules/regex, modules/rpmatch:
86951         * modules/unicodeio, modules/userspec, modules/version-etc:
86952         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86953         * modules/xsetenv:
86954         Depend on gettext-h, not gettext.
86955
86956 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * gnulib-tool (func_import): Add support for 'public domain' license.
86959         * modules/alloca, modules/atexit, modules/memmove:
86960         Now public domain, not GPL.
86961         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86962         * modules/realloc, modules/strerror, modules/strtod:
86963         Now LGPL, not GPL.
86964
86965 2005-07-05  Bruno Haible  <bruno@clisp.org>
86966
86967         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86968         autoconf CVS. Needed for mingw.
86969
86970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         Remove the dependency of the strftime module on the tzset module.
86973         * modules/strftime (Depends-on): Remove dependency on tzset.
86974
86975 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86976
86977         Remove the dependency of the strftime module on the tzset module.
86978         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86979         gl_FUNC_TZSET_CLOBBER.
86980
86981 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86982
86983         Remove the dependency of the strftime module on the tzset module.
86984         * lib/strftime.c (my_strftime)
86985         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86986         Copy the input structure, to work around some of the bug with
86987         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86988         Solaris releases, you should also use the tzset module, but we won't
86989         require it as a dependency any more since we don't want LGPLed code
86990         to depend on GPLed code.
86991
86992 2005-07-02  Jim Meyering  <jim@meyering.net>
86993
86994         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86995         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86996         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86997         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86998
86999 2005-07-02  Jim Meyering  <jim@meyering.net>
87000
87001         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87002
87003 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87004
87005         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87006         declares only 'struct timespec;' (!).
87007
87008 2005-07-01  Jim Meyering  <jim@meyering.net>
87009
87010         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87011         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87012         * lib/save-cwd.c, tempname.c:
87013         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87014         and don't include <sys/file.h>).
87015
87016 2005-06-29  Jim Meyering  <jim@meyering.net>
87017
87018         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87019         type name.  Use the variable name instead.
87020         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87021         Likewise.
87022
87023 2005-06-28  Simon Josefsson  <jas@extundo.com>
87024
87025         * modules/check-version (Files): Add check-version.m4.
87026
87027 2005-06-28  Simon Josefsson  <jas@extundo.com>
87028
87029         * m4/check-version.m4: New file, suggested by Jim Meyering
87030         <jim@meyering.net>.
87031
87032 2005-06-28  Simon Josefsson  <jas@extundo.com>
87033
87034         * lib/check-version.h, lib/check-version.c: New files.
87035
87036 2005-06-28  Simon Josefsson  <jas@extundo.com>
87037
87038         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87039         collision with global variable.  Better indentation.  Don't
87040         increment buffer pointer beyond buffer end.  Based on comments
87041         from Paul Eggert <eggert@cs.ucla.edu>.
87042
87043         * lib/base64.h: Indent.
87044
87045 2005-06-28  Simon Josefsson  <jas@extundo.com>
87046
87047         * doc/gnulib.texi (Library version handling): New section.
87048
87049 2005-06-28  Jim Meyering  <jim@meyering.net>
87050
87051         * check-module (find_included_lib_files): Hard-code another
87052         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87053         but modules/fts-lgpl (correctly) does not list those files.
87054
87055         * modules/canonicalize (Files): Add lib/pathmax.h.
87056
87057 2005-06-25  Simon Josefsson  <jas@extundo.com>
87058
87059         * modules/check-version: New file.
87060
87061 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87062
87063         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87064         initializer of struct addrinfo, as an indication that we don't
87065         care how many members the structure has.
87066
87067 2005-06-24  Derek Price  <derek@ximbiot.com>
87068         and Bruno Haible  <bruno@clisp.org>
87069
87070         Remove stat module & update lstat.
87071         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87072         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87073         * m4/stat.m4: Remove this file.
87074
87075 2005-06-24  Derek Price  <derek@ximbiot.com>
87076         and Bruno Haible  <bruno@clisp.org>
87077
87078         Remove stat module & update lstat.
87079         * lib/stat.c: Remove this file...
87080         (slash_aware_lstat): ...moving this content and its support...
87081         * lib/lstat.c (rpl_lstat): ...into here.
87082         * lib/lstat.h: New file.
87083
87084 2005-06-24  Derek Price  <derek@ximbiot.com>
87085         and Bruno Haible  <bruno@clisp.org>
87086
87087         Remove stat module & update lstat.
87088         * config/srclist.txt (libc sources): Remove stat.
87089
87090 2005-06-24  Derek Price  <derek@ximbiot.com>
87091         and Bruno Haible  <bruno@clisp.org>
87092
87093         Remove stat module & update lstat.
87094         * MODULES.html.sh (stat): Remove.
87095         * MODULES.html: Regenerated.
87096         * modules/lstat (Description): Correct function name.
87097         (Files): Add "lstat.h".
87098         (Depends-on): Remove stat, add xalloc, stat-macros.
87099         * modules/stat: Remove this file.
87100         (Include): Add "lstat.h", remove <sys/stat.h>.
87101
87102 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87103
87104         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87105         (ranged_convert): Don't save conversion in a temporary struct.
87106         This causes a warning with GCC 4.0.0, and anyway in the typical
87107         case it's not worth the extra 100 bytes or so of code.
87108         (ranged_convert, __mktime_internal): When calling a function via a
87109         pointer P, use P () rather than (*P) (), as we now assume C89 or
87110         better.
87111
87112 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87113
87114         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87115         "who -r" failed to give output.  Problem reported by Tim Waugh.
87116
87117         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87118         (xcalloc): Use it to avoid needless tests.
87119         Problem reported by Jim Meyering.
87120
87121 2005-06-20  Derek Price  <derek@ximbiot.com>
87122
87123         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87124         unnecessary for Autoconfs > 2.59c.
87125
87126 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87127
87128         * lib/argp.h (__option_is_short): Check upper limit of
87129         __key. Isprint() requires its argument to have the value
87130         of an unsigned char or EOF.
87131
87132 2005-06-16  Jim Meyering  <jim@meyering.net>
87133
87134         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87135         when either N or S is zero.
87136
87137 2005-06-16  Derek Price  <derek@ximbiot.com>
87138
87139         * m4/bison.m4: Declare YACC & YFLAGS precious.
87140
87141 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87142
87143         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87144         multibyte string or pattern, fall back on unibyte matching.
87145         Problem reported by James Youngman.
87146
87147 2005-06-08  Bruno Haible  <bruno@clisp.org>
87148
87149         * modules/csharpcomp: New file.
87150         * MODULES.html.sh (C#): Add csharpcomp.
87151
87152 2005-06-08  Bruno Haible  <bruno@clisp.org>
87153
87154         * m4/csharpcomp.m4: New file, from GNU gettext.
87155
87156 2005-06-08  Bruno Haible  <bruno@clisp.org>
87157
87158         * lib/csharpcomp.h: New file, from GNU gettext.
87159         * lib/csharpcomp.c: New file, from GNU gettext.
87160         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87161
87162 2005-06-08  Bruno Haible  <bruno@clisp.org>
87163
87164         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87165         warning on mingw.
87166
87167 2005-06-07  Derek Price  <derek@ximbiot.com>
87168
87169         Sync from CVS.
87170         * lib/glob_.h: Indent nested #ifdef.
87171
87172 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87173
87174         Sync from coreutils.
87175         Use "file name" when talking about file names, instead of "filename"
87176         or "path", as per the GNU coding standards.
87177         * lib/mkdir-p.c: Renamed from makepath.c.
87178         (make_dir_parents): Renamed from make_path.  All callers changed.
87179         * lib/mkdir-p.h: Likewise.  All includers changed.
87180         * lib/filenamecat.c: Renamed from path-concat.c.
87181         (file_name_concat): Renamed from path_concat.  All callers changed.
87182         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87183         * lib/filenamecat.h: Likewise.  All includers changed.
87184         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87185         in comments or local variable names.
87186         * lib/basename.c: Likewise.
87187         * lib/canonicalize.c, canonicalize.h: Likewise.
87188         * lib/dirname.c, dirname.h: Likewise.
87189         * lib/euidaccess.c: Likewise.
87190         * lib/exclude.c: Likewise
87191         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87192         * lib/fsusage.c, fsuage.h: Likewise.
87193         * lib/fts.c, fts_.h: Likewise.
87194         * lib/getcwd.c: Likewise.
87195         * lib/getloadavg.c: Likewise.
87196         * lib/mkstemp.c: Likewise.
87197         * lib/mountlist.c, mountlist.h: Likewise.
87198         * lib/openat.c, openat.h: Likewise.
87199         * lib/readlink-stub.c: Likewise.
87200         * lib/readutmp.c, readutmp.h: Likewise.
87201         * lib/rename.c: Likewise.
87202         * lib/rmdir.c: Likewise.
87203         * lib/same.c: Likewise.
87204         * lib/savedir.c: Likewise.
87205         * lib/stripslash.c: Likewise.
87206         * lib/tempname.c: Likewise.
87207         * lib/xreadlink.c: Likewise.
87208         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87209         All uses changed.
87210         * lib/exclude.h: Likewise.
87211
87212         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87213         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87214         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87215         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87216         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87217         files have been getting away with it for years (MORE/BSD 4.3
87218         is extinct now).
87219         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87220         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87221
87222         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87223         Define to 256, not 255, as per modern POSIX.
87224
87225 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87226
87227         Sync from coreutils.
87228         Use "file name" when talking about file names, instead of "filename"
87229         or "path", as per the GNU coding standards.
87230         * MODULES.html.sh: mkdir-p renamed from makepath.
87231         filenamecat renamed from path-concat.
87232         * modules/filenamecat: Renamed from modules/path-concat.
87233         (Files): filenamecat.h and filenamecat.c renamed from
87234         path-concat.h and path-concat.c.
87235         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87236         (Include): filenamecat.h, not path-concat.h.
87237         * modules/mkdir-p: Renamed from modules/makepath.
87238         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87239         makepath.c.
87240         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87241         (Include): mkdir-p.h, not makepath.h.
87242
87243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87244
87245         Sync from coreutils.
87246         * m4/mkdir-p.m4: Renamed from makepath.m4.
87247         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87248         Rename files from makepath.c to mkdir-p.c, and from
87249         makepath.h to mkdir-p.h.
87250         * m4/filenamecat.m4: Renamed from path-concat.m4.
87251         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87252         Rename files from path-concat.c to filenamecat.c,
87253         and from path-concat.h to filenamecat.h.
87254         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87255         "file name" in local variables or comments.
87256         * m4/rename.m4: Likewise.
87257
87258 2005-06-01  Bruno Haible  <bruno@clisp.org>
87259
87260         * modules/csharpexec: New file.
87261         * MODULES.html.sh (C#): New section.
87262
87263 2005-06-01  Bruno Haible  <bruno@clisp.org>
87264
87265         * m4/csharp.m4: New file, from GNU gettext.
87266         * m4/csharpexec.m4: New file, from GNU gettext.
87267
87268 2005-06-01  Bruno Haible  <bruno@clisp.org>
87269
87270         * lib/csharpexec.h: New file, from GNU gettext.
87271         * lib/csharpexec.c: New file, from GNU gettext.
87272         * lib/csharpexec.sh.in: New file, from GNU gettext.
87273
87274 2005-05-31  Derek Price  <derek@ximbiot.com>
87275             Paul Eggert  <eggert@cs.ucla.edu>
87276
87277         Sync from cvs.
87278         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87279
87280 2005-05-31  Derek Price  <derek@ximbiot.com>
87281             Paul Eggert  <eggert@cs.ucla.edu>
87282
87283         Sync from cvs.
87284         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87285
87286 2005-05-29  Derek Price  <derek@ximbiot.com>
87287
87288         * config/srclist.txt (glob_.h, glob.c): Add these files.
87289
87290 2005-05-29  Derek Price  <derek@ximbiot.com>
87291
87292         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87293         * modules/glob: New file.
87294         * modules/getlogin_r: Add link to POSIX spec in description.
87295
87296 2005-05-29  Derek Price  <derek@ximbiot.com>
87297             Paul Eggert  <eggert@cs.ucla.edu>
87298
87299         * m4/glob.m4: New file.
87300
87301 2005-05-29  Derek Price  <derek@ximbiot.com>
87302             Paul Eggert  <eggert@cs.ucla.edu>
87303
87304         * lib/glob_.h, lib/glob.c: New files.
87305
87306 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87307
87308         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87309         * modules/fts-lgpl (Depends-on): Remove gettext.
87310
87311 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87312
87313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87314         and don't require gt_INTTYPES_PRI.
87315
87316 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87317
87318         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87319
87320         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87321         the configuration hassle isn't worth it.
87322         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87323         (LONGEST_MODIFIER, PRIuMAX): Remove.
87324
87325 2005-05-27  Bruno Haible  <bruno@clisp.org>
87326
87327         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87328
87329 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87332         _POSIX_PTHREAD_SEMANTICS for Solaris.
87333
87334 2005-05-25  Derek Price  <derek@ximbiot.com>
87335
87336         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87337
87338 2005-05-25  Derek Price  <derek@ximbiot.com>
87339             Paul Eggert  <eggert@cs.ucla.edu>
87340
87341         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87342         * lib/getlogin_r.c, getlogin_r.h: New files.
87343
87344 2005-05-25  Bruno Haible  <bruno@clisp.org>
87345             Derek Price  <derek@ximbiot.com>
87346
87347         * lib/getlogin_r.h: Simplify API documentation.
87348
87349 2005-05-23  Derek Price  <derek@ximbiot.com>
87350
87351         * modules/minmax (Files): Add m4/minmax.m4.
87352         (configure.ac): Add gl_MINMAX.
87353
87354 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87355
87356         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87357         so that unistd-safer.h (GPL'ed code) need not be included.
87358
87359 2005-05-22  Bruno Haible  <bruno@clisp.org>
87360
87361         * m4/minmax.m4: New file.
87362         Based on a patch by Derek Price <derek@ximbiot.com>.
87363
87364 2005-05-22  Bruno Haible  <bruno@clisp.org>
87365
87366         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87367         (INT64_MIN): Fix definition.
87368         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87369
87370         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87371         NEED_SIGNED_INT_TYPES.
87372
87373         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87374         HAVE_SYSTEM_INTTYPES.
87375
87376 2005-05-22  Bruno Haible  <bruno@clisp.org>
87377
87378         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87379         Also include <sys/param.h> if it defines MIN, MAX.
87380         Based on a patch by Derek Price <derek@ximbiot.com>.
87381
87382 2005-05-21  Jim Meyering  <jim@meyering.net>
87383
87384         * modules/fts (Files): Add m4/inttypes-pri.m4.
87385         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87386
87387 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87388
87389         New fts module.
87390         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87391         (setup_dir, free_dir): New functions.
87392         (enter_dir, leave_dir): Define trivial
87393         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87394         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87395         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87396         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87397         Move to fts-cycle.c.
87398         (fts_open): Use setup_dir.
87399         (fts_close): Use free_dir.
87400         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87401         This adds a label and some gotos, but the alternatives were messier.
87402         Check for memory allocation failure when entering a dir.
87403         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87404         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87405         (FTS): New member fts_cycle, that is a union that contains the
87406         old active_dir_ht and cycle_state.  All uses changed to mention
87407         fts_cycle.ht and fts_cycle.state.
87408         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87409         fts.c, with the following changes:
87410         (setup_dir, free_dir): New functions.
87411         (enter_dir): Now returns bool.  Return true if successful, false
87412         if memory exhausted.  All callers changed.
87413         Do not bother partly cleaning up on
87414         memory allocation failure; that is free_dir's job.
87415         However, free ad if hash_insert fails, to avoid memory leak.
87416         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87417         fts->fts_options to see which union member to use.
87418
87419 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87420
87421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87422         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87423
87424 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87425
87426         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87427
87428 2005-05-20  Jim Meyering  <jim@meyering.net>
87429
87430         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87431         Now a macro, to pacify GCC.
87432
87433 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87434
87435         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87436         of -1.
87437
87438 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87439
87440         * lib/chown.c (rpl_chown): Return -1 on failure.
87441
87442 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87443
87444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87445         Don't check for stddef.h.
87446         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87447         don't use its results.
87448         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87449         since we include them unconditionally.  Don't require
87450         AM_STDBOOL_H, since stdbool is a prerequisite.
87451         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87452         since we assume C89 or better.
87453         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87454         as we don't use their results.
87455         Don't check for fchdir, memmove, memset, strrchr, as we use
87456         them unconditionally.
87457         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87458         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87459
87460 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87461
87462         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87463         Include <stddef.h> unconditionally, since we assume C89 now.
87464         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87465         * lib/fts.c: Include fts_.h first, to check interface.
87466         Do not include intprops.h; no longer needed.
87467         Include cycle-check.h and hash.h, since fts_.h no longer does.
87468         Remove unnecessary casts of closedir to void.
87469         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87470         decide whether to decrement nlinks.
87471         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87472         (FTS): Use struct hash_table * instead of Hash_table, so that
87473         we no longer need to include hash.h here.
87474
87475 2005-05-18  Jim Meyering  <jim@meyering.net>
87476
87477         * modules/dirfd (License): Change to LGPL.  Most of the code
87478         is already in the public domain.
87479
87480 2005-05-18  Jim Meyering  <jim@meyering.net>
87481
87482         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87483         Reported by Yoann Vandoorselaere.
87484
87485 2005-05-17  Jim Meyering  <jim@meyering.net>
87486
87487         * m4/fts.m4: New file, from coreutils.
87488
87489 2005-05-17  Jim Meyering  <jim@meyering.net>
87490
87491         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87492
87493 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87494
87495         Sync from coreutils.
87496         * m4/unlinkdir.m4: New file.
87497
87498 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87499
87500         Sync from coreutils.
87501         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87502         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87503         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87504         White space changes only.
87505         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87506         special.
87507         * lib/yesno.c: Include getline.h, not ctype.h.
87508         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87509         Use getline to remove arbitrary restriction on response length.
87510
87511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * config/srclist-update: Spell out "Street" in FSF postal
87514         mail address; this is the style the FSF seems to prefer.
87515
87516         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87517         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87518         this updates FSF postal mail address.
87519
87520         Sync from coreutils.
87521         * modules/unlinkdir: New file.
87522         * modules/yesno (Depends-on): Add getline.
87523         * MODULES.html.sh (File system functions): Add unlinkdir.
87524
87525 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87526
87527         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87528         lib/strsep.h:
87529         Change the initial comment to refer to GPL, not LGPL.
87530         gnulib-tool will change it to LGPL as needed.
87531
87532         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87533         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87534         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87535         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87536         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87537         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87538         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87539         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87540         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87541         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87542         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87543         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87544         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87545         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87546         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87547         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87548         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87549         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87550         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87551         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87552         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87553         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87554         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87555         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87556         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87557         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87558         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87559         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87560         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87561         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87562         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87563         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87564         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87565         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87566         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87567         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87568         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87569         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87570         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87571         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87572         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87573         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87574         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87575         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87576         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87577         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87578         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87579         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87580         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87581         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87582         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87583         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87584         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87585         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87586         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87587         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87588         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87589         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87590         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87591         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87592         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87593         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87594         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87595         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87596         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87597         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87598         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87599         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87600         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87601         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87602         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87603         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87604         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87605         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87606         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87607         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87608         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87609         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87610         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87611         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87612         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87613         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87614         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87615         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87616         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87617         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87618         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87619         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87620         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87621         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87622         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87623         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87624         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87625         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87626         lib/yesno.c, lib/yesno.h:
87627         Update FSF postal mail address.
87628
87629 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87630
87631         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87632         tests/test-memmem.c, tests/test-stpncpy.c:
87633         Update FSF postal mail address.
87634
87635 2005-05-13  Bruno Haible  <bruno@clisp.org>
87636
87637         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87638         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87639         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87640         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87641         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87642         Add support for 64-bit integers in the MSVC compiler.
87643
87644 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87645
87646         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87647
87648 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87649
87650         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87651
87652 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87653
87654         * doc/getdate.texi (General date syntax): Don't say that date
87655         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87656         Problem reported by Nic Ferrier.
87657
87658 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87659
87660         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87661         specified in ai_socktype. Fix invalid ai_protocol
87662         check. ai_protocol is usually set to 0 or depending on
87663         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87664         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87665         ai_socktype / ai_protocol in the returned addrinfo structure.
87666
87667 2005-05-10  Simon Josefsson  <jas@extundo.com>
87668
87669         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87670         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87671
87672 2005-05-10  Karl Berry  <karl@gnu.org>
87673
87674         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87675         (from http://www.gnu.org/licenses).
87676         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87677         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87678         fdl.texi suffices.
87679
87680 2005-05-10  Karl Berry  <karl@gnu.org>
87681
87682         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87683         (COPYING.DOC): remove.
87684
87685         * config/srclist-update: new FSF address.
87686
87687 2005-05-10  Derek Price  <derek@ximbiot.com>
87688
87689         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87690         possible.
87691
87692 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87693             Bruno Haible  <bruno@clisp.org>
87694
87695         * modules/inet_ntop: New file.
87696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87697         inet_ntop.
87698
87699 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87700             Bruno Haible  <bruno@clisp.org>
87701
87702         * m4/inet_ntop.m4: New file.
87703
87704 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87705             Bruno Haible  <bruno@clisp.org>
87706
87707         * lib/inet_ntop.h: New file.
87708         * lib/inet_ntop.c: New file, from glibc with modifications.
87709
87710 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87711
87712         * modules/time_r (License): Change to LGPL.
87713         * modules/extensions (License): Change to LGPL.  Actually,
87714         the license is more permissive than that, but currently gnulib-tool
87715         doesn't know how to handle more-permissive licenses.
87716
87717         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87718         Problem reported by Dave Love.
87719
87720 2005-05-08  Jim Meyering  <jim@meyering.net>
87721
87722         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87723         blank.
87724
87725 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87726
87727         * modules/argmatch (Depends-on): Add stdbool.
87728         * modules/backupfile (Depends-on): Likewise.
87729         * modules/chdir-long (Depends-on): Likewise.
87730         * modules/closeout (Depends-on): Likewise.
87731         * modules/cycle-check (Depends-on): Likewise.
87732         * modules/dirname (Depends-on): Likewise.
87733         * modules/fnmatch (Depends-on): Likewise.
87734         * modules/fsusage (Depends-on): Likewise.
87735         * modules/fwriteerror (Depends-on): Likewise.
87736         * modules/getcwd (Depends-on): Likewise.
87737         * modules/getloadavg (Depends-on): Likewise.
87738         * modules/hard-locale (Depends-on): Likewise.
87739         * modules/makepath (Depends-on): Likewise.
87740         * modules/mountlist (Depends-on): Likewise.
87741         * modules/nanosleep (Depends-on): Likewise.
87742         * modules/posixtm (Depends-on): Likewise.
87743         * modules/quotearg (Depends-on): Likewise.
87744         * modules/readtokens (Depends-on): Likewise.
87745         * modules/readtokens0 (Depends-on): Likewise.
87746         * modules/readutmp (Depends-on): Likewise.
87747         * modules/save-cwd (Depends-on): Likewise.
87748         * modules/strftime (Depends-on): Likewise.
87749         * modules/userspec (Depends-on): Likewise.
87750         * modules/utimecmp (Depends-on): Likewise.
87751         * modules/xgetcwd (Depends-on): Likewise.
87752         * modules/xnanosleep (Depends-on): Likewise.
87753         * modules/xstrtod (Depends-on): Likewise.
87754         * modules/yesno (Depends-on): Likewise.
87755
87756 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87757
87758         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87759         needless checks.
87760
87761 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87762
87763         Merge from coreutils.  Among other things,
87764         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87765         * lib/fd-safer.c: New file.
87766         * lib/fcntl-safer.h, open-safer.c: Remove.
87767         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87768         * lib/dup-safer.c: Include unistd-safer.h first.
87769         Don't include errno.h.
87770         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87771         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87772         * lib/file-type.c: Rely on file-type.h change.
87773         * lib/getloadavg.c: Include unistd-safer.h.
87774         (getloadavg): Use safer open.
87775         * lib/getusershell.c: Include "stdio-safer.h".
87776         (getusershell): Use safer fopen.
87777         * lib/long-options.c (long_options): Use NULL rather than 0.
87778         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87779         'free'.
87780         * lib/modechange.c: Likewise.
87781         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87782         (MODE_DONE): New constant.
87783         (struct mode_change): Remove 'next' member.
87784         (make_node_op_equals): New function; like the old one of the
87785         same name, except it allocates an array.
87786         (mode_compile, mode_create_from_ref): Use it.
87787         (mode_compile): Allocate result as an array, not a linked list.
87788         Parse octal string ourself, so that we catch mistakes like "+0".
87789         (mode_adjust): Arg is an array, not a linked list.
87790         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87791         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87792         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87793         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87794         Remove.  This is now stat-macros.h's job.
87795         (talloc): Remove.  All callers replaced by xalloc, so that
87796         our invokers don't have to worry about reporting memory failures.
87797         (make_node_op_equals): Remove.
87798         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87799         New constants.
87800         (struct mode_change): Moved here from modechange.h.
87801         (mode_append_entry): Remove.
87802         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87803         apps to have incorrect behavior.  Use simpler algorithm for head
87804         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87805         Detect more invalid usages rather than having somewhat-random behavior.
87806         Don't insert an "a=" action, as that leads to incorrect behavior.
87807         (mode_compile, mode_create_from_ref): Return NULL on error instead
87808         of an enum, since now there's only one way to have an error.  All
87809         callers changed.
87810         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87811         at the correct time.  Simplify calculation of "+u" and its ilk.
87812         Don't mishandle "+X".
87813         (mode_free): Remove "register" and localize decls.
87814         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87815         (struct mode_change): Move to modechange.c; callers don't
87816         need to see this stuff.
87817         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87818         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87819         (mode_change, mode_adjust): Reflect the new signatures noted above.
87820         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87821         that might redefine system include files.
87822         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87823         (my_usleep): Use NULL rather than (void *) 0.
87824         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87825         Use siginterrupt to specify that system calls should be interrupted.
87826         (rpl_nanosleep): Move initialization of suspended closer to call of
87827         my_usleep.
87828         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87829         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87830         (desirable_utmp_entry): New function.
87831         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87832         using x2nrealloc, to simplify logic.
87833         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87834         size calculation.  Do not assume utmp file is a regular file.
87835         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87836         (READ_UTMP_CHECK_PIDS): New constant.
87837         * lib/save-cwd.c: Include unistd-safer.h.
87838         (save_cwd): Use fd_safer.
87839         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87840         [!_LIBC] Include "stat-macros.h" instead.
87841         * lib/unistd-safer.h (fd_safer): New decl.
87842
87843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87844
87845         * modules/getloadavg (Depends-on): Add unistd-safer.
87846         * modules/getusershell (Depends-on): Add stdio-safer.
87847         * modules/lstat (Depends-on): Remove xalloc.
87848         * modules/mkstemp (Depends-on): Add stat-macros.
87849         * modules/modechange (Depends-on): Remove xstrtol.
87850         Add stat-macros, xalloc.
87851         * modules/save-cwd (Depends-on): Add unistd-safer.
87852         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87853         * modules/unistd-safer (Files): Add lib/fd-safer.c
87854         (Makefile.am): Remove lib_SOURCES.
87855
87856         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87857         Remove fcntl-safer; unistd-safer supersedes it.
87858
87859 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87860
87861         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87862         AC_HEADER_STAT.
87863         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87864         (gl_PREREQ_CHOWN): Remove.
87865         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87866         it.  Don't require AC_HEADER_STAT.
87867         (gl_PREREQ_LSTAT): Remove.
87868         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87869         Don't require AC_HEADER_STAT.
87870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87871         (gl_PREREQ_RMDIR): Remove.
87872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87873         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87874         the stat-macros module a prerequisite.
87875         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87876         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87877         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87878         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87879         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87880         variable names.
87881         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87882         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87883         variable prefixes.
87884         * m4/fcntl-safer.m4: Remove.
87885         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87887         Invoke gl_PREREQ_FD_SAFER.
87888         (gl_PREREQ_FD_SAFER): New macro.
87889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87890         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87891         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87892         Remove duplicate call to AC_LIBOBJ(readutmp).
87893         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87894
87895         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87896         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87897
87898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87899
87900         * MODULES.html.sh (Misc): Add byteswap.
87901
87902 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87903
87904         * modules/getcwd (Depends-on): Add extensions.
87905         * modules/openat (Depends-on): Likewise.
87906
87907 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87908
87909         * modules/byteswap: New file.
87910
87911 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87912
87913         * m4/byteswap.m4: New file.
87914
87915 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87916
87917         * lib/byteswap_.h: New file.
87918
87919 2005-04-25  Karl Berry  <karl@gnu.org>
87920
87921         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87922
87923 2005-04-25  Albert Chin  <china@thewrittenword.com>
87924
87925         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87926         Toolkit C bug.
87927
87928 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87929
87930         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87931         (func_ln_if_changed): Remove forcibly for no error message
87932         in case file does not exist.
87933
87934 2005-04-19  Simon Josefsson  <jas@extundo.com>
87935
87936         * gnulib-tool (Options): Make --symlink mean --symbolic.
87937
87938 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87939
87940         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87941
87942 2005-04-16  Simon Josefsson  <jas@extundo.com>
87943
87944         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87945
87946 2005-04-15  Simon Josefsson  <jas@extundo.com>
87947
87948         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87949
87950 2005-04-15  Simon Josefsson  <jas@extundo.com>
87951
87952         * gnulib-tool: Rename --symlink to --symbolic.
87953
87954 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87955
87956         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87957         symbolic links to files instead of copying/moving.  Add --aux-dir,
87958         specifying directory relative --dir where auxiliary build tools
87959         are placed.
87960
87961 2005-04-14  Bruno Haible  <bruno@clisp.org>
87962
87963         * modules/allocsa (License): Change to LGPL.
87964         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87965
87966 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87967
87968         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87969         that "UTC +1 second" continues to work.  Problem reported
87970         by Dmitry V. Levin.
87971         (relunit_snumber): New rule.
87972         (relunit): Use it.
87973
87974 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87975
87976         * lib/getdate.y (universal_time_zone_table): New constant.
87977         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87978         universal_time_zone_table.
87979         (lookup_zone): Prefer universal_time_zone_table to
87980         local_time_zone_table, so that "GMT" time stamps are allowed in
87981         London during the summer.  Problem reported by Ian Abbott.
87982
87983 2005-04-12  Jim Meyering  <jim@meyering.net>
87984
87985         * lib/human.c (humblock): Set *options even when returning due to
87986         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87987         warning from gcc-4.
87988
87989 2005-04-09  Jim Meyering  <jim@meyering.net>
87990
87991         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87992         -Wuninitialized: initialize tm0.tm_year.
87993
87994 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87995
87996         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87997         count, since there's no maximum.  All uses changed.
87998         Add member dsts_seen.
87999         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88000         not being INT_MAX.
88001         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88002         Use pc_rels_seen to decide whether a date is absolute.
88003
88004         * lib/getdate.y (number): Don't overwrite year.
88005         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88006         check.
88007
88008 2005-04-02  Simon Josefsson  <jas@extundo.com>
88009
88010         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88011         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88012
88013 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88014
88015         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88016         where no absolute path name can be longer than PATH_MAX.
88017
88018 2005-03-27  Jim Meyering  <jim@meyering.net>
88019
88020         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88021
88022 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88023
88024         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88025         "one's complement" -> "ones' complement" in comment, as per Knuth.
88026         "value of type" -> "type or expression" in comment.
88027         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88028
88029 2005-03-26  Jim Meyering  <jim@meyering.net>
88030
88031         Comment nits.
88032         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88033         Correct typos: s/or/of/.
88034
88035 2005-03-26  Jim Meyering  <jim@meyering.net>
88036
88037         * modules/check-include-files: Move to ../ and rename to...
88038         * check-module: ...this.
88039
88040 2005-03-25  Jim Meyering  <jim@meyering.net>
88041
88042         * modules/xvasprintf (Files): Add xalloc.h.
88043
88044 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88045
88046         * modules/gettext (Files): config/config.rpath ->
88047         build-aux/config.rpath
88048         * modules/iconv (Files): Likewise.
88049         Problem reported by Oskar Liljeblad.
88050
88051 2005-03-23  Jim Meyering  <jim@meyering.net>
88052
88053         * modules/check-include-files: New script to check for
88054         missing dependencies, multiple includes, etc.
88055
88056         * modules/c-strtold (Depends-on): Add xalloc.
88057         * modules/c-strtod (Depends-on): Add xalloc.
88058         * modules/hash (Depends-on): Add xalloc.
88059         (Files): Remove lib/xalloc.h.
88060
88061         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88062         * modules/userspec (Files): Add lib/inttostr.h.
88063
88064 2005-03-23  Jim Meyering  <jim@meyering.net>
88065
88066         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88067
88068 2005-03-22  Jim Meyering  <jim@meyering.net>
88069
88070         * modules/stat-macros: New module.
88071         * modules/canonicalize, modules/euidaccess, modules/file-type,
88072         * modules/filemode, modules/lchown, modules/makepath,
88073         * modules/rmdir, modules/stat: Depend on new stat-macros module
88074         rather than listing lib/stat-macros.h manually.
88075         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88076
88077 2005-03-22  Jim Meyering  <jim@meyering.net>
88078
88079         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88080
88081 2005-03-22  Bruno Haible  <bruno@clisp.org>
88082
88083         * config/srclist.txt: Replace target directory 'config' with
88084         'build-aux'.
88085         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88086         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88087         ../build-aux/.
88088
88089 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88090
88091         * modules/chdir-long (Depends-on): Add mempcpy.
88092
88093         * modules/acl, modules/backupfile, modules/c-strtod,
88094         modules/c-strtold, modules/canon-host, modules/canonicalize,
88095         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88096         modules/exclude, modules/exitfail, modules/file-type,
88097         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88098         modules/getdate, modules/getline, modules/getpagesize,
88099         modules/getpass, modules/getugroups, modules/group-member,
88100         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88101         modules/inttostr, modules/long-options, modules/makepath,
88102         modules/md5, modules/memcasecmp, modules/memcoll,
88103         modules/modechange, modules/mountlist, modules/path-concat,
88104         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88105         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88106         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88107         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88108         modules/strftime, modules/strndup, modules/strverscmp,
88109         modules/timespec, modules/unlocked-io, modules/userspec,
88110         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88111         modules/yesno:
88112         Remove lib_SOURCES line from Makefile.am section, as this is now
88113         done automatically by the corresponding Autoconf macro.
88114
88115 2005-03-21  Jim Meyering  <jim@meyering.net>
88116
88117         Changes imported from coreutils.
88118
88119         * lib/cycle-check.c: Don't include xalloc.h.
88120
88121         * lib/path-concat.c: Don't include assert.h.
88122         (path_concat): Remove assertion that would have triggered
88123         for ABASE starting with more than one slash.
88124         Reported by Andreas Schwab.
88125
88126         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88127         properly when ABASE is an absolute file name.
88128         Correct the description of this function.
88129         Include <assert.h>.
88130         Add an assertion and a test driver.
88131         This fixes a bug introduced on 2004-07-02.
88132         Andreas Schwab reported the resulting failure of cp --parents:
88133         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88134
88135 2005-03-21  Jim Meyering  <jim@meyering.net>
88136
88137         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88139
88140 2005-03-21  Jim Meyering  <jim@meyering.net>
88141         and  Paul Eggert  <eggert@cs.ucla.edu>
88142
88143         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88144         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88145         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88146         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88147         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88148         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88149         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88150         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88151         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88152         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88153         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88154         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88155         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88156         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88157         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88158         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88159         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88160         for these modules.
88161
88162 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88163
88164         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88165         (which shouldn't happen), generate nothing instead of returning 0
88166         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88167
88168 2005-03-16  Bruno Haible  <bruno@clisp.org>
88169
88170         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88171         HAVE_LONGLONG_64BIT.
88172
88173 2005-03-16  Bruno Haible  <bruno@clisp.org>
88174
88175         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88176         HAVE_LONGLONG_64BIT.
88177
88178 2005-03-16  Bruno Haible  <bruno@clisp.org>
88179
88180         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88181         HAVE_LONGLONG_64BIT.
88182
88183 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88184
88185         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88186         reliably distinguish strftime failure from empty output on POSIX
88187         hosts.
88188
88189 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88190
88191         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88192         (iconv_string): Don't guess a size-zero buffer, as that might cause
88193         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88194         result would be 'too large', where 'too large' is (heuristically)
88195         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88196         overflow concerns.  This will prevent some unwanted malloc failures
88197         when the inputs are very large.
88198
88199 2005-03-15  Karl Berry  <karl@gnu.org>
88200
88201         * config/srclist.txt (config.rpath): from gettext.
88202         * config/config.rpath: update.
88203
88204 2005-03-15  Bruno Haible  <bruno@clisp.org>
88205
88206         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88207         to 'negate'.
88208
88209         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88210         variable.
88211
88212         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88213         results.
88214
88215 2005-03-14  Simon Josefsson  <jas@extundo.com>
88216
88217         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88218         <fx@gnu.org>.
88219
88220 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88221
88222         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88223         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88224         intprops.h.
88225         * lib/strtol.c: Likewise.
88226
88227 2005-03-14  Jim Meyering  <jim@meyering.net>
88228
88229         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88230         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88231         to be nonzero so that we (and caller) can detect the difference
88232         between a valid zero-length expansion and an error return, even
88233         when the underlying strftime fails before writing anything into
88234         that location.
88235
88236 2005-03-14  Bruno Haible  <bruno@clisp.org>
88237
88238         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88239         Update from GNU gettext 0.14.3.
88240
88241 2005-03-10  Jim Meyering  <jim@meyering.net>
88242
88243         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88244
88245 2005-03-10  Jim Meyering  <jim@meyering.net>
88246
88247         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88248         so that this module works on systems without fchdir.
88249
88250 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88251
88252         Factor int-properties macros into a single file, except for
88253         glibc-related files.
88254         * lib/intprops.h: New file.
88255         * lib/getloadavg.c: Include it instead of limits.h.
88256         (INT_STRLEN_BOUND): Remove.
88257         * lib/human.c: Include intprops.h.
88258         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88259         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88260         302/1000.
88261         * lib/inttostr.h: Include intprops.h instead of limits.h.
88262         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88263         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88264         for consistency with intprops.h.
88265         (time_t_is_integer, twos_complement_arithmetic): Use them.
88266         * lib/sig2str.h: Include <signal.h>, intprops.h.
88267         (INT_STRLEN_BOUND): Remove.
88268         * lib/strftime.c (TYPE_SIGNED): Remove.
88269         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88270         * lib/strtol.c: Adjust comments to match intprops.h.
88271         * lib/userspec.c: Include intprops.h.
88272         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88273         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88274         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88275         instead of rolling our own expressions.
88276         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88277
88278         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88279         instead of int.
88280         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88281         the right thing even if adding 1900 would overflow.  Similarly
88282         for tm_mon + 1 and tm_yday + 1.
88283         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88284         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88285         (DO_SIGNED_NUMBER): New macro.
88286         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88287
88288 2005-03-07  Bruno Haible  <bruno@clisp.org>
88289
88290         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88291
88292 2005-03-07  Bruno Haible  <bruno@clisp.org>
88293
88294         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88295
88296 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88297
88298         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88299         (func_import): Only replace files via --import when they have actually
88300         changed.
88301
88302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88303
88304         * m4/mmap-anon.m4: New file.
88305         * m4/pagealign_alloc.m4: New file.
88306
88307 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88308             Bruno Haible  <bruno@clisp.org>
88309
88310         * modules/pagealign_alloc: New file.
88311         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88312
88313 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88314             Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/pagealign_alloc.h: New file.
88317         * lib/pagealign_alloc.c: New file.
88318
88319 2005-03-03  Bruno Haible  <bruno@clisp.org>
88320
88321         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88322         Use an all-permissive copyright notice, recommended by RMS.
88323
88324 2005-03-02  Bruno Haible  <bruno@clisp.org>
88325
88326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88327         of AIX, the replacement has to be done only after <string.h> is
88328         included, therefore not in config.h. stpncpy.h does the replacement,
88329         and stpncpy.c uses it.
88330
88331 2005-03-02  Bruno Haible  <bruno@clisp.org>
88332
88333         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88334         stpncpy.c uses it.
88335
88336 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88337
88338         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88339         The workaround isn't strictly needed for POSIX conformance, and
88340         it's too much of a pain to configure and maintain.  We'll ask
88341         people to fix their kernels instead.
88342         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88343         (NANOSLEEP_BUG_WORKAROUND): Remove.
88344         (xnanosleep): Remove the workaround.
88345
88346 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88349         Reported by Derek Price.
88350         (Include): Add "timespec.h".
88351
88352         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88353
88354 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88355
88356         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88357         to detect nanosleep bug.
88358
88359 2005-03-01  Bruno Haible  <bruno@clisp.org>
88360
88361         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88362
88363 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88364
88365         * modules/gethrxtime: New file.
88366         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88367         (Depends-on): Add gethrxtime.
88368         (configure.ac): Add gl_XNANOSLEEP.
88369         (Makefile.am): Remove lib_SOURCES line.
88370
88371 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88372
88373         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88374         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88375
88376 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88377
88378         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88379         * lib/timespec.h (gettime): Return void, since it always
88380         succeeds now.  All uses changed.
88381         * lib/gettime.c (gettime): Likewise.
88382         [HAVE_NANOTIME]: Prefer nanotime.
88383         Assume gettimeofday succeeds, as POSIX requires.
88384         Assime time () succeeds, since other code already does.
88385         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88386         (timespec_subtract): Remove.
88387         (NANOSLEEP_BUG_WORKAROUND): New constant.
88388         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88389         things considerably.  Use it only on GNU/Linux hosts, since the
88390         workaround shouldn't be needed elsewhere.
88391
88392 2005-02-24  Bruno Haible  <bruno@clisp.org>
88393
88394         * modules/gettext (Files): Add m4/glibc2.m4.
88395
88396 2005-02-24  Bruno Haible  <bruno@clisp.org>
88397
88398         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88399         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88400         * m4/progtest.m4:
88401         Update from GNU gettext 0.14.2.
88402         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88403
88404 2005-02-24  Bruno Haible  <bruno@clisp.org>
88405
88406         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88407         * lib/config.charset: Update from GNU gettext 0.14.2.
88408
88409 2005-02-24  Bruno Haible  <bruno@clisp.org>
88410
88411         * lib/gettext.h: Update from GNU gettext 0.14.2.
88412
88413 2005-02-23  Simon Josefsson  <jas@extundo.com>
88414
88415         * m4/iconvme.m4: New file.
88416
88417 2005-02-23  Jim Meyering  <jim@meyering.net>
88418
88419         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88420         change.
88421         Thanks to Bruno Haible for catching it.
88422
88423 2005-02-22  Simon Josefsson  <jas@extundo.com>
88424
88425         * modules/iconvme: New file.
88426
88427         * MODULES.html.sh: Add iconvme.
88428
88429 2005-02-22  Simon Josefsson  <jas@extundo.com>
88430
88431         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88432
88433 2005-02-22  Simon Josefsson  <jas@extundo.com>
88434
88435         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88436
88437 2005-02-22  Jim Meyering  <jim@meyering.net>
88438
88439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88440         s/ifndef/ifdef/.
88441
88442 2005-02-20  Neil Conway  <neilc@samurai.com>
88443
88444         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88445         returned by OSX/Darwin if the specified buffer is not large
88446         enough for the hostname.
88447
88448 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88449
88450         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88451         pass it to _help, otherwise the latter coredumps trying to
88452         dereference state.root_argp.
88453
88454 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88455
88456         * modules/chdir-long (Depends-on): Add memrchr.
88457         * modules/memrchr (Files): Add lib/memrchr.h.
88458         (Include): "memrchr.h".
88459
88460 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88461
88462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88463
88464 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88465
88466         * lib/memrchr.h: New file.
88467         * lib/chdir-long.c: Include it.
88468         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88469         Don't bother including stddef.h.
88470
88471 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88472
88473         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88474         inclusion.
88475         Include <sys/types.h>, for dev_t.
88476         (ME_DUMMY, ME_REMOTE): Move from here....
88477         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88478         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88479         Dmitry V. Levin.
88480         Include mountlist.h first, to test the interface.
88481
88482 2005-01-29  Bruno Haible  <bruno@clisp.org>
88483
88484         * lib/progname.c (program_name): Initialize.
88485         Needed when linking statically on MacOS X.
88486
88487 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88488
88489         Sync from coreutils.
88490         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88491         (Depends-on): Add c-strtod.
88492         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88493
88494 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88495
88496         Sync from coreutils.
88497         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88498
88499         Remove files that are specific to coreutils.
88500         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88501
88502 2005-01-28  Bruno Haible  <bruno@clisp.org>
88503
88504         * modules/javacomp: New file.
88505         * MODULES.html.sh (Java): Add javacomp.
88506
88507 2005-01-28  Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/javacomp.m4: New file, from GNU gettext.
88510
88511 2005-01-28  Bruno Haible  <bruno@clisp.org>
88512
88513         * lib/javacomp.sh.in: New file, from GNU gettext.
88514         * lib/javacomp.h: New file, from GNU gettext.
88515         * lib/javacomp.c: New file, from GNU gettext.
88516
88517 2005-01-26  Simon Josefsson  <jas@extundo.com>
88518
88519         * lib/gai_strerror.c: Use GPL in header.
88520
88521 2005-01-26  Bruno Haible  <bruno@clisp.org>
88522
88523         * modules/javaexec: New file.
88524         * MODULES.html.sh (Java): Add javaexec.
88525
88526 2005-01-26  Bruno Haible  <bruno@clisp.org>
88527
88528         * m4/javaexec.m4: New file, from GNU gettext.
88529
88530 2005-01-26  Bruno Haible  <bruno@clisp.org>
88531
88532         * lib/javaexec.sh.in: New file, from GNU gettext.
88533         * lib/javaexec.h: New file, from GNU gettext.
88534         * lib/javaexec.c: New file, from GNU gettext.
88535
88536 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88537
88538         * modules/lchown (Depends-on): Remove lchown.h
88539
88540 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88541
88542         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88543         must be defined if the header file was not found, in order
88544         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88545
88546 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88547
88548         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88549         initializers for struct pentry_state.
88550         (__argp_error): Check return value of __asprintf
88551         (__argp_failure): Translate error message
88552
88553         * lib/argp-parse.c: Removed braces around the expansion of N_()
88554
88555 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88556
88557         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88558         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88559         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88560         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88561         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88562         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88563         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88564         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88565         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88566         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88567         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88568         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88569         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88570         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88571         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88572         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88573         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88574         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88575         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88576         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88577         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88578         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88579         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88580         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88581         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88582         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88583         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88584         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88585         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88586         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88587         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88588         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88589         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88590         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88591         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88592         Use an all-permissive copyright notice, recommended by RMS.
88593
88594 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88595
88596         * modules/chdir-long (Depends-on): Remove mempcpy.
88597
88598 2005-01-21  Jim Meyering  <jim@meyering.net>
88599
88600         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88601         same value as for Solaris 9.
88602
88603         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88604         component length.  This included changing the parameter to be
88605         of type `char *' rather than `char const *'.
88606         * lib/chdir-long.h (chdir_long): Update prototype.
88607
88608         * lib/openat.c (fdopendir, fstatat): New functions.
88609         * lib/openat.h: Include headers required for use of DIR and struct
88610         stat.
88611         [AT_SYMLINK_NOFOLLOW]: Define.
88612         (fdopendir, fstatat): Add prototypes.
88613
88614 2005-01-21  Bruno Haible  <bruno@clisp.org>
88615
88616         * modules/classpath: New file.
88617         * MODULES.html.sh (Java): Add classpath.
88618
88619 2005-01-21  Bruno Haible  <bruno@clisp.org>
88620
88621         * lib/classpath.h: New file, from GNU gettext.
88622         * lib/classpath.c: New file, from GNU gettext.
88623
88624 2005-01-20  Simon Josefsson  <jas@extundo.com>
88625
88626         * modules/version-etc-fsf: New file.
88627
88628 2005-01-20  Simon Josefsson  <jas@extundo.com>
88629
88630         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88631         * lib/version-etc.c: Remove version_etc_copyright.
88632         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88633         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88634
88635 2005-01-20  Simon Josefsson  <jas@extundo.com>
88636
88637         * lib/base64.h (isbase64): Add.
88638
88639         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88640         using a unsigned prototype, don't inline.
88641         (base64_decode): Use it.
88642
88643 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88644
88645         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88646         it.
88647
88648 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88649
88650         * lib/save-cwd.c (save_cwd): Remove code to support the case
88651         where fchdir is missing or flaky.
88652
88653 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88656
88657 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88658
88659         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88660         AC_LIBSOURCES now does this.
88661         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88662         with new ullong_max module.
88663
88664 2005-01-19  Bruno Haible  <bruno@clisp.org>
88665
88666         * modules/sh-quote: New file.
88667         * MODULES.html.sh (Executing programs): Add sh-quote.
88668
88669 2005-01-19  Bruno Haible  <bruno@clisp.org>
88670
88671         * lib/sh-quote.h: New file, from GNU gettext.
88672         * lib/sh-quote.c: New file, from GNU gettext.
88673
88674 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88675
88676         Merge from coreutils.
88677         * m4/ullong_max.m4: New file.
88678         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88679         (gl_MACROS): Assume localeconv exists.
88680
88681 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88682
88683         Merge changes from coreutils, as described below in several
88684         changelogs dated today.
88685
88686         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88687         (O_DIRECTORY): Remove; not needed here, since "." must be
88688         a directory.  All uses removed.
88689         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88690         universal on Suns, and we also need to test for IRIX.
88691         Revamp code to use 'if' rather than '#if'.
88692         Avoid unnecessary comparison of cwd->desc to 0.
88693
88694         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88695         for known valid error numbers rather than observed invalid ones.
88696
88697 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88698
88699         * modules/ullong_max: New file.
88700
88701         * modules/chdir-long, modules/openat: New files.
88702         * modules/save-cwd (Depends-on): Depend on chdir-long.
88703         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88704
88705 2005-01-18  Jim Meyering  <jim@meyering.net>
88706
88707         Merge from coreutils.
88708         * m4/chdir-long.m4, m4/openat.m4: New files.
88709         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88710         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88711         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88712         is sane and DOES follow symlinks.  Besides, testing 20 different
88713         systems found no broken chown implementations.
88714         Prompted by a change in rsync's copy of this macro.
88715         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88716
88717         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88718
88719         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88720         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88721         NULL-means-set-to-current-time semantics.
88722         Remove temporary file immediately, rather than waiting
88723         for configure's at-exit trap code to do it.
88724
88725 2005-01-18  Jim Meyering  <jim@meyering.net>
88726
88727         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88728
88729         * lib/utimens.c (futimens): Account for the fact that futimes
88730         can also fail with errno == ENOSYS or errno == ENOENT.
88731         Patch from Dmitry V. Levin.
88732
88733         Change the name of the robust chdir function from chdir to chdir_long.
88734         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88735         (restore_cwd): Use chdir_long, not chdir.
88736         * lib/chdir-long.c: Renamed from chdir.c.
88737         * lib/chdir-long.h: Renamed from chdir.h.
88738         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88739         Hurd.
88740
88741 2005-01-18  Bruno Haible  <bruno@clisp.org>
88742
88743         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88744         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88745         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88746         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88747         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88748         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88749         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88750         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88751         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88752         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88753         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88754         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88755         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88756         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88757         Use an all-permissive copyright notice, recommended by RMS.
88758
88759 2005-01-18  Bob Proulx  <bob@proulx.com>
88760
88761         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88762         simplify offsetof() macro construct to avoid compile failure with
88763         native HP-UX 11.0 ANSI C compiler.
88764
88765 2005-01-17  Bruno Haible  <bruno@clisp.org>
88766
88767         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88768         redundant because stpncpy.m4 takes care of it.
88769
88770 2005-01-17  Bruno Haible  <bruno@clisp.org>
88771
88772         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88773
88774 2005-01-17  Bruno Haible  <bruno@clisp.org>
88775
88776         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88777         used.
88778
88779 2005-01-17  Bruno Haible  <bruno@clisp.org>
88780
88781         * lib/fwriteerror.h (fwriteerror): Change specification to include
88782         fclose.
88783         * lib/fwriteerror.c: Include <stdbool.h>.
88784         (fwriteerror): At the end, close the file stream. Record whether
88785         stdout was already closed.
88786
88787 2005-01-17  Bruno Haible  <bruno@clisp.org>
88788
88789         * lib/execute.c (environ): Declare if needed.
88790         * lib/pipe.c (environ): Likewise.
88791         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88792
88793 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88794
88795         * modules/argp: Depend on vsnprintf
88796
88797 2005-01-10  Jim Meyering  <jim@meyering.net>
88798
88799         * modules/closeout (Depends-on): Add atexit.
88800
88801 2005-01-06  Bruno Haible  <bruno@clisp.org>
88802
88803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88804
88805 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88806
88807         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88808         definitions to be after all include files, to avoid collisions.
88809         Problem reported by Bob Proulx.
88810
88811 2005-01-04  Jim Meyering  <jim@meyering.net>
88812
88813         Changes imported from coreutils.
88814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88815         as the mkstemp template, use a temporary directory and an
88816         8.3-friendly template to avoid trouble on systems like DJGPP.
88817         Reported by Juan M. Guerrero via Stepan Kasal.
88818         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88819         close. Remove the temporary directory right away, rather than waiting
88820         for configure's at-exit trap code to do it.
88821         Suggestion from Stepan Kasal.
88822
88823 2005-01-01  Simon Josefsson  <jas@extundo.com>
88824
88825         * gnulib-tool: Print #include directives when --import'ing.
88826
88827 2004-12-28  Simon Josefsson  <jas@extundo.com>
88828
88829         * tests/test-base64.c: Include required header files.  Remove
88830         unused variables.
88831
88832 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88833
88834         * modules/error (Depends-on): Remove gettext.
88835
88836 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88839         not needed.  This removes a dependency on the gettext module.
88840         [defined _LIBC]: Do not include <libintl.h>; not needed.
88841
88842 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88843
88844         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88845         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88846
88847 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88848
88849         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88850         HAVE_DECL_STRTOLD.
88851
88852 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88853
88854         * modules/getdate (Depends-on): Remove alloca-opt.
88855
88856 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88857
88858         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88859
88860 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88861
88862         * lib/argp-parse.c: Include <stddef.h>.
88863         (alignof, alignto): New macros.
88864         (parser_init): Don't assume that void * is aligned sufficiently
88865         for struct option.
88866
88867         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88868         need to extend the stack.
88869         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88870         large.
88871
88872 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88873
88874         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88875
88876 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88877
88878         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88879         (2004-10-24) change.  Apparently this was a false alarm.
88880
88881         * modules/getdate: Depend on alloca-opt, not alloca.
88882
88883 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88884
88885         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88886         Remove now-obsolete comment about AIX.
88887         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88888         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88889         (YYMAXDEPTH): New macro.
88890
88891 2004-12-18  Simon Josefsson  <jas@extundo.com>
88892
88893         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88894
88895 2004-12-18  Bruno Haible  <bruno@clisp.org>
88896
88897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88898
88899 2004-12-18  Bruno Haible  <bruno@clisp.org>
88900
88901         * lib/fatal-signal.c (fatal_signals): Make non-const.
88902         (init_fatal_signals): New function.
88903         (uninstall_handlers, install_handlers): Ignore signals that were set to
88904         SIG_IGN.
88905         (at_fatal_signal): Call init_fatal_signals.
88906         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88907         SIG_IGN.
88908         Reported by Paul Eggert.
88909
88910 2004-12-18  Bruno Haible  <bruno@clisp.org>
88911
88912         * doc/alloca.texi: New file.
88913         * doc/alloca-opt.texi: New file.
88914
88915 2004-12-17  Jim Meyering  <jim@meyering.net>
88916
88917         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88918         Otherwise, install-sh could exit with improper exit status when
88919         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88920
88921 2004-12-16  Simon Josefsson  <jas@extundo.com>
88922
88923         * tests/test-base64.c: Add license.
88924
88925 2004-12-15  Stepan Kasal  <address@hidden>
88926
88927         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88928
88929 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         * modules/getcwd (Files): Add m4/d-ino.m4.
88932         Suggested by Mark D. Baushke.
88933
88934 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88935
88936         * lib/getdate.y (textint): New member "negative".
88937         (time_zone_hhmm): New function.
88938         Expect 14 shift-reduce conflicts, not 13.
88939         (o_colon_minutes): New rule.
88940         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88941         (yylex): Set the "negative" member of signed numbers.
88942
88943 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88944
88945         * doc/getdate.texi (Time of day items, Time zone items):
88946         Describe new formats +00:00, UTC+00:00.
88947
88948 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88951         spurious "-l"s.  Problem reported by Stepan Kasal.
88952
88953 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88954
88955         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88956         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88957
88958 2004-12-04  Simon Josefsson  <jas@extundo.com>
88959
88960         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88961         Vandoorselaere <yoann@prelude-ids.org>.
88962
88963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88964
88965         Changes imported from coreutils.
88966         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88967         exist.
88968         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88969
88970 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         Changes imported from coreutils.
88973         * lib/hard-locale.c: Assume <locale.h> exists.
88974         Include "strdup.h".
88975         (GLIBC_VERSION): New macro.
88976         (hard_locale): Assume setlocale exists.
88977         Rewrite to avoid #ifdef.
88978         Use strdup rather than malloc + strcpy.
88979         * lib/human.c: Assume <locale.h> exists.
88980         (human_readable): Assume localeconv exists.
88981
88982 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88983
88984         * modules/hard-locale (Depends-on): Add strdup.
88985
88986 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88987
88988         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88989         convert T2, not T.  (Imported from libc.)
88990
88991 2004-11-30  Simon Josefsson  <jas@extundo.com>
88992
88993         * modules/restrict (License): Change to LGPL.
88994
88995 2004-11-30  Simon Josefsson  <jas@extundo.com>
88996
88997         * m4/restrict.m4: Add copyright and copying conditions.
88998
88999 2004-11-30  Simon Josefsson  <jas@extundo.com>
89000
89001         * m4/base64.m4: New file.
89002
89003 2004-11-30  Simon Josefsson  <jas@extundo.com>
89004
89005         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89006         base64.
89007
89008         * tests/test-base64.c: New file.
89009
89010         * modules/base64: New file.
89011
89012 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89015         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89016
89017         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89018
89019 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89020
89021         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89022         (__getcwd.c): Don't restore errno; glibc doesn't.
89023         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89024         first, falling back to our code only if its results look suspicious.
89025         Ensure that the resulting buffer is only as large as necessary.
89026
89027         * lib/readutmp.c: Include readutmp.h first.
89028         Include <errno.h>, since readutmp.h no longer does that.
89029         * lib/readutmp.h: Don't include <errno.h>,
89030         <sys/param.h>, <time.h>; not needed to establish interface.
89031         (errno): Remove decl.
89032         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89033         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89034         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89035
89036 2004-11-28  Simon Josefsson  <jas@extundo.com>
89037
89038         * lib/base64.h, base64.c: New file.
89039
89040 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89041
89042         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89043
89044 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89047         (Depends-on): Remove pathmax, same.  Add mempcpy.
89048         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89049         (Makefile.am): Append getcwd.h to lib_SOURCES.
89050         (Include): Add getcwd.h.
89051         (Maintainer): Change from Jim Meyering to "all, glibc",
89052         since getdate now uses intended-for-glibc code.
89053         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89054         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89055
89056 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89057
89058         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89059         HP's ANSI C compiler.
89060         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89061         Declaring int functions causes warnings on some modern systems and
89062         shouldn't be needed to compile on ancient ones.
89063         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89064         defined.
89065
89066         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89067         with the following changes.
89068         (__set_errno): Parenthesize properly.
89069         Include <stdbool.h>.
89070         (MIN, MAX, MATCHING_INO): New macros.
89071         (__getcwd): Define with prototype, not K&R form.
89072         Use heuristics to allocate default buffer on stack if possible.
89073         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89074         behavior, and to avoid the PATH_MAX limit when computing
89075         ../../../../...
89076         Use MATCHING_INO to compare inode number to file.
89077         Check for arithmetic overflow in size calculations.
89078         Fix bug in reallocation of dot array that caused getcwd to fail
89079         on directories nested deeper than 75.
89080         Be more careful about saving errno on error.
89081         Do not use realloc; use only free+malloc, as this is a bit
89082         more flexible and avoids a needless copy operation.
89083         Do not inspect st_dev and st_ino for symbolic links; POSIX
89084         doesn't specify the latter.
89085         Check for closedir errors.
89086         Avoid needless casts.
89087         Use "#ifdef weak_alias" around weak_alias, to be like other
89088         glibc code.
89089         The following changes to getcwd.c have effect only when used in
89090         gnulib; they have no effect inside glibc proper.
89091         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89092         as alloca isn't used.
89093         (alloca, __alloca): Likewise.
89094         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89095         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89096         unconditionally, as gnulib assumes C89 or better.
89097         Do not include <sys/param.h>.
89098         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89099         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89100         better.
89101         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89102         Include <dirent.h> in a way that is compatible with modern Autoconf.
89103         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89104         New macros, if not already defined.
89105         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89106         Use "_LIBC", not "defined _LIBC", for consistency.
89107         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89108         a mempcpy module.
89109         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89110         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89111         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89112         credit only to Jim Meyering and adjust the copyright dates.
89113         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89114         <stdlib.h>, <unistd.h>, "pathmax.h".
89115         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89116         (INITIAL_BUFFER_SIZE): Remove.
89117         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89118
89119 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89120
89121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89122         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89123         Use the _ONCE methods, for efficiency.
89124         Check for fcntl.h.  In test program, include <errno.h>
89125         and <fcntl.h> if available.  Remove old K&R cruft from
89126         test program.  Check for common errors in GNU/Linux,
89127         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89128         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89129         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89130         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89131         name accordingly.
89132         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89133         accommodate new getcwd.c.
89134         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89135         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89136         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89137         that's all we need now.
89138
89139 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89140
89141         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89142         argp-parse.c depends on getopt internals, that means we should
89143         always use our getopt, to be on the safe side.
89144         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89145         order not to spoil the result of an eventual previous invocation
89146         of gl_GETOPT_SUBSTITUTE.
89147
89148 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89149
89150         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89151         redefinition warnings. To avoid them, include the defines
89152         in `#if !defined __need_getopt ... #endif'. The only place
89153         where __getopt_argv_const is used is in definitions
89154         of getopt_long and getopt_long_only below, which are as well
89155         protected by `#ifndef __need_getopt'.
89156         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89157         __need_getopt after including <stdio.h> and <unistd.h> These
89158         headers might have defined it.
89159
89160 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89161
89162         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89163
89164 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89165
89166         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89167         (futimens): New function, which uses futimes if available.
89168         (futimens, utimens): Support timespec==NULL, with same semantics
89169         as utime and utimens.
89170         * lib/utimens.h (futimens): New decl.
89171
89172 2004-11-23  Jim Meyering  <jim@meyering.net>
89173
89174         * lib/getopt_.h: Remove trailing blanks.
89175
89176 2004-11-23  Jim Meyering  <jim@meyering.net>
89177
89178         * lib/__fpending.c: Add comment.
89179
89180 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89181
89182         * modules/canonicalize (Depends-on): Add xreadlink.
89183         Problem reported by James Youngman.
89184
89185 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89186
89187         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89188         New macros.
89189         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89190         optopt): Use them instead of invoking ## directly; otherwise, the
89191         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89192
89193 2004-11-19  Bruno Haible  <bruno@clisp.org>
89194
89195         * lib/strtok_r.c: Move comments from here...
89196         * lib/strtok_r.h: ... to here.
89197
89198 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89199
89200         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89201         implementations that mishandle size_t overflow.
89202
89203 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89204
89205         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89206         might fail.  Problem reported by Yoann Vandoorselaere.
89207         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89208         implementations that mishandle size_t overflow.
89209
89210 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89211
89212         * modules/canon-host (Depends-on): Add strdup.
89213
89214 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89215
89216         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89217
89218 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89219
89220         * lib/canon-host.c: Include "strdup.h".
89221         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89222         Use strdup instead of malloc/strcpy to duplicate strings.
89223
89224         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89225         (human_space_before_unit): New constant.
89226         * lib/human.c (human_readable): Support it.
89227
89228         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89229         (xgetcwd): Set errno correctly when failing.
89230         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89231         the failure is actually due to a PATH_MAX problem.
89232
89233         Further getopt changes to make it more likely that glibc will
89234         buy the changes back.
89235         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89236         (getopt): Use it, so to preserve glibc semantic
89237         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89238         when compiling for libc.
89239         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89240         (getopt_long, getopt_long_only): Use it.
89241
89242         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89243         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89244         (getopt): Argv is now char * const *, as per standard.
89245         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89246         not char *__getopt_argv_const *.
89247         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89248         _getopt_long_only_r): Likewise.
89249         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89250         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89251         _getopt_long_r, _getopt_long_only_r): Likewise.
89252         * lib/getopt_.h (__getopt_argv_const): Remove.
89253         (getopt): Argv is now char * const *, as per standard.
89254
89255         * lib/getdate.y (tORDINAL): New token.
89256         (day, relunit): Allow it for relative times.
89257         (relative_time_table): Use tORDINAL for ordinals.
89258
89259 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89260
89261         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89262         Document that "second" isn't allowed as an ordinal number.
89263
89264 2004-11-16  Jim Meyering  <jim@meyering.net>
89265
89266         * modules/closeout (Depends-on): Add fpending.
89267
89268 2004-11-15  Jim Meyering  <jim@meyering.net>
89269
89270         * lib/closeout.c: Include "__fpending.h" once again.
89271         Include <stdbool.h>.
89272         (close_stdout): Don't fail just because stdout was closed initially,
89273         since some programs don't write to stdout in the normal course of
89274         operation (other than --version and --help), and we don't want this
89275         function to make e.g. `touch file >&-' fail.
89276         But do fail if it was closed and someone has tried to write to it.
89277         E.g., `printf foo >&-' must fail.
89278
89279 2004-11-13  Jim Meyering  <jim@meyering.net>
89280
89281         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89282
89283 2004-11-12  Simon Josefsson  <jas@extundo.com>
89284
89285         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89286         small doc fix is still pending.
89287
89288 2004-11-11  Simon Josefsson  <jas@extundo.com>
89289
89290         * modules/strtok_r: New file.
89291
89292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89293         strtok_r.
89294
89295 2004-11-11  Simon Josefsson  <jas@extundo.com>
89296
89297         * m4/strtok_r.m4: New file.
89298
89299         * m4/getopt.m4: Replace opterr.
89300
89301 2004-11-11  Simon Josefsson  <jas@extundo.com>
89302
89303         * lib/strtok_r.h, strtok_r.c: New file.
89304
89305 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89306
89307         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89308         of replacing opterr, getopt, etc.  This should handle the
89309         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89310
89311 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89312
89313         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89314         we can stop lying to compilers about the constness of argv when we
89315         are compiled outside glibc.
89316         (getopt, getopt_long, getopt_long_only): Use it.
89317         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89318         _getopt_internal, getopt): Likewise.
89319         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89320         _getopt_long_only_r): Likewise.
89321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89322         _getopt_long_r, _getopt_long_only_r): Likewise.
89323
89324         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89325         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89326         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89327         the other external symbols.
89328         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89329         declaration, since the above renaming now works around collisions.
89330
89331 2004-11-11  Jim Meyering  <jim@meyering.net>
89332
89333         * lib/linebreak.c: Remove trailing blanks.
89334         * lib/alloca_.h: Likewise.
89335         * lib/acosl.c: Likewise.
89336         * lib/euidaccess.c: Likewise.
89337         * lib/allocsa.h: Likewise.
89338
89339 2004-11-10  Simon Josefsson  <jas@extundo.com>
89340
89341         * m4/getaddrinfo.m4: New file.
89342
89343 2004-11-10  Simon Josefsson  <jas@extundo.com>
89344
89345         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89346
89347 2004-11-10  Simon Josefsson  <jas@extundo.com>
89348
89349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89350         getaddrinfo.
89351
89352         * modules/getaddrinfo: New file.
89353
89354 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89355
89356         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89357
89358 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89359
89360         * lib/mktime.c (SHR): New macro, which is a portable
89361         substitute for >> that should work even on Crays.
89362         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89363         Problem reported by Mark D. Baushke in
89364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89365         * lib/getdate.y (SHR): Likewise.
89366         (tm_diff): Use it.
89367         * lib/strftime.c (SHR): Likewise.
89368         (tm_diff): Use it.
89369         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89370         quote_these_too, so that right shifts are well defined.  All uses
89371         changed.
89372
89373 2004-11-10  Jim Meyering  <jim@meyering.net>
89374
89375         Ensure that no close failure goes unreported.
89376         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89377         return early when it seems there's nothing to flush.
89378         Don't include __fpending.h.
89379
89380 2004-11-10  Jim Meyering  <jim@meyering.net>
89381
89382         * modules/closeout (Depends-on): Remove fpending.
89383
89384 2004-11-10  Jim Meyering  <jim@meyering.net>
89385
89386         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89387
89388 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89389
89390         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89391         gl_FUNC_STRFTIME.
89392         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89393         and AC_REQUIRE when possible, to avoid duplicate checks.
89394         Check for <wchar.h>.
89395
89396 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89397
89398         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89399
89400 2004-11-09  Bruno Haible  <bruno@clisp.org>
89401
89402         * m4/sockpfaf.m4: New file.
89403
89404 2004-11-05  Bruno Haible  <bruno@clisp.org>
89405
89406         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89407         Reported by Mark D. Baushke <mdb@cvshome.org>.
89408
89409 2004-11-04  Bruno Haible  <bruno@clisp.org>
89410
89411         2004-09-11  Bruno Haible  <bruno@clisp.org>
89412                 * allocsa.valgrind: New file.
89413         2004-02-06  Bruno Haible  <bruno@clisp.org>
89414                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89415                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89416                 Reported by Christopher Seip <chris.seip@hp.com>.
89417
89418 2004-11-04  Bruno Haible  <bruno@clisp.org>
89419
89420         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89421         (Makefile.am): Distribute it.
89422
89423 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89424
89425         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89426         with errno == ERANGE if the buffer is too small.
89427         Problem reported by Mark D. Baushke.
89428
89429 2004-11-03  Albert Chin  <china@thewrittenword.com>
89430             Paul Eggert  <eggert@cs.ucla.edu>
89431
89432         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89433         equivalent, substitute $ac_type for equivalent type rather than
89434         blindly using uint32_t *always* which won't work if uint32_t is not
89435         available.  Define _UINT32_T to work around typedef of uint32_t if
89436         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89437         2.5.1.
89438
89439 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89440
89441         * m4/jm-macros.m4: Sync from coreutils.
89442         (gl_MACROS): Check for mbrlen, for pathchk.
89443         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89444
89445 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89446
89447         * lib/xreadlink.c (MAXSIZE): New macro.
89448         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89449         size does not exceed MAXSIZE.  Avoid cast.
89450         As suggested by Mark D. Baushke in
89451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89452         if readlink fails with buffer size just under MAXSIZE, try again
89453         with MAXSIZE.
89454
89455 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89456
89457         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89458
89459 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89460         and  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89463         (get_date): Overparenthesize to avoid GCC warning.
89464
89465 2004-11-02  Bruno Haible  <bruno@clisp.org>
89466
89467         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89468         returns void.
89469
89470 2004-11-02  Bruno Haible  <bruno@clisp.org>
89471
89472         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89473         function returns void.
89474
89475 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89476
89477         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89478         fflush_unlocked, flockfile, funlockfile, funlockfile,
89479         fputs_unlocked, putc_unlocked.
89480
89481 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89482
89483         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89484         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89485         already declared.
89486
89487 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89488
89489         * modules/getdate (Files): Add doc/getdate.texi.
89490         (Depends-on): Add setenv, xalloc.
89491
89492 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89493
89494         * lib/getdate.y: Add support for TZ="foo" within a date string.
89495         Fix some bugs near time_t boundaries.  Reject dates with
89496         out-of-range components, e.g., "Sept 31".
89497         Include <stdlib.h>, "setenv.h", "xalloc.h".
89498         (ISDIGIT_LOCALE): Remove; unused.
89499         Note that the TZ and time functions used here are not reentrant.
89500         (mktime_ok, get_tz): New functions.
89501         (TZBUFSIZE): New constant.
89502         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89503         This requires that we sometimes generate our own TZ="XXX..." setting.
89504
89505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89506
89507         * doc/getdate.texi: New file, from coreutils with modifications for
89508         the new TZ parsing.
89509
89510 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89511
89512         * lib/mktime.c (not_equal_tm): Remove redundant check.
89513
89514 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89515
89516         * modules/regex (lib_SOURCES): Add regex.c.
89517         Reported by James Youngman in
89518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89519
89520 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89521
89522         * lib/getdate.y: Use Bison 1.875 features, and some minor
89523         code cleanups.  This change does not affect semantics.
89524         Don't include <stdlib.h>; no longer needed.
89525         Don't include unlocked-io.h; only the "#if TEST" code uses
89526         stdio, and performance isn't crucial there.
89527         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89528         Bison 1.875 features as described below.
89529         All uses of "PC." replaced by "pc->".
89530         (YYSTYPE): Add a forward declaration.
89531         (yylex, yyerror): Use full prototypes in forward decls.
89532         Use "%pure-parser" rather than obsolescent "%pure_parser".
89533         Use %parse-param and %lex-param instead of obsolescent
89534         YYPARSE_PARAM and YYLEX_PARAM.
89535         (meridian_table, month_and_day_table, time_units_table,
89536         relative_time_table, time_zone_table, military_table,
89537         lookup_zone, lookup_word, get_date):
89538         Use NULL instead of 0 where appropriate.
89539         (to_hour): Avoid abort (), to avoid a dependency on
89540         stdlib.h.
89541         (yyerror, yylex): Now accepts parser_control * arg.
89542         (main) [TEST]: Use '\0' rather than 0 for char.
89543
89544 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89545
89546         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89547
89548 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89549
89550         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89551         It's now the caller's responsibility to handle the case where
89552         !HAVE_GETPAGESIZE && !defined getpagesize.
89553
89554         * lib/mktime.c (leapyear): Arg is long int, not int.
89555
89556 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89557
89558         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89559
89560 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89561
89562         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89563         missing.  Problem reported by James Youngman.
89564
89565 2004-10-16  Simon Josefsson  <jas@extundo.com>
89566
89567         * gnulib-tool: Fix comments.  Fix parse problem.
89568         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89569
89570 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89571
89572         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89573         implementation of getopt_long.  Problem reported by Alexander Taler in:
89574         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89575
89576 2004-10-15  Bruno Haible  <bruno@clisp.org>
89577
89578         * gnulib-tool: Untabify. Initialize supplied_libname.
89579         (func_usage): More homogenous output.
89580         (func_modules_transitive_closure, func_modules_to_filelist,
89581         func_emit_lib_Makefile_am): New functions.
89582         (func_import): New function, extracted from big case statement. Use
89583         func_get_license, func_modules_transitive_closure,
89584         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89585         opt_lgpl. Don't use test -a, as it's not portable.
89586         (func_create_testdir): Use func_modules_transitive_closure,
89587         func_modules_to_filelist, func_emit_lib_Makefile_am.
89588
89589 2004-10-15  Bruno Haible  <bruno@clisp.org>
89590
89591         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89592
89593 2004-10-15  Bruno Haible  <bruno@clisp.org>
89594
89595         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89596         the portions belonging to each module.
89597         Suggested by Derek Robert Price <derek@ximbiot.com>.
89598
89599 2004-10-12  Simon Josefsson  <jas@extundo.com>
89600
89601         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89602         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89603         to real functions.
89604
89605 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89606
89607         * modules/vsnprintf: New file.
89608
89609 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89610
89611         * m4/vsnprintf.m4: New file.
89612
89613 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89614
89615         * lib/vsnprintf.h: New file.
89616         * lib/vsnprintf.c: New file.
89617
89618 2004-10-11  Bruno Haible  <bruno@clisp.org>
89619
89620         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89621         vsnprintf.
89622
89623 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89624
89625         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89626
89627 2004-10-07  Bruno Haible  <bruno@clisp.org>
89628
89629         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89630         fits into the provided buffer.
89631
89632 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89633
89634         * lib/diacrit.c, diacrit.h: Add GPL notice.
89635
89636         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89637         notice.
89638         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89639         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89640         This avoids a potential constant-folding bug.
89641
89642 2004-10-05  Bruno Haible  <bruno@clisp.org>
89643
89644         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89645         for the declaration of strsep.
89646
89647 2004-10-05  Bruno Haible  <bruno@clisp.org>
89648
89649         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89650
89651 2004-10-04  Simon Josefsson  <jas@extundo.com>
89652
89653         * modules/memmem: New file.
89654         * tests/test-memmem.c: New file.
89655         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89656
89657 2004-10-04  Simon Josefsson  <jas@extundo.com>
89658
89659         * m4/memmem.m4: New file.
89660
89661 2004-10-04  Simon Josefsson  <jas@extundo.com>
89662
89663         * lib/memmem.h: New file.
89664         * lib/memmem.c: New file, taken from glibc.
89665
89666 2004-10-04  Simon Josefsson  <jas@extundo.com>
89667
89668         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89669         '#ifdef USE_UNLOCKED_IO'.
89670
89671 2004-10-04  Simon Josefsson  <jas@extundo.com>
89672
89673         * config/srclist.txt: Add memmem from glibc.
89674
89675 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89676
89677         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89678
89679         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89680         modules/exclude, modules/getdate, modules/getline,
89681         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89682         modules/getusershell, modules/linebuffer, modules/md5,
89683         modules/mountlist, modules/posixtm, modules/readtokens,
89684         modules/readutmp, modules/regex, modules/sha1,
89685         modules/version-etc, modules/yesno:
89686         Remove dependency on unlocked-io.
89687
89688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89689
89690         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89691
89692         * m4/unlocked-io.m4: Add copyright notice.
89693         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89694
89695 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89696
89697         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89698         * lib/xmalloc.c (xmemdup): Likewise.
89699         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89700         XFREE): Remove these long-obsolescent macros.
89701         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89702         * lib/xstrdup.c: Remove.
89703
89704         * lib/regex.c (re_comp): Cast gettext return value to char *,
89705         Problem reported by Martin Neitzel via Mark D. Baushke.
89706
89707 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89708
89709         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89710         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89711         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89712         regex.c, sha1.c, version-etc.c, yesno.c:
89713         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89714         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89715         the includer's responsibility.
89716
89717         Sync from coreutils.
89718
89719         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89720         points to the start of a string, as the C Standard says the
89721         resulting behavior is undefined.
89722
89723         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89724         simple -> simple_backups, numbered_existing ->
89725         numbered_existing_backups, numbered -> numbered_backups
89726         to avoid shadowing problems.  All uses changed.
89727         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89728         * lib/backupfile.c (check_extension, numbered_backup):
89729         Rename locals to avoid shadowing 'basename'.
89730         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89731         once.
89732
89733         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89734         * lib/.cvsignore: Add getopt.h.
89735
89736 2004-10-04  Bruno Haible  <bruno@clisp.org>
89737
89738         * modules/README: New file.
89739         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89740         not a module.
89741
89742 2004-10-02  Jim Meyering  <jim@meyering.net>
89743
89744         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89745
89746 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89747
89748         * modules/strsep: New file.
89749
89750 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89751
89752         * m4/strsep.m4: New file.
89753
89754 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89755
89756         * lib/strsep.h: New file.
89757         * lib/strsep.c: New file.
89758
89759 2004-10-01  Simon Josefsson  <jas@extundo.com>
89760
89761         * lib/snprintf.c (snprintf): Handle size==0.
89762
89763 2004-10-01  Simon Josefsson  <jas@extundo.com>
89764             Bruno Haible  <bruno@clisp.org>
89765
89766         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89767         (snprintf): Declare 'args'.
89768
89769 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89770
89771         * lib/snprintf.c: Remove comments as to why each header is needed.
89772
89773 2004-10-01  Bruno Haible  <bruno@clisp.org>
89774
89775         * MODULES.html.sh: Add strsep.
89776
89777 2004-09-30  Simon Josefsson  <jas@extundo.com>
89778
89779         * modules/snprintf: New file.
89780
89781 2004-09-30  Simon Josefsson  <jas@extundo.com>
89782
89783         * m4/snprintf.m4: New file.
89784
89785 2004-09-30  Simon Josefsson  <jas@extundo.com>
89786
89787         * lib/snprintf.h, lib/snprintf.c: New files.
89788
89789 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89790
89791         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89792         (hol_entry_help): Never translate an empty string.
89793         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89794         * lib/argp.h (OPTION_NO_TRANS): New option.
89795
89796 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89797
89798         * modules/argp (Maintainer): Replace Simon Josefsson
89799         by Sergey Poznyakoff.
89800
89801 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89802
89803         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89804         changes merged back into glibc.
89805
89806 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89807
89808         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89809
89810 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89811
89812         * lib/xvasprintf.c: Include xalloc.h.
89813         (xvasprintf): Use xalloc_die, not xmalloc_die.
89814
89815 2004-09-29  Bruno Haible  <bruno@clisp.org>
89816
89817         * modules/alloca-opt: New file, derived from modules/alloca.
89818         * modules/allocsa: Depend on alloca-opt instead of alloca.
89819         * modules/setenv: Likewise.
89820         * modules/vasnprintf: Likewise.
89821         * MODULES.html.sh: Add alloca-opt.
89822
89823 2004-09-28  Simon Josefsson  <jas@extundo.com>
89824
89825         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89826         LGPL, and to replace license template from GPL to LGPL.
89827
89828 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89829
89830         * modules/dummy: Change license to LGPL.
89831
89832 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89833
89834         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89835
89836 2004-09-24  Simon Josefsson  <jas@extundo.com>
89837
89838         * modules/minmax (License): Change from GPL to LGPL.
89839
89840 2004-09-23  Simon Josefsson  <jas@extundo.com>
89841
89842         * gnulib-tool (--import): Typo.
89843
89844 2004-09-23  Simon Josefsson  <jas@extundo.com>
89845
89846         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89847
89848 2004-09-22  Bruno Haible  <bruno@clisp.org>
89849
89850         * modules/*: Add 'License' field.
89851         * gnulib-tool: Accept --extract-license option.
89852         (func_get_license): New function.
89853
89854 2004-09-21  Bruno Haible  <bruno@clisp.org>
89855
89856         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89857         Reported by Simon Josefsson.
89858
89859 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89860
89861         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89862         gl_AC_TYPE_LONG_LONG.
89863
89864 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89865
89866         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89867
89868 2004-09-18  Simon Josefsson  <jas@extundo.com>
89869         and  Paul Eggert  <eggert@cs.ucla.edu>
89870
89871         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89872         calls with autoreconf.  Define GL_LIB.
89873
89874 2004-09-14  Karl Berry  <karl@gnu.org>
89875
89876         * config/srclist.txt: unsync setenv.c, sigh.
89877
89878 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89879
89880         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89881         Problem reported by Bruno Haible in:
89882         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89883
89884 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89885
89886         * config/srclist.txt: Comment out argp-pvh.c.
89887
89888 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89889
89890         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89891         in case some system header has #define'd it.  Problem reported by
89892         Soeren D. Schulze in
89893         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89894
89895 2004-09-09  Karl Berry  <karl@gnu.org>
89896
89897         * regex.[ch]: delete from the root.  These were supposed to be
89898                 synced with emacs cvs, but this has not happened for about
89899                 a year, and anyway nothing else uses emacs regex.[ch].
89900                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89901                 lib/regex[.ch] is untouched.
89902
89903 2004-09-09  Bruno Haible  <bruno@clisp.org>
89904
89905         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89906
89907 2004-09-09  Bruno Haible  <bruno@clisp.org>
89908
89909         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89910         modifications.
89911         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89912
89913 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89914
89915         * modules/xvasprintf: New file.
89916         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89917
89918 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89919
89920         * lib/xvasprintf.h: New file.
89921         * lib/xvasprintf.c: New file.
89922         * lib/xasprintf.c: New file.
89923
89924 2004-09-08  Bruno Haible  <bruno@clisp.org>
89925
89926         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89927
89928 2004-09-08  Bruno Haible  <bruno@clisp.org>
89929
89930         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89931         length is > INT_MAX.
89932         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89933         more.
89934
89935 2004-09-08  Bruno Haible  <bruno@clisp.org>
89936
89937         * lib/stdint_.h: New file, taken from GNU clisp.
89938
89939 2004-09-08  Bruno Haible  <bruno@clisp.org>
89940             Oskar Liljeblad  <oskar@osk.mine.nu>
89941
89942         * modules/stdint: New file.
89943         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89944
89945 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89946
89947         Import from coreutils.
89948         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89949         strings on unbounded length.  alloca's performance benefits aren't
89950         that important here.
89951         (V_STRDUP): Remove.
89952         (parse_with_separator): New function, with most of the internals
89953         of the old parse_user_spec.  Allow user to omit both user and group,
89954         for compatibility with FreeBSD.
89955         Clone only the user name, not the entire spec.
89956         Do not set *uid, *gid unless entirely successful.
89957         Avoid memory leak in some failing cases.
89958         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89959         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89960         (parse_user_spec): Rewrite to use parse_with_separator.
89961
89962 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89963
89964         * modules/userspec: Don't depend on alloca.
89965
89966 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89967
89968         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89969
89970 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89971
89972         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89973         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89974         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89975
89976 2004-08-16  Simon Josefsson  <jas@extundo.com>
89977
89978         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89979         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89980         Add --dry-run for --import.
89981         Let user provided command line parameters override configure.ac
89982         settings.
89983
89984 2004-08-12  Simon Josefsson  <jas@extundo.com>
89985
89986         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89987         as discussed with Paul Eggert in threads rooted at
89988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89989         and
89990         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89991         Before, the test was empty, and relied on ELIDE_CODE in source
89992         code.)
89993         (gl_PREREQ_GETOPT): New macro.
89994         (gl_GETOPT): Use them.
89995
89996 2004-08-12  Simon Josefsson  <jas@extundo.com>
89997
89998         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89999         * lib/getopt_.h: Renamed from getopt.h.
90000
90001 2004-08-12  Simon Josefsson  <jas@extundo.com>
90002
90003         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90004         Change default library name from libfoo to libgnu.
90005         Now, if you have a configure.ac that says:
90006                 gl_SOURCE_BASE(gl)
90007                 gl_M4_BASE(gl/m4)
90008                 gl_MODULES(error getopt etcetera)
90009                 gl_INIT
90010         you can import all you need by running:
90011                 ../gnulib/gnulib-tool --import
90012
90013         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90014         (Makefile.am): Rewrite, use logic from argz.
90015         (Include): Use <getopt.h> instead of "getopt.h".
90016
90017 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90018
90019         * modules/argp (Files): Add m4/unlocked-io.m4.
90020         (Depends-on): Add extensions.
90021
90022 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90023
90024         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90025         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90026         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90027         Check for program_invocation_name, program_invocation_short_name,
90028         flockfile, funlockfile, features.h, _getopt_long_only_r.
90029
90030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90031
90032         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90033         its complicated substitute.
90034         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90035         and program_invocation_name.
90036         (__argp_basename) [!_LIBC]: Remove; the only use was
90037         replaced by its body.
90038         (__argp_short_program_name): Change condition from
90039         !defined __argp_short_program_name to
90040         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90041         to match argp-namefrob.h.
90042         (__argp_failure): Don't assume strerror_r returns char *.
90043         * lib/argp-parse.c (N_): Define unconditionally.
90044         (argp_default_options): Fill out initializers with 0 to avoid
90045         gcc warnings.
90046
90047 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90048
90049         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90050         getopt1.c.
90051
90052 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90053
90054         Merge from coreutils.
90055
90056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90057
90058         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90059         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90060
90061 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90062
90063         Merge from coreutils.
90064
90065         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90066         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90067         for Reliant Unix 5.43.
90068
90069         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90070         (union fooround): Use uintmax_t, not long int.
90071         The rest is a merge from libc:
90072         [defined _LIBC]: Include <shlib-compat.h>.
90073         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90074
90075         * lib/settime.c (settime): Recode to avoid warning with
90076         Sun Forte C 6U2.
90077
90078         * lib/strverscmp.c: Convert to UTF-8.
90079
90080 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90081
90082         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90083         m4/uintmax_t.m4.
90084
90085 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90086
90087         * modules/xalloc-die: New file.
90088         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90089
90090         * modules/md5 (Files): Add m4/uint32_t.m4.
90091         * modules/sha1: Renamed from modules/sha.
90092         (Files):
90093         Rename lib/sha.h to lib/sha1.h.
90094         Rename lib/sha.c to lib/sha1.c.
90095         Rename m4/sha.m4 to m4/sha1.m4.
90096         (lib_SOURCES): Likewise.
90097         (configure.ac): Rename gl_SHA to gl_SHA1.
90098         (Include): sha.h -> sha1.h.
90099
90100 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90101
90102         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90103         * m4/sha1.m4: Renamed from sha.m4.
90104         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90105
90106 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90107
90108         * lib/obstack.h (obstack_empty_p):
90109         Don't assume that chunk->contents is suitably aligned.
90110         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90111         Likewise. Problem reported by Benno in
90112         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90113
90114         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90115         readable.  This could be improved further but it'd take some work.
90116
90117 2004-08-08  Simon Josefsson  <jas@extundo.com>
90118
90119         * modules/xgethostname (Depends-on): Remove exit and error (not
90120         used).
90121
90122         * modules/getpass-gnu: Add getpass.h.
90123         (Depends-on): Add stdbool.
90124         * modules/getpass: Add getpass.h.
90125
90126 2004-08-08  Simon Josefsson  <jas@extundo.com>
90127
90128         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90129         Check getpass declaration.
90130
90131 2004-08-08  Simon Josefsson  <jas@extundo.com>
90132
90133         * lib/xgethostname.c: Don't include error.h (not used).
90134
90135         * lib/getpass.h: Add.
90136         * lib/getpass.c: Include getpass.h first.
90137
90138 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90139
90140         * lib/xalloc-die.c: New file.
90141         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90142         All uses removed.
90143         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90144         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90145         xalloc-die.c.
90146         (_, N_, xalloc_die): Move to xalloc-die.c.
90147         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90148         so that we needn't mess with xalloc_msg_memory_exhausted.
90149
90150         * lib/sha1.h: Renamed from sha.h.
90151         (SHA1_H): Renamed from _SHA_H.
90152         (sha1_ctx): Renamed from sha_ctx.
90153         (sha1_init_ctx): Renamed from sha_init_ctx.
90154         (sha1_process_block): Renamed from sha_process_block.
90155         (sha1_process_bytes): Renamed from sha_process_bytes.
90156         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90157         (sha1_read_ctx): Renamed from sha_read_ctx.
90158         (sha1_stream): Renamed from sha_stream.
90159         (sha1_buffer): Renamed from sha_buffer.
90160         * lib/sha1.c: Likewise; renamed from sha.c.
90161         Do not include <sys/types.h>.
90162         Include <stddef.h> rather than <stdlib.h>.
90163
90164 2004-08-08  Bruno Haible  <bruno@clisp.org>
90165
90166         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90167         FILESYSTEM_PREFIX_LEN.
90168         * lib/progreloc.c: Likewise.
90169         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90170
90171 2004-08-06  Simon Josefsson  <jas@extundo.com>
90172
90173         * modules/progname (Depends-on): Don't depend on stdbool.
90174
90175 2004-08-06  Simon Josefsson  <jas@extundo.com>
90176
90177         * modules/getsubopt: New file.
90178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90179         getsubopt.
90180
90181 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90182
90183         More merge from coreutils.
90184
90185         * m4/utimens.m4, m4/utimecmp.m4: New files.
90186         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90187         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90188         prereq.m4, sha.m4: Import changes from coreutils.
90189
90190 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90191
90192         More merge from coreutils.
90193         * modules/raise, modules/readtokens0, modules/utimens:
90194         * modules/utimecmp, module/xnanosleep: New files.
90195         * modules/strftime: Add lib/strftime.h.
90196         Change include from <time.h> to "strftime.h".
90197         * modules/yesno: Add lib/yesno.h.
90198         * modules/backupfile: Remove lib/addext.c.
90199         * modules/euidaccess: Add stat-macros.h.
90200         * modules/canonicalize, modules/euidaccess,
90201         modules/filemode, modules/lchown, modules/makepath,
90202         modules/rmdir, modules/stat: Likewise.
90203
90204 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90205
90206         Merge from tar.
90207         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90208         SIZE_MAX is a valid preprocessor constant.
90209         (__argp_basename): Change from "#ifndef _LIBC"
90210         to "#ifndef __argp_short_program_name", so that
90211         we don't compile these functions for tar.
90212
90213         More merges from coreutils.
90214         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90215         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90216         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90217         * lib/addext.c: Remove; no longer needed.
90218         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90219         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90220         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90221         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90222         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90223         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90224         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90225         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90226         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90228         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90229         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90230         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90231         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90232         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90233         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90234         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90235         Import changes from coreutils.
90236
90237 2004-08-05  Simon Josefsson  <jas@extundo.com>
90238
90239         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90240
90241 2004-08-05  Simon Josefsson  <jas@extundo.com>
90242
90243         * m4/getsubopt.m4: New file.
90244
90245 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90246
90247         Merge from coreutils.
90248
90249         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90250         * m4/getcwd-path-max.m4: New files.
90251
90252         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90253         FILESYSTEM_PREFIX_LEN ->
90254         FILE_SYSTEM_PREFIX_LEN.
90255         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90256         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90257         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90258         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90259
90260         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90261         prerequisite modules now handle the DOS stuff.
90262         Don't check for unistd.h.
90263
90264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90265
90266         Merge from coreutils.
90267
90268         * lib/.gdb-history: Remove; this doesn't belong here.
90269
90270         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90271         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90272         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90273         * lib/getcwd.c: New files.
90274
90275         * lib/dirname.h: Include <stdbool.h>.
90276         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90277         for consistency with POSIX terminology.  All uses changed.
90278         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90279         (strip_trailing_slashes): Use bool for booleans.
90280         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90281
90282         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90283         sometimes returns a positive errno value even when it succeeds.
90284         (print_errno_message) [!LIBC]: Fall back on strerror if
90285         __strerror_r fails.
90286
90287         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90288         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90289         (longest_relative_suffix): New function.
90290         (path_concat): Use it.  Assume first argument is not NULL.
90291         Port to DOS.  Omit redundant separators.
90292         Report an error instead of returning NULL.
90293         Use mempcpy instead of memcpy.
90294         (xpath_concat): Remove: not declared or used.
90295
90296         * lib/same.h: Include <stdbool.h>
90297         (same_name): Return bool, not int.
90298         * lib/same.c (same_name): Likewise.
90299         (errno): Don't declare; we assume C89 or better now.
90300
90301         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90302         if not already defined.
90303
90304         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90305         * lib/dup-safer.c (errno): Likewise.
90306
90307 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90308
90309         Merge from coreutils.
90310         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90311         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90312         * modules/path-concat: Don't depend on strdup.
90313
90314 2004-08-03  Simon Josefsson  <jas@extundo.com>
90315
90316         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90317         * lib/progname.h: Don't include stdbool.h.
90318
90319 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90320
90321         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90322         * MODULES.html.sh (func_all_modules): Remove fatal.
90323
90324 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90325
90326         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90327
90328 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90329
90330         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90331         working.
90332
90333 2004-08-02  Simon Josefsson  <jas@extundo.com>
90334
90335         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90336         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90337         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90338
90339 2004-08-01  Simon Josefsson  <jas@extundo.com>
90340
90341         * lib/xgetdomainname.c: Include stdlib.h, for free().
90342
90343 2004-07-19  Bruno Haible  <bruno@clisp.org>
90344
90345         * MODULES.html.sh (func_all_modules): Add dummy.
90346
90347 2004-07-16  Simon Josefsson  <jas@extundo.com>
90348
90349         * modules/dummy: New file.
90350
90351 2004-07-16  Simon Josefsson  <jas@extundo.com>
90352
90353         * lib/dummy.c: New file.
90354
90355 2004-07-16  Bruno Haible  <bruno@clisp.org>
90356
90357         * lib/backupfile.h: Add extern "C" for C++.
90358         * lib/closeout.h: Likewise.
90359         * lib/copy-file.h: Likewise.
90360         * lib/findprog.h: Likewise.
90361         * lib/full-write.h: Likewise.
90362         * lib/pathname.h: Likewise.
90363         * lib/progname.h: Likewise.
90364         * lib/stpcpy.h: Likewise.
90365         * lib/stpncpy.h: Likewise.
90366         * lib/strcase.h: Likewise.
90367         * lib/strstr.h: Likewise.
90368         * lib/xalloc.h: Likewise.
90369
90370         * lib/mbswidth.h: Add extern "C" for C++.
90371         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90372
90373 2004-07-13  Robert Millan  <robertmh@gnu.org>
90374
90375         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90376
90377 2004-07-09  Simon Josefsson  <jas@extundo.com>
90378
90379         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90380         failed without this.)
90381
90382 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90383
90384         * modules/chown (Files): Add lib/fchown-stub.c, since
90385         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90386
90387 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90388
90389         * lib/fchown-stub.c: New file.
90390
90391 2004-06-24  Jim Meyering  <jim@meyering.net>
90392
90393         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90394
90395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90396
90397         * modules/argz: Omit "#include".
90398
90399         * MODULES.html.sh (func_all_modules): Add calloc, to match
90400         2004-06-01 addition of calloc module.
90401
90402 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90403
90404         * m4/argz.m4: New file, which is autoupdated from libtool.
90405
90406 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90407
90408         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90409         libtool.
90410
90411 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90412
90413         * config/srclist-update: Don't insist on "USA." before the
90414         close-comment, as libtool omits the period and puts the */ on a
90415         separate line.
90416         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90417         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90418
90419 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90420
90421         * modules/argz: New file.
90422         * MODULES.html.sh (func_all_modules): Add argz.
90423
90424 2004-06-12  Jim Meyering  <jim@meyering.net>
90425         and  Paul Eggert  <eggert@cs.ucla.edu>
90426
90427         * modules/hash (Files): Add lib/xalloc.h.
90428         * modules/pipe (Depends-on): Add wait-process.
90429         * modules/stat (Depends-on): Add xalloc.
90430         * modules/userspec (Files): Add lib/userspec.h.
90431         * modules/xstrto
90432
90433         Upgrade from gettext-0.13.
90434         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90435         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90436         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90437
90438 2004-06-10  Jim Meyering  <jim@meyering.net>
90439
90440         * lib/calloc.c: New file.
90441
90442 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90443
90444         * lib/getdate.y (yylex): Allow space between sign and number.
90445         Problem reported by Dan Jacobson.
90446
90447 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90448
90449         Merge from coreutils CVS.
90450
90451         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90452         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90453         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90454         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90455         xstrtol.m4: Fix copyright date and/or serial number.
90456
90457         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90458         See if we need an fchown replacement.
90459         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90460         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90461         and use the replacement function if we detect either defect.
90462
90463         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90464         gl_UTIMECMP.
90465
90466 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90467         and  Jim Meyering  <jim@meyering.net>
90468
90469         Merge from coreutils CVS.
90470
90471         * lib/stat-macros.h: New file, with contents from file-type.h
90472         and coreutils' system.h.
90473         * lib/file-type.c: Include "stat-macros.h".
90474         * lib/file-type.h (file_type): Move all macro definitions to new file,
90475         stat-macros.h.
90476
90477         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90478         Wrap old code with this conditional.
90479         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90480         function that does not dereference symlinks.
90481         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90482
90483         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90484         dependency problems.
90485         (xreadlink): Accept new arg SIZE, for efficiency.
90486         All decls and uses changed.
90487         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90488
90489         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90490         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90491
90492         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90493         sysexits.h.
90494
90495 2004-06-01  Jim Meyering  <jim@meyering.net>
90496
90497         * m4/calloc.m4: New file.
90498
90499 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90500
90501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90502         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90503         Also, fix a typo in a diagnostic.
90504
90505 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90506
90507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90508         or AC_FUNC_REALLOC.
90509
90510 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90511
90512         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90513         macros to be defined.
90514         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90515         the allocator returns NULL because the requested size is zero.
90516
90517 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90518
90519         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90520         var.  Add comment explaining why libc still defines it.  This
90521         merges the following patch from glibc:
90522         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90523
90524 2004-05-20  Andreas Schwab  <schwab@suse.de>
90525
90526         * m4/free.m4: Replace free if it not known to work, not the other
90527         way round.
90528
90529 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90530
90531         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90532         present in glibc since revision 1.1 of this file.
90533         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90534         obstack_alignment_mask, obstack_alloc, obstack_base,
90535         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90536         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90537         obstack_grow0, obstack_init, obstack_int_grow,
90538         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90539         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90540         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90541         nonexistent functions.
90542
90543 2004-05-18  Karl Berry  <karl@gnu.org>
90544
90545         * config/srclist.txt: break link for vasnprintf.c.
90546
90547 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90548
90549         Port obstack to the AS/400, where pointers are 16 bytes wide and
90550         you cannot cast an integer to a valid pointer.  This patch is
90551         currently waiting to be integrated into glibc; see
90552         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90553
90554         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90555         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90556         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90557         (struct obstack): temp member is now a union of a pointer and
90558         an integer, instead of an integer.  All integer uses changed.
90559         This does not affect the physical layout of struct obstack,
90560         except on hosts (like the AS/400) where the size or alignment of
90561         void * is greater than that of ptrdiff_t.
90562         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90563         __STDC__)]: Store temporary in pointer member of union, not
90564         integer member.
90565         * lib/obstack.c: Include <stddef.h>, for offsetof.
90566         (struct fooalign): Remove; it doesn't need a name.
90567         (union fooround): Change double to long double, and add void *.
90568         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90569         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90570         not a macro.  Hence the values are always int; so remove all
90571         casts-to-int in uses.
90572
90573 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90574
90575         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90576         we can get this patch merged into glibc.
90577
90578 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90579             Paul Eggert  <eggert@cs.ucla.edu>
90580
90581         * m4/argp: Depend on alloca.
90582
90583 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90584             Paul Eggert  <eggert@cs.ucla.edu>
90585
90586         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90587         freecoding.
90588
90589 2004-05-17  Bruno Haible  <bruno@clisp.org>
90590
90591         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90592         precision that consists of a '.' followed by an empty digit string.
90593         Patch by Tor Lillqvist <tml@iki.fi>.
90594
90595 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90596
90597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90598         for backward compatibility with older code.  We need our own
90599         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90600         it under some other name, and our alloca.h will define it.
90601
90602 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90603             Derek Price  <derek@ximbiot.com>
90604
90605         * lib/alloca.c: Include <alloca.h>, to get our interface.
90606         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90607         include <alloca.h> first.  Use C89 prototype for alloca; this
90608         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90609         Use #elif for simplicity, since we can assume C89 now.
90610         Don't try to source the system alloca.h since it will not be found
90611         and to prevent recursively including its replacement.
90612         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90613         * lib/regex.c: Likewise.
90614
90615 2004-05-16  Derek Price  <derek@ximbiot.com>
90616             Paul Eggert  <eggert@cs.ucla.edu>
90617
90618         getline cleanup.  This changes the getndelim2 API: both order of
90619         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90620         no delimiter).
90621
90622         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90623         interface does that.
90624         (getline): Always use getdelim, so that we don't have two
90625         copies of this code.
90626         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90627         if available.
90628         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90629         (GETNDELIM2_MAXIMUM): New macro.
90630         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90631         instead of the old practice of delim2==0.  All callers changed.
90632         Return -1 on overflow, instead of returning junk.
90633         Do not set *linesize unless allocation succeeds.
90634         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90635         that we include sys/types.h.
90636         * lib/getnline.h: Likewise.
90637         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90638         (getndelim2): Reorder arguments.
90639         * lib/getnline.c (getnline, getndelim):
90640         Don't discard the NMAX argument.
90641         (getnline): Invoke getndelim, to avoid code duplication.
90642         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90643         of (size_t) -1 by callers of the getnline family.
90644
90645 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90646
90647         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90648         Check for gettimeofday.
90649         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90650         Check for settimeofday, stime.
90651
90652 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90653
90654         * lib/nanosleep.c (suspended): Change its type from int to
90655         sig_atomic_t volatile.
90656         (first_call): Make it private to rpl_nanosleep, and have it
90657         be zero initially as that's a bit faster.
90658         (my_usleep): Round up fractional times instead of truncating them,
90659         as this is the usual meaning for 'sleep'.
90660
90661         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90662         doesn't work.
90663         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90664         (ENOSYS): Define if not defined.
90665         (settime): Fall back on stime if it exists and settimeofday fails.
90666         But don't bother with fallbacks if a method fails with errno == EPERM.
90667
90668 2004-05-11  Jim Meyering  <jim@meyering.net>
90669
90670         Prior to this change, the save_cwd caller required read access to the
90671         current directory on most systems (ones with the fchdir function).
90672
90673         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90674         fails, try write-only, and finally, resort to using xgetcwd.
90675
90676 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90677
90678         * lib/obstack.c, obstack.h: Import changes from libc.
90679
90680 2004-04-28  Bruno Haible  <bruno@clisp.org>
90681
90682         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90683         also implicitly appends .exe to executables.
90684         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90685         accepts Windows pathnames.
90686         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90687         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90688         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90689         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90690         Reported by Derek Robert Price <derek@ximbiot.com>.
90691
90692 2004-04-21  Karl Berry  <karl@gnu.org>
90693
90694         * config/srclist.txt (localcharset.c): break sync.
90695
90696 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90697
90698         * m4/host-os.m4: Add a copyright notice.
90699
90700 2004-04-20  Jim Meyering  <jim@meyering.net>
90701
90702         Change UTILS_ to gl_ in AC_DEFINE'd names.
90703         Change utils_- and jm_-prefixed variables, too.
90704         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90705         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90707
90708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90709         Don't emit trailing blanks.
90710         Also rename jm_-prefixed variables to have gl_ prefix.
90711
90712         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90713         Also rename jm_-prefixed variables to have gl_ prefix.
90714
90715         * m4/jm-macros.m4: Reflect the renamings.
90716         * m4/prereq.m4: Likewise.
90717
90718 2004-04-20  Jim Meyering  <jim@meyering.net>
90719
90720         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90721         memory.
90722
90723 2004-04-20  Jim Meyering  <jim@meyering.net>
90724             Bruno Haible  <bruno@clisp.org>
90725
90726         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90727         memory when realloc fails.
90728
90729 2004-04-19  Jim Meyering  <jim@meyering.net>
90730
90731         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90732         now that readutmp.c may call `free (0)'.
90733
90734 2004-04-19  Bruno Haible  <bruno@clisp.org>
90735
90736         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90737         * m4/inttypes_h.m4: Likewise.
90738         * m4/stdint_h.m4: Likewise.
90739         * m4/intmax_t.m4: Likewise.
90740         * m4/uintmax_t.m4: Likewise.
90741
90742 2004-04-18  Jim Meyering  <jim@meyering.net>
90743
90744         * m4/prereq.m4: Don't forbid jm_ prefix.
90745
90746         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90747         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90748         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90749         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90750         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90751         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90752         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90753         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90754         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90755         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90756         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90757         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90758         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90759         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90760         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90761         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90762         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90763         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90764         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90765
90766 2004-04-18  Jim Meyering  <jim@meyering.net>
90767
90768         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90769         failure, don't leak memory and do call END_UTMP_ENT.
90770
90771 2004-04-16  Jim Meyering  <jim@meyering.net>
90772
90773         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90774         coreutils' stat program.
90775         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90776
90777 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90778
90779         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90780         C89.
90781         (CHAR_BIT): Remove, since we assume C89.
90782         Include <stdint.h> if available, as per current Autoconf CVS advice.
90783
90784 2004-03-31  Jim Meyering  <jim@meyering.net>
90785
90786         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90787         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90788         * m4/xalloc.m4: Likewise.
90789
90790 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90791
90792         Merge from coreutils.
90793
90794         * m4/inttostr.m4: New file.
90795         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90796         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90797         Require gl_CLOCK_TIME.
90798         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90799
90800 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90801
90802         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90803         not bool, to be more consistent with Unix conventions.
90804         Suggested by Bruno Haible.
90805
90806         Merge from coreutils.
90807
90808         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90809         * lib/umaxtostr.c: New files.
90810
90811         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90812         the usual <time.h> dance.
90813         (get_date): Change signature to support fractional time stamps.
90814         All callers changed.
90815         * lib/getdate.y: Include "getdate.h" first, as we can now
90816         assume C89 and don't need to worry about 'const'.
90817         Similarly, include "unlocked-io.h" near start, not in middle.
90818         Include <limits.h>.
90819         (textint.value): Use long int rather than int.
90820         (textint.digits): Use size_t rather than int.
90821         (BILLION, LOG10_BILLION): New constants.
90822         (parser_control): New member rel_ns.  Members day_ordinal,
90823         time_zone, month, day, hour, minutes, rel_year, rel_month,
90824         rel_day, rel_hour, rel_minutes, rel_seconds
90825         are now long int, not int.  Member seconds is now struct timespec,
90826         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90827         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90828         not int.
90829         (%union.intval): Now long int, not int.
90830         New member timespec.
90831         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90832         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90833         (spec): Now is a timespec or an item list.
90834         (timespec, items): New nonterminals.
90835         (time, rel, relunit, number, get_date):
90836         Add support for fractional seconds.
90837         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90838         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90839         (to_hour): First arg is now long int, not int.
90840         (to_year): Returns long int, not int.
90841         Don't treat year -70 like 70.
90842         (tm_diff): Returns long int, not int.
90843         (lookup_word): Use bool instead of int when appropriate.
90844         (yylex): Use size_t for count, not int.
90845         Detect overflow when parsing large integer constants.
90846         Add support for fractions.
90847         (get_date): Make pointers 'const' if possible.
90848         Use more-portable code to detect integer overflow.
90849         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90850         Don't use ctime; it's not reliable if the year has >4 digits.
90851
90852         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90853         This is for compatibility with BSD.
90854
90855         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90856         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90857         From coreutils' system.h.
90858
90859         * lib/userspec.c: Don't include "posixver.h".
90860         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90861         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90862         compatible extension.  Simplify code by removing a boolean int
90863         that was always nonzero if a string was nonnull.
90864
90865 2004-03-30  Jim Meyering  <jim@meyering.net>
90866
90867         Merge from coreutils.
90868
90869         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90870         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90871         on some systems one must include <grp.h> before it.
90872         Reported by Christian Krackowizer.
90873
90874 2004-03-30  Jim Meyering  <jim@meyering.net>
90875
90876         Merge from coreutils.
90877
90878         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90879
90880         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90881         an empty input stream.
90882
90883         * lib/readtokens.c: Include <stdbool.h>.
90884         (readtoken): Use `size_t' rather than int/long.
90885         All callers adjusted.
90886         Use `bool' rather than `int' where appropriate.
90887         Use memset rather than an explicit loop.
90888         Use x2nrealloc rather than xrealloc.
90889         Allow the use of `\0' as a delimiter.
90890         (readtokens): Likewise.
90891         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90892
90893 2004-03-30  Jim Meyering  <jim@meyering.net>
90894
90895         * m4/realloc.m4: Remove file, since now it does no more than
90896         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90897         the `configure.ac' section of module/realloc.
90898         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90899
90900 2004-03-30  Bruno Haible  <bruno@clisp.org>
90901
90902         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90903         nonnull.
90904
90905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90906
90907         Merge changes to getloadavg.c from coreutils and Emacs.
90908
90909         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90910         Define to an expression, not to the empty string.
90911         Include cloexec.h and xalloc.h.
90912         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90913         Use set_cloexec_flag rather than rolling our own.
90914         * lib/cloexec.c, lib/cloexec.h: New files.
90915
90916 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90917
90918         * m4/cloexec.m4: New file.
90919
90920 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90921
90922         * lib/getopt.h: Sync with libc CVS.
90923
90924 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90925             Bruno Haible  <bruno@clisp.org>
90926
90927         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90928         mbswidth.
90929
90930 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90931             Bruno Haible  <bruno@clisp.org>
90932
90933         * lib/mbswidth.h: Include <wchar.h> only if
90934         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90935         <wchar.h>.
90936         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90937
90938 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90939
90940         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90941         Sync with libc CVS.
90942         * lib/getopt_int.h: New file, also synced from libc.
90943
90944 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90945
90946         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90947         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90948         Bring back getopt.c, getopt.h, getopt1.c.
90949
90950 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90951
90952         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90953         All uses changed.  Check for sa_sigaction member; this fixes
90954         a bug first reported by Jason Andrade in
90955         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90956
90957 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90958
90959         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90960         '#if' expressions.  Unlike the code it replaces, it does not
90961         depend on (defined _SC_PAGESIZE).  However, it does depend on
90962         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90963         first reported by Jason Andrade in
90964         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90965
90966 2004-02-25  Simon Josefsson  <jas@extundo.com>
90967
90968         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90969
90970 2004-02-25  Simon Josefsson  <jas@extundo.com>
90971
90972         * lib/strdup.h: New file.
90973         * lib/strdup.c: Include it.
90974         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90975         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90976
90977 2004-02-23  Karl Berry  <karl@gnu.org>
90978
90979         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90980         (from fencepost.gnu.org:/gd/gnuorg).
90981
90982 2004-02-23  Karl Berry  <karl@gnu.org>
90983
90984         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90985         * config/srclist.txt: add maintain/standards documents.
90986
90987 2004-02-18  Bruno Haible  <bruno@clisp.org>
90988
90989         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90990         Reported by Derek Robert Price <derek@ximbiot.com>.
90991
90992 2004-02-16  Karl Berry  <karl@gnu.org>
90993
90994         * config/mkinstalldirs, install-sh: update from automake.
90995
90996 2004-02-06  Karl Berry  <karl@gnu.org>
90997
90998         * m4/po.m4: update from gettext 0.14.1.
90999
91000 2004-02-06  Karl Berry  <karl@gnu.org>
91001
91002         * lib/config.charset: update from gettext 0.14.1.
91003
91004 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91005
91006         Add comments and code, prompted by suggestions from Bruno Haible
91007         for sh-quote.
91008         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91009         describing the enum quoting_style values.
91010         * lib/quotearg.c (quotearg_alloc): New function.
91011         (quotearg_buffer_restyled): Treat lone { and } as special.
91012         Treat = as special.  Work around bug with older shells
91013         that "see" a '\' that is really the 2nd byte of a multibyte char.
91014         Quote empty string with shell_quoting_style.
91015
91016 2004-02-03  Bruno Haible  <bruno@clisp.org>
91017
91018         * m4/pipe.m4: New file, from GNU gettext.
91019
91020 2004-02-03  Bruno Haible  <bruno@clisp.org>
91021
91022         * lib/pipe.h: New file, from GNU gettext.
91023         * lib/pipe.c: New file, from GNU gettext.
91024
91025 2004-01-27  Bruno Haible  <bruno@clisp.org>
91026
91027         * m4/execute.m4: New file, from GNU gettext.
91028
91029 2004-01-27  Bruno Haible  <bruno@clisp.org>
91030
91031         * lib/execute.h: New file, from GNU gettext.
91032         * lib/execute.c: New file, from GNU gettext.
91033         * lib/w32spawn.h: New file, from GNU gettext.
91034
91035 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91036
91037         Merge from diffutils.
91038
91039         * lib/file-type.c (file_type): Add typed memory objects.
91040         * lib/file-type.h (S_TYPEISTMO): New macro.
91041
91042         * lib/c-stack.h (c_stack_action): Remove argv argument.
91043         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91044         (die): Don't calculate message unless segv_action returns.
91045         (get_stack_location, min_address_from_argv, max_address_from_argv,
91046         volatile stack_base, volatile_stack_size): Remove.
91047         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91048         that every segmentation violation is a stack overflow.  (Ouch!)
91049         See Debian bug 136249 (still outstanding) for more info about why
91050         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91051
91052 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91053
91054         Exit-status fix from coreutils.
91055
91056         Use exit_failure consistently in place of EXIT_FAILURE,
91057         so that program exit statuses are consistent on failure.
91058
91059         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91060         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91061         * lib/argmatch.h: Comment fix to match the above.
91062         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91063         Now a macro referring to exit_failure, instead of a separate
91064         variable.  Include "exitfail.h" to get it.
91065         * lib/xstrtol.h: Include "exitfail.h".
91066         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91067
91068         * lib/long-options.c (parse_long_options): Use prototype
91069         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91070         for clarity.
91071
91072 2004-01-21  Jim Meyering  <jim@meyering.net>
91073
91074         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91075         so as not to conflict with a different-sized __mktime_internal
91076         function in GNU libc.
91077         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91078         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91079
91080 2004-01-20  Karl Berry  <karl@gnu.org>
91081
91082         * config/config.guess: update from config.
91083
91084         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91085
91086 2004-01-20  Bruno Haible  <bruno@clisp.org>
91087
91088         Safer stack allocation.
91089         * lib/setenv.c: Include allocsa.h.
91090         (alloca): Remove fallback definition.
91091         (freea): Remove macro.
91092         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91093         instead of freea.
91094
91095 2004-01-20  Bruno Haible  <bruno@clisp.org>
91096
91097         * m4/eealloc.m4: New file, from GNU gettext.
91098
91099 2004-01-20  Bruno Haible  <bruno@clisp.org>
91100
91101         * m4/allocsa.m4: New file, from GNU gettext.
91102
91103 2004-01-20  Bruno Haible  <bruno@clisp.org>
91104
91105         * lib/xallocsa.h: New file, from GNU gettext.
91106         * lib/xallocsa.c: New file, from GNU gettext.
91107
91108 2004-01-20  Bruno Haible  <bruno@clisp.org>
91109
91110         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91111
91112 2004-01-20  Bruno Haible  <bruno@clisp.org>
91113
91114         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91115         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91116         specially.
91117
91118 2004-01-20  Bruno Haible  <bruno@clisp.org>
91119
91120         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91121         patch.
91122
91123 2004-01-20  Bruno Haible  <bruno@clisp.org>
91124
91125         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91126
91127 2004-01-20  Bruno Haible  <bruno@clisp.org>
91128
91129         * lib/eealloc.h: New file.
91130
91131 2004-01-20  Bruno Haible  <bruno@clisp.org>
91132
91133         * lib/binary-io.h: Avoid warnings on Cygwin.
91134
91135 2004-01-20  Bruno Haible  <bruno@clisp.org>
91136
91137         * lib/allocsa.h: New file, from GNU gettext.
91138         * lib/allocsa.c: New file, from GNU gettext.
91139
91140 2004-01-18  Karl Berry  <karl@gnu.org>
91141
91142         * doc/gpl.texi, doc/lgpl.texi: new files.
91143
91144 2004-01-18  Karl Berry  <karl@gnu.org>
91145
91146         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91147         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91148
91149 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91150
91151         Merge from coreutils.
91152
91153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91154         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91155         (gl_DEFAULT_POSIX2_VERSION): Move
91156         the documentation from 'configure' into 'config.hin',
91157         so that 'configure --help' isn't burdened by it and
91158         we don't have to worry about its formatting there.
91159         Reword the documentation so that it's more succinct
91160         and can be run together into a single paragraph.
91161         * m4/same.m4 (gl_SAME): Check for pathconf.
91162
91163 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91164
91165         Merge from coreutils.
91166
91167         * lib/posixver.c: Include posixver.h.
91168
91169         * lib/same.c: Include <stdbool.h>, <limits.h>.
91170         (_POSIX_NAME_MAX): Define if not defined.
91171         (MIN): New macro.
91172         (same_name): If file names are silently truncated, report
91173         that the file names are the same if they are the same after
91174         the silent truncation.
91175
91176         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91177         conversion function.
91178         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91179         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91180         longer needed.
91181
91182 2004-01-15  Jim Meyering  <jim@meyering.net>
91183
91184         Merge from coreutils.
91185
91186         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91187         if no library is required.
91188         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91189         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91190         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91191         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91192         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91193         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91194         value, $ac_cv_search_crypt, if it's "none required".
91195         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91196         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91197         not gl_FUNC_GETLOADAVG.
91198         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91199         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91200
91201 2004-01-15  Jim Meyering  <jim@meyering.net>
91202
91203         Merge from coreutils.
91204
91205         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91206         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91207         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91208
91209         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91210         optional configure-time default.
91211
91212         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91213
91214         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91215
91216 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91217
91218         Merge from coreutils.
91219
91220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91221         value, $ac_cv_search_nanosleep, if it's "none required".
91222
91223 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91224
91225         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91226         with like-named macro in fnmatch.c.
91227         (EXT): Use an internal constant instead.
91228
91229         Merge fnmatch patches from glibc.
91230         * lib/fnmatch.c (mbsinit): Remove define.
91231         Add libc_hidden_ver (__fnmatch, fnmatch).
91232         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91233         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91234
91235 2004-01-14  Karl Berry  <karl@gnu.org>
91236
91237         * config/install-sh: update from automake.
91238
91239 2004-01-13  Karl Berry  <karl@gnu.org>
91240
91241         * config/install-sh: update from automake.
91242
91243 2004-01-09  Karl Berry  <karl@gnu.org>
91244
91245         * config/install-sh: update from automake.
91246
91247 2004-01-05  Karl Berry  <karl@gnu.org>
91248
91249         * config/config.{sub,guess}: update from config.
91250
91251 2003-12-31  Karl Berry  <karl@gnu.org>
91252
91253         * config/depcomp: update from automake.
91254
91255 2003-12-14  Karl Berry  <karl@gnu.org>
91256
91257         * lib/config.charset: update from gettext-runtime.
91258
91259 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91260
91261         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91262         Bug reported by Alfred M. Szmidt.
91263
91264 2003-12-03  Bruno Haible  <bruno@clisp.org>
91265
91266         * m4/gettext.m4: Upgrade from gettext-0.13.
91267         * m4/po.m4: Upgrade from gettext-0.13.
91268         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91269         * m4/intmax.m4: New file, from gettext-0.13.
91270         * m4/printf-posix.m4: New file, from gettext-0.13.
91271
91272 2003-11-29  Karl Berry  <karl@gnu.org>
91273
91274         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91275
91276 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91277             Bruno Haible  <bruno@clisp.org>
91278
91279         * lib/printf-parse.h: Don't include sys/types.h.
91280         (ARG_NONE): New macro.
91281         (char_directive): Change type of *arg_index fields to size_t.
91282         * lib/printf-parse.c: Don't include sys/types.h.
91283         (SSIZE_MAX): Remove macro.
91284         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91285         Remove unnecessary overflow check.
91286         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91287         fields.
91288
91289 2003-11-25  Bruno Haible  <bruno@clisp.org>
91290
91291         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91292
91293 2003-11-25  Bruno Haible  <bruno@clisp.org>
91294
91295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91296         gt_TYPE_SSIZE_T.
91297
91298 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91299
91300         * modules/alloca: Remove dependency on xalloc.
91301
91302 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91303
91304         * lib/alloca.c: Remove dependency on xalloc module.
91305         (xalloc_die): Remove.
91306         (memory_full) [!defined emacs]: New macro.
91307         [!defined emacs]: Don't include xalloc.h.
91308         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91309         address arithmetic overflows.  Change datatypes a bit to avoid
91310         unnecessary casts.
91311
91312 2003-11-22  Jim Meyering  <jim@meyering.net>
91313
91314         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91315         s/size/size_t/.
91316
91317 2003-11-21  Karl Berry  <karl@gnu.org>
91318
91319         * config/config.{sub,guess}: update from config.
91320
91321 2003-11-18  Karl Berry  <karl@gnu.org>
91322
91323         * config/config.{sub,guess}: update from config.
91324
91325         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91326
91327 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91328
91329         * README: Mention that S+T cannot overflow if S is the size of
91330         an existing object and T is sufficiently small.
91331
91332 2003-11-17  Jim Meyering  <jim@meyering.net>
91333
91334         On systems without utime and without a utimes function capable of
91335         dealing with a NULL struct utimbuf* argument, this utime replacement
91336         could -- in unusual circumstances -- leak a file descriptor.
91337         * lib/utime.c: Include <unistd.h> and <errno.h>.
91338         (utime_null): Be sure to close `fd' and to preserve errno.
91339         Reported by Geoff Collyer via Arnold Robbins.
91340
91341 2003-11-17  Bruno Haible  <bruno@clisp.org>
91342
91343         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91344         (Depends-on): Add xsize.
91345
91346 2003-11-17  Bruno Haible  <bruno@clisp.org>
91347
91348         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91349
91350 2003-11-17  Bruno Haible  <bruno@clisp.org>
91351
91352         * lib/vasnprintf.c (alloca): Remove fallback definition.
91353         (freea): Remove definition.
91354         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91355         Reported by Paul Eggert.
91356
91357 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91358             Bruno Haible  <bruno@clisp.org>
91359
91360         Protect against address arithmetic overflow.
91361         * lib/printf-args.h: Include stddef.h.
91362         (arguments): Change type of field 'count' to size_t.
91363         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91364         'unsigned int' where appropriate.
91365         * lib/printf-parse.h: Include sys/types.h.
91366         (char_directive): Change type of *arg_index fields to ssize_t.
91367         (char_directives): Change type of fields 'count', max_*_length to
91368         size_t.
91369         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91370         (SSIZE_MAX): Define fallback value.
91371         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91372         instead of 'int' where appropriate. Check a_allocated, d_allocated
91373         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91374         * lib/vasnprintf.c: Include xsize.h.
91375         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91376         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91377         overflow. Avoid wraparound when converting a width or precision from
91378         decimal to binary.
91379
91380 2003-11-16  Bruno Haible  <bruno@clisp.org>
91381
91382         Update from GNU gettext.
91383         * lib/printf-parse.c: Generalize to it can be compiled for wide
91384         strings.
91385         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91386         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91387         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91388         SNPRINTF): New macros.
91389         Don't include <alloca.h> if the file is used inside libintl.
91390         (local_wcslen): New function, for Solaris 2.5.1.
91391         (VASNPRINTF): Use it instead of wcslen.
91392
91393 2003-11-16  Bruno Haible  <bruno@clisp.org>
91394
91395         * lib/xsize.h (xmax): New function.
91396         (xsum, xsum3, xsum4): Declare as "pure" functions.
91397
91398 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91399
91400         * modules/xalloc (Files): Undo latest change, since xalloc.h
91401         no longer needs SIZE_MAX or PTRDIFF_MAX.
91402
91403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91404
91405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91406         gl_PTRDIFF_MAX.
91407
91408 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91409
91410         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91411         "return", to pacify some unknown compiler.  Problem reported
91412         by Joerg Schilling.
91413
91414 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91415
91416         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91417         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91418         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91419         heuristic is just as accurate as far as we know, and it removes a
91420         dependency on size_max.m4 and ptrdiff_max.m4.
91421
91422 2003-11-11  Bruno Haible  <bruno@clisp.org>
91423
91424         * modules/xsize (Files): Add m4/size_max.m4.
91425         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91426
91427 2003-11-11  Bruno Haible  <bruno@clisp.org>
91428
91429         * m4/size_max.m4: New file.
91430         * m4/ptrdiff_max.m4: New file.
91431         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91433         (gl_XALLOC): Invoke it.
91434
91435 2003-11-11  Bruno Haible  <bruno@clisp.org>
91436
91437         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91438         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91439         defined.
91440
91441 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91442
91443         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91444         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91445         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91446         From Bruno Haible.
91447         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91448         not (size_t) -1, since it's defined here.
91449
91450 2003-11-09  Karl Berry  <karl@gnu.org>
91451
91452         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91453
91454 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91455
91456         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91457         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91458         Reject sizes of exactly SIZE_MAX bytes.
91459         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91460         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91461
91462 2003-11-05  Bruno Haible  <bruno@clisp.org>
91463
91464         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91465         SIZE_MAX defined in <limits.h> on Solaris.
91466
91467 2003-11-04  Jim Meyering  <jim@meyering.net>
91468
91469         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91470         variable names, rather than @VAR@.
91471         * modules/poll: Likewise.
91472
91473 2003-11-04  Bruno Haible  <bruno@clisp.org>
91474
91475         * modules/xsize: New file.
91476         * modules/linebreak: Depend on xsize.
91477         * MODULES.html.sh (func_all_modules): Add xsize.
91478
91479 2003-11-04  Bruno Haible  <bruno@clisp.org>
91480
91481         * m4/xsize.m4: New file.
91482
91483 2003-11-04  Bruno Haible  <bruno@clisp.org>
91484
91485         * lib/xsize.h: New file.
91486         * lib/linebreak.c: Include xsize.h.
91487         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91488         argument for overflow.
91489         Suggested by Paul Eggert.
91490
91491 2003-11-03  Karl Berry  <karl@gnu.org>
91492
91493         * config/config.{guess,sub}: update from config.
91494
91495 2003-11-03  Jim Meyering  <jim@meyering.net>
91496
91497         * modules/userspec (lib_SOURCES): Add userspec.h.
91498         (Include): Add "userspec.h".
91499         Improve description.
91500
91501 2003-11-03  Jim Meyering  <jim@meyering.net>
91502
91503         * lib/userspec.c: Include "userspec.h".
91504         * lib/userspec.h: New file.
91505
91506 2003-11-03  Bruno Haible  <bruno@clisp.org>
91507
91508         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91509
91510 2003-11-03  Bruno Haible  <bruno@clisp.org>
91511
91512         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91513         available, to avoid (extremely rare) race condition.
91514         Suggested by Paul Eggert.
91515
91516 2003-11-02  Karl Berry  <karl@gnu.org>
91517
91518         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91519
91520 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91521
91522         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91523         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91524         (read_filesystem_list): Set and use me_type_malloced.
91525         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91526         whatever the type happens to be), for brevity and consistency.
91527         Check for size calculation overflow on Alphas running OSF/1.
91528
91529 2003-10-31  Jim Meyering  <jim@meyering.net>
91530
91531         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91532
91533         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91534
91535 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91536             Bruno Haible  <bruno@clisp.org>
91537
91538         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91539         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91540
91541 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91542
91543         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91544         netbsd*-gnu*.  Suggested by Robert Millan.
91545
91546 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91547
91548         * modules/group-member: Depend on stdbool.
91549
91550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91551
91552         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91553
91554 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91555
91556         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91557         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91558         after the 'gnu' in these cases.  This fixes some bugs in the
91559         previous change, and is based on suggestions by Robert Millan.
91560
91561 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91562
91563         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91564         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91565         no longer needed.
91566         * lib/quotearg.c (quotearg_n_options): Use it.
91567         * lib/group-member.c: Include <stdbool.h>.
91568         (free_group_info): Arg is now const *; don't free arg.
91569         (get_group_info): Now returns bool and accepts struct group_info *,
91570         rather than returning a malloc'ed struct group_info *.
91571         All uses changed.  Check for overflow in internal size calculation.
91572
91573         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91574         rather than xmalloc/xrealloc.
91575         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91576         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91577         conformance bug: the old code used a pointer after freeing the
91578         storage that it addressed.
91579         * lib/hash.c (hash_initialize): Simplify the code by using
91580         xalloc_oversized rather than doing it by hand.
91581         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91582         the buffer preserved.  Use free and xmalloc instead.
91583         * lib/quotearg.c (quotearg_n_options): Likewise.
91584         Use a simpler test for size overflow.  Don't use xalloc_oversized
91585         because unsigned int might be wider than size_t (!); this suggests
91586         that we should switch from unsigned int to size_t for slot numbers.
91587
91588 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91589
91590         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91591         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91592         NetBSD kernels.  Requested by Richard Stallman.
91593
91594 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91595
91596         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91597         to allocate the returned structure.  Do not allocate a subarray,
91598         as x2nrealloc will do that.
91599         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91600         instead of xnrealloc.
91601         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91602
91603 2003-10-27  Bruno Haible  <bruno@clisp.org>
91604
91605         * lib/stdbool_.h: Better support for BeOS.
91606
91607 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91608
91609         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91610         now uses inline.
91611
91612 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91613
91614         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91615         callers that want to do their own size-overflow checking.  Include
91616         <stdbool.h>, since xalloc_oversized returns bool.
91617         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91618         to use xalloc_oversized.
91619
91620         Add two functions x2realloc, x2nrealloc, for programs that grow
91621         arrays dynamically by doubling their sizes.
91622         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91623         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91624         New functions.
91625
91626         Port to C99 semantics for 'inline' of external functions.
91627         Bug reported by Bruno Haible.
91628         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91629         with the old contents of xnmalloc.
91630         (xnmalloc, xmalloc): Use it.
91631         (xnrealloc_inline): New static inline function,
91632         with the old contents of xnrealloc.
91633         (xnrealloc, xrealloc): Use it.
91634
91635         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91636         that.
91637
91638 2003-10-26  Karl Berry  <karl@gnu.org>
91639
91640         * config/srclist.txt (COPYING.DOC): no longer available from
91641         /gd/gnuorg; don't know where the ultimate source is.
91642
91643 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91644
91645         Fix several address-calculation bugs in the hash modules,
91646         plus some minor code cleanup.
91647
91648         * lib/hash.h: Include <stdbool.h>, for bool.
91649         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91650         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91651         hash_get_n_entries, hash_get_max_bucket_length,
91652         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91653         hash_rehash): Use size_t rather than unsigned.
91654         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91655         hash_get_n_buckets_used, hash_get_n_entries,
91656         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91657         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91658         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91659         Likewise.
91660         (SIZE_MAX): Define if not defined.
91661         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91662         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91663         hash_print):
91664         Use const * when possible.
91665         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91666         (check_tuning): Fix bug: if tuning parameters were very close to
91667         0 or 1, rounding errors could have caused subscript violations.
91668         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91669         (hash_initialize): Add 'fail:' label
91670         to free table and return NULL, and use it to simplify code.
91671         Use calloc rather than clearing the storage ourself.
91672         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91673         buffer size calculations.
91674         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91675         Include <stddef.h>, for size_t.
91676         * lib/hash-pjw.c (hash_pjw): Likewise.
91677         Switch to method described by Bruno Haible.
91678         Include <limits.h>, for CHAR_BIT.
91679         (SIZE_BITS): New macro.
91680
91681 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91682
91683         * m4/getline.m4 (AM_FUNC_GETLINE):
91684         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91685         hosts.  Problem reported by Derek Robert Price in
91686         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91687         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91688         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91689
91690 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91691
91692         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91693         ceiling the allocation at NMAX bytes rather than silently
91694         discarding input bytes before NMAX is reached.  This makes
91695         a difference only if NMAX exceeds SIZE_MAX / 2.
91696
91697         * lib/obstack.c: Merge from glibc.
91698         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91699         Add libc_hidden_def (_obstack_newchunk).
91700         (_obstack_free) [! defined _LIBC]: Remove.
91701         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91702         a clone of the function body.
91703         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91704         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91705
91706         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91707         glibc.
91708         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91709         arg to memcpy.
91710
91711         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91712         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91713         Don't use lvalue casts, as GCC plans to remove support for them
91714         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91715         was also present in the non-GCC version, indicating that this
91716         code had always been buggy and had never been widely used.
91717         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91718         Use the fast variant of each macro, rather than copying the
91719         definiens of the fast variant; that way, we'll be more likely to
91720         catch future bugs in the fast variants.
91721
91722 2003-10-20  Bruno Haible  <bruno@clisp.org>
91723
91724         * modules/wait-process: New file.
91725         * MODULES.html.sh (func_all_modules): Add wait-process.
91726
91727 2003-10-20  Bruno Haible  <bruno@clisp.org>
91728
91729         * m4/wait-process.m4: New file.
91730
91731 2003-10-20  Bruno Haible  <bruno@clisp.org>
91732
91733         * lib/wait-process.h: New file, from GNU gettext.
91734         * lib/wait-process.c: New file, from GNU gettext.
91735
91736 2003-10-19  Jim Meyering  <jim@meyering.net>
91737
91738         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91739         HPUX 10.20.
91740
91741 2003-10-18  Karl Berry  <karl@gnu.org>
91742
91743         * config/config.guess: update from config.
91744
91745 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91746
91747         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91748         (getgroups): First arg is int, not size_t.
91749         Don't let 'free' mangle errno.
91750
91751 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91752
91753         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91754
91755 2003-10-16  Karl Berry  <karl@gnu.org>
91756
91757         * config/config.{guess,sub}: update from config.
91758
91759 2003-10-16  Jim Meyering  <jim@meyering.net>
91760
91761         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91762         memcpy.
91763
91764 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91765
91766         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91767         (SIZE_MAX): Remove.
91768         (new_exclude, add_exclude_file): Initial size no longer needs to
91769         be a power of 2.
91770         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91771         our own address arithmetic overflow checking.
91772
91773         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91774         (fnmatch): Do not alloca more than 2000 wide characters;
91775         instead, use malloc for large buffers.
91776         Check for address arithmetic overflow, and return -1
91777         with errno set to ENOMEM in that case.
91778         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91779         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91780         instead, return -1.  Check for address arithmetic overflow.
91781
91782 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91783
91784         Handle invalid suffixes and overflow independently, so that
91785         callers can treat them independently as needed.  Fix some bugs in
91786         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91787         suffix for a human-readable blocksize.  The major caller-visible
91788         change is the addition of a new
91789         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91790         that both overflow and suffix chars were found.
91791
91792         * lib/human.c (humblock): Don't check separately for invalid suffix
91793         char; that is xstrtoumax's job (now that its bug is fixed).
91794         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91795         INTMAX_MAX]: New macros.
91796         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91797         TYPE_MAXIMUM): New macros.
91798         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91799         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91800         if overflow occurs, as it's what __strtol does and it's more useful
91801         in practice.
91802         (__xstrtol): If __strtol reports some error other than ERANGE,
91803         reflect it to the caller as LONGINT_INVALID.  If it reports
91804         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91805         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91806         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91807         value.
91808         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91809         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91810         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91811         [defined UINTMAX_MAX]: New macros.
91812
91813 2003-10-14  Bruno Haible  <bruno@clisp.org>
91814
91815         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91816
91817 2003-10-14  Bruno Haible  <bruno@clisp.org>
91818
91819         * m4/sig_atomic_t: New file, from GNU gettext.
91820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91821
91822 2003-10-14  Bruno Haible  <bruno@clisp.org>
91823
91824         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91825         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91826         Also use volatile where needed.
91827
91828 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91829
91830         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91831         Change maintainer from Bruno Haible to 'all'.
91832
91833 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91834
91835         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91836
91837 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91838
91839         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91840         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91841         and define in terms of the other primitives.
91842         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91843         (SIZE_MAX): Define if not already defined.
91844         (array_size_overflow): New function.
91845         (xalloc_die): Abort instead of exiting if 'error' returns.
91846         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91847         (xmalloc, xrealloc): Use them.
91848         (xcalloc): Check for address arithmetic overflow.
91849         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91850         a bit faster than strcpy.
91851
91852 2003-10-10  Simon Josefsson  <jas@extundo.com>
91853
91854         * modules/argp (Depends-on): Add restrict and strcase.
91855
91856 2003-10-10  Simon Josefsson  <jas@extundo.com>
91857
91858         * m4/argp.m4: Add AC_C_INLINE.
91859
91860 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91861
91862         Merge getpass from libc, plus a few fixes.
91863
91864         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91865         Include <stdbool.h>.
91866         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91867         __fsetlocking to empty.
91868         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91869         do include <bits/libc-lock.h>.
91870         Do not include <fcntl.h>; not needed.
91871         [_LIBC]: Include <wchar.h>.
91872         (NOTCANCEL_MODE): New macro.
91873         (flockfile, funlockfile) [_LIBC]: New macros.
91874         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91875         [!_LIBC]: New macros.
91876         (call_fclose): New function.
91877         (getpass): Use it.  Save tty stream separately; this simplifies the
91878         code and makes it more reliable if stdin happens to equal stdout.
91879         Invoke __fsetlocking on tty.
91880         Handle thread cancellation if needed.
91881         Namespace cleanup (use __tcgetattr, __getline).
91882         Use bool for Booleans.
91883         [USE_IN_LIBIO]: Handle wide streams.
91884         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91885         stream might go where.
91886
91887         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91888         doesn't have to include <stdio.h> before us.
91889         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91890         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91891         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91892         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91893         if not declared, so that we can use getpass.c code from libc without
91894         rewriting it.
91895         (flockfile, ftrylockfile, funlockfile): New macros.
91896
91897 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91898
91899         * modules/getpass: Depend on stdbool.
91900
91901 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91902
91903         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91904
91905 2003-10-07  Karl Berry  <karl@gnu.org>
91906
91907         * config/config.{guess,sub}: update from config.
91908
91909 2003-10-06  Jim Meyering  <jim@meyering.net>
91910             Bruno Haible  <bruno@clisp.org>
91911
91912         This lets translators provide better translations for the
91913         "Written by ..." part of --version output.
91914         * lib/version-etc.h: Include stdarg.h.
91915         (version_etc_copyright): Declare as readonly.
91916         (version_etc): Make this function variadic with a NULL-terminated list
91917         of author name strings.
91918         (version_etc_va): New declaration.
91919         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91920         (version_etc_copyright): Declare as readonly.
91921         (version_etc_va): New function. Provide a different translatable string
91922         for each possible number of authors < 10. Abbreviate when there are 10
91923         authors or more.
91924         (version_etc): Make this function variadic. Call version_etc_va.
91925         Suggestion from Gary V. Vaughan.
91926
91927         * lib/long-options.h (parse_long_options): Change prototype: the
91928         authors string is moved to the end and becomes variadic.
91929         * lib/long-options.c: Include stdarg.h.
91930         (parse_long_options): Make this function variadic, too.
91931         Call version_etc_va, not version_etc.
91932
91933 2003-10-06  Bruno Haible  <bruno@clisp.org>
91934
91935         * modules/version-etc-2: Remove file.
91936         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91937
91938 2003-10-06  Bruno Haible  <bruno@clisp.org>
91939
91940         * modules/fatal-signal: New file.
91941         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91942
91943 2003-10-06  Bruno Haible  <bruno@clisp.org>
91944
91945         * m4/fatal-signal.m4: New file.
91946         * m4/signalblocking.m4: New file, from GNU gettext.
91947
91948 2003-10-06  Bruno Haible  <bruno@clisp.org>
91949
91950         * lib/version-etc-2.h: Remove file.
91951         * lib/version-etc-2.c: Remove file.
91952
91953 2003-10-06  Bruno Haible  <bruno@clisp.org>
91954
91955         * lib/fatal-signal.h: New file, from GNU gettext.
91956         * lib/fatal-signal.c: New file, from GNU gettext.
91957
91958 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91959
91960         * README: Rework advice for preventing empty .o files.
91961         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91962         not <sys/types.h>.
91963
91964 2003-10-04  Karl Berry  <karl@gnu.org>
91965
91966         * lib/argp*: update from libc.
91967
91968 2003-10-04  Karl Berry  <karl@gnu.org>
91969
91970         * config/config.{guess,sub}: update from config.
91971
91972 2003-10-02  Bruno Haible  <bruno@clisp.org>
91973
91974         * modules/lchown (Include): Add lchown.h.
91975         * modules/time_r (Include): Use "..." syntax.
91976         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91977
91978 2003-10-01  Simon Josefsson  <jas@extundo.com>
91979
91980         * MODULES.html.sh (func_all_modules): Move gethostname from section
91981         'based on' to section 'lacking' POSIX:2001.
91982
91983 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91984
91985         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91986         to output mode on the same stream.
91987
91988 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91989
91990         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91991         Fix arg typo in previous patch.
91992
91993 2003-09-28  Jim Meyering  <jim@meyering.net>
91994
91995         * lib/error.c: Correct cpp indentation.
91996
91997 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91998
91999         * modules/free: New file.
92000
92001 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92002
92003         * m4/free.m4: New file.
92004
92005 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92006
92007         * lib/minmax.h (MIN, MAX)
92008         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92009         Omit the special code that used __typeof__, since we worry that
92010         it could be more trouble than it's worth.  See:
92011         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92012         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92013
92014         * lib/free.c: New file.
92015
92016 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92017
92018         Trivial fixes to Makefile.am parts of module listings.
92019         * modules/strstr: Append strstr.h to lib_SOURCES.
92020         * modules/strcase: Likewise, for strcase.h.
92021
92022 2003-09-27  Karl Berry  <karl@gnu.org>
92023
92024         * config/mkinstalldirs: update from automake.
92025
92026 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92029         (error_tail): Do not loop, reallocating temporary buffer, since
92030         the output cannot contain more wide characters than the input
92031         contains bytes, the size must be big enough already.  This avoids
92032         one potential size overflow calculation.  Check for size overflow
92033         when calculating temporary buffer size.  Free temporary buffer
92034         when done, if it was allocated with malloc; this plugs a memory
92035         leak.  Remove casts from void * to pointers, that are no longer
92036         needed now that we're assuming C89 or better.
92037
92038         Merge error changes from glibc.
92039
92040         * lib/error.c, error.h: Update copyright notice header to match glibc.
92041         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92042         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92043         Disable cancellation while printing error.
92044         * lib/error.h: Prepend __ to parameter names.
92045
92046 2003-09-26  Jim Meyering  <jim@meyering.net>
92047
92048         * lib/error.c (error_tail): Move some declarations
92049         into inner scope where the local variables are used.
92050
92051 2003-09-26  Bruno Haible  <bruno@clisp.org>
92052
92053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92054         stpncpy().
92055         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92056
92057 2003-09-26  Bruno Haible  <bruno@clisp.org>
92058
92059         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92060         (stpncpy): Define as alias for gnu_stpncpy.
92061         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92062
92063 2003-09-25  Simon Josefsson  <jas@extundo.com>
92064
92065         * lib/xgetdomainname.h: New file.
92066         * lib/xgetdomainname.c: New file.
92067
92068 2003-09-25  Simon Josefsson  <jas@extundo.com>
92069             Bruno Haible  <bruno@clisp.org>
92070
92071         * modules/getdomainname: New file.
92072         * modules/xgetdomainname: New file.
92073         * MODULES.html.sh (func_all_modules): Add getdomainname,
92074         xgetdomainname.
92075
92076 2003-09-25  Simon Josefsson  <jas@extundo.com>
92077             Bruno Haible  <bruno@clisp.org>
92078
92079         * m4/getdomainname.m4: New file.
92080
92081 2003-09-25  Simon Josefsson  <jas@extundo.com>
92082             Bruno Haible  <bruno@clisp.org>
92083
92084         * lib/getdomainname.h: New file.
92085         * lib/getdomainname.c: New file.
92086
92087 2003-09-25  Karl Berry  <karl@gnu.org>
92088
92089         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92090
92091 2003-09-25  Karl Berry  <karl@gnu.org>
92092
92093         * config/install-sh: update from automake.
92094
92095 2003-09-25  Bruno Haible  <bruno@clisp.org>
92096
92097         * modules/version-etc-2: New file, from modules/version-etc with
92098         modifications.
92099         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92100
92101 2003-09-25  Bruno Haible  <bruno@clisp.org>
92102
92103         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92104         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92105
92106 2003-09-24  Simon Josefsson  <jas@extundo.com>
92107
92108         * modules/xgethostname: Add xgethostname.h.
92109
92110 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92111
92112         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92113         the buffer associated with the argument.  Bug reported by
92114         Simon Josefsson.
92115
92116 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92117
92118         * README: Document assumptions that 'int' is at least 32 bits
92119         wide, that integer arithmetic is 2's complement without overflow,
92120         that there are no holes in integer values, that adding sizes of
92121         two nonoverlapping objects can't overflow, and that all-bits-zero
92122         yields scalar zero.  Fix spelling and capitalization typos.
92123
92124 2003-09-19  Karl Berry  <karl@gnu.org>
92125
92126         * lib/argp.h: update from libc.
92127
92128 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92129
92130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92131         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92132         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92133
92134 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92135
92136         * gnulib-tool: Use "test -h", not "test -L", for portability
92137         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92138         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92139         (sed_extract_prog): Issue s commands one-by-one, rather than
92140         using \| in one s command.
92141
92142 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92143
92144         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92145         input error, instead of returning NULL the next time we are called
92146         (and therefore losing track of errno).
92147
92148 2003-09-16  Bruno Haible  <bruno@clisp.org>
92149
92150         * gnulib-tool (func_create_testdir): Warn about duplicated
92151         dependencies.
92152
92153 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92154
92155         * modules/argmatch, modules/fatal, modules/obstack,
92156         modules/xalloc, modules/xgethostname: Sort dependencies by
92157         importance, not alphabetically.
92158
92159 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92160
92161         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92162         fails, so that the caller gets the proper errno.
92163
92164         * lib/readutmp.c (read_utmp): Likewise.
92165         Check for fstat error.  Close stream and free storage
92166         when failing.
92167
92168 2003-09-14  Karl Berry  <karl@gnu.org>
92169
92170         * config/srclist.txt (strdup.c): disable for c89 changes.
92171
92172 2003-09-14  Jim Meyering  <jim@meyering.net>
92173
92174         * lib/getloadavg.c: Correct cpp indentation.
92175         * lib/strdup.c: Likewise.
92176         * lib/vasnprintf.c: Likewise.
92177
92178 2003-09-14  Bruno Haible  <bruno@clisp.org>
92179
92180         * modules/fwriteerror: New file.
92181         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92182
92183 2003-09-14  Bruno Haible  <bruno@clisp.org>
92184
92185         * lib/fwriteerror.h: New file.
92186         * lib/fwriteerror.c: New file.
92187
92188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92189
92190         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92191         modules/xgethostname, modules/xalloc: Depend on exit.
92192
92193 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92194
92195         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92196
92197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92198         and AC_MINIX, too, so that their extensions are available.
92199
92200         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92201         This macro has been superseded by gl_BACKUPFILE.
92202
92203         More patches to assume C89 or better.
92204
92205         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92206
92207         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92208         unconditionally.
92209         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92210         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92211         Include <string.h>, <stdlib.h> unconditionally.
92212         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92213         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92214         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92215         headers or for string.h.
92216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92217         or strtoul.
92218
92219         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92220         headers.
92221         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92222         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92223         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92224         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92227         memcpy, memset.
92228         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92229         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92230         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92231         strtol.
92232         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92233         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92235         strtoul.
92236
92237 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92238
92239         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92240         * lib/obstack.c [!defined _LIBC]: Likewise.
92241         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92242         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92243         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92244
92245         More changes to assume C89 or better.
92246
92247         * lib/error.c (error_tail): Assume vprintf.
92248
92249         * lib/argmatch.c (getenv): Remove decl.
92250         * lib/progreloc.c (get_full_program_name): Define via prototype.
92251         * lib/setenv.c (clearenv): Likewise.
92252         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92253         needed.
92254         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92255         (malloc, memcpy): Remove decls.
92256         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92257         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92258         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92259         (memcpy): Remove macro.
92260         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92261         (__P): Remove.  All uses removed.
92262         (PTR): Remove.  All uses changed to void *.
92263         (CHAR_BIT, NULL): Remove.
92264         (spaces, zeros, memset_space, memset_zero)
92265         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92266         Remove.
92267         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92268         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92269         Define with prototype.
92270         Remove now-unnecessary prototype decl.
92271         (extra_args_spec): Assume ANSI C.  All uses changed.
92272         (extra_args_spec_iso): Remove.
92273         (my_strftime, emacs_strftimeu): Define via prototype.
92274         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92275         unconditionally.
92276         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92277         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92278         (strtoul, strtol): Remove decls.
92279         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92280         LONG_MAX): Remove.
92281         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92282         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92283         (LOCALE_PARAM_PROTO): New macro.
92284         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92285         (INTERNAL (strtol), strtol): Define with a prototype.
92286         (PARAMS): Remove.  All uses removed.
92287         * lib/tempname.c: Include <string.h> unconditionally.
92288         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92289         * lib/xgethostname.c (main): Define with a prototype.
92290         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92291         Include <stdlib.h> unconditionally.
92292         (calloc, malloc, realloc, free): Remove decls.
92293         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92294         Include <stdlib.h> unconditionally.  Sort include file names.
92295         (strtod): Remove.
92296         (xstrtod): Define with a prototype.
92297         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92298         (strtol, strtoul): Remove decls.
92299
92300 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92301
92302         More patches to assume C89 or better.
92303         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92304         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92305         string.h, memchr, STDC_HEADERS.
92306
92307 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92308
92309         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92310         Include <stdlib.h>, <string.h> unconditionally.
92311         Remove now-unnecessary cast to char *.
92312         * lib/strnlen.c: Include <string.h> unconditionally.
92313         * lib/yesno.c (yesno): Define with a prototype.
92314
92315 2003-09-11  Bruno Haible  <bruno@clisp.org>
92316
92317         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92318
92319 2003-09-10  Jim Meyering  <jim@meyering.net>
92320
92321         * lib/error.c: Correct indentation of cpp directives.
92322
92323 2003-09-10  Bruno Haible  <bruno@clisp.org>
92324
92325         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92326         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92327         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92328         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92329         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92330         <stdlib.h> and <string.h> checks.
92331         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92332         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92333
92334 2003-09-10  Bruno Haible  <bruno@clisp.org>
92335
92336         * lib/strcspn.c: Include <string.h> unconditionally.
92337         * lib/strpbrk.c: Include <string.h> unconditionally.
92338         * lib/strstr.c: Include <string.h> unconditionally.
92339         * lib/unicodeio.c: Include <string.h> unconditionally.
92340         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92341         * lib/unsetenv.c: Likewise.
92342         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92343         * lib/yesno.c: Include <stdlib.h> unconditionally.
92344         (rpmatch): Add prototype.
92345
92346 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92347
92348         More patches to assume C89 or better.
92349         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92350         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92351         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92352         or for string.h.
92353         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92354         stdlib.h.
92355         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92356         C headers.
92357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92358         string.h.
92359         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92360         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92361         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92362         or for string.h.
92363         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92364         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92365         C headers.
92366         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92367         memcpy.
92368         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92369         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92370         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92371         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92372         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92373         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92374         string.h, free.
92375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92376         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92377         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92378         C headers, or for string.h.
92379         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92380         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92381         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92382         headers, memory.h, stdlib.h, string.h, strings.h.
92383         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92384         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92385         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92386         strchr.
92387         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92388         headers, memory.h, string.h.
92389         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92390         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92391         free.
92392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92393         headers.
92394         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92395         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92396         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92397         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92398         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92399
92400 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92401
92402         More K&R removal.
92403
92404         * lib/acosl.c (main): Use a prototype.
92405         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92406         tanl.c: Likewise.
92407
92408         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92409
92410         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92411         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92412         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92413         with a prototype.
92414         * lib/getopt.c (const): Remove macro.
92415         Include <string.h> unconditionally.
92416         (my_index): Remove; all uses changed to strchr.
92417         (strlen): Remove decl.
92418         (exchange): Remove forward decl; no longer needed.
92419         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92420         Define with prototype.
92421         * lib/getopt1.c (const): Remove macro.
92422         (getopt_long, getopt_long_only, main): Define with prototype.
92423
92424         * lib/getugroups.c: Include <string.h> unconditionally.
92425
92426         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92427         (getusershell, setusershell, endusershell, readname, main):
92428         Define with prototypes.
92429
92430         * lib/group-member.c: Include group-member.h first.
92431         Include <stdlib.h> unconditionally.
92432
92433         * lib/hard-locale.c: Include hard-locale.h first.
92434         Include <stdlib.h>, <string.h> unconditionally.
92435
92436         * lib/hash.c (free, malloc): Remove decls.
92437         Include <stdlib.h> unconditionally.
92438
92439         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92440         (getenv): Do not declare.
92441
92442         * lib/idcache.c: Include <string.h> unconditionally.
92443
92444         * lib/long-options.c: Include long-options.h first, to test interface.
92445         Include <stdlib.h> unconditionally.
92446
92447         * lib/makepath.c: Include makepath.h first, to test interface.
92448         Include <stdlib.h> and <string.h> unconditionally.
92449
92450         * lib/linebuffer.c: Include <stdlib.h>.
92451         (free): Remove decl.
92452
92453         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92454         stddef.h. rpl_malloc returns void *, not char *.
92455         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92456         prototype.
92457
92458         * lib/md5.h: Include <limits.h> unconditionally.
92459         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92460         (__P): Remove; all uses removed.
92461         * lib/md5.c: Include "md5.h" first.
92462         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92463         md5_buffer, md5_process_bytes, md5_process_block):
92464         Define with prototypes.
92465         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92466         * lib/sha.c: Include "sha.h" first.
92467         Include <stdlib.h>, <string.h> unconditionally.
92468
92469         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92470         * lib/memcmp.c (__ptr_t): Likewise.
92471         * lib/memrchr.c (__ptr_t): Likewise.
92472         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92473         Include <string.h> unconditionally.
92474         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92475         * lib/memchr.c: Include <stdlib.h> unconditionally.
92476         * lib/memchr.c (LONG_MAX): Remove.
92477         * lib/memrchr.c (LONG_MAX): Likewise.
92478         * lib/memchr.c (__memchr): Define via a prototype.
92479         * lib/memrchr.c (__memrchr): Likewise.
92480         * lib/memcmp.c (__P): Remove, and remove all uses.
92481         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92482         Remove forward decls; no longer needed.
92483         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92484         Use types required by C89 in prototype.
92485
92486         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92487         * lib/savedir.c: Likewise.
92488         * lib/mkdir.c (free): Remove decl.
92489         * lib/rmdir.c (rmdir): Define with a prototype.
92490         * lib/savedir.c: Include savedir.h first, to test interface.
92491
92492         * lib/mktime.c (STDC_HEADERS): Remove.
92493         Include <stdlib.h>, <string.h> unconditionally.
92494
92495         * lib/modechange.c: Include <stdlib.h> unconditionally.
92496         (malloc): Remove decl.
92497
92498         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92499         (free): Remove decl.
92500
92501         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92502         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92503         (This type really should be intptr_t, but that's a C99ism.)
92504         (_obstack_memcpy): Remove: all uses changed to memcpy.
92505         Include <string.h> unconditionally.
92506         (struct obstack): Assume __STDC__ for types of members
92507         chunkfun, freefun, extra_arg.
92508         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92509         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92510         obstack_begin, obstack_specify_allocation,
92511         obstack_specify_allocation_with_arg, obstack_chunkfun,
92512         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92513         Remove unprototyped decls and the macros that use them.
92514         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92515         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92516         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92517         (defined __STDC__ && __STDC__)]:
92518         Remove nonprototyped code.
92519         Include <stdlib.h> unconditionally.
92520         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92521         _obstack_allocated_p, _obstack_free, obstack_free,
92522         _obstack_memory_used, print_and_abort):
92523         Define using prototypes.
92524         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92525         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92526         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92527         obstack_next_free, obstack_object_size, obstack_room) [0]:
92528         Remove unused, unprototyped code.
92529
92530         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92531
92532         * lib/physmem.c (physmem_total, physmem_available, main): Define
92533         with prototypes.
92534
92535         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92536         (main): Define with a prototype.
92537
92538         * lib/posixver.c (getenv): Remove decl.
92539
92540         * lib/putenv.c (malloc): Returns void *, not char *.
92541         Include <string.h> unconditionally.
92542         (strchr, memcpy, NULL): Do not define.
92543
92544         * lib/readtokens.c: Include readtokens.h first, to test interface.
92545         Include <stdlib.h>, <string.h> unconditionally.
92546         (init_tokenbuffer): Define with a prototype.
92547
92548         * lib/regex.c (PARAMS): Remove.  All uses removed.
92549         All uses of _RE_ARGS removed, too.
92550         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92551         unconditionally.
92552         (bzero): Assume memset exists.
92553         (memcmp, memcpy, NULL): Remove.
92554         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92555         char, or assignments to local vars of type signed char.
92556         (init_syntax_once, PREFIX(extract_number_and_incr),
92557         PREFIX(print_partial_compiled_pattern),
92558         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92559         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92560         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92561         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92562         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92563         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92564         wcs_compile_range, byte_compile_range, truncate_wchar,
92565         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92566         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92567         count_mbs_length, wcs_re_match_2_internal,
92568         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92569         PREFIX(alt_match_null_string_p),
92570         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92571         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92572         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92573         now-unnecessary declaration, if any.
92574         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92575         regcomp, regexec):
92576         Remove now-unnecessary casts among pointer types.
92577         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92578
92579         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92580         (free): Remove decl.
92581
92582         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92583
92584         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92585         (free): Remove decl.
92586
92587         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92588         * lib/xgetcwd.c: Likewise.
92589
92590         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92591         (free): Remove decl.
92592
92593         * lib/strchrnul.c (strchrnul): Define with a prototype.
92594         Fix bug: c_in was not converted to char before searching.
92595
92596         The following changes are not K&R related:
92597
92598         * lib/group-member.h: Include <sys/types.h>, so that this file is
92599         self-contained.
92600         * lib/makepath.h: Likewise.
92601
92602         * lib/getusershell.c (readname, default_index, line_size, readname):
92603         Use size_t, not int, for sizes.
92604         (readname): If the size overflows, report an error instead of
92605         looping forever.
92606
92607 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92608
92609         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92610         libc.
92611
92612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92613
92614         * README: New section: portability guidelines.
92615
92616 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92617
92618         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92619         C89 spec.
92620
92621 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92622
92623         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92624
92625 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92626
92627         Assume C89 or better; remove K&R cruft.
92628         A few of these changes were first proposed by Derek Robert Price
92629         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92630
92631         * lib/addext.c: Include <string.h> unconditionally.
92632         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92633         Don't declare getenv or malloc.
92634
92635         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92636         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92637         (NULL): Remove.
92638         (find_stack_direction, alloca): Use prototypes.
92639
92640         * lib/atexit.c (atexit): Define using a prototype.
92641
92642         * lib/basename.c, dirname.c, stripslash.c:
92643         Include <string.h> unconditionally.
92644
92645         * lib/bcopy.c: Include <stddef.h>.
92646         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92647
92648         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92649
92650         * lib/error.h (error, error_at_line, error_print_progname)
92651         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92652         * lib/error.c: Include error.h first, to check interface.
92653         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92654         (VA_START): Remove; all uses changeed to va_start.
92655         (exit, strerror): Remove decls.
92656         (error_print_progname): Prototype uncondionally.
92657         Don't include <errno.h>; no longer needed.
92658         (private_strerror): Remove.
92659         (error_tail): Always define.
92660         (error, error_at_line): Assume C89 or better; always use prototypes.
92661         * lib/fatal.c: Include "fatal.h" first, to test interface.
92662         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92663         (VA_START): Remove; all uses changed to va_start.
92664         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92665         this case.
92666         (exit): Remove decl.
92667         (fatal): Prototype unconditionally.  Assume va_start works.
92668         Abort at end, to pacify gcc.
92669
92670         * lib/euidaccess.c (main): Define with a prototype.
92671
92672         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92673
92674         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92675
92676         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92677         prototypes.
92678         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92679         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92680         (getenv): Remove decl.
92681         (fnmatch): Define using a prototype.
92682         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92683         (FCT): Define using a prototype.
92684
92685         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92686
92687         * lib/gethostname.c: Include <stddef.h>.
92688         (gethostname): Define with prototype.  Length is size_t, not int.
92689
92690 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92691
92692         Assume C89 or better; remove K&R cruft.
92693         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92694         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92695         string.h, getenv, malloc.
92696         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92697         headers.
92698         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92699         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92700         do not check for strerror.
92701         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92702         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92703         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92704         do not check for doprnt or vprintf.
92705         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92706         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92707
92708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92711         getversion.c should have been removed then, but was accidentally
92712         preserved.
92713
92714         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92715         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92716
92717 2003-09-08  Karl Berry  <karl@gnu.org>
92718
92719         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92720                 config, forget about prep.
92721
92722         * config/depcomp, missing: update from automake.
92723
92724 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92725
92726         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92728
92729 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92730
92731         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92732         copy_tm_result.  Bug reported by Simon Josefsson in
92733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92734
92735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92736
92737         * m4/time_r.m4: New file.
92738         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92740         is. Check for timegm declaration.
92741         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92742         Do not check for gmtime_r.
92743         Replace mktime if __mktime_internal does not exist and if mktime
92744         hasn't been replaced already.
92745
92746 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92747
92748         * lib/time_r.c, lib/time_r.h: New files.
92749
92750         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92751         __localtime_r.
92752         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92753         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92754
92755         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92756         __gmtime_r.
92757         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92758         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92759         Include <time_r.h>.
92760
92761         * lib/timegm.c: Switch to glibc implementation, with the following
92762         changes:
92763         [defined HAVE_CONFIG_H]: Include <config.h>.
92764         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92765         (__mktime_internal) [!defined _LIBC]: New decl.
92766         (__gmtime_r) [!defined _LIBC]: New macro and function.
92767         (timegm): Use a prototype, since gnulib assumes C89.
92768         Do not bother declaring tmp to be const, as it's not really usefu.
92769         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92770         (timegm): Declare only if HAVE_DECL_TIMEGM.
92771
92772 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92773
92774         * MODULES.html.sh (func_all_modules): Add time_r.
92775         * modules/time_r: New file.
92776         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92777         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92778
92779 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92780
92781         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92782         Bug reported by Lute Kamstra in
92783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92784
92785         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92786         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92787         course with correspondingly smaller numbers for tomorrow and
92788         yesterday.  From Tadayoshi Funaba.  Originally installed into
92789         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92790         coreutils merge?).
92791
92792 2003-08-31  Simon Josefsson  <jas@extundo.com>
92793
92794         * modules/timegm: New file.
92795         * MODULES.html.sh (func_all_modules): Add timegm.
92796
92797 2003-08-31  Simon Josefsson  <jas@extundo.com>
92798
92799         * m4/timegm.m4: New file.
92800
92801 2003-08-31  Simon Josefsson  <jas@extundo.com>
92802
92803         * lib/timegm.h: New file.
92804         * lib/timegm.c: New file.  Based on
92805         wget-1.8.2/src/http.c:mktime_from_utc.
92806
92807 2003-08-31  Karl Berry  <karl@gnu.org>
92808
92809         * lib/argp.h: update from libc.
92810
92811 2003-08-28  Bruno Haible  <bruno@clisp.org>
92812
92813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92814         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92815         followed by '#define fnmatch fnmatch_posix' gives an error.
92816
92817 2003-08-28  Bruno Haible  <bruno@clisp.org>
92818
92819         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92820         warning on QNX, which defines O_BINARY to 000000.
92821
92822 2003-08-27  Jim Meyering  <jim@meyering.net>
92823
92824         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92825         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92826         would fail after 32.  Reported by Danny Levinson.  Details here:
92827         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92828
92829 2003-08-24  Bruno Haible  <bruno@clisp.org>
92830
92831         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92832         MSVC7 <stdio.h> is included later.
92833
92834 2003-08-22  Simon Josefsson  <jas@extundo.com>
92835
92836         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92837
92838 2003-08-20  Karl Berry  <karl@gnu.org>
92839
92840         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92841
92842 2003-08-20  Bruno Haible  <bruno@clisp.org>
92843
92844         * modules/progname: New file.
92845         * MODULES.html.sh (func_all_modules): Add progname.
92846
92847 2003-08-20  Bruno Haible  <bruno@clisp.org>
92848
92849         * lib/progname.h: New file, from GNU gettext.
92850         * lib/progname.c: New file, from GNU gettext.
92851         * lib/progreloc.c: New file, from GNU gettext.
92852
92853 2003-08-19  Jim Meyering  <jim@meyering.net>
92854
92855         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92856         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92857
92858 2003-08-19  Bruno Haible  <bruno@clisp.org>
92859
92860         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92861         more.
92862
92863 2003-08-19  Bruno Haible  <bruno@clisp.org>
92864
92865         * lib/xstrdup.c: Assume <string.h> exists.
92866
92867 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92868
92869         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92870         in makefile rules.
92871
92872 2003-08-18  Jim Meyering  <jim@meyering.net>
92873
92874         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92875         * m4/lib-ld.m4: Likewise.
92876
92877 2003-08-18  Jim Meyering  <jim@meyering.net>
92878
92879         * lib/setenv.h: Indent nested cpp directive.
92880         * lib/vasnprintf.c: Remove trailing blanks.
92881
92882 2003-08-17  Simon Josefsson  <jas@extundo.com>
92883
92884         * modules/xstrndup: New file.
92885         * MODULES.html.sh (func_all_modules): Add xstrndup.
92886
92887 2003-08-17  Simon Josefsson  <jas@extundo.com>
92888
92889         * modules/argp: Fix autoconf macro name. Add more dependencies.
92890
92891 2003-08-17  Simon Josefsson  <jas@extundo.com>
92892
92893         * m4/xstrndup.m4: New file.
92894
92895 2003-08-17  Simon Josefsson  <jas@extundo.com>
92896
92897         * m4/argp.m4: New file.
92898
92899 2003-08-17  Simon Josefsson  <jas@extundo.com>
92900             Bruno Haible  <bruno@clisp.org>
92901
92902         * lib/xstrndup.h: New file.
92903         * lib/xstrndup.c: New file.
92904
92905 2003-08-17  Bruno Haible  <bruno@clisp.org>
92906
92907         * modules/strndup (Files, Include): Add lib/strndup.h.
92908
92909 2003-08-17  Bruno Haible  <bruno@clisp.org>
92910
92911         * modules/euidaccess (Files): Add lib/euidaccess.h.
92912
92913 2003-08-17  Bruno Haible  <bruno@clisp.org>
92914
92915         * lib/strndup.h: New file.
92916
92917 2003-08-17  Bruno Haible  <bruno@clisp.org>
92918
92919         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92920         like AC_GNU_SOURCE.
92921         * modules/extensions (configure.ac): Comment out the invocation of
92922         gl_USE_SYSTEM_EXTENSIONS.
92923
92924 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92925
92926         Merges from coreutils, etc.
92927         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92928         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92929         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92930         fixing a typo.
92931         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92932         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92933
92934 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92935
92936         Document merge from coreutils.
92937         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92938         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92939         * modules/utime: Add m4/utimes-null.m4.
92940
92941 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92942
92943         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92944         space, undoing this 2003-08-12 change:
92945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92946
92947 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92948
92949         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92950         strtoul.c from libc, undoing this 2003-08-12 change:
92951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92952
92953 2003-08-16  Jim Meyering  <jim@meyering.net>
92954
92955         Merges from coreutils.
92956         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92957         prefix.  Adjust cache variables similarly.  Create 500 rather than
92958         just 300 files, to exercise bug on Darwin6.5, too.
92959         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92960         $missing_dir.
92961         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92962         AM_SYS_POSIX_TERMIOS.
92963         Reported by mkc@mathdogs.com.
92964         Also change use of $am_cv_sys_posix_termios
92965         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92966         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92967         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92968         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92969         in /proc/mounts until it finds one with matching device number.  This
92970         is unnecessary when the FILE argument *is* a mount point.  No stat call
92971         is necessary in that case.  So, disable the statvfs-testing code on
92972         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92973         as RedHat bug# 84846.
92974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92975         to 1MB, so as not to render systems with no stack size limit (e.g.,
92976         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92977         Include <unistd.h>.  On some systems,
92978         it is required for the definition of _SC_PAGESIZE.
92979
92980 2003-08-16  Jim Meyering  <jim@meyering.net>
92981
92982         Merge from coreutils.
92983         * lib/xstrtoimax.c: #else #if -> #elif.
92984         * lib/xstrtoumax.c: Likewise.
92985
92986 2003-08-16  Jim Meyering  <jim@meyering.net>
92987
92988         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92989         * m4/utimes.m4: Removed.
92990         * m4/utimes-null.m4: Renamed from utimes.m4.
92991
92992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92993         to 1MB, so as not to render systems with no stack size limit (e.g.,
92994         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92995         Include <unistd.h>.  On some systems,
92996         it is required for the definition of _SC_PAGESIZE.
92997
92998 2003-08-16  Jim Meyering  <jim@meyering.net>
92999         and Paul Eggert  <eggert@cs.ucla.edu>
93000
93001         Merges from coreutils, etc.
93002
93003         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93004         using the latest version from cvs.  This avoids problems with #line
93005         directives using a vendor (Sun) compiler.
93006         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93007         Don't set GETGROUPS_LIB here; now it's
93008         done via getgroups.m4's wrapper function.
93009         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93010         rather than just in sh-util/configure.in, so that the
93011         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93012         same.
93013         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93014         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93015         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93016         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93017         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93018         Remove code that is now done by the newly-required macros.
93019         Append $(EXEEXT) to DF_PROG.
93020         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93021         Do not invoke or require the following here,
93022         since prereq.m4 or some gnulib .m4 now does this for us:
93023         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93024         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93025         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93026         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93027         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93028         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93029         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93030         AC_FUNC_OBSTACK.
93031         Do not replace the following functions, as this is now the job
93032         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93033         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93034         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93035         atexit getpass, strdup, getpagesize.
93036         Replace 'raise'.
93037         Do not check for the following functions, as this is now the job
93038         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93039         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93040         setregid.
93041         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93042         Check for sys/sysctl.h.
93043         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93045         of checking for ssize_t ourselves.
93046
93047         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93048         Require every macro that gnulib/modules/* suggests for us.
93049         (jm_PREREQ_ADDEXT): New macro.
93050         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93051         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93052
93053         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93054         (gl_PHYSMEM): Use it.
93055         Also check for `table' function.
93056         Check for new headers and functions.
93057         Add check for sys/sysmp.h.
93058         With suggestions from Kaveh Ghazi.
93059         Ignore headers that are present but cannot be compiled.  This
93060         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93061         C 5.4.
93062
93063 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93064
93065         Document merge from coreutils.
93066         * modules/userspec: Depend on posixver.
93067         * modules/strftime: Depend on tzset.
93068
93069 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93070
93071         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93072         rather than tab, after '#' in shell-script copyright notices.
93073         Suggested by Bruno Haible.
93074
93075 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93076
93077         * config/srclist-update: Use three spaces, rather than tab, after '#'
93078         in shell-script copyright notices.  Suggested by Bruno Haible.
93079         Remove unnecessary parenthesization in regular expression.
93080
93081 2003-08-15  Jim Meyering  <jim@meyering.net>
93082
93083         Merge from coreutils.
93084         * lib/xgethostname.c: Include <stdlib.h>.
93085         (xghostname): Don't exit for anything other than memory-related
93086         failure; just return NULL.
93087         * lib/userspec.c: Include "posixver.h".
93088         (parse_user_spec): Accept `.' as a separator only
93089         in pre-POSIX-200112 mode.
93090         * lib/strtoimax.c: Use #elif rather than #else #if.
93091         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93092         Remove function, now that we can rely on a working tzset function.
93093         [!_LIBC]: Ensure that the required autoconf test has been run.
93094         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93095         Use underlying_strftime for %r.
93096         * lib/sha.c: Merge in some clean-up and optimization changes from
93097         glibc.
93098         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93099         Ensure that it is a multiple of 64.
93100         Rearrange loop exit tests so as to avoid performing an
93101         additional fread after encountering an error or EOF.
93102         * lib/realloc.c: Update copyright date.
93103
93104 2003-08-15  Jim Meyering  <jim@meyering.net>
93105         and Paul Eggert  <eggert@twinsun.com>
93106
93107         Merge from coreutils.
93108         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93109         member but strut utmpx does not.  Needed for AIX 4.3.3.
93110         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93111
93112 2003-08-15  Jim Meyering  <jim@meyering.net>
93113         and Paul Eggert  <eggert@cs.ucla.edu>
93114
93115         Merges from coreutils, etc.
93116         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93117         Require gl_FUNC_TZSET_CLOBBER.
93118         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93119         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93120         members.
93121
93122 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93123
93124         Help the merge from coreutils.
93125         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93126         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93127         * m4/tzset.m4: Use it too.
93128
93129 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93130
93131         * modules/tzset: New file.
93132
93133 2003-08-14  Jim Meyering  <jim@meyering.net>
93134
93135         Merges from coreutils.
93136         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93137         variable names, rather than @FNMATCH_H@.
93138         * modules/alloca: Likewise for $(ALLOCA_H).
93139
93140         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93141         the three copies of the literal target, `fnmatch.h'.
93142         * modules/alloca (alloca.h): Likewise.
93143
93144 2003-08-14  Jim Meyering  <jim@meyering.net>
93145
93146         Merge from coreutils.
93147         * m4/tzset.m4: New file.
93148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93149         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93150         otherwise, AIX 5.1 systems would end up using the latter.
93151         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93152         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93153         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93154         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93155
93156 2003-08-14  Jim Meyering  <jim@meyering.net>
93157
93158         Merge from coreutils.
93159         * lib/obstack.h: Whitespace changes.
93160         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93161         and xcalloc return values.
93162         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93163         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93164         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93165         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93166         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93167         error from mntctl.
93168         Use mntctl's return value to drive the entry-processing loop, since
93169         we can't rely on the value of the vmt_length member in the last
93170         entry.  On some systems doing so could result in exhausting
93171         virtual memory.  Based in part on a patch from Mike Jetzer.
93172
93173 2003-08-14  Jim Meyering  <jim@meyering.net>
93174         and Paul Eggert  <eggert@twinsun.com>
93175
93176         Merges from coreutils, plus other fixes.
93177         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93178         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93179         for credits and details.  Thanks to Kaveh Ghazi for helping
93180         to keep these files in sync.
93181         (ARRAY_SIZE): Define it.
93182         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93183         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93184         (memcasecmp): Don't assume size_t fits in unsigned int.
93185         Remove casts and duplicate code.
93186         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93187         (memcpy): Remove definition.
93188         Merge in some clean-up and optimization changes from glibc.
93189         [BLOCKSIZE]: Move definition to top of file.
93190         Ensure that it is a multiple of 64.
93191         Rearrange loop exit tests so as to avoid performing an
93192         additional fread after encountering an error or EOF.
93193         * lib/md5.h (md5_uintptr): Define.
93194         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93195         return to the initial working directory.  Preserve errno
93196         for caller.
93197         * lib/idcache.c: Include "xalloc.h".
93198         (xmalloc, xrealloc): Remove decls.
93199         (getuser): Remove casts no longer required in C89.
93200         * lib/human.c: Include stdio.h, for sprintf.
93201         * lib/group-member.c: Include "xalloc.h".
93202         (xmalloc, xrealloc): Remove decls.
93203         (get_group_info): Remove casts no longer required in C89.
93204         * lib/getusershell.c (readname): Remove casts no longer required in
93205         C89.
93206         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93207         * lib/getline.c: Whitespace fix, from coreutils.
93208
93209 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93210
93211         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93212         Check for isascii.
93213
93214         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93215         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93216         Undo previous (whitespace-only) change.
93217
93218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93219
93220         * lib/exclude.c: Include <ctype.h>
93221         (IN_CTYPE_DOMAIN): New macro.
93222         (is_space): New fn.
93223         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93224         and empty lines.
93225
93226         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93227         Undo previous (whitespace-only) change.
93228
93229 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93230
93231         * config/srclist-update: Change update back to the old behavior,
93232         leaving whitespace alone.  Use one 'sed' command rather than a
93233         pipeline.
93234         (fixlicense): Now a variable, not a function.
93235         (remove_trailing_blanks): Remove.
93236         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93237         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93238         Undo previous (whitespace-only) change.
93239
93240 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93241
93242         Merge from coreutils.
93243         * modules/euidaccess: Add lib_SOURCES, include for new
93244         file euidaccess.h
93245
93246 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93247
93248         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93249         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93250         Normalize leading white space and remove trailing white space.
93251
93252         Merge from coreutils
93253         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93254
93255         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93256         0.12.1.  These files are now being upgraded automatically by
93257         ../config/srclist-update.
93258
93259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93260
93261         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93262         Normalize leading white space and remove trailing white space.
93263         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93264         notice, as per ../config/srclist-update.
93265
93266         Merge from coreutils.
93267         * lib/euidaccess.h: New file.
93268         * lib/euidaccess.c: Include it.
93269         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93270         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93271         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93272
93273 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93274
93275         * config/srclist-update: Add copyright notice.
93276         (remove_id_lines, remove_trailing_blanks): New constants.
93277         (fixfile): Use them to normalize spacing a bit in copied files.
93278         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93279         Normalize leading white space and remove trailing white space.
93280
93281         * config/texinfo.tex: Sync with texinfo.
93282
93283         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93284         strtoul.c from libc, to merge coreutils whitespace changes.
93285
93286         * config/srclist.txt: Get the following m4 files from gettext:
93287         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93288         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93289         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93290         wint_t.m4.
93291
93292 2003-08-12  Karl Berry  <karl@gnu.org>
93293
93294         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93295         been made.
93296
93297 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93298
93299         * modules/gnu-source, m4/gnu-source.m4:
93300         Remove; we're assuming Autoconf 2.54 or later now.
93301         Suggested by Bruno Haible.
93302         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93303
93304 2003-08-11  Bruno Haible  <bruno@clisp.org>
93305
93306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93307
93308 2003-08-11  Bruno Haible  <bruno@clisp.org>
93309
93310         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93311         (vasnprintf): Use it instead of wcslen.
93312
93313 2003-08-11  Bruno Haible  <bruno@clisp.org>
93314
93315         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93316         value to ensure that _Bool promotes to int. Use #define for _Bool when
93317         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93318
93319 2003-08-10  Karl Berry  <karl@gnu.org>
93320
93321         * lib/regex.h: update from libc (whitespace fix).
93322
93323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93324
93325         Merge some files from coreutils.  These changes were
93326         originally made by Jim Meyering.
93327         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93328         many older Unixes require this.
93329         * lib/alloca.c (alloca): Remove cast to argument of free;
93330         no longer needed in C89.
93331         * lib/alloca_.h, regex.h: Fix white space to match
93332         what GNU indent does.
93333
93334 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93335
93336         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93337         apparently Emacs's Unicode mode got confused before my 2003-08-05
93338         checkin.
93339
93340 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93341
93342         * m4/extensions.m4: New file.
93343         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93344         Require gl_USE_SYSTEM_EXTENSIONS.
93345         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93346         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93347
93348 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93349
93350         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93351         * modules/extensions, modules/gnu-source: New files.
93352         * modules/timespec, modules/unlocked-io: Depend on extensions.
93353
93354 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93355
93356         * modules/restrict: New file.
93357         * MODULES.html.sh (func_all_modules): Add restrict.
93358         * modules/regex: Depend on restrict.
93359
93360 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93361
93362         * m4/restrict.m4: New file.
93363         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93364
93365 2003-08-07  Bruno Haible  <bruno@clisp.org>
93366
93367         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93368         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93369
93370 2003-08-07  Bruno Haible  <bruno@clisp.org>
93371
93372         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93373         makes the module 'getndelim2' compatible with the module 'getline'.
93374
93375 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93376
93377         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93378         byte with "\201" to avoid glitches when editing that source file
93379         with multi-gnome-terminal.
93380
93381 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93382
93383         * lib/bumpalloc.h: Remove.
93384
93385 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93386
93387         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93388         * modules/bumpalloc: Remove.
93389
93390 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93391
93392         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93393         GNU coding style.
93394
93395         Merge from coreutils.
93396         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93397         1. From glibc.
93398         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93399         from Karl Berry, implemented by Jim Meyering.
93400         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93401         from Dmitry V. Levin.
93402         Remove anachronistic cast of xrealloc.
93403         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93404         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93405         type. Otherwise, it wouldn't compile with at least /bin/cc on
93406         ymp-cray-unicos9.0.2.X.
93407         Combine two mostly-identical uses of alloca into one.
93408         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93409
93410 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93411
93412         [From Emacs.]
93413
93414         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93415         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93416         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93417         obsolete NLIST_NAME_UNION.
93418         [__GNU__]: Undef BSD and FSCALE.
93419         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93420
93421 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93422
93423         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93424         an enum type, so that it's guaranteed to promote to int.  See:
93425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93426
93427 2003-08-03  Karl Berry  <karl@gnu.org>
93428
93429         * config/depcomp: update from automake.
93430
93431 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93434         (strerror): Don't assume that a printable int fits in 14 bytes.
93435
93436 2003-07-31  Bruno Haible  <bruno@clisp.org>
93437
93438         * modules/getpass-gnu: New file.
93439         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93440
93441 2003-07-31  Bruno Haible  <bruno@clisp.org>
93442
93443         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93444
93445 2003-07-24  Karl Berry  <karl@gnu.org>
93446
93447         * config/missing: update from automake.
93448
93449 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93450             Bruno Haible  <bruno@clisp.org>
93451
93452         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93453         * lib/getline.c (getline, getdelim): Likewise.
93454         Remove _GNU_SOURCE define; now it's defined in config.h through
93455         m4/getline.m4.
93456
93457 2003-07-23  Karl Berry  <karl@gnu.org>
93458
93459         * config/config.sub: update from prep.
93460
93461 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93462
93463         * modules/xalloc (Depends-on): Add exitfail.
93464         * modules/xmemcoll: Likewise.
93465
93466 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93467
93468         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93469         over-parenthesization in macros.
93470
93471         Sync with coreutils.
93472
93473         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93474         required by C99.
93475
93476         Use `exit_failure' for xalloc and xmemcoll instead of their own
93477         private exit-failure variables.
93478         * lib/xalloc.h (xalloc_exit_failure): Remove.
93479         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93480         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93481         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93482         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93483         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93484
93485 2003-07-20  Jim Meyering  <jim@meyering.net>
93486
93487         * modules/closeout (Depends-on): Add exitfail.
93488         Suggestion from Bruno Haible.
93489
93490 2003-07-19  Karl Berry  <karl@gnu.org>
93491
93492         * config/config.sub: update from prep.
93493
93494 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93495
93496         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93497         Remove.
93498         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93499         to test that it can stand by itself.  Include "exitfail.h".
93500         Clients should set exit_failure instead.
93501         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93502
93503 2003-07-18  Bruno Haible  <bruno@clisp.org>
93504
93505         * modules/getndelim2: New file.
93506         * modules/getline: Share files with module getndelim2.
93507         * modules/getnline: Depend on getndelim2 instead of sharing files with
93508         it. Add getnline.c to lib_SOURCES.
93509         * MODULES.html.sh (func_all_modules): Add getndelim2.
93510
93511 2003-07-18  Bruno Haible  <bruno@clisp.org>
93512
93513         * m4/getndelim2.m4: New file.
93514         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93515         invoke gl_PREREQ_GETNDELIM2.
93516         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93517         gl_PREREQ_GETNDELIM2.
93518         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93519         gl_GETNDELIM2.
93520
93521 2003-07-18  Bruno Haible  <bruno@clisp.org>
93522
93523         * lib/getndelim2.h: New file.
93524         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93525         getndelim2.h.
93526         (getndelim2): Make non-static. Change return type to ssize_t.
93527         * lib/getline.h: Change argument names.
93528         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93529         * lib/getnline.c: Include getndelim2.h.
93530
93531 2003-07-18  Andreas Schwab  <schwab@suse.de>
93532
93533         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93534
93535 2003-07-17  Karl Berry  <karl@gnu.org>
93536
93537         * config/config.sub: update from prep.
93538
93539 2003-07-17  Bruno Haible  <bruno@clisp.org>
93540
93541         * modules/getnline: New file.
93542         * modules/getline: Add lib/getndelim2.c to source file list.
93543         * MODULES.html.sh (func_all_modules): Add getnline.
93544
93545 2003-07-17  Bruno Haible  <bruno@clisp.org>
93546
93547         * m4/getnline.m4: New file.
93548
93549 2003-07-17  Bruno Haible  <bruno@clisp.org>
93550
93551         * m4/Makefile.am.in: Remove file.
93552         * m4/Makefile.am: Remove file.
93553         * m4/Makefile.in: Remove file.
93554
93555 2003-07-17  Bruno Haible  <bruno@clisp.org>
93556
93557         * lib/getnline.h: New file.
93558         * lib/getnline.c: New file.
93559         * lib/getndelim2.c: New file, extracted from getline.c.
93560         (getndelim2): Renamed from getdelim2, with added nmax argument.
93561         * lib/getline.c: Include getndelim2.c.
93562         (getdelim2): Moved out to getndelim2.c.
93563         (getline, getdelim): Update.
93564
93565 2003-07-17  Bruno Haible  <bruno@clisp.org>
93566
93567         * lib/Makefile.am: Remove file.
93568         * lib/Makefile.in: Remove file.
93569
93570 2003-07-17  Bruno Haible  <bruno@clisp.org>
93571
93572         * configure.in: Remove file.
93573         * Makefile.in: Remove file.
93574
93575 2003-07-17  Bruno Haible  <bruno@clisp.org>
93576
93577         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93578
93579 2003-07-16  Karl Berry  <karl@gnu.org>
93580
93581         * config/srclist-update: was running fixlicense twice, which caused
93582                 texinfo.tex to be nullified for some reason.  Simplify,
93583                 $gplsrc is no longer needed as far as I can see?
93584
93585 2003-07-16  Jim Meyering  <jim@meyering.net>
93586
93587         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93588
93589 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93590
93591         * config/srclist.txt: Get the following files from gettext-runtime/intl
93592         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93593         ref-del.sin.  From Bruno Haible.
93594         * config/srclist-update (fixfile): Change grep pattern again, since the
93595         previous fix didn't work (there was another trailing $).  Use
93596         '[$]' to escape the $s.
93597
93598 2003-07-15  Karl Berry  <karl@gnu.org>
93599
93600         * lib/vasnprintf.c: update from gettext.
93601
93602 2003-07-15  Karl Berry  <karl@gnu.org>
93603
93604         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93605         gets expanded when surrounded by '$'.
93606
93607 2003-07-15  Jim Meyering  <jim@meyering.net>
93608
93609         * modules/save-cwd: Don't depend on error.  From Derek Price.
93610
93611 2003-07-15  Jim Meyering  <jim@meyering.net>
93612
93613         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93614
93615 2003-07-14  Simon Josefsson  <jas@extundo.com>
93616
93617         * modules/mempcpy: New file.
93618         * MODULES.html.sh (func_all_modules): Add mempcpy.
93619
93620 2003-07-14  Simon Josefsson  <jas@extundo.com>
93621
93622         * m4/mempcpy.m4: New file.
93623
93624 2003-07-14  Simon Josefsson  <jas@extundo.com>
93625
93626         * lib/mempcpy.h: New file.
93627         * lib/mempcpy.c: New file.
93628
93629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93630
93631         * modules/getdate, modules/posixtm: Depend on mktime.
93632
93633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93634
93635         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93636         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93637         unicodeio.c, unicodeio.h, unlocked-io.h:
93638         Switch from LGPL to GPL.
93639
93640 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93641
93642         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93643         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93644         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93645         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93646         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93647         updated automatically by ../config/srclist-update.  This changes
93648         their license from LPGL to GPL.
93649
93650 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93651
93652         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93653         assumed to refer to the root of the most recent stable gettext version.
93654         * config/srclistvars.sh: Add defaults for eggert.
93655         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93656         Match "This program" as well as "The program".  This is needed
93657         for gettext.
93658
93659 2003-07-14  Jim Meyering  <jim@meyering.net>
93660
93661         Don't emit diagnostics.  Let callers do that.
93662         * lib/save-cwd.c: Don't include "error.h".
93663         (save_cwd): Don't call error.  Ensure that errno is valid
93664         when returning nonzero.
93665
93666         * lib/save-cwd.h (restore_cwd): Update prototype.
93667         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93668         Simplify.  Don't call error upon failure.  Let callers do that.
93669         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93670         when auditing is enabled.  But don't bother updating the #if.
93671
93672 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93673
93674         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93675         it breaks C++ compilation.
93676         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93677
93678 2003-07-10  Simon Josefsson  <jas@extundo.com>
93679
93680         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93681
93682 2003-07-10  Jim Meyering  <jim@meyering.net>
93683
93684         * m4/clock_time.m4: Remove trailing blank.
93685         * m4/intmax_t.m4: Likewise.
93686
93687 2003-07-10  Jim Meyering  <jim@meyering.net>
93688
93689         * lib/vasnprintf.c: Remove trailing blanks.
93690         Make cpp indentation consistent.
93691
93692 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93693
93694         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93695         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93696         Switch from LGPL to GPL.
93697
93698 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93699
93700         * config/srclist.txt: Sort sublists.  Add
93701         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93702         that differ from gnulib for one reason or another; we'd like this list
93703         to be smaller but for now let's document what we have.
93704
93705 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93706
93707         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93708         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93709         and sweeter "eval x=$x".
93710         * config/srclist.txt: Get lib/argp* from glibc.
93711
93712 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93713
93714         * lib/mktime.c: Fix some boundary cases and remove need for floating
93715         point.
93716
93717         Issue a compile-time diagnostic if time_t is floating point, or if
93718         two's complement arithmetic is not in effect, or if arithmetic
93719         right shift does not propagate the sign.  These assumptions were
93720         all in the original code but they weren't checked.
93721
93722         (TIME_T_MIDPOINT, verify): New macros.
93723         (__isleap): Remove; it has integer overflow problems.
93724         (leapyear): New function, without those problems.
93725         (ydhms_tm_diff): Remove; splitting into two parts.
93726         (ydhms_diff): New function, containing the arithmetic part of
93727         the old ydhms_tm_diff function.  Issue a compile-time
93728         diagnostic if we are not using C99 integer division.
93729         Avoid casts when possible.
93730         (guess_time_tm): New function, containing the checking part of
93731         the old ydhms_tm_diff function.  Return the new value, rather than
93732         the difference between it and the old.  Accept a new argument T
93733         so that *T specifies the old value.  Check for overflow in the result.
93734
93735         (__mktime_internal): Use a time_t offset, not a long int offset.
93736         This undoes the 2003-06-04 change, which is no longer needed now
93737         that we have better overflow checking.
93738         (localtime_offset): Likewise.
93739
93740         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93741         and long are 64-bit but int is only 32-bit.
93742         (ydhms_diff): Use long int to store year1 and yday1.
93743         Issue a compile-time diagnostic if long int is not wide enough.
93744
93745         (__mktime_internal): Use long int to store adjusted year and yday.
93746         Use plain C rather than preprocessor commands, if that doesn't
93747         affect efficiency.
93748         Check for overflow (and try to repair) after each probe
93749         rather than checking only at the very end.  This avoids some bugs
93750         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93751         does not equal GMT offset at maximum time).
93752         Use integer to check for overflow rather than floating point; this
93753         is more portable to non-IEEE hosts, and is a tad faster.
93754         When we detect that we are oscillating between two values,
93755         don't check whether tm_isdst has the requested value, since
93756         we already know the answer.  When tm_isdst has the wrong value,
93757         use a different heuristic to find the right one, based on the
93758         extreme values actually observed in practice in tz2003a,
93759         rather than the (overly optimistic) "previous 3 calendar quarters".
93760
93761         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93762         "T const" to accommodate glibc style.
93763         (check_result): Use less-confusing report format.  "long" -> "long int.
93764         (main): Likewise.
93765         Don't loop if the iteration overflows time_t.
93766         Allow a negative step in the iteration.
93767
93768 2003-07-06  Karl Berry  <karl@gnu.org>
93769
93770         * config/depcomp: update from automake.
93771         * config/config.sub: update from prep.
93772
93773 2003-07-03  Karl Berry  <karl@gnu.org>
93774
93775         * config/config.guess: update from prep.
93776
93777 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93778
93779         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93780         xreadlink.c now includes it unconditionally.
93781
93782 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93783
93784         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93785         having it depend on HAVE_SYS_TYPES_H.
93786
93787 2003-07-01  Bruno Haible  <bruno@clisp.org>
93788
93789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93790         <sys/types.h> should be sufficient.
93791         Reported by Paul Eggert.
93792
93793 2003-06-26  Karl Berry  <karl@gnu.org>
93794
93795         * config/depcomp: update from automake.
93796
93797 2003-06-26  Bruno Haible  <bruno@clisp.org>
93798
93799         * modules/human: Depend on module stdbool.
93800
93801 2003-06-25  Bruno Haible  <bruno@clisp.org>
93802
93803         * modules/readlink: New file.
93804         * modules/xreadlink: Depend on it.
93805         * MODULES.html.sh (func_all_modules): Add readlink.
93806
93807 2003-06-25  Bruno Haible  <bruno@clisp.org>
93808
93809         * m4/readlink.m4: New file.
93810
93811 2003-06-25  Bruno Haible  <bruno@clisp.org>
93812
93813         * lib/readlink.c: New file.
93814
93815 2003-06-22  Karl Berry  <karl@gnu.org>
93816
93817         * config/srclist.txt: update mkinstalldirs from automake.
93818         * config/mkinstalldirs: update.
93819
93820 2003-06-22  Bruno Haible  <bruno@clisp.org>
93821
93822         Portability to mingw32.
93823         * m4/ssize_t.m4: New file, from GNU gettext.
93824         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93825         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93826
93827 2003-06-22  Bruno Haible  <bruno@clisp.org>
93828
93829         * modules/safe-read: Add m4/ssize_t.m4.
93830         * modules/xreadlink: Add m4/ssize_t.m4.
93831
93832 2003-06-20  Bruno Haible  <bruno@clisp.org>
93833
93834         Assume C89, so PARAMS isn't needed.
93835         * lib/unicodeio.h (PARAMS): Remove.
93836         * lib/unicodeio.c: Don't use PARAMS.
93837
93838 2003-06-18  Karl Berry  <karl@gnu.org>
93839
93840         * config/config.{guess,sub}: update from prep.
93841
93842 2003-06-18  Jim Meyering  <jim@meyering.net>
93843
93844         Merge changes from coreutils.
93845         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93846         Remove explicit declarations of xmalloc and realloc.
93847         Include xalloc.h.
93848         (read_utmp): Remove anachronistic cast of xmalloc.
93849
93850 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93851
93852         Assume C89, so PARAMS isn't needed.
93853         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93854         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93855         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93856         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93857         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93858         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93859         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93860         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93861         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93862         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93863         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93864         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93865         no longer needed. Anyway, config.h should always be included before any
93866         other file.
93867
93868 2003-06-11  Simon Josefsson  <jas@extundo.com>
93869
93870         * modules/sysexits: New file.
93871         * MODULES.html.sh (func_all_modules): Add sysexits.
93872
93873 2003-06-11  Simon Josefsson  <jas@extundo.com>
93874
93875         * lib/sysexit_.h: New file.
93876
93877 2003-06-11  Derek Price  <derek@ximbiot.com>
93878
93879         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93880         necessary.
93881
93882 2003-06-11  Bruno Haible  <bruno@clisp.org>
93883
93884         * m4/sysexits.m4: New file.
93885
93886 2003-06-10  Simon Josefsson  <jas@extundo.com>
93887
93888         * lib/argp.h: New file, from glibc.
93889         * lib/argp-ba.c: New file, from glibc.
93890         * lib/argp-eexst.c: New file, from glibc.
93891         * lib/argp-fmtstream.c: New file, from glibc.
93892         * lib/argp-fmtstream.h: New file, from glibc.
93893         * lib/argp-fs-xinl.c: New file, from glibc.
93894         * lib/argp-help.c: New file, from glibc.
93895         * lib/argp-namefrob.h: New file, from glibc.
93896         * lib/argp-parse.c: New file, from glibc.
93897         * lib/argp-pv.c: New file, from glibc.
93898         * lib/argp-pvh.c: New file, from glibc.
93899         * lib/argp-xinl.c: New file, from glibc.
93900
93901 2003-06-10  Simon Josefsson  <jas@extundo.com>
93902
93903         * modules/strchrnul: New file.
93904
93905 2003-06-10  Simon Josefsson  <jas@extundo.com>
93906
93907         * modules/argp: New file.
93908
93909 2003-06-10  Simon Josefsson  <jas@extundo.com>
93910
93911         * m4/strchrnul.m4: New file.
93912
93913 2003-06-10  Simon Josefsson  <jas@extundo.com>
93914
93915         * lib/strchrnul.h: New file.
93916         * lib/strchrnul.c: New file.
93917
93918 2003-06-10  Bruno Haible  <bruno@clisp.org>
93919
93920         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93921
93922 2003-06-07  Karl Berry  <karl@gnu.org>
93923
93924         * config/config.{guess,sub}: update from prep.
93925
93926 2003-06-07  Jim Meyering  <jim@meyering.net>
93927
93928         * modules/strtod: Use $(...) notation, not @...@ for
93929         AC_REPLACE'd variables.
93930         * modules/localcharset: Likewise.
93931
93932 2003-06-07  Jim Meyering  <jim@meyering.net>
93933
93934         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93935         in place of my name in the copyright comment.
93936         Remove definition and uses of __P.
93937
93938         From coreutils.
93939         * lib/stat.c: Don't declare xmalloc explicitly.
93940         Instead, include "xalloc.h".
93941         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93942         xrealloc, and xcalloc return values.
93943         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93944         Improve comment.
93945         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93946
93947 2003-06-07  Bruno Haible  <bruno@clisp.org>
93948
93949         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93950         avoid AC_CONFIG_LINKS.
93951         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93952         fnmatch.h, to avoid AC_CONFIG_LINKS.
93953         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93954
93955 2003-06-07  Bruno Haible  <bruno@clisp.org>
93956
93957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93958         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93959         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93960         directory.
93961         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93962         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93963         directory.
93964
93965 2003-06-06  Jim Meyering  <jim@meyering.net>
93966
93967         Merge from coreutils.
93968         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93969         Consolidate declarations and initializations of *_base* locals.
93970
93971         Merge from coreutils.
93972         This avoids a core dump on systems without GNU putenv,
93973         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93974         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93975         (unsetenv): New static function, from GNU libc.
93976         (rpl_putenv): Use it.
93977
93978         * lib/modechange.c: Remove trailing blanks.
93979
93980         Merge from coreutils.
93981         * lib/fsusage.c: Remove declaration of statfs.
93982         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93983
93984         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93985
93986 2003-06-06  Jim Meyering  <jim@meyering.net>
93987
93988         * lib/stdbool_.h: Renamed from stdbool.h.in.
93989
93990 2003-06-06  Jim Meyering  <jim@meyering.net>
93991             Bruno Haible  <bruno@clisp.org>
93992
93993         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93994         Adjust Makefile.am snippet not to redirect directly to target.
93995         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93996
93997 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94000         mismatch, look in future quarters as well as past.  This fixes a
94001         bug when processing fall-backwards gaps immediately after a long
94002         period of daylight-saving time.
94003
94004         * lib/mktime.c: Assume freestanding C89 or better.
94005         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94006         (__P): Remove; not used.
94007         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94008         (mktime, not_equal_tm, print_tm, check_result,
94009         main): Use prototypes.  Use const * where appropriate.
94010         (main): Fix typo in testing code that uncovered by above changes.
94011         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94012
94013 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94014
94015         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94016         locale.h, localeconv.  This merges changes from coreutils.
94017
94018         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94019         It can be removed after the next Autoconf is released.
94020         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94021         needed.
94022
94023 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94024
94025         * lib/mktime.c: Fix Debian bug 177940
94026         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94027         (localtime_offset): Now long int, not time_t, because we want it
94028         to be guaranteed to be signed.  All uses changed.
94029         (__mktime_internal): If overflow would occur when adding offset,
94030         don't add it.
94031
94032         Merge 'human' changes from coreutils.  Rewrite to support
94033         locale-specific notations like thousands separators.
94034         * lib/human.c: Simplify authorship notice.
94035         Include human.h immediately after config.h.
94036         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94037         <limits.h>: Do not include, since human.h does.
94038         (SIZE_MAX, UINTMAX_MAX): New macros.
94039         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94040         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94041         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94042         (power_letter): Renamed from suffixes.
94043         (generate_suffix_backwards): Remove.
94044         (adjust_value): Now takes int style (because of human.h changes)
94045         and long double value (for greater precision on some platforms).
94046         (group_number): New function.
94047         (human_readable): Use it.  Use integer options, not enum.
94048         Put the options before the sizes in the arg list.
94049         Support all the new options.
94050         The old human_readable function has been removed;
94051         use inttostr.h instead.
94052         (human_readable, default_block_size, humblock):
94053         Use uintmax_t, not int, for block sizes.
94054         (human_readable_inexact, block_size_types): Remove.
94055         (block_size_opts): New constant.
94056         (human_options): Renamed from human_block_size, with new signature
94057         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94058         * lib/human.h: Add copyright and authorship notice.
94059         Include <limits.h> and <stdbool.h> unconditionally.
94060         (PARAMS): Remove.  All uses removed.
94061         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94062         (enum human_inexact_style): Remove tag; now a nameless enum.
94063         (human_floor, human_ceiling, human_round_to_even): Now have
94064         values 2, 0, 1 rather than -1, 1, 0.
94065         (human_group_digits, human_suppress_point_zero, human_autoscale,
94066         human_base_1024, human_SI, human_B): New constants.
94067         (human_readable_inexact, human_block_size): Remove.
94068         (human_readable): Size args are now uintmax_t, not int.
94069         (human_options): New decl.
94070
94071         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94072         unnecessary now that we assume C89 or better.  This change
94073         imported from coreutils.
94074
94075         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94076         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94077         in the 2003-05-30 sync from glibc.
94078
94079         .h files should stand alone, but we shouldn't include <sys/types.h>
94080         if we can get away with just <stddef.h>.
94081
94082         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94083         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94084         rather than <sys/types.h>, as we merely need size_t.
94085         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94086         to get size_t.
94087         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94088         Include <stdio.h>, to get FILE.
94089         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94090         memcasecmp.h has included <stddef.h> and all we need is size_t.
94091         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94092         our interface, instead of including <sys/types.h>
94093
94094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94095
94096         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94097         now, as glibc mktime is buggy on non-glibc systems.
94098
94099 2003-06-03  Karl Berry  <karl@gnu.org>
94100
94101         * config/config.sub: update from prep.
94102
94103 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94104
94105         [from coreutils]
94106         Fix some minor time-related bugs with POSIX time arguments.
94107         Some valid time stamps were being rejected (notably -1, and
94108         time stamps before 1900 on 64-bit hosts).  And some invalid
94109         time stamps were being accepted, e.g. September 31.
94110
94111         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94112         that we can return (time_t) -1 successfully.
94113         * lib/posixtm.c: Likewise.
94114         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94115         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94116         (t): Remove static var.
94117         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94118         of static var.  All uses changed.
94119         (year): Do not reject years before 1900; they can occur with
94120         64-bit time_t.
94121         (posix_time_parse): Do not check for out-of-range components;
94122         that is now the caller's responsibility, since our checks were
94123         only approximations.
94124         (posixtime): Use mktime to check for out-of-range components,
94125         since it knows them exactly.
94126         If mktime returns (time_t) -1, check whether an error actually occurred
94127         by invoking localtime on -1.
94128         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94129         posixtime failures better.
94130         Improve the test data (in comments only).
94131
94132 2003-06-02  Karl Berry  <karl@gnu.org>
94133
94134         * config/mkinstalldirs (version): new variable.
94135         (--version): new option.
94136         (usage): improve message.
94137
94138 2003-05-30  Karl Berry  <karl@gnu.org>
94139
94140         * lib/mktime.c: update from libc.
94141
94142 2003-05-30  Bruno Haible  <bruno@clisp.org>
94143
94144         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94145         * config/config.rpath: Upgrade to gettext-0.12.1.
94146
94147 2003-05-30  Bruno Haible  <bruno@clisp.org>
94148
94149         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94150         * m4/nls.m4: New file, from gettext-0.12.1.
94151         * m4/po.m4: New file, from gettext-0.12.1.
94152         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94153
94154 2003-05-30  Bruno Haible  <bruno@clisp.org>
94155
94156         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94157         * lib/localcharset.h: Likewise.
94158         * lib/localcharset.c: Likewise.
94159
94160 2003-05-29  Karl Berry  <karl@gnu.org>
94161
94162         * config/config.rpath: update from gettext.
94163
94164 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94165
94166         Assume the headers required for C89 freestanding compilers.
94167         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94168         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94169         * m4/human.m4 (gl_HUMAN): Likewise.
94170         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94171         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94172         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94173         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94175         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94176
94177 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94178
94179         Assume the headers required for C89 freestanding compilers.
94180         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94181         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94182         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94183         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94184         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94185         define, since <limits.h> is guaranteed to do that.
94186         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94187         * lib/exclude.c: Include <stdbool.h> unconditionally.
94188         * lib/tempname.c: Include <stddef.h> unconditionally.
94189         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94190         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94191         <stddef.h> does that.
94192         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94193         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94194         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94195         needed.
94196         * lib/xstrtol.c: Likewise.
94197         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94198         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94199
94200         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94201         warnings on some platforms.
94202
94203         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94204         arbitrarily.
94205
94206 2003-05-26  Jim Meyering  <jim@meyering.net>
94207
94208         Merge in a change from coreutils:
94209         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94210         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94211         that condition, rather than `-1' which is slightly misleading.
94212         Change the name of the cache variable to have the gl_ prefix.
94213         Prompted by a patch from Richard Dawe for DJGPP.
94214
94215 2003-05-24  Karl Berry  <karl@gnu.org>
94216
94217         * config/config.guess: update from prep.
94218
94219 2003-05-22  Karl Berry  <karl@gnu.org>
94220
94221         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94222
94223 2003-05-20  Karl Berry  <karl@gnu.org>
94224
94225         * config/config.guess: update from prep.
94226
94227 2003-05-18  Karl Berry  <karl@gnu.org>
94228
94229         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94230         might actually be set by the user.
94231
94232         * config/depcomp, install-sh, mdate-sh: update from automake.
94233
94234 2003-05-17  Bruno Haible  <bruno@clisp.org>
94235
94236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94237         invalid expansion for AC_EGREP_CPP.
94238         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94239         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94240         Suggested by Akim Demaille <akim@epita.fr> in
94241         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94242
94243 2003-05-12  Jim Meyering  <jim@meyering.net>
94244
94245         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94246         the space-padded-by-default conversion specifiers, %e, %k, %l.
94247
94248 2003-05-12  Bruno Haible  <bruno@clisp.org>
94249
94250         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94251         the string is longer than 4 KB.
94252
94253 2003-05-11  Karl Berry  <karl@gnu.org>
94254
94255         * config/config.{guess,sub}: update from prep.
94256
94257 2003-05-09  Bruno Haible  <bruno@clisp.org>
94258
94259         * modules/error: Add m4/strerror_r.m4 to file list.
94260
94261 2003-05-03  Bruno Haible  <bruno@clisp.org>
94262
94263         Upgrade to Unicode-4.0.
94264         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94265         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94266         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94267         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94268         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94269         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94270         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94271         Change width of U+E0100..U+E01EF from 1 to 0.
94272
94273 2003-04-25  Jim Meyering  <jim@meyering.net>
94274
94275         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94276         of type size_t, not int.
94277
94278 2003-04-25  Bruno Haible  <bruno@clisp.org>
94279
94280         * lib/copy-file.c: Include <stddef.h>, for size_t.
94281
94282 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94283
94284         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94285         code which expansion is under static control.  Patch imported from
94286         Akim Demaille's patch to Bison; see
94287         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94288
94289 2003-04-14  Bruno Haible  <bruno@clisp.org>
94290
94291         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94292
94293 2003-04-11  Jim Meyering  <jim@meyering.net>
94294
94295         Merge changes from Coreutils.
94296
94297         2003-03-22  Jim Meyering  <jim@meyering.net>
94298
94299         * lib/strftime.c (widen): Cast alloca return value to proper type.
94300
94301         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94302
94303         From GNU libc.
94304         * lib/strftime.c (my_strftime): Handle very large width
94305         specifications for numeric values correctly.  Improve checks for
94306         overflow.
94307
94308         2003-01-19  Jim Meyering  <jim@meyering.net>
94309
94310         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94311         definitions.
94312         (nl_get_alt_digit) [! defined my_strftime]: Define.
94313         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94314         _nl_get_alt_digit and _nl_get_walt_digit.
94315
94316         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94317         libc. These changes have no effect outside of _LIBC.
94318
94319 2003-04-10  Bruno Haible  <bruno@clisp.org>
94320
94321         * modules/findprog: New file.
94322         * MODULES.html.sh (func_all_modules): Add it.
94323
94324 2003-04-10  Bruno Haible  <bruno@clisp.org>
94325
94326         * m4/findprog.m4: New file.
94327         * m4/eaccess.m4: New file.
94328
94329 2003-04-10  Bruno Haible  <bruno@clisp.org>
94330
94331         * lib/findprog.h: New file, from GNU gettext.
94332         * lib/findprog.c: New file, from GNU gettext.
94333
94334 2003-04-05  Jim Meyering  <jim@meyering.net>
94335
94336         Merge changes from Coreutils.
94337
94338         * lib/exclude.h (PARAMS): Remove definition and uses.
94339         * lib/exclude.c: Remove uses of `PARAMS'.
94340
94341         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94342         Add test-cases for DOS filenames. Declare program_name.
94343         (main): Set up program_name.  Patch by Rich Dawe.
94344
94345         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94346         error from mntctl.
94347         Use mntctl's return value to drive the entry-processing loop, since
94348         we can't rely on the value of the vmt_length member in the last
94349         entry.  On some systems doing so could result in exhausting
94350         virtual memory.  Based in part on a patch from Mike Jetzer.
94351
94352 2003-04-04  Bruno Haible  <bruno@clisp.org>
94353
94354         * modules/linebreak: New file.
94355         * MODULES.html.sh (func_all_modules): Add it.
94356
94357 2003-04-04  Bruno Haible  <bruno@clisp.org>
94358
94359         * m4/linebreak.m4: New file.
94360
94361 2003-04-04  Bruno Haible  <bruno@clisp.org>
94362
94363         * lib/linebreak.h: New file, from GNU gettext.
94364         * lib/linebreak.c: New file, from GNU gettext with slight
94365         modifications.
94366         * lib/lbrkprop.h: New file, from GNU gettext.
94367
94368 2003-04-03  Bruno Haible  <bruno@clisp.org>
94369
94370         * modules/utf8-ucs4: New file.
94371         * modules/utf16-ucs4: New file.
94372         * modules/ucs4-utf8: New file.
94373         * modules/ucs4-utf16: New file.
94374         * MODULES.html.sh (func_all_modules): Add them.
94375
94376 2003-04-03  Bruno Haible  <bruno@clisp.org>
94377
94378         * m4/utf-ucs4.m4: New file.
94379         * m4/ucs4-utf.m4: New file.
94380
94381 2003-04-03  Bruno Haible  <bruno@clisp.org>
94382
94383         * lib/utf8-ucs4.h: New file, from GNU gettext.
94384         * lib/utf16-ucs4.h: New file, from GNU gettext.
94385         * lib/ucs4-utf8.h: New file, from GNU gettext.
94386         * lib/ucs4-utf16.h: New file, from GNU gettext.
94387
94388 2003-04-02  Bruno Haible  <bruno@clisp.org>
94389
94390         * modules/binary-io: New file.
94391         * MODULES.html.sh (func_all_modules): Add it.
94392
94393 2003-04-02  Bruno Haible  <bruno@clisp.org>
94394
94395         * lib/binary-io.h: New file, from GNU gettext.
94396
94397 2003-04-01  Bruno Haible  <bruno@clisp.org>
94398
94399         * modules/pathname: New file.
94400         * MODULES.html.sh (func_all_modules): Add it.
94401
94402 2003-04-01  Bruno Haible  <bruno@clisp.org>
94403
94404         * lib/pathname.h: New file, from GNU gettext.
94405         * lib/concatpath.c: New file, from GNU gettext.
94406
94407 2003-03-30  Bruno Haible  <bruno@clisp.org>
94408
94409         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94410
94411 2003-03-30  Bruno Haible  <bruno@clisp.org>
94412
94413         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94414         function chown() doesn't exist.
94415
94416 2003-03-28  Bruno Haible  <bruno@clisp.org>
94417
94418         * modules/copy-file: New file.
94419         * MODULES.html.sh (func_all_modules): Add it.
94420
94421 2003-03-28  Bruno Haible  <bruno@clisp.org>
94422
94423         * m4/copy-file.m4: New file.
94424
94425 2003-03-28  Bruno Haible  <bruno@clisp.org>
94426
94427         * lib/copy-file.h: New file, from GNU gettext.
94428         * lib/copy-file.c: New file, from GNU gettext.
94429
94430 2003-03-18  Jim Meyering  <jim@meyering.net>
94431
94432         * lib/quote.c (quote_n): Fix typo in comment.
94433
94434 2003-03-18  Bruno Haible  <bruno@clisp.org>
94435
94436         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94437         checking.
94438         * m4/onceonly_2_57.m4: Likewise.
94439
94440 2003-03-17  Bruno Haible  <bruno@clisp.org>
94441
94442         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94443         (m4_quote): Remove macro.
94444         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94445
94446 2003-03-14  Jim Meyering  <jim@meyering.net>
94447
94448         Merge changes from Coreutils.
94449         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94450         to be const, in order to avoid warnings.
94451         (obstack_room): Likewise.
94452         (obstack_empty_p): Likewise.
94453
94454 2003-03-14  Bruno Haible  <bruno@clisp.org>
94455
94456         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94457         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94458
94459 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94460
94461         Merge changes from Bison.
94462         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94463         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94464         when compiling Bison 1.875's `bitset bset = obstack_alloc
94465         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94466         * lib/hash.c: Include <stdbool.h> unconditionally.
94467
94468 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94469
94470         * m4/onceonly.m4 (m4_quote): New macro.
94471         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94472         Quote AC_FOREACH variable-expansions properly.
94473
94474 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94475
94476         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94477
94478 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94479
94480         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94481         Reported by Bruce Becker; see:
94482         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94483
94484 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94485             Bruno Haible  <bruno@clisp.org>
94486
94487         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94488         Reported by John Hughes, see
94489         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94490
94491 2003-02-20  Bruno Haible  <bruno@clisp.org>
94492
94493         * MODULES.html.sh (func_all_modules): Add poll.
94494
94495 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94496
94497         * modules/poll: New file.
94498
94499 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94500
94501         * lib/poll_.h: New file.
94502         * lib/poll.c: New file.
94503
94504 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94505
94506         * m4/poll.m4: New file.
94507
94508 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94509
94510         * modules/mathl: New file.
94511
94512 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94513
94514         * lib/mathl.h: New file.
94515         * lib/acosl.c: New file.
94516         * lib/asinl.c: New file.
94517         * lib/atanl.c: New file.
94518         * lib/ceill.c: New file.
94519         * lib/cosl.c: New file.
94520         * lib/expl.c: New file.
94521         * lib/floorl.c: New file.
94522         * lib/frexpl.c: New file.
94523         * lib/ldexpl.c: New file.
94524         * lib/logl.c: New file.
94525         * lib/sincosl.c: New file.
94526         * lib/sinl.c: New file.
94527         * lib/sqrtl.c: New file.
94528         * lib/tanl.c: New file.
94529         * lib/trigl.c: New file.
94530         * lib/trigl.h: New file.
94531
94532 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94533
94534         * m4/mathl.m4: New file.
94535
94536 2003-02-18  Bruno Haible  <bruno@clisp.org>
94537
94538         * MODULES.html.sh (func_all_modules): Add mathl.
94539
94540 2003-02-17  Bruno Haible  <bruno@clisp.org>
94541
94542         * modules/mkdtemp: New module.
94543         * MODULES.html.sh (func_all_modules): Add it.
94544
94545 2003-02-17  Bruno Haible  <bruno@clisp.org>
94546
94547         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94548
94549 2003-02-17  Bruno Haible  <bruno@clisp.org>
94550
94551         * lib/mkdtemp.h: New file, from GNU gettext.
94552         * lib/mkdtemp.c: New file, from GNU gettext.
94553
94554 2003-02-02  Jim Meyering  <jim@meyering.net>
94555
94556         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94557         e.g. glibc-2.2.93.
94558
94559 2003-01-31  Bruno Haible  <bruno@clisp.org>
94560
94561         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94562         'rpl_rename'.
94563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94564         'rpl_strnlen'.
94565         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94566         'rpl_strtod'.
94567         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94568         'rpl_utime'.
94569
94570 2003-01-31  Bruno Haible  <bruno@clisp.org>
94571
94572         * lib/rename.c: #undef rename before defining rpl_rename.
94573         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94574
94575 2003-01-30  Bruno Haible  <bruno@clisp.org>
94576
94577         * modules/vasnprintf, modules/vasprintf: New modules.
94578         * MODULES.html.sh (func_all_modules): Add them.
94579
94580 2003-01-30  Bruno Haible  <bruno@clisp.org>
94581
94582         * m4/signed.m4: New file, from GNU gettext.
94583         * m4/longdouble.m4: New file, from GNU gettext.
94584         * m4/wchar_t.m4: New file, from GNU gettext.
94585         * m4/wint_t.m4: New file, from GNU gettext.
94586         * m4/vasnprintf.m4: New file.
94587         * m4/vasprintf.m4: New file.
94588
94589 2003-01-30  Bruno Haible  <bruno@clisp.org>
94590
94591         * lib/printf-args.h: New file, from GNU gettext.
94592         * lib/printf-args.c: New file, from GNU gettext.
94593         * lib/printf-parse.h: New file, from GNU gettext.
94594         * lib/printf-parse.c: New file, from GNU gettext.
94595         * lib/vasnprintf.h: New file, from GNU gettext.
94596         * lib/vasnprintf.c: New file, from GNU gettext.
94597         * lib/asnprintf.c: New file, from GNU gettext.
94598         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94599         * lib/vasprintf.c: New file, from GNU gettext.
94600         * lib/asprintf.c: New file, from GNU gettext.
94601
94602 2003-01-29  Bruno Haible  <bruno@clisp.org>
94603
94604         * modules/stpncpy: New module.
94605         * MODULES.html.sh (func_all_modules): Add it.
94606
94607 2003-01-29  Bruno Haible  <bruno@clisp.org>
94608
94609         * m4/stpncpy.m4: New file.
94610
94611 2003-01-29  Bruno Haible  <bruno@clisp.org>
94612
94613         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94614         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94615
94616 2003-01-28  Bruno Haible  <bruno@clisp.org>
94617
94618         * modules/c-ctype: New module.
94619         * MODULES.html.sh (func_all_modules): Add it.
94620
94621 2003-01-28  Bruno Haible  <bruno@clisp.org>
94622
94623         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94624         Paul Eggert.
94625         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94626         Paul Eggert.
94627
94628 2003-01-27  Bruno Haible  <bruno@clisp.org>
94629
94630         * modules/xsetenv: New module.
94631         * MODULES.html.sh (func_all_modules): Add it.
94632
94633 2003-01-27  Bruno Haible  <bruno@clisp.org>
94634
94635         * lib/xsetenv.h: New file, from GNU gettext.
94636         * lib/xsetenv.c: New file, from GNU gettext.
94637
94638 2003-01-23  Jim Meyering  <jim@meyering.net>
94639
94640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94641         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94642
94643 2003-01-23  Bruno Haible  <bruno@clisp.org>
94644
94645         * modules/minmax: New module.
94646         * MODULES.html.sh (func_all_modules): Add it.
94647
94648 2003-01-23  Bruno Haible  <bruno@clisp.org>
94649
94650         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94651         Eggert.
94652
94653 2003-01-22  Bruno Haible  <bruno@clisp.org>
94654
94655         * modules/exit: New module.
94656         * MODULES.html.sh (func_all_modules): Add it.
94657
94658 2003-01-22  Bruno Haible  <bruno@clisp.org>
94659
94660         * lib/exit.h: New file, from GNU gettext.
94661
94662 2003-01-19  Bruno Haible  <bruno@clisp.org>
94663
94664         * gnulib-tool: Recognize option --extract-maintainer.
94665         (func_get_maintainer): New function.
94666         * modules/*: Add Maintainer entry.
94667
94668 2003-01-16  Jim Meyering  <jim@meyering.net>
94669
94670         * m4/regex.m4: The `regex' struct is both input and output.
94671         Initialize it before each use.  Patch by Tim Waugh.
94672
94673 2003-01-16  Bruno Haible  <bruno@clisp.org>
94674
94675         * MODULES.html.sh: Add a table of contents. Add the module name as
94676         leftmost column. Add hyperlinks.
94677
94678 2003-01-15  Bruno Haible  <bruno@clisp.org>
94679
94680         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94681
94682 2003-01-15  Bruno Haible  <bruno@clisp.org>
94683
94684         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94685         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94686         suffix.
94687
94688 2003-01-15  Bruno Haible  <bruno@clisp.org>
94689
94690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94691
94692 2003-01-15  Bruno Haible  <bruno@clisp.org>
94693
94694         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94695         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94696
94697 2003-01-14  Jim Meyering  <jim@meyering.net>
94698
94699         * lib/same.c (same_name): Tweak a comment.
94700
94701 2003-01-14  Bruno Haible  <bruno@clisp.org>
94702
94703         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94704         when a string comparison is sufficient.
94705
94706 2003-01-14  Bruno Haible  <bruno@clisp.org>
94707
94708         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94709         'unsigned int'.
94710
94711 2003-01-14  Bruno Haible  <bruno@clisp.org>
94712
94713         * lib/hash-pjw.c: Add comment about low quality of this function.
94714
94715 2003-01-13  Bruno Haible  <bruno@clisp.org>
94716
94717         * modules/stpcpy: Distribute lib/stpcpy.h.
94718         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94719
94720 2003-01-13  Bruno Haible  <bruno@clisp.org>
94721
94722         * modules/*: Add a description.
94723         * modules/strpbrk: Fix Makefile.am snippet.
94724         * modules/strtoimax: Fix dependencies.
94725         * modules/strtoumax: Likewise.
94726
94727 2003-01-13  Bruno Haible  <bruno@clisp.org>
94728
94729         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94730         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94731         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94732
94733 2003-01-13  Bruno Haible  <bruno@clisp.org>
94734
94735         * gnulib-tool (func_create_testdir): Store config/* files in the main
94736         directory.
94737         * config.rpath: Move to ...
94738         * config/config.rpath: ... here.
94739         * modules/gettext: Contains config/config.rpath, not config.rpath.
94740         * modules/iconv: Likewise.
94741
94742 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94743
94744         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94745         to avoid collisions with libcurses and libreadline.
94746
94747         * m4/getstr.m4: Remove.
94748         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94749
94750 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94751
94752         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94753         to avoid collisions with libcurses and libreadline.
94754
94755         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94756         * lib/getstr.h, getstr.c: Remove.
94757         * lib/getline.c: Include "getline.h", to check interface.
94758         Move body of old getstr.c here: this defines MIN_CHUNK and
94759         declares getdelim2, which is renamed from getstr.
94760         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94761
94762         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94763         All uses changed.
94764         * lib/linebuffer.h: Likewise.
94765         (readline): Remove backward-compatibility macro.
94766
94767 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94768
94769         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94770         to avoid collisions with libcurses and libreadline.
94771         * getstr: Remove.
94772         * MODULES.html.sh: Remove getstr.
94773         * modules/getline: Depend on unlocked-io, not getstr.
94774
94775 2003-01-12  Jim Meyering  <jim@meyering.net>
94776
94777         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94778
94779 2003-01-10  Bruno Haible  <bruno@clisp.org>
94780
94781         * modules/alloca: Change Makefile.am requirements. Simplify Include
94782         requirements. Add lib/alloca_.h to file list.
94783
94784 2003-01-10  Bruno Haible  <bruno@clisp.org>
94785
94786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94787
94788 2003-01-10  Bruno Haible  <bruno@clisp.org>
94789
94790         * lib/alloca_.h: New file.
94791         * lib/getdate.y: Unconditionally include alloca.h.
94792         * lib/makepath.c: Likewise.
94793         * lib/setenv.c: Likewise.
94794         * lib/userspec.c: Likewise.
94795
94796 2003-01-09  Karl Berry  <karl@gnu.org>
94797
94798         * MODULES.html.sh: include `dirname $0` in PATH, to find
94799         gnulib-tool.
94800
94801 2003-01-09  Bruno Haible  <bruno@clisp.org>
94802
94803         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94804         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94805
94806 2003-01-09  Bruno Haible  <bruno@clisp.org>
94807
94808         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94809
94810 2003-01-09  Bruno Haible  <bruno@clisp.org>
94811
94812         * lib/stdbool.h.in: New file.
94813
94814 2003-01-09  Bruno Haible  <bruno@clisp.org>
94815
94816         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94817         * MODULES.html.sh: Likewise.
94818
94819 2003-01-08  Jim Meyering  <jim@meyering.net>
94820
94821         * lib/full-write.c: Undefine and define-away `const' after inclusion
94822         of errno.h, not before.  Suggestion from Bruno Haible.
94823
94824 2003-01-08  Bruno Haible  <bruno@clisp.org>
94825
94826         * modules/full-read: Depend on full-write.
94827
94828 2003-01-08  Bruno Haible  <bruno@clisp.org>
94829
94830         * lib/safe-read.c: Include specification header first, to ensure its
94831         selfcontainedness.
94832         * lib/full-write.c: Likewise.
94833
94834 2003-01-07  Jim Meyering  <jim@meyering.net>
94835
94836         * lib/full-write.c: Rework so that it may serve to define full_read,
94837         too.
94838         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94839
94840 2003-01-07  Bruno Haible  <bruno@clisp.org>
94841
94842         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94843         <inttypes.h>.
94844         * lib/xstrtol.h: Likewise.
94845         * lib/xstrtoimax.c: Likewise.
94846         * lib/xstrtoumax.c: Likewise.
94847         * lib/human.h: Likewise.
94848
94849         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94850         on systems that have <inttypes.h> but not <stdint.h>.
94851
94852 2003-01-07  Bruno Haible  <bruno@clisp.org>
94853
94854         * MODULES.html.sh: Add copyright notice.
94855         (missed_files): Omit CVS directory entries.
94856         (func_module): Make it work with sed-3.02.
94857         * MODULES.txt: Remove file.
94858
94859 2003-01-06  Jim Meyering  <jim@meyering.net>
94860
94861         * lib/version-etc.c: Update year in translatable copyright string.
94862
94863 2003-01-03  Karl Berry  <karl@gnu.org>
94864
94865         * config/config.{guess,sub}: update from prep.
94866
94867 2003-01-02  Karl Berry  <karl@gnu.org>
94868
94869         * doc/COPYING.DOC: belatedly updated to 1.2.
94870
94871 2003-01-01  Karl Berry  <karl@gnu.org>
94872
94873         * gnulib-tool (func_verify_module): report module name $module in
94874         error message, not $1.
94875         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94876         be created, only if it doesn't exist.
94877         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94878
94879 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94880
94881         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94882
94883 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94884
94885         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94886         memcmp if strcoll doesn't work.
94887
94888 2002-12-31  Bruno Haible  <bruno@clisp.org>
94889
94890         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94891         nonempty.
94892
94893 2002-12-31  Bruno Haible  <bruno@clisp.org>
94894
94895         * lib/memcoll.c (STRCOLL): New macro.
94896         (memcoll): Use it.
94897
94898 2002-12-31  Bruno Haible  <bruno@clisp.org>
94899
94900         * lib/localcharset.h: New file.
94901         * lib/localcharset.c: Include it.
94902         * lib/unicodeio.c: Likewise.
94903
94904 2002-12-31  Bruno Haible  <bruno@clisp.org>
94905
94906         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94907         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94908
94909 2002-12-31  Bruno Haible  <bruno@clisp.org>
94910
94911         * lib/getline.h: Include <stddef.h>, for size_t.
94912
94913         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94914         * lib/unicodeio.c: Don't include <stddef.h>.
94915
94916 2002-12-31  Bruno Haible  <bruno@clisp.org>
94917
94918         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94919         HAVE_TM_ZONE.
94920
94921 2002-12-24  Karl Berry  <karl@gnu.org>
94922
94923         * config/config.guess: update from prep.
94924
94925 2002-12-24  Bruno Haible  <bruno@clisp.org>
94926
94927         General infrasructure.
94928         * m4/README: Rewritten.
94929         * m4/onceonly.m4: New file.
94930         * m4/onceonly_2_57.m4: New file.
94931
94932         Module atexit.
94933         * m4/atexit.m4: New file.
94934
94935         Module strtod.
94936         * m4/strtod.m4: New file.
94937
94938         Module strtol.
94939         * m4/strtol.m4: New file.
94940
94941         Module strtoul.
94942         * m4/strtoul.m4: New file.
94943
94944         Module memchr.
94945         * m4/memchr.m4: New file.
94946
94947         Module memcmp.
94948         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94949         (jm_FUNC_MEMCMP): Invoke it.
94950
94951         Module memcpy.
94952         * m4/memcpy.m4: New file.
94953
94954         Module memmove.
94955         * m4/memmove.m4: New file.
94956
94957         Module memset.
94958         * m4/memset.m4: New file.
94959
94960         Module strcspn.
94961         * m4/strcspn.m4: New file.
94962
94963         Module strpbrk.
94964         * m4/strpbrk.m4: New file.
94965
94966         Module strstr.
94967         * m4/strstr.m4: New file.
94968
94969         Module strerror.
94970         * m4/strerror.m4: New file.
94971
94972         Module mktime.
94973         * m4/mktime.m4: Renamed from jm-mktime.m4.
94974         (gl_PREREQ_MKTIME): New macro.
94975         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94976
94977         Module malloc.
94978         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94979         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94980         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94981
94982         Module realloc.
94983         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94984         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94985         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94986
94987         Module strftime.
94988         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94990         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94991         gl_TM_GMTOFF.
94992         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94993
94994         Module xalloc.
94995         * m4/xalloc.m4: New file.
94996
94997         Module alloca.
94998         * m4/alloca.m4: New file.
94999
95000         Module putenv.
95001         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95002         (jm_FUNC_PUTENV): Invoke it.
95003
95004         Module setenv.
95005         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95006         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95007         when invoked twice.
95008         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95009         gt_FUNC_SETENV.
95010
95011         Module memrchr.
95012         * m4/memrchr.m4: New file.
95013
95014         Module stpcpy.
95015         * m4/stpcpy.m4: New file.
95016
95017         Module strcase.
95018         * m4/strcase.m4: New file.
95019
95020         Module strdup.
95021         * m4/strdup.m4: New file.
95022
95023         Module strnlen.
95024         * m4/strnlen.m4: New file.
95025
95026         Module strndup.
95027         * m4/strndup.m4: New file.
95028
95029         Module xstrtod.
95030         * m4/xstrtod.m4: New file.
95031
95032         Module xstrtol.
95033         * m4/xstrtol.m4: New file.
95034
95035         Module getdate.
95036         * m4/getdate.m4: New file.
95037
95038         Module unlocked-io.
95039         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95040         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95041         * m4/jm-glibc-io.m4n: Remove file.
95042
95043         Module long-options.
95044         * m4/long-options.m4: New file.
95045
95046         Module md5.
95047         * m4/md5.m4: New file.
95048
95049         Module sha.
95050         * m4/sha.m4: New file.
95051
95052         Module getstr.
95053         * m4/getstr.m4: New file.
95054
95055         Module getline.
95056         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95057         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95058         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95059         simply getline. Infoke gl_PREREQ_GETLINE.
95060
95061         Module obstack.
95062         * m4/obstack.m4: New file.
95063
95064         Module hash.
95065         * m4/hash.m4: New file.
95066
95067         Module readtokens.
95068         * m4/readtokens.m4: New file.
95069
95070         Module strverscmp.
95071         * m4/strverscmp.m4: New file.
95072
95073         Module stdbool.
95074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95075         OSF/1.
95076
95077         Module strtoll.
95078         * m4/strtoll.m4: New file.
95079
95080         Module strtoull.
95081         * m4/strtoull.m4: New file.
95082
95083         Module strtoimax.
95084         * m4/strtoimax.m4: New file.
95085
95086         Module strtoumax.
95087         * m4/strtoumax.m4: New file.
95088
95089         Module xstrtoimax.
95090         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95091         jm_AC_PREREQ_XSTRTOIMAX.
95092         Moved the strtol prerequisites to strtol.m4.
95093         Moved the strtoll prerequisites to strtoll.m4.
95094         Moved the strtoimax prerequisites to strtoimax.m4.
95095
95096         Module xstrtoumax.
95097         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95098         jm_AC_PREREQ_XSTRTOUMAX.
95099         Moved the strtoul prerequisites to strtoul.m4.
95100         Moved the strtoull prerequisites to strtoull.m4.
95101         Moved the strtoumax prerequisites to strtoumax.m4.
95102
95103         Module chown.
95104         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95105         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95106
95107         Module dup2.
95108         * m4/dup2.m4: New file.
95109
95110         Module ftruncate.
95111         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95112         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95113
95114         Module getgroups.
95115         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95116         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95117
95118         Module gettimeofday.
95119         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95120         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95121         gl_PREREQ_GETTIMEOFDAY.
95122
95123         Module mkdir.
95124         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95125         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95126
95127         Module mkstemp.
95128         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95129         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95130         jm_AC_TYPE_UINTMAX_T.
95131         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95132
95133         Module stat.
95134         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95135         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95136
95137         Module lstat.
95138         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95139         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95140
95141         Module timespec.
95142         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95143         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95144         * m4/st_mtim.m4: Indentation.
95145
95146         Module nanosleep.
95147         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95148         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95149         gl_PREREQ_NANOSLEEP.
95150
95151         Module regex.
95152         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95153         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95154         (gl_REGEX): New macro.
95155
95156         Module rename.
95157         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95158         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95159
95160         Module rmdir.
95161         * m4/rmdir.m4: New file.
95162
95163         Module utime.
95164         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95165         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95166         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95167
95168         Module dirname.
95169         * m4/dirname.m4: New file.
95170
95171         Module getopt.
95172         * m4/getopt.m4: New file.
95173
95174         Module unistd-safer.
95175         * m4/unistd-safer.m4: New file.
95176
95177         Module fnmatch.
95178         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95179         declaration.
95180         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95181         (gl_FUNC_FNMATCH_POSIX): New macro.
95182         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95183         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95184         simply fnmatch.
95185
95186         Module exclude.
95187         * m4/exclude.m4: New file.
95188
95189         Module human.
95190         * m4/human.m4: New file.
95191
95192         Module acl.
95193         * m4/acl.m4: Nop.
95194
95195         Module backupfile.
95196         * m4/backupfile.m4: New file.
95197         * m4/d-ino.m4: Indentation.
95198
95199         Module fsusage.
95200         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95201         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95202         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95203
95204         Module dirfd.
95205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95206         requirements.
95207
95208         Module euidaccess.
95209         * m4/euidaccess.m4: New file.
95210
95211         Module file-type.
95212         * m4/file-type.m4: New file.
95213
95214         Module fileblocks.
95215         * m4/fileblocks.m4: New file.
95216
95217         Module filemode.
95218         * m4/filemode.m4: New file.
95219
95220         Module isdir.
95221         * m4/isdir.m4: New file.
95222
95223         Module lchown.
95224         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95225         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95226
95227         Module makepath.
95228         * m4/makepath.m4: New file.
95229
95230         Module modechange.
95231         * m4/modechange.m4: New file.
95232
95233         Module mountlist.
95234         * m4/mountlist.m4: New file.
95235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95236         Indentation.
95237
95238         Module path-concat.
95239         * m4/path-concat.m4: New file.
95240
95241         Module pathmax.
95242         * m4/pathmax.m4: New file.
95243
95244         Module same.
95245         * m4/same.m4: New file.
95246
95247         Module save-cwd.
95248         * m4/save-cwd.m4: New file.
95249
95250         Module savedir.
95251         * m4/savedir.m4: New file.
95252
95253         Module xgetcwd.
95254         * m4/xgetcwd.m4: New file.
95255         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95256
95257         Module xreadlink.
95258         * m4/xreadlink.m4: New file.
95259
95260         Module safe-read.
95261         * m4/safe-read.m4: New file.
95262
95263         Module safe-write.
95264         * m4/safe-write.m4: New file.
95265
95266         Module closeout.
95267         * m4/closeout.m4: New file.
95268
95269         Module stdio-safer.
95270         * m4/stdio-safer.m4: New file.
95271
95272         Module getpass.
95273         * m4/getpass.m4: New file.
95274
95275         Module getugroups.
95276         * m4/getugroups.m4: New file.
95277
95278         Module group-member.
95279         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95280         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95281
95282         Module idcache.
95283         * m4/idcache.m4: New file.
95284
95285         Module userspec.
95286         * m4/userspec.m4: New file.
95287
95288         Module gettime.
95289         * m4/clock_time.m4: New file.
95290         * m4/gettime.m4: New file.
95291
95292         Module settime.
95293         * m4/settime.m4: New file.
95294
95295         Module posixtm.
95296         * m4/posixtm.m4: New file.
95297
95298         Module gethostname.
95299         * m4/gethostname.m4: New file.
95300
95301         Module canon-host.
95302         * m4/canon-host.m4: New file.
95303
95304         Module gettext.
95305         * m4/codeset.m4: New file, from gettext-0.11.5.
95306         * m4/gettext.m4: New file, from gettext-0.11.5.
95307         * m4/glibc21.m4: New file, from gettext-0.11.5.
95308         * m4/iconv.m4: New file, from gettext-0.11.5.
95309         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95310         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95311         * m4/inttypes.m4: New file, from gettext-0.11.5.
95312         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95313         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95314         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95315         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95316         * m4/lib-link.m4: New file, from gettext-0.11.5.
95317         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95318         * m4/progtest.m4: New file, from gettext-0.11.5.
95319         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95320         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95321         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95322
95323         Module localcharset.
95324         * m4/localcharset.m4: New file.
95325
95326         Module hard-locale.
95327         * m4/hard-locale.m4: New file.
95328
95329         Module mbswidth.
95330         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95331         onceonly macros.
95332         * m4/mbrtowc.m4: Add comment.
95333
95334         Module memcasecmp.
95335         * m4/memcasecmp.m4: New file.
95336
95337         Module memcoll.
95338         * m4/memcoll.m4: New file.
95339
95340         Module unicodeio.
95341         * m4/unicodeio.m4: New file.
95342
95343         Module rpmatch.
95344         * m4/rpmatch.m4: New file.
95345
95346         Module yesno.
95347         * m4/yesno.m4: New file.
95348
95349         Module exitfail.
95350         * m4/exitfail.m4: New file.
95351
95352         Module c-stack.
95353         * m4/c-stack.m4 (gl_C_STACK): New macro.
95354         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95355
95356         Module error.
95357         * m4/error.m4 (gl_ERROR): New macro.
95358         (jm_PREREQ_ERROR): Use onceonly macros.
95359
95360         Module fatal.
95361         * m4/fatal.m4: New file.
95362
95363         Module getloadavg.
95364         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95365         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95366
95367         Module getpagesize.
95368         * m4/getpagesize.m4: New file.
95369
95370         Module getusershell.
95371         * m4/getusershell.m4: New file.
95372
95373         Module physmem.
95374         * m4/physmem.m4: New file.
95375
95376         Module posixver.
95377         * m4/posixver.m4: New file.
95378
95379         Module quotearg.
95380         * m4/quotearg.m4: New file.
95381
95382         Module quote.
95383         * m4/quote.m4: New file.
95384
95385         Module readutmp.
95386         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95387
95388         Module sig2str.
95389         * m4/sig2str.m4: New file.
95390
95391         Other.
95392         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95393         ulonglong.m4.
95394         * m4/intmax_t.m4: New file.
95395         * m4/d-type.m4: Indentation.
95396         * m4/jm-macros.m4: Update.
95397         * m4/prereq.m4 (jm_PREREQ): Update.
95398         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95399         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95400         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95401         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95402         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95403         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95404         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95405         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95406         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95407         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95408         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95409         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95410         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95411         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95412         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95413         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95414         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95415         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95416         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95417
95418 2002-12-24  Bruno Haible  <bruno@clisp.org>
95419
95420         * MODULES.txt: Update according to m4/ changes.
95421
95422         Module gettext.
95423         * config.rpath: New file, from gettext-0.11.5.
95424
95425         * modules/*: New module descriptions.
95426         * gnulib-tool: New file.
95427         * MODULES.html.sh: New file.
95428
95429 2002-12-21  Karl Berry  <karl@gnu.org>
95430
95431         * doc/fdl.texi: update to version 1.2.
95432
95433 2002-12-19  Karl Berry  <karl@gnu.org>
95434
95435         * config/config.guess: update from prep.
95436
95437 2002-12-18  Bruno Haible  <bruno@clisp.org>
95438
95439         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95440         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95441
95442 2002-12-17  Bruno Haible  <bruno@clisp.org>
95443
95444         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95445         stdlib.h, string.h.
95446
95447 2002-12-17  Bruno Haible  <bruno@clisp.org>
95448
95449         * lib/canon-host.c (strdup): Remove unused declaration.
95450
95451         * lib/fsusage.c: Include full_read.h.
95452         (get_fs_usage): Use full_read instead of safe_read.
95453
95454         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95455
95456 2002-12-12  Karl Berry  <karl@gnu.org>
95457
95458         * config/config.guess: update from prep.
95459
95460 2002-12-11  Bruno Haible  <bruno@clisp.org>
95461
95462         * m4/setenv.m4: New file, from gettext-0.11.5.
95463
95464 2002-12-11  Bruno Haible  <bruno@clisp.org>
95465
95466         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95467         not unsetenv().
95468         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95469         modifications:
95470
95471         2002-12-11  Bruno Haible  <bruno@clisp.org>
95472
95473                 * setenv.c (alloca): Fall back to malloc.
95474                 (freea): New macro.
95475                 (setenv): Use freea() to free memory allocated with alloca().
95476
95477         2002-11-13  Bruno Haible  <bruno@clisp.org>
95478
95479                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95480                 function declarations.
95481                 * unsetenv.c (unsetenv): Likewise.
95482
95483         2002-03-04  Bruno Haible  <bruno@clisp.org>
95484
95485                 Portability to AIX 4.3.3.
95486                 * unsetenv.c: New file, extracted from setenv.c.
95487                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95488
95489         2001-12-20  Bruno Haible  <bruno@clisp.org>
95490
95491                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95492                 use malloc instead. For SunOS 4.
95493
95494         2001-12-11  Bruno Haible  <bruno@clisp.org>
95495
95496                 * setenv.c: Declare alloca.
95497                 (compar_fn_t): New typedef.
95498                 (KNOWN_VALUE, STORE_VALUE): Use it.
95499
95500         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95501         setenv.h.
95502
95503 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95504
95505         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95506         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95507         Choose values that are less likely to collide with system fnmatch
95508         options.
95509         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95510         defined (e.g., a pure POSIX system).
95511         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95512         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95513
95514 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95515
95516         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95517         a pain in practice to deal with generated m4 files.  This change
95518         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95519
95520         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95521         and jm-glibc-io.m4, as they are no longer a special case.
95522         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95523         kludge and the auto-generation stuff.  Check only whether the
95524         functions are declared, not whether they exist, since older hosts
95525         that don't declare the functions can't use the optimization anyway.
95526
95527 2002-12-06  Jim Meyering  <jim@meyering.net>
95528
95529         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95530
95531         Merge in changes from libc's misc/error.c, in preparation
95532         for the merge of gnulib's changes back into libc.
95533
95534         * lib/error.c (_): Define only if not already defined.
95535         Move definition to follow all #include directives.
95536         Include unlocked-io.h only if !_LIBC.
95537         [_LIBC]: Include <libio/libioP.h>.
95538         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95539         (fflush): Tweak definition to use INTUSE.
95540         (putc): Define.
95541
95542 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95543
95544         * lib/alloca.c [defined emacs]: Include "lisp.h".
95545         (xalloc_die) [defined emacs]: New macro.
95546         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95547         [! defined emacs]: Include <xalloc.h>.
95548         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95549         (pointer): Typedef to POINTER_TYPE *.
95550         (malloc): Remove decl; we now always use xmalloc.
95551         (alloca): Use old-style definition, since Emacs needs this.
95552         Check for arithmetic overflow when computing combined size.
95553
95554 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95555
95556         Do not generate unlocked-io.h automatically, since it's easier to
95557         maintain it by hand.
95558
95559         * lib/unlocked-io.h: New file, from GNU diffutils,
95560         but with proper copyright notice and attribution.
95561         * lib/gen-uio: Remove.
95562         * lib/Makefile.am: Add copyright notice.
95563         (libfetish_a_SOURCES): Add unlocked-io.h.
95564         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95565         (DISTCLEANFILES, io_functions): Remove macros.
95566         (EXTRA_DIST): Remove gen_uio.
95567         (unlocked-io.h): Remove rule.
95568
95569 2002-12-04  Jim Meyering  <jim@meyering.net>
95570
95571         Reflect the fact that stat.c and lstat.c are no longer generated.
95572         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95573         (DISTCLEANFILES): Likewise.
95574         (EXTRA_DIST): Likewise.
95575         (all_local): Don't depend on stat.c or lstat.c.
95576         (stat.c, lstat.c): Remove rules.
95577         (EXTRA_DIST): Remove xstat.in.
95578
95579         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95580         * lib/stat.c: New file.  Contents mostly from xstat.in.
95581         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95582         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95583
95584         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95585         too.
95586         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95587
95588 2002-12-03  Jim Meyering  <jim@meyering.net>
95589
95590         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95591         but not semantics, to minimize the differences between these two files.
95592         (safe_read): Change comment to mention SAFE_READ_ERROR.
95593
95594         * lib/safe-read.c (IS_EINTR): Define.
95595         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95596
95597 2002-12-02  Jim Meyering  <jim@meyering.net>
95598
95599         * lib/safe-read.c (EINTR): Define.
95600         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95601         (INT_MAX): Provide fallback.
95602         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95603
95604         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95605
95606 2002-12-02  Bruno Haible  <bruno@clisp.org>
95607
95608         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95609         Define, taken from safe-read.c.
95610         (INT_MAX): Provide fallback.
95611         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95612         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95613
95614         * lib/safe-read.c (EINTR): Remove definition.
95615         (safe_read): Don't use EINTR if it is absent.
95616
95617 2002-12-01  Jim Meyering  <jim@meyering.net>
95618
95619         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95620         zero.
95621         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95622
95623 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95624
95625         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95626         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95627         with `if (! (value < limit)) abort ();', for readability.
95628
95629 2002-11-26  Karl Berry  <karl@gnu.org>
95630
95631         * lib/strdup.c: copy from libc again, with jim's ok.
95632         * lib/.cppi-disable: re-add strdup.c
95633
95634 2002-11-25  Karl Berry  <karl@gnu.org>
95635
95636         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95637         instead of "strtol.c".
95638
95639 2002-11-25  Karl Berry  <karl@gnu.org>
95640
95641         * config/install-sh: update from automake for variable quoting, $0 in
95642         error msgs, etc.
95643
95644         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95645         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95646         entry.
95647
95648 2002-11-25  Jim Meyering  <jim@meyering.net>
95649
95650         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95651
95652 2002-11-24  Karl Berry  <karl@gnu.org>
95653
95654         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95655         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95656
95657 2002-11-24  Jim Meyering  <jim@meyering.net>
95658
95659         Update from coreutils:
95660
95661         * lib/mktime.c: Merge in changes from libc.
95662
95663         Avoid a link-time failure on some Linux systems.
95664         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95665         (otherwise).
95666         (__mon_yday): Declare with the STATIC attribute.
95667         (__mktime_internal): Likewise.
95668         Based on a report from Greg Schafer.
95669
95670 2002-11-23  Jim Meyering  <jim@meyering.net>
95671
95672         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95673         Use `unsigned', not `int', as type of index.
95674
95675         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95676
95677         * lib/fsusage.c: Remove unneeded parentheses around operands of
95678         `defined'.
95679
95680 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95681
95682         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95683         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95684         so that we can be included first.
95685         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95686         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95687         No need to include stddef.h or sys/types.h any more.
95688         Surround local include files with "", not "<>".
95689         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95690         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95691         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95692         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95693         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95694         (ISPRINT): Remove; no longer needed now that we assume C89.
95695
95696         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95697         Preserve errno.
95698
95699         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95700         quotearg_char): Use SIZE_MAX rather than
95701         (size_t) -1 when we are talking about "infinity".
95702
95703         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95704
95705 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95706
95707         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95708         hint that one should use `if (! x) abort ();' rather than `assert
95709         (x);', and anyway it's one less thing to worry about configuring.
95710         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95711         hash_rehash, hash_insert): Use abort rather than assert.
95712
95713 2002-11-22  Bruno Haible  <bruno@clisp.org>
95714
95715         * lib/safe-read.h: Assume C89. Add comments.
95716         (safe_read): Change return type to size_t.
95717         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95718         byte counts > SSIZE_MAX correctly.
95719         * lib/safe-write.h: New file.
95720         * lib/safe-write.c: New file.
95721         * lib/full-read.h: New file.
95722         * lib/full-read.c: New file.
95723         * lib/full-write.h: Assume C89. Add comments.
95724         * lib/full-write.c: Include safe-write.h.
95725         (full_write): Rewritten to use safe_write.
95726         Suggested by Jim Meyering and Paul Eggert.
95727
95728 2002-11-21  Jim Meyering  <jim@meyering.net>
95729
95730         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95731
95732         Merge in changes from the coreutils.
95733
95734         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95735         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95736         <stdint.h>.
95737         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95738         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95739         int.  Work more efficiently if X is the same width as uintmax_t.
95740         Do not compare X to -1, to avoid bogus compiler warning.
95741         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95742         Don't assume that f_frsize and f_bsize are the same type.
95743
95744         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95745         warning on FreeBSD.
95746
95747         * lib/makepath.c (make_path): Restore umask *before* creating the final
95748         component.
95749         (make_path): Minor reformatting.
95750
95751         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95752         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95753         HAVE_MALLOC/HAVE_REALLOC.
95754
95755         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95756         dummy ones.  At least on GNU/Linux systems, `auto' means something
95757         else.
95758         From Michael Stone.
95759
95760 2002-11-21  Bruno Haible  <bruno@clisp.org>
95761
95762         Remove case insensitive option matching.
95763         * lib/argmatch.h (argcasematch): Remove declaration.
95764         (ARGCASEMATCH): Remove macro.
95765         (__xargmatch_internal): Remove case_sensitive argument.
95766         (XARGMATCH): Update.
95767         (XARGCASEMATCH): Remove macro.
95768         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95769         case_sensitive argument.
95770         (argcasematch): Remove function.
95771         (__xargmatch_internal): Remove case_sensitive argument.
95772         (main): Use XARGMATCH instead of XARGCASEMATCH.
95773
95774         * lib/xmalloc.c: Change compile-time error message. Add comment about
95775         required autoconf version.
95776
95777 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95778
95779         Merge argmatch cleanups from Bison.  Assume C89.
95780
95781         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95782         Include stdlib.h, for EXIT_FAILURE.
95783         Always include <string.h>, since we assume C89.
95784         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95785         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95786         Include <stddef.h> instead, since it's all we need for size_t.
95787         (PARAMS): Remove.  All uses removed.
95788         (ARRAY_CARDINALITY): Do not bother to #undef.
95789         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95790         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95791         Remove unnecessary parentheses.
95792         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95793         Insert necessary parentheses.
95794         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95795         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95796
95797 2002-11-19  Bruno Haible  <bruno@clisp.org>
95798
95799         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95800         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95801
95802         * lib/mbswidth.h (PARAMS): Remove macro.
95803         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95804         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95805
95806         * lib/gcd.h (PARAMS): Remove macro.
95807         (gcd): Use ANSI C function declarations.
95808         * lib/gcd.c (gcd): Likewise.
95809
95810 2002-11-15  Bruno Haible  <bruno@clisp.org>
95811
95812         * lib/strcspn.c: Include <stddef.h>.
95813         (strcspn): Use ANSI C function declaration. Change return type to
95814         size_t. Use NULL.
95815         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95816         (strpbrk): Use NULL.
95817         * lib/strpbrk.h (PARAMS): Remove macro.
95818         (strpbrk): Use ANSI C function declaration.
95819         * lib/strstr.c: Don't include <sys/types.h>.
95820         * lib/strstr.h (PARAMS): Remove macro.
95821         (strstr): Use ANSI C function declarations.
95822
95823 2002-11-14  Karl Berry  <karl@gnu.org>
95824
95825         * config/mkinstalldirs: `do' on separate line, instead of
95826         `for var; do'.
95827
95828 2002-11-06  Bruno Haible  <bruno@clisp.org>
95829
95830         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95831         * lib/gcd.c (gcd): Likewise.
95832
95833 2002-11-05  Bruno Haible  <bruno@clisp.org>
95834
95835         * lib/gcd.h: New file, from gettext-0.11.5.
95836         * lib/gcd.c: New file, from gettext-0.11.5.
95837
95838 2002-11-05  Bruno Haible  <bruno@clisp.org>
95839
95840         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95841         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95842         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95843         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95844
95845         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95846         <libintl.h>.
95847         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95848         <libintl.h>.
95849
95850         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95851         * lib/human.c: Include gettext.h instead of <libintl.h>.
95852         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95853         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95854         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95855         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95856         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95857         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95858         (textdomain): Remove definition.
95859         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95860
95861         * lib/long-options.c: Remove include of <libintl.h> and definition of
95862         _.
95863         * lib/same.c: Remove include of <libintl.h> and definition of _.
95864
95865 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95866
95867         * lib/config.charset: A few additions for Solaris.
95868
95869 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95870
95871         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95872         * lib/localcharset.c (locale_charset): Declare as extern "C".
95873
95874 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95875
95876         * lib/config.charset: msdos in uk_UA uses CP1125.
95877
95878 2002-11-04  Bruno Haible  <bruno@clisp.org>
95879
95880         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95881         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95882         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95883         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95884         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95885
95886 2002-11-04  Bruno Haible  <bruno@clisp.org>
95887
95888         * lib/localcharset.c (locale_charset): Don't return an empty string.
95889
95890 2002-11-04  Bruno Haible  <bruno@clisp.org>
95891
95892         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95893         aliases.
95894
95895 2002-11-04  Bruno Haible  <bruno@clisp.org>
95896
95897         * lib/config.charset: Update for newest glibc. Add canonical names
95898         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95899
95900 2002-11-04  Bruno Haible  <bruno@clisp.org>
95901
95902         * lib/config.charset: Add support for NetBSD.
95903
95904 2002-11-04  Bruno Haible  <bruno@clisp.org>
95905
95906         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95907
95908 2002-11-01  Bruno Haible  <bruno@clisp.org>
95909
95910         * configure.in: Add AC_CONFIG_AUX_DIR call.
95911         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95912         test/Makefile.
95913         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95914
95915 2002-09-28  Karl Berry  <karl@gnu.org>
95916
95917         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95918         installed automake until the next release, since changes have been
95919         made.
95920
95921 2002-09-25  Karl Berry  <karl@gnu.org>
95922
95923         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95924         * lib/getopt*: copy from libc/posix.
95925         * lib/gettext.h: copy from gettext.
95926         * lib/.cppi-disable: add strdup.c, gettext.h.
95927
95928 2002-09-25  Karl Berry  <karl@gnu.org>
95929
95930         * config/srclist.txt: enable gettext.h check.
95931         * config/config.{guess,sub}: update from prep.
95932         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95933                 from automake 1.6.3.
95934         See srclist*.
95935
95936 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95937
95938         * regex.c (PATFETCH): Remove the translating fetch.
95939         (PATFETCH_RAW): Rename to PATFETCH.
95940         (set_image_of_range): New fun.
95941         (SET_RANGE_TABLE_WORK_AREA): Use it.
95942         (regex_compile): Don't translate the pattern chars so eagerly.
95943         Only do it when inserting an `exactn' bytecode or when handling
95944         a char-range.
95945         (mutually_exclusive_p): Avoid empty statement.
95946
95947 2002-07-06  Jim Meyering  <meyering@lucent.com>
95948
95949         * m4/README: Don't mention Makefile.am.in.
95950         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95951
95952 2002-07-01  Jim Meyering  <meyering@lucent.com>
95953
95954         * lib/c-stack.c: Include sys/time.h.
95955         From Volker Borchert.
95956
95957 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95958
95959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95960
95961 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95962
95963         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95964         New macro.  Use it uniformly instead of
95965         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95966         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95967         reported by Vin Shelton.
95968
95969 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95970
95971         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95972         Do not assume SA_SIGINFO behavior.
95973         Bug reported by Jim Meyering on NetBSD 1.5.2.
95974
95975 2002-06-22  Jim Meyering  <meyering@lucent.com>
95976
95977         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95979
95980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95981         now that configure.ac uses AC_GNU_SOURCE.
95982         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95983         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95984
95985         Update to latest tools.  Suggestions from Paul Eggert.
95986         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95987         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95988         * m4/fnmatch.m4: Likewise.
95989         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95990         to AC_HEADER_STDBOOL
95991
95992 2002-06-22  Jim Meyering  <meyering@lucent.com>
95993
95994         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95995         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95996
95997 2002-06-22  Jim Meyering  <meyering@lucent.com>
95998
95999         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96000
96001         * lib/exitfail.c, exitfail.h: Likewise.
96002         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96003
96004         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96005         of fnmatch.h.
96006         (EXTRA_DIST): Add fnmatch_loop.c.
96007         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96008
96009         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96010         * lib/fnmatch.c: Update from diffutils-2.8.2.
96011         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96012         * lib/fnmatch.h: Remove file.
96013
96014 2002-06-21  Jim Meyering  <meyering@lucent.com>
96015
96016         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96017         * m4/mbrtowc.m4: Likewise.
96018
96019         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96020         * m4/mbswidth.m4: Reflect name change:
96021         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96023
96024         * m4/lib-link.m4: Update from gettext-0.11.2.
96025         * m4/gettext.m4: Likewise.
96026
96027         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96028         From Alfred M. Szmidt.
96029
96030 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96031
96032         * lib/file-type.h: Report an error if neither S_ISREG nor
96033         S_IFREG is defined, instead of using a test specific to glibc
96034         2.2.  This should be safe, since POSIX requires S_ISREG and
96035         Unix Version 7 had S_IFREG.  We don't need to check for
96036         <sys/types.h> since we don't use any symbols that it defines.
96037
96038 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96039
96040         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96041         $@-t, so that each temporary file name is unique and valid in the first
96042         8 characters, for operation under DOS.
96043
96044 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96045
96046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96047
96048 2002-06-15  Jim Meyering  <meyering@lucent.com>
96049
96050         Work even with DJGPP 2.03, which lacks support for symlinks.
96051         From Richard Dawe.
96052         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96053         is defined.
96054         * lib/lchown.c (S_ISLNK): Likewise.
96055
96056 2002-06-15  Jim Meyering  <meyering@lucent.com>
96057
96058         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96059         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96060         have been included before this file.
96061
96062 2002-06-14  Jim Meyering  <meyering@lucent.com>
96063
96064         * lib/file-type.h: Use the version from diffutils-2.8.2.
96065         * lib/file-type.c: Likewise.
96066
96067 2002-06-07  Jim Meyering  <meyering@lucent.com>
96068
96069         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96070         They're needed at least for NetBSD 1.5.2.
96071         ($statxfs_includes): Include those same headers.
96072         ($statxfs_includes): Include sys/vfs.h if available.
96073         ($statxfs_includes): Likewise for sys/statvfs.h.
96074         Check for the following members in both structs statfs and statvfs:
96075         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96076
96077 2002-06-01  Jim Meyering  <meyering@lucent.com>
96078
96079         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96080         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96081
96082 2002-05-28  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96085         Reported by Volker Borchert.
96086
96087 2002-05-27  Jim Meyering  <meyering@lucent.com>
96088
96089         Fix a problem seen only on nonconforming systems whereby ls.c's
96090         use of localtime, and then of gettimeofday would cause trouble:
96091         the localtime call used to initialize rpl_gettimeofday's save
96092         mechanism would clobber ls's current local time information so
96093         that in any long listing the first file would always be listed
96094         with date 1970-01-01.  Analysis by Volker Borchert.
96095
96096         * lib/gettimeofday.c (localtime): Undefine.
96097         (rpl_localtime): New function.
96098
96099 2002-05-27  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96102         localtime.
96103
96104         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96105         use the replacement function; it wouldn't resolve at link time.
96106         Reported by Volker Borchert.
96107
96108 2002-05-22  Jim Meyering  <meyering@lucent.com>
96109
96110         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96111         file-type.h.
96112         * lib/file-type.h: New file.
96113         * lib/file-type.c (file_type): New file/function.  Extracted from
96114         diffutils.
96115
96116 2002-04-30  Jim Meyering  <meyering@lucent.com>
96117
96118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96119
96120 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96121
96122         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96123
96124 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96125
96126         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96127         Do not check for alloca.h (no longer used) or stdbool.h (was never
96128         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96129
96130 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96131
96132         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96133
96134 2002-04-29  Jim Meyering  <meyering@lucent.com>
96135
96136         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96137         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96138         Use AC_FUNC_STRNLEN here instead.
96139
96140         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96141         With autoconf-2.53a, it's part of AC_PROG_CC.
96142
96143 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96144
96145         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96147
96148 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96149
96150         * lib/sig2str.h, lib/sig2str.c: New files.
96151         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96152
96153 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96154
96155         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96156         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96157         of 127, since 64 is the largest conceivable number for ancient
96158         nonstandard hosts.
96159         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96160
96161 2002-04-28  Jim Meyering  <meyering@lucent.com>
96162
96163         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96164
96165 2002-04-24  Jim Meyering  <meyering@lucent.com>
96166
96167         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96168         (jm_PREREQ): Use it.
96169
96170         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96171         mach/mach.h fcntl.h.
96172         Check for this function: setlocale.
96173
96174 2002-04-24  Jim Meyering  <meyering@lucent.com>
96175
96176         * lib/gettext.h: New file, from Gettext.
96177         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96178         (libfetish_a_SOURCES): Add gettext.h.
96179
96180 2002-04-16  Jim Meyering  <meyering@lucent.com>
96181
96182         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96183         ut_pid, ut_id, ut_exit.
96184
96185 2002-04-16  Jim Meyering  <meyering@lucent.com>
96186
96187         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96188         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96189         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96190
96191 2002-04-12  Jim Meyering  <meyering@lucent.com>
96192
96193         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96194         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96195         existence of the getmntinfo function.  Needed for Darwin 5.3.
96196
96197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96198         This is necessary at least on Darwin 5.3.
96199
96200         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96201         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96202         strnlen.o in the library, and that makes some versions of ranlib
96203         object.
96204
96205 2002-04-12  Jim Meyering  <meyering@lucent.com>
96206
96207         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96208
96209 2002-04-09  Jim Meyering  <meyering@lucent.com>
96210
96211         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96212         to be more precise.  Rather than saying we're checking whether the
96213         function `works', say what we're testing.
96214         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96215         Reported by Bruno Haible.
96216
96217 2002-03-10  Jim Meyering  <meyering@lucent.com>
96218
96219         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96220         Suggestion from Santiago Vila.
96221
96222 2002-03-08  Jim Meyering  <meyering@lucent.com>
96223
96224         * lib/rename.c: Mention that this wrapper is needed also on
96225         mips-dec-ultrix4.4 systems.
96226
96227 2002-03-02  Jim Meyering  <meyering@lucent.com>
96228
96229         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96230         not HAVE_CLOCK_SETTIME.
96231
96232 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96233
96234         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96235         Check for clock_settime.
96236
96237 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96238
96239         * lib/nanosleep.h: Rename to....
96240         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96241
96242         * lib/gettime.c: New file.
96243         * lib/settime.c: New file.
96244         * lib/stime.c: Remove.
96245
96246         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96247         timespec.h.  Remove nanosleep.h.
96248
96249 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96250
96251         * m4/acl.m4: New file.
96252         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96253         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96254
96255 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96256
96257         * lib/acl.c, lib/acl.h: New files.
96258         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96259
96260 2002-02-24  Jim Meyering  <meyering@lucent.com>
96261
96262         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96263         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96264         cause trouble.  Reported by Nelson Beebe.
96265
96266 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96267
96268         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96269         compilers that don't know that xalloc_die never returns.
96270
96271 2002-02-20  Jim Meyering  <meyering@lucent.com>
96272
96273         * lib/getdate.c: Regenerate using bison-1.33.
96274
96275 2002-02-17  Jim Meyering  <meyering@lucent.com>
96276
96277         * config/config.guess (main): Don't use `head -1'; it's no longer
96278         portable. Use `sed 1q' instead.
96279
96280 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96281
96282         * m4/codeset.m4: Upgrade to gettext-0.11.
96283         * m4/gettext.m4: Upgrade to gettext-0.11.
96284         * m4/glibc21.m4: Upgrade to gettext-0.11.
96285         * m4/iconv.m4: Upgrade to gettext-0.11.
96286         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96287         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96288         * m4/lib-ld.m4: New file, from gettext-0.11.
96289         * m4/lib-link.m4: New file, from gettext-0.11.
96290         * m4/lib-prefix.m4: New file, from gettext-0.11.
96291         * m4/progtest.m4: Upgrade to gettext-0.11.
96292
96293 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96294
96295         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96296         (jm_PREREQ): Use it.
96297
96298 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96299
96300         * lib/posixver.c, lib/posixver.h: New files.
96301         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96302
96303 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96304             Bruno Haible  <bruno@clisp.org>
96305
96306         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96307         (fwrite_success_callback): New declaration.
96308         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96309         print_unicode_char. Call failure callback instead of error.
96310         (fwrite_success_callback): New function.
96311         (exit_failure_callback): New function.
96312         (fallback_failure_callback): New function.
96313         (print_unicode_char): Call unicode_to_mb.
96314
96315 2002-01-26  Jim Meyering  <meyering@lucent.com>
96316
96317         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96318         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96319
96320 2002-01-26  Jim Meyering  <meyering@lucent.com>
96321
96322         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96323
96324 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96325
96326         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96327
96328 2002-01-22  Jim Meyering  <meyering@lucent.com>
96329
96330         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96331         Otherwise, some versions of automake would omit the rule that makes
96332         Makefile from Makefile.in.
96333
96334 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96335
96336         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96337         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96338         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96339         (memcoll): Set errno to zero if there is no error.
96340
96341         * lib/quotearg.c (quotearg_buffer_restyled):
96342         Fix bug with quoting buffers containing NUL when backslashing escapes.
96343         This bug was exposed by the other changes in this patch.
96344         (quotearg_n_options): New arg ARGSIZE.
96345         All callers changed.
96346         (quoting_options_from_style): New function.
96347         (quotearg_n_style): Use it.
96348         (quotearg_n_style_mem): New function.
96349
96350         * lib/quotearg.h (quotearg_n_style_mem): New function.
96351
96352 2002-01-19  Jim Meyering  <meyering@lucent.com>
96353
96354         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96355         Remove useless quotes: DF_PROG="df".
96356         * m4/strnlen.m4: New file.
96357
96358 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96359
96360         * lib/backupfile.c (ISDIGIT): Comment fix.
96361         * lib/getdate.y (ISDIGIT): Likewise.
96362         * lib/posixtm.c (ISDIGIT, year): Likewise.
96363         * lib/strverscmp.c (ISDIGIT): Likewise.
96364         * lib/userspec.c (ISDIGIT): Likewise.
96365
96366 2002-01-16  Jim Meyering  <meyering@lucent.com>
96367
96368         * lib/getdate.y: Add three semicolons, each just before a closing
96369         brace. Bison (as of version 1.31) no longer papers over that mistake.
96370
96371 2002-01-05  Jim Meyering  <meyering@lucent.com>
96372
96373         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96374
96375 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96376
96377         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96378         not silently exit merely because the output buffer happens to
96379         have nothing pending.
96380
96381 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96382
96383         See the big note in ../ChangeLog.
96384         * lib/human.c (suffixes): Prefer K to k for 1024.
96385         (generate_suffix_backwards): New function.
96386         (human_readable_inexact): Use it.
96387         * lib/xstrtol.c (__xstrtol): If there is no number but there
96388         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96389         Accept 'K' as well as 'k'.
96390
96391 2001-12-15  Jim Meyering  <meyering@lucent.com>
96392
96393         * lib/regex.h (__restrict_arr): Update from libc.
96394
96395         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96396         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96397         (STREQ): Define.
96398
96399 2001-12-14  Jim Meyering  <meyering@lucent.com>
96400
96401         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96402         Suggestion from Bruno Haible.
96403
96404 2001-12-10  Jim Meyering  <meyering@lucent.com>
96405
96406         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96407         xrealloc, Instead, include "xalloc.h".
96408         (initbuffer): Don't cast xmalloc return value to char*.
96409         (readline): Reword comment.
96410         Don't cast xrealloc return value to char*
96411         Return NULL, not 0.
96412
96413 2001-12-09  Jim Meyering  <meyering@lucent.com>
96414
96415         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96416         about `signed and unsigned type in conditional expression'.
96417         * lib/posixtm.c (posix_time_parse): Likewise.
96418
96419         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96420
96421         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96422         to avoid a pedantic warning.
96423
96424         * lib/getstr.c: Don't include assert.h.
96425         (getstr): Remove warning-evoking assertions.
96426         Return -1 if offset parameter is out of bounds.
96427         Change the type of a local from int to size_t.
96428
96429         * lib/strftime.c (my_strftime_localtime_r): Include this function
96430         definition in the `#if ! HAVE_TM_GMTOFF' block.
96431
96432         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96433         Include xalloc.h instead.
96434
96435 2001-12-02  Jim Meyering  <meyering@lucent.com>
96436
96437         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96438         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96439         included.
96440
96441         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96442         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96443
96444 2001-11-30  Akim Demaille  <akim@epita.fr>
96445
96446         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96447         before being defined.
96448
96449 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96450
96451         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96452         First arg is int, not unsigned.
96453         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96454         (SIZE_MAX, UINT_MAX): New macros.
96455         (quotearg_n_options): Abort if N is negative.
96456         Avoid overflow check on hosts where size_t is 64 bits and int
96457         is 32 bits, as overflow is impossible there.
96458         Fix off-by-one typo that caused unnecessary reallocation.
96459
96460 2001-11-27  Jim Meyering  <meyering@lucent.com>
96461
96462         * lib/tempname.c: Merge with version from libc.
96463         * lib/regex.c: Likewise.
96464
96465         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96466         systems for which STDC_HEADERS is 0, it was not included, resulting in
96467         a warning about an integer-to-pointer conversion problem with getenv.
96468         Reported by Volker Borchert.
96469
96470 2001-11-26  Jim Meyering  <meyering@lucent.com>
96471
96472         * lib/gtod.h: Remove file.
96473         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96474         * lib/gettimeofday.c: Don't include gtod.h.
96475         (GTOD_init): Remove function.
96476         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96477         Suggestion from Volker Borchert.
96478
96479 2001-11-23  Jim Meyering  <meyering@lucent.com>
96480
96481         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96482         it.
96483         * lib/hash.c (struct hash_table): Define it here instead.
96484
96485 2001-11-22  Jim Meyering  <meyering@lucent.com>
96486
96487         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96488
96489 2001-11-20  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96492         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96493
96494 2001-11-19  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96497         directory.  Use "conftestXXXXXX" as the template.
96498         Suggestion from Paul Eggert.
96499
96500         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96501         immediately, so the test doesn't mistakenly hit the max-open-files
96502         limit.
96503
96504 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96505
96506         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96507         (TEMPORARIES): New macro.
96508         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96509         removes an artificial limitation (e.g. HP-UX 10.20, where
96510         TMP_MAX is 17576).
96511
96512 2001-11-18  Jim Meyering  <meyering@lucent.com>
96513
96514         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96515
96516 2001-11-18  Jim Meyering  <meyering@lucent.com>
96517
96518         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96519         on SunOS 4.
96520
96521         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96522         files will be created before anything else.
96523
96524 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96525
96526         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96527         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96528
96529 2001-11-17  Jim Meyering  <meyering@lucent.com>
96530
96531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96532         Prompted by a report from Bob Proulx.
96533
96534         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96535         Instead, require UTILS_FUNC_MKSTEMP.
96536
96537 2001-11-17  Jim Meyering  <meyering@lucent.com>
96538
96539         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96540         Now, that's done as part of AC_FUNC_STRTOD.
96541
96542 2001-11-17  Jim Meyering  <meyering@lucent.com>
96543
96544         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96545         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96546         rather than group writable.  Patch by Juan F. Codagnone.
96547
96548         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96549         xrealloc, Instead, include "xalloc.h".
96550
96551         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96552         Remove explicit declarations of xmalloc, xrealloc,
96553         and xstrdup.  Instead, include "xalloc.h".
96554
96555         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96556         unlocked-io.h.
96557         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96558         Likewise.
96559         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96560
96561         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96562         Reported by Padraig Brady.
96563
96564         * lib/mkstemp.c: #undef mkstemp.
96565         Include config.h.
96566         (rpl_mkstemp): Rename from mkstemp.
96567         Protoize.
96568
96569 2001-11-16  Jim Meyering  <meyering@lucent.com>
96570
96571         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96572         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96573         determine the amount of total physical memory, use pstat_getstatic.
96574         HPUX-11 doesn't define _SC_PHYS_PAGES.
96575         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96576         If sysconf couldn't be used to determine the amount of available
96577         physical memory, use both pstat_getstatic and pstat_getdynamic.
96578         Based on a patch from Bob Proulx.
96579
96580 2001-11-10  Jim Meyering  <meyering@lucent.com>
96581
96582         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96583         (jm_PREREQ): Use it.
96584
96585 2001-11-09  Jim Meyering  <meyering@lucent.com>
96586
96587         * m4/jm-macros.m4: Require autoconf-2.52f.
96588         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96589         Use these AC_-prefixed names, not the AM_-prefixed ones.
96590
96591         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96592
96593 2001-11-05  Jim Meyering  <meyering@lucent.com>
96594
96595         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96596
96597 2001-11-04  Jim Meyering  <meyering@lucent.com>
96598
96599         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96600         $DEFS.
96601
96602 2001-11-03  Jim Meyering  <meyering@lucent.com>
96603
96604         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96605         of AC_DEFUN.
96606
96607         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96608         know the name of the variable in the macro definition.
96609
96610 2001-11-03  Jim Meyering  <meyering@lucent.com>
96611
96612         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96613         in argmatch_to_argument call.
96614
96615         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96616         argument.
96617
96618         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96619         e.g., a fault due to an attempt to free a NULL pointer.
96620
96621 2001-11-01  Jim Meyering  <meyering@lucent.com>
96622
96623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96624         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96625
96626 2001-11-01  Jim Meyering  <meyering@lucent.com>
96627
96628         * lib/dirfd.c, lib/dirfd.h: New files.
96629         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96630
96631         * lib/hash.c (hash_print) [TESTING]: Clean up.
96632
96633 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96634
96635         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96636         to avoid a warning if -Wall.
96637
96638 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96639
96640         * README: New file
96641         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96642         (per RMS's instructions, this is now the canonical source)
96643         * lgpl/, gpl/: New directories.
96644
96645 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96646
96647         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96648
96649 2001-10-21  Jim Meyering  <meyering@lucent.com>
96650
96651         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96652         this code would end up calling gettext even in packages built
96653         with --disable-nls.
96654         * lib/getopt.c (_): Likewise.
96655         * lib/regex.c (_): Likewise.
96656
96657 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96658
96659         * m4/error.m4 (jm_PREREQ_ERROR):
96660         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96661         AC_FUNC_STRERROR_R does that.
96662         Check for strerror declaration.
96663
96664         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96665         are supposed to have them these days.
96666         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96667         Merge changes from latest Autoconf CVS.
96668         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96669         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96670         POSIX decided to standardize on the int flavor of strerror_r.
96671
96672 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96673
96674         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96675         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96676         Use strerror_r that is only a macro, even if it is not a function.
96677         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96678         (private_strerror): Use prototypes, not old-style function definition.
96679         (print_errno_message): New function.
96680         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96681         char*-flavored one.
96682         (error_tail, error, error_at_line): Use it.
96683
96684 2001-10-11  Jim Meyering  <meyering@lucent.com>
96685
96686         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96687         and quote_n (1, ... to avoid clobbering a buffer.
96688
96689 2001-10-05  Jim Meyering  <meyering@lucent.com>
96690
96691         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96692         hash-pjw.h.
96693         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96694         * lib/hash-pjw.h: New file.
96695
96696 2001-09-30  Jim Meyering  <meyering@lucent.com>
96697
96698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96699         `struct fsstat' has the `f_fstypename' member.
96700         Use that to define FS_TYPE, which is now used to make
96701         the getfsstat link test tighter.
96702
96703 2001-09-30  Jim Meyering  <meyering@lucent.com>
96704
96705         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96706         Include <sys/ucred.h>, for Apple Darwin.
96707         Include sys/mount.h and sys/fs_types.h only if available.
96708         (FS_TYPE): Define.
96709         (read_filesystem_list): Use FS_TYPE.
96710
96711 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96712
96713         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96714         a boolean context.
96715
96716 2001-09-29  Jim Meyering  <meyering@lucent.com>
96717
96718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96719         [one-argument getmntent function]): Include stdio.h before mntent.h.
96720         SunOS 4.1.x needs it for the declaration of `FILE'.
96721         Patch by Volker Borchert.
96722
96723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96724         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96725         sys/fs_types.h, and make the link-test for getfsstat guard #include
96726         directives with appropriate #if HAVE_*_H tests so that we can
96727         detect getfsstat on Apple Darwin1.3.7 systems.
96728         Reported by Nelson Beebe.
96729         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96730
96731 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96732
96733         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96734         #defines strtoimax.  Also treat the other strto* functions
96735         like strtoimax.
96736
96737         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96738         Check for strtoul and strtoumax,
96739         as those declarations are made even in the signed case.
96740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96741         Likewise, for strtol and strtoimax.
96742
96743 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96744
96745         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96746         #defines strtoimax.  Also treat the other strto* functions
96747         like strtoimax.
96748
96749         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96750         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96751         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96752
96753 2001-09-26  Jim Meyering  <meyering@lucent.com>
96754
96755         Most macros in unlocked-io.h had the wrong number of arguments.
96756         * lib/gen-uio: New script.
96757         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96758         * lib/unlocked-io.hin: Remove file.
96759         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96760         rather than trying to embed it here.
96761         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96762         Reported by Padraig Brady.
96763
96764 2001-09-25  Volker Borchert  <bt@teknon.de>
96765
96766         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96767         `result'.
96768
96769 2001-09-24  Jim Meyering  <meyering@lucent.com>
96770
96771         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96772
96773 2001-09-23  Jim Meyering  <meyering@lucent.com>
96774
96775         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96776         instead of the mere test for existence of mntent.h.  The latter
96777         would get a false-positive on AIX 3.4 systems.
96778         In the outer getmntent if-block, don't die if neither of the getmntent
96779         tests succeeds.  Instead, just fall through and continue with the
96780         remaining tests.
96781
96782 2001-09-23  Jim Meyering  <meyering@lucent.com>
96783
96784         * lib/mountlist.c: Remove useless parentheses in #if directives.
96785         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96786         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96787
96788 2001-09-22  Jim Meyering  <meyering@lucent.com>
96789
96790         * m4/gettext.m4: New file.  From gettext.
96791         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96792         * m4/progtest.m4: Likewise
96793         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96794         * m4/glibc21.m4: Likewise.
96795
96796         * m4/libintl.m4: Remove.  No longer used.
96797
96798 2001-09-22  Jim Meyering  <meyering@lucent.com>
96799
96800         * lib/localcharset.c: Update from latest gettext.
96801         * lib/config.charset: Likewise.
96802
96803 2001-09-20  Jim Meyering  <meyering@lucent.com>
96804
96805         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96806         strtoimax.
96807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96808         strtoumax.
96809
96810 2001-09-20  Jim Meyering  <meyering@lucent.com>
96811
96812         * lib/xstrtol.c (strtoimax): Guard declaration with
96813         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96814         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96815         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96816         (strtoumax): Likewise, for completeness (it wasn't necessary).
96817
96818 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96819
96820         * lib/strtoimax.c (HAVE_LONG_LONG):
96821         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96822         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96823         to work around bug in IBM C compiler.
96824
96825 2001-09-17  Jim Meyering  <meyering@lucent.com>
96826
96827         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96828         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96829         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96830         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96831         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96832         whenever the right hand side need not be expanded by the shell.
96833
96834 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96835
96836         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96837         library.  It's not correct, as some older glibcs are buggy.
96838         fnmatch wasn't fixed until glibc 2.2.
96839
96840         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96841         special shell magic here.
96842
96843 2001-09-16  Jim Meyering  <meyering@lucent.com>
96844
96845         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96846         * m4/jm-macros.m4: Require it.
96847
96848 2001-09-16  Jim Meyering  <meyering@lucent.com>
96849
96850         * lib/mkdir.c: New file.
96851
96852 2001-09-15  Jim Meyering  <meyering@lucent.com>
96853
96854         * m4/jm-macros.m4: Check for help2man.
96855
96856 2001-09-11  Jim Meyering  <meyering@lucent.com>
96857
96858         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96859         The body, by Paul Eggert, was moved here from configure.in.
96860         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96861
96862 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96863
96864         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96865         (jm_PREREQ): Use it.
96866
96867 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96868
96869         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96870         Use ssize_t, not int, to store result of readlink.
96871         Check for ssize_t overflow as well as size_t overflow,
96872         as POSIX says the result of readlink is implementation-defined
96873         when ssize_t overflows.
96874         Remove unnecessary cast to char*.
96875         Use free+malloc instead of realloc, as the storage doesn't need
96876         to be preserved and it's clearer and can be more efficient that way.
96877         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96878         * lib/xreadlink.h (xreadlink): Update prototype.
96879
96880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96881
96882         * lib/xgetcwd.c: Revert some of the previous change; intead,
96883         fix the HAVE_GETCWD_NULL code to behave more like the
96884         !HAVE_GETCWD_NULL code used to.
96885
96886         Include "xalloc.h".
96887         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96888         invoke xalloc_die.
96889
96890 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96891
96892         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96893         sys/param.h, as pathmax.h includes them.
96894
96895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96896
96897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96898         (jm_PREREQ_XGETCWD): New macro.
96899
96900         * m4/getcwd.m4: New file.
96901
96902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96903
96904         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96905         like the HAVE_GETCWD_NULL code.
96906         Include pathmax.h if not HAVE_GETCWD.
96907         Do not include xalloc.h.
96908         (INITIAL_BUFFER_SIZE): New symbol.
96909         Do not use xmalloc / xrealloc, since the caller is responsible for
96910         handling errors.  Preserve errno around `free' during failure.
96911         Do not overrun buffer when using getwd.
96912
96913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96914
96915         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96916         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96917         getcwd (NULL, 0).
96918
96919 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96920
96921         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96922         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96923         spotted by Jim Meyering.
96924
96925 2001-09-03  Jim Meyering  <meyering@lucent.com>
96926
96927         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96928         failure.
96929
96930 2001-09-02  Jim Meyering  <meyering@lucent.com>
96931
96932         * lib/error.c: Update from GNU libc.
96933
96934 2001-09-01  Jim Meyering  <meyering@lucent.com>
96935
96936         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96937         Used by df.
96938
96939 2001-09-01  Jim Meyering  <meyering@lucent.com>
96940
96941         * lib/xreadlink.c: New file.
96942         * lib/xreadlink.h: New file.
96943         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96944         xreadlink.h.
96945
96946         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96947         doesn't conflict with sparc Solaris 7's definition in
96948         /usr/include/sys/int_types.h.
96949
96950         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96951         files.
96952         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96953         and strncasecmp as r-values.  Unixware didn't have declarations.
96954
96955 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96956
96957         * lib/xstrtol.h: Add copyright notice.
96958         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96959         LONGINT_INVALID_SUFFIX_CHAR.
96960
96961 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96962
96963         * lib/xstrtol.c (strtoimax): New decl.
96964
96965 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96966
96967         * lib/xgetcwd.c: Don't include pathmax.h.
96968         Include stdlib.h and unistd.h if available.
96969         Include xalloc.h.
96970         (xmalloc, xstrdup, free): Remove decls.
96971         (xgetcwd): Don't assume sizes fit in unsigned.
96972         Check for overflow when computing sizes.
96973         Simplify reallocation code.
96974
96975 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96976
96977         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96978         a directory's st_size can have an arbitrary value, so the old
96979         usage could waste an arbitrary amount of memory.  All uses
96980         changed.
96981         * lib/savedir.h: Update prototype.
96982
96983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96984
96985         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96986
96987         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96988         old strtoimax.c.
96989
96990         Also, make the following further changes to make this file's
96991         configuration more similar to that of strtol.c:
96992         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96993         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96994         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96995         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96996         changed to signed values.
96997
96998         And make the following changes as well:
96999         Fix copyright notice, as 1999 was missing.
97000         (verify): New macro.
97001         (strtoimax): Check sizes at compile-time, not run-time.
97002         Prefer strtol to strtoll if both work.
97003         (main): Remove; it was not that useful and was a pain to maintain.
97004
97005         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97006
97007 2001-08-31  Jim Meyering  <meyering@lucent.com>
97008
97009         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97010         Use an initial, malloc'd, buffer of length 128 rather than
97011         a statically allocated one of length 1024.
97012
97013 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97014
97015         Simplify code, partly by assuming autoconf 2.52 semantics.
97016
97017         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97018
97019         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97020         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97021         All uses removed.
97022         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97023         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97024         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97025         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97026         jm_AC_HEADER_INTTYPES_H.
97027         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97028
97029         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97030
97031         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97032         Quote first arg of AC_DEFUN.
97033         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97034         since they are needed to parse the include file even if we need
97035         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97037         but with opposite signedness.
97038
97039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97040
97041         Merge 'exclude' changes from tar 1.13.22.
97042         This fixes one or two unlikely storage allocation overflow bugs,
97043         but doesn't change user-visible behavior otherwise.
97044
97045 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97046
97047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97048         (jm_PREREQ_EXCLUDE): New macro.
97049
97050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97051
97052         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97053         tm to be declared.
97054
97055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97056
97057         * lib/hash.c: Remove '2001' from copyright notice.
97058
97059 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97060
97061         * lib/full-write.h: New file.
97062         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97063         * lib/full-write.c: Correct credits, as cccp.c no longer
97064         exists and anyway it was so heavily changed from the old cccp
97065         code as to be unrecognizable.  Include full-write.h.
97066         (full_write): Return size_t, with short writes meaning failure.
97067         All callers changed.  This fixes a bug with large buffers
97068         on 64-bit hosts.
97069         * lib/utime.c: Include full-write.h.
97070
97071 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97072
97073         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97074         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97075         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97076         Include if available.
97077         (<xalloc.h>): Include
97078         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97079         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97080         collide with FNM macros.
97081         (struct patopts): New struct.
97082         (struct exclude): Use it, as exclude patterns now come with options.
97083         (new_exclude): Support above changes.
97084         (new_exclude, add_exclude_file):
97085         Initial size must now be a power of two to simplify overflow checking.
97086         (free_exclude, fnmatch_no_wildcards): New function.
97087         (excluded_filename): No longer requires options arg, as the options
97088         are determined by add_exclude.  Now returns bool, not int.
97089         (excluded_filename, add_exclude):
97090         Add support for the fancy new exclusion options.
97091         (add_exclude, add_exclude_file): Now takes int options arg.
97092         Check for arithmetic overflow when computing sizes.
97093         (add_exclude_file): xrealloc might modify errno, so don't
97094         realloc until after errno might be used.
97095
97096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97097         New macros.
97098         (free_exclude): New decl.
97099         (add_exclude, add_exclude_file): Now takes int options arg.
97100         (excluded_filename): No longer requires options arg, as the options
97101         are determined by add_exclude.  Now returns bool, not int.
97102
97103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97104
97105         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97106
97107 2001-08-27  Jim Meyering  <meyering@lucent.com>
97108
97109         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97110
97111         * lib/version-etc.c (N_): Remove definition.
97112         Revert most of last change.
97113         Instead, simply don't mark the `Copyright...' string for translation.
97114         Based on advice from Paul Eggert.
97115
97116         * lib/strtoxmax.c: Tweak comment.
97117
97118 2001-08-26  Jim Meyering  <meyering@lucent.com>
97119
97120         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97121
97122         * m4/xstrtoimax.m4: New file.
97123         * m4/xstrtoumax.m4: Add comments explaining why we
97124         AC_REPLACE_FUNCS(strtol).
97125
97126 2001-08-26  Jim Meyering  <meyering@lucent.com>
97127
97128         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97129         of copyright with `%s' so translators don't get an untranslated
97130         message in 2002.
97131         (COPYRIGHT_YEAR): Define.
97132         (version_etc): Use fprintf rather than fputs.
97133         Suggestion from Ulrich Drepper.
97134
97135         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97136
97137         * lib/strtoll.c: New file, from GNU libc.
97138         * lib/xstrtoimax.c: New file.
97139
97140         * lib/xstrtol.h: Add xstrtoimax.
97141         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97142         * lib/strtoimax.c: New file.  Likewise, but first define
97143         STRTOUXMAX_SIGNED.
97144
97145         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97146         ...
97147         * lib/strtoxmax.c: ... then renamed to this.
97148
97149 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97150
97151         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97152         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97153         (jm_AC_TYPE_INTMAX_T): New macro.
97154         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97155
97156         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97157
97158         * m4/longlong.m4: Renamed from ulonglong.m4.
97159         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97160         * m4/uintmax_t.m4: Removed.
97161
97162 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97163
97164         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97165         Port to Solaris 8, where 'sed' requires a space after the 'r'
97166         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97167         Redirect output to $tmp just once.
97168
97169 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97170
97171         * lib/addext.c (<errno.h>): Include.
97172         (errno): Declare if not defined.
97173         (addext): Work correctly when pathconf returns -1 and leaves
97174         errno alone because there is no limit.  Also, work even if
97175         pathconf returns a value greater than SIZE_MAX.
97176
97177 2001-08-12  Jim Meyering  <meyering@lucent.com>
97178
97179         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97180         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97181         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97182         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97183         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97184         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97185         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97186         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97187         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97188         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97189         utime.m4, utimes.m4, xstrtoumax.m4:
97190         Quote the first argument in each use of AC_DEFUN.
97191
97192 2001-08-12  Jim Meyering  <meyering@lucent.com>
97193
97194         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97195         Simply `return getcwd (NULL, 0);'.
97196         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97197         Use 1300 as initial value for length, not PATH_MAX.
97198
97199         * lib/pathmax.h: Clean up cpp syntax.
97200
97201 2001-08-12  Jim Meyering  <meyering@lucent.com>
97202
97203         * lib/gettimeofday.c: New file.
97204         * lib/gtod.h: New file.
97205         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97206
97207 2001-08-05  Jim Meyering  <meyering@lucent.com>
97208
97209         * m4/jm-macros.m4: Require autoconf-2.52.
97210
97211 2001-08-04  Jim Meyering  <meyering@lucent.com>
97212
97213         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97214         stmt, to get in sync with glibc.
97215
97216 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97217
97218         The following changes are from gettext 0.10.39 as maintained by
97219         Bruno Haible.
97220
97221         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97222         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97223         with inverted sense.  All uses changed.
97224
97225         * lib/mbswidth.c: Don't include <limits.h>.
97226         Include <stdlib.h> and <string.h> unconditionally.
97227         (iswcntrl, mbsinit, ISCNTRL): New macros.
97228         (mbsnwidth): Use K&R style function declarations.
97229         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97230         can optimize it when MB_CUR_MAX == 1.
97231         The width of control characters is zero, not 1.
97232
97233 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97234
97235         The following changes are from gettext 0.10.39 as maintained by
97236         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97237
97238         * m4/codeset.m4: Upgrade to serial AM1.
97239         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97240         all uses changed.  Quote first arg of AC_DEFUN.
97241         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97242
97243         * m4/iconv.m4: Upgrade to serial AM2.
97244         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97245         Add --with-libconv-prefix.
97246         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97247         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97248         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97249         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97250         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97251
97252         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97253         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97254         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97255         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97256         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97257         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97259         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97260         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97261
97262         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97263         string.h any more.
97264
97265         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97266         not the default value.
97267
97268         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97269         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97270         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97271         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97272         Also check for iswcntrl, used for wcwidth fallback.
97273         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97274         to Autoconf 2.13.
97275
97276 2001-08-03  Jim Meyering  <meyering@lucent.com>
97277
97278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97279         as it was in the original.  Reported by Paul Eggert.
97280
97281 2001-07-16  Jim Meyering  <meyering@lucent.com>
97282
97283         * m4/gettimeofday.m4: New file.
97284         Prompted by a report from Bernhard Baehr.
97285
97286 2001-07-15  Jim Meyering  <meyering@lucent.com>
97287
97288         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97289         stuff. Now it's in ../Makefile.cfg.
97290
97291 2001-07-15  Jim Meyering  <meyering@lucent.com>
97292
97293         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97294         (BUILT_SOURCES): Add unlocked-io.h.
97295         (io_functions): Define.
97296         (unlocked-io.h): New rule.
97297         (DISTCLEANFILES): Add unlocked-io.h.
97298         (all-local): Depend on unlocked-io.h, to ensure it is created.
97299
97300         * lib/unlocked-io.hin: New file
97301
97302         * lib/regex.c: Update from glibc.
97303
97304 2001-07-05  Jim Meyering  <meyering@lucent.com>
97305
97306         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97307         recommendation.
97308         (libfetish_a_SOURCES): Put all .h files here instead.
97309         Remove a thus-exposed (better checks in automake) duplicate and
97310         two unnecessary .h files.
97311
97312 2001-07-04  Jim Meyering  <meyering@lucent.com>
97313
97314         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97315         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97316         distcheck failure.
97317
97318 2001-07-02  Jim Meyering  <meyering@lucent.com>
97319
97320         The following changes were prompted by suggestions from Bruno Haible.
97321
97322         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97323         is now generated.
97324         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97325         definition of EXTRA_DIST.
97326         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97327         ensure that the generated file is created/updated whenever the list
97328         of $(unlocked_functions) is changed.
97329         (jm-glibc-io.m4): New rule.
97330         (unlocked-io.h): New rule -- currently unused.
97331
97332 2001-06-24  Jim Meyering  <meyering@lucent.com>
97333
97334         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97335         unmatched right bracket, rather than kludging it with an extra,
97336         falsely-matching quote in a comment.  Patch by Akim Demaille.
97337
97338 2001-06-11  Jim Meyering  <meyering@lucent.com>
97339
97340         * lib/regex.c: Update from GNU libc.
97341
97342 2001-05-27  Jim Meyering  <meyering@lucent.com>
97343
97344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97345         Check for ut_type in struct utmp.
97346
97347 2001-05-27  Jim Meyering  <meyering@lucent.com>
97348
97349         * lib/readutmp.h (UT_TYPE): Define.
97350
97351 2001-05-24  Jim Meyering  <meyering@lucent.com>
97352
97353         * lib/argmatch.c: Include "quote.h".
97354         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97355         quote function.  Reported by Göran Uddeborg.
97356
97357 2001-05-22  Jim Meyering  <meyering@lucent.com>
97358
97359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97360         now that we use the package-supplied version unconditionally.
97361         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97362
97363 2001-05-21  Jim Meyering  <meyering@lucent.com>
97364
97365         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97366         shell syntax errors.
97367
97368 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97369
97370         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97371
97372 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97373
97374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97375         Don't bother to check library strftime, since
97376         we'll be using our own my_strftime function anyway.
97377         Define my_strftime instead of strftime.
97378
97379 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97380
97381         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97382         which is not yet declared.
97383
97384 2001-05-15  Jim Meyering  <meyering@lucent.com>
97385
97386         * m4/regex.m4: Use proper quoting so brackets appear in the test
97387         program.
97388         Reported by, and with help from, Bruno Haible.
97389
97390 2001-05-13  Jim Meyering  <meyering@lucent.com>
97391
97392         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97393         undefined.
97394
97395 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97396
97397         dirname code cleanup.  base_name now behaves more compatibly
97398         with POSIX basename when given file names that have trailing
97399         slashes, and similarly for dir_name.  Add new primitives
97400         base_len and dir_len.  Put the directory-name-related decls
97401         into dirname.h.
97402
97403         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97404         * lib/backupfile.c (base_name): Likewise.
97405         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97406         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97407         * lib/makepath.c (strip_trailing_slashes): Likewise.
97408         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97409         ISSLASH): Likewise.
97410         * lib/rename.c (strip_trailing_slashes): Likewise.
97411         * lib/same.c (base_name): Likewise.
97412         * lib/stripslash.c (ISSLASH): Likewise.
97413
97414         * lib/addext.c: Include <dirname.h> after size_t is defined.
97415         * lib/backupfile.c: Likewise.
97416
97417         * lib/addext.c (addext): Use base_len to trim redundant
97418         trailing slashes instead of doing it ourselves.
97419         But do not trim the last slash if it is not redundant.
97420
97421         * lib/backupfile.c (find_backup_file_name,
97422         max_backup_version): Use base_len instead of rolling it ourselves.
97423         Handle the case of "" and (on DOS) "C:" correctly.
97424
97425         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97426         needed. Include <string.h>, <dirname.h>.
97427         (base_name): Allow file names ending in slashes, other than names
97428         that are all slashes.  In this case, return the basename followed
97429         by the slashes.  This is more general, and can be used in places
97430         where the original base_name purposely had an assertion failure.
97431         (base_len): New function.
97432
97433         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97434         Do not include <assert.h>; no longer needed.
97435         Include xalloc.h.
97436         (memrchr): Remove decl.
97437         (dir_name_r): Remove.
97438         (dir_len): Renamed from dirlen.  All callers changed.
97439         Rewrite in terms of base_name, for simplicity and consistency.
97440         (dir_name): Never return NULL.  All callers changed.
97441         Do not include <stdlib.h> in test program; no longer needed.
97442         return 0; is fine for test program.
97443
97444         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97445         New macros.
97446         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97447
97448         * lib/path-concat.c (path_concat): Use base_len to compute
97449         base length, not strlen; this means we cannot rely on memcpy
97450         to null-terminate.
97451
97452         * lib/same.c (STREQ): Remove.
97453         (same_name): Handle the case where the basename ends in trailing '/'.
97454
97455         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97456         a slash was stripped.  Do not strip the last slash after a
97457         file system prefix.
97458
97459 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97460
97461         * lib/Makefile.am (libfetish_a_SOURCES):
97462         Add strftime.c, since we now compile it on all hosts.
97463
97464         * lib/strftime.c (my_strftime):
97465         Define to nstrftime if emacs, but only if my_strftime is not defined.
97466         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97467         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97468         Add one more extra argument: a nanoseconds value.
97469         All uses changed.
97470         (ns): New macro.
97471         (my_strftime function): Add %N format.
97472         (emacs_strftimeu): Renamed from emacs_strftime,
97473         with extra ut argument.
97474
97475 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97476
97477         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97478
97479 2001-04-21  Jim Meyering  <meyering@lucent.com>
97480
97481         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97482         doesn't interfere.
97483
97484 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97485
97486         * m4/ftruncate.m4: Check for chsize.
97487         Link with ftruncate.o unconditionally if ftruncate is missing.
97488         This was required when cross-compiling to i586-mingw32msvc.
97489
97490 2001-04-08  Jim Meyering  <meyering@lucent.com>
97491
97492         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97493         recomputed; that's necessary when the offset spans a DST transition.
97494         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97495
97496 2001-04-02  Jim Meyering  <meyering@lucent.com>
97497
97498         * lib/regex.h, regex.c: Update from GNU libc.
97499
97500 2001-03-24  Jim Meyering  <meyering@lucent.com>
97501
97502         * m4/jm-macros.m4: Require autoconf-2.49d.
97503
97504 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97505
97506         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97507
97508 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97509
97510         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97511
97512 2001-03-17  Jim Meyering  <meyering@lucent.com>
97513
97514         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97515         now that the version in autoconf is equivalent.
97516         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97517
97518         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97519         Suggestion from Akim Demaille.
97520
97521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97522         (jm_PREREQ_TEMPNAME): New function.
97523
97524 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97525
97526         * lib/tempname.c (uint64_t): Define to uintmax_t if
97527         not defined, and if UINT64_MAX is not defined.
97528         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97529         Reported by John David Anglin.
97530
97531 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97532
97533         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97534         resolve alias if codeset is empty.
97535         * lib/config.charset (BeOS): Use wildcard syntax.
97536
97537 2001-03-13  Jim Meyering  <meyering@lucent.com>
97538
97539         * lib/path-concat.c (path_concat)
97540         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97541         concatenating e.g., `C:' and `foo'.
97542         From Bruno Haible.
97543
97544 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97545
97546         * lib/localcharset.c (locale_charset): Don't use
97547         setlocale(LC_CTYPE,NULL). Don't return NULL.
97548         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97549
97550 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97551
97552         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97553         support for DOS/DJGPP.
97554
97555 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97556
97557         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97558         lacks mkstemp.  Compile our own tempname.c if we compile our own
97559         mkstemp.c, as mkstemp relies on tempname.
97560
97561 2001-03-01  Jim Meyering  <meyering@lucent.com>
97562
97563         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97564         AH_VERBATIM really does output its argument verbatim.
97565
97566 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97567
97568         * lib/Makefile.am (libfetish_a_SOURCES):
97569         Add dup-safer.c, fopen-safer.c.
97570         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97571
97572         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97573         * lib/unistd-safer.h: New files.
97574
97575 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97576
97577         The mkstemp replacement is taken from glibc 2.2.2, with some
97578         portability fixes for use outside glibc, as follows:
97579
97580         * lib/tempname.c (struct_stat64): New macro.
97581         (direxists, __gen_tempname): Use it.
97582         This avoids a portability problem with Solaris 8.
97583
97584         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97585         (<stddef.h>, <stdint.h>, <string.h>):
97586         Include only if STDC_HEADERS || _LIBC.
97587         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97588         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97589         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97590         (__set_errno): Define this macro if <errno.h> doesn't.
97591         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97592         Define these macros if <stdio.h> doesn't.
97593         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97594         Define these macros if <sys/stat.h>
97595         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97596         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97597         __xstat64): Define if not _LIBC.
97598         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97599         (__gen_tempname): Invoke gettimeofday only if
97600         HAVE_GETTIMEOFDAY || _LIBC;
97601         otherwise, fall back on plain "time".
97602         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97603
97604         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97605
97606         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97607
97608 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97609
97610         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97611
97612 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97613
97614         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97615         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97616         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97617         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97618
97619 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97620
97621         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97622         Remove workaround macros for hosts that have mbrtowc but not
97623         mbstate_t, as we now insist on proper declarations for both
97624         before using mbrtowc.
97625
97626 2001-02-17  Jim Meyering  <meyering@lucent.com>
97627
97628         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97629         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97630         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97631         UnixWare 7.1.1.
97632
97633         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97634         rather than AC_CACHE_VAL.
97635
97636 2001-02-17  Jim Meyering  <meyering@lucent.com>
97637
97638         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97639         around included file name.
97640
97641         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97642
97643         * lib/strftime.c: Update from GNU libc (the only changes were to
97644         comments).
97645
97646 2001-02-17  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/regex.c: Update from libc.
97649
97650 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97651
97652         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97653         clash.
97654
97655 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97656
97657         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97658         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97659         Reported by Mark Hounschell via Paul Eggert.
97660
97661 2001-02-07  Jim Meyering  <meyering@lucent.com>
97662
97663         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97664
97665 2001-02-05  Jim Meyering  <meyering@lucent.com>
97666
97667         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97668         it includes the patch required for `large file' support with at least
97669         HP-UX's 10.20 /bin/cc.
97670
97671 2001-02-03  Jim Meyering  <meyering@lucent.com>
97672
97673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97674         AS_IF, now that it works once again (mysteriously).
97675         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97676
97677 2001-01-30  Jim Meyering  <meyering@lucent.com>
97678
97679         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97680         * m4/chown.m4: Rename conftestchown to conftest.chown.
97681         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97682         s/conftestdir2/conftest.d2/.
97683         * m4/utimes.m4: s/conftestdata/conftest.data/
97684         Inspired by Pavel Roskin's change in autoconf.
97685
97686 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97687
97688         * lib/config.charset: Update for FreeBSD 4.2.
97689
97690 2001-01-27  Jim Meyering  <meyering@lucent.com>
97691
97692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97693         a use of AS_IF.
97694         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97695
97696 2001-01-26  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97699         quotearg.c includes it.
97700
97701 2001-01-26  Jim Meyering  <meyering@lucent.com>
97702
97703         * lib/quotearg.c: Include stddef.h.
97704         * lib/quote.c: Include stddef.h.
97705         Reported by Axel Kittenberger.
97706
97707         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97708         line in double quotes so that it evokes a better diagnostic.
97709         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97710         Reported by Axel Kittenberger.
97711
97712 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97713
97714         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97715         as if it was a `charset'.
97716
97717 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97718
97719         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97720         has const.
97721
97722 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97723
97724         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97725         to avoid a warning.  Add back 'const' to inptr.
97726
97727 2001-01-20  Jim Meyering  <meyering@lucent.com>
97728
97729         Be sure that headers are checked before used in code compiled
97730         for the type checks.
97731         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97732         In place of that, invoke jm_CHECK_ALL_TYPES.
97733         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97734         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97735         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97736         The check for ssize_t was mistakenly run before the test for unistd.h.
97737
97738         The configure-time check for stdbool.h was missing.
97739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97740         (jm_PREREQ_HASH): New function.
97741
97742 2001-01-17  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97745         for autoconf-2.49c.
97746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97747
97748 2001-01-16  Jim Meyering  <meyering@lucent.com>
97749
97750         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97751         From Bruno Haible.
97752
97753 2001-01-14  Jim Meyering  <meyering@lucent.com>
97754
97755         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97756         foo and bar.  Create conftestdir/ in the script, not in the C code.
97757         Remove directories in the script, not in the C code.
97758         Remove conftestdir{,2} before trying to create the directory.
97759         Make the entire configure script fail if the mkdir fails.
97760
97761 2001-01-14  Jim Meyering  <meyering@lucent.com>
97762
97763         * lib/rename.c: New file.  From Volker Borchert.
97764         Include stdlib.h, string.h or strings.h, and xalloc.h.
97765         Use strip_trailing_slashes rather than open-coding it.
97766
97767 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97768
97769         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97770
97771 2001-01-03  Jim Meyering  <meyering@lucent.com>
97772
97773         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97774         of local `inptr' to avoid warning with some system declarations of
97775         iconv.
97776
97777 2001-01-02  Volker Borchert  <bt@teknon.de>
97778
97779         * m4/rename.m4: New file.
97780         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97781
97782 2001-01-01  Jim Meyering  <meyering@lucent.com>
97783
97784         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97785         even on systems with utmpx.h.  It's necessary for the declaration of
97786         utmp's ut_user member.  Reported by Andreas Jaeger.
97787
97788         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97789         available. They are required for the declarations of getgrgid and
97790         getpwuid resp.
97791         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97792         Reported by Andreas Jaeger.
97793
97794 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97795
97796         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97797         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97798         so `make install' also works in VPATH builds.
97799
97800 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97801
97802         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97803         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97804         can be used in subdirectories.
97805
97806 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97807
97808         * lib/modechange.c: Do not assume that mode_t uses the
97809         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97810         the other-execute bit of FOO even if S_IXOTH != 1.
97811
97812         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97813         WOTH, XOTH, ALLM): New macros.
97814         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97815          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97816         Use them.
97817         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97818         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97819         (mode_compile):
97820         No need to use uintmax_t; unsigned long is long enough.
97821         Don't bother to get suffix since we don't use it.
97822
97823 2000-12-26  Jim Meyering  <meyering@lucent.com>
97824
97825         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97826         better with autoheader.
97827
97828 2000-12-24  Jim Meyering  <meyering@lucent.com>
97829
97830         * lib/hash.c (is_prime): Return explicit boolean values.
97831         (hash_get_first): Return NULL to appease Irix5.6's 89.
97832         Reported by Nelson Beebe.
97833
97834 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97835
97836         * lib/localcharset.c (locale_charset): Add support for Win32.
97837
97838 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97839
97840         * lib/physmem.h, lib/physmem.c: New files.
97841
97842         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97843         (noinst_HEADERS): Add physmem.h.
97844
97845         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97846         't' for compatibility with Solaris 8 sort.
97847
97848 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97849
97850         * lib/config.charset: Add support for BeOS.
97851
97852 2000-12-17  Jim Meyering  <meyering@lucent.com>
97853
97854         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97855         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97856
97857 2000-12-16  Jim Meyering  <meyering@lucent.com>
97858
97859         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97860         N and M) would have treated it like `chown N:N FILE'.
97861
97862         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97863
97864 2000-12-16  Jim Meyering  <meyering@lucent.com>
97865
97866         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97867         SHELLS_FILE to a file name that's useful on djgpp systems.
97868         Include stdlib.h.
97869         (ADDITIONAL_DEFAULT_SHELLS): Define.
97870         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97871         Based mostly on a patch from Prashant TR.
97872
97873 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97874
97875         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97876         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97877         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97878
97879 2000-12-08  Andreas Schwab  <schwab@suse.de>
97880
97881         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97882         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97883
97884 2000-12-07  Jim Meyering  <meyering@lucent.com>
97885
97886         * lib/stripslash.c (ISSLASH): Define.
97887         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97888         `/'.
97889         From Prashant TR.
97890
97891         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97892         (dir_name_r): Declare this function as static.
97893         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97894         manifest itself on a name containing a mix of slashes and
97895         backslashes.
97896         Make this function work with names starting with a DOS-style
97897         drive letter and colon prefix.
97898         (dir_name): Append `.' if necessary.
97899         Based mostly on patches from Prashant TR and Eli Zaretskii.
97900
97901         * lib/dirname.h (dir_name_r): Remove prototype.
97902
97903 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97904
97905         * m4/off_t-format.m4: Remove this file.
97906         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97907
97908 2000-12-06  Jim Meyering  <meyering@lucent.com>
97909
97910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97911         replacement strtoull, we may well need the replacement strtoul, too.
97912         Check for declarations of strtoul and strtoull.
97913         Check for strtol.  Mainly as a cue to cause automake to include
97914         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97915         Check for limits.h -- strtol.c needs it.
97916
97917 2000-12-05  Jim Meyering  <meyering@lucent.com>
97918
97919         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97920
97921 2000-12-04  Jim Meyering  <meyering@lucent.com>
97922
97923         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97924         Also include memory.h, stdlib.h, unistd.h if appropriate.
97925         Reported by Andreas Jaeger (conflicting declaration of malloc).
97926
97927 2000-12-02  Jim Meyering  <meyering@lucent.com>
97928
97929         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97930         * m4/jm-macros.m4 (jm_MACROS): require it.
97931
97932 2000-12-02  Jim Meyering  <meyering@lucent.com>
97933
97934         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97935
97936 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97937
97938         * lib/memrchr.c: Include <config.h> before any system include file.
97939
97940 2000-11-30  Jim Meyering  <meyering@lucent.com>
97941
97942         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97943
97944 2000-11-30  Jim Meyering  <meyering@lucent.com>
97945
97946         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97947
97948 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97949
97950         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97951
97952 2000-11-26  Jim Meyering  <meyering@lucent.com>
97953
97954         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97955
97956 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97957
97958         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97959         size of (size_t) -1; it's not portable.
97960
97961 2000-11-17  Jim Meyering  <meyering@lucent.com>
97962
97963         * lib/strstr.c: Update from GNU libc.
97964
97965 2000-11-17  Akim Demaille  <akim@epita.fr>
97966
97967         * lib/obstack.h: Formatting changes.
97968         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97969         prevent type checking.
97970         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97971         cast the value to (void *): assigning a `foo *' to a `void *'
97972         variable is valid.
97973         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97974
97975 2000-11-16  Jim Meyering  <meyering@lucent.com>
97976
97977         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97978
97979 2000-11-11  Jim Meyering  <meyering@lucent.com>
97980
97981         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97982
97983 2000-11-10  Jim Meyering  <meyering@lucent.com>
97984
97985         * lib/obstack.h: Update from GNU libc.
97986         * lib/obstack.c: Likewise.
97987
97988 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97989
97990         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97991
97992 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97993
97994         * lib/getusershell.c (setusershell): Use rewind rather than
97995         fseek/fseeko, to avoid configuration hassles with fseeko.
97996         Don't bother opening SHELLS_FILE if shellstream is NULL;
97997         it's not necessary.
97998
97999 2000-11-05  Jim Meyering  <meyering@lucent.com>
98000
98001         * lib/makepath.h (make_dir): Declare.
98002         * lib/makepath.c (make_dir): Remove `static' attribute.
98003         Tweak a comment.
98004
98005 2000-11-04  Jim Meyering  <meyering@lucent.com>
98006
98007         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98008
98009 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98010
98011         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98012         last one in a bucket, advance to the next bucket.
98013
98014 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98015
98016         * lib/fnmatch.c: Do not comment out all the code if we are using
98017         the GNU C library, because in some cases we are replacing buggy
98018         code in the GNU C library itself.
98019
98020 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98021
98022         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98023         (regex_compile): Catch bogus \(\1\).
98024
98025 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98026
98027         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98028         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98029         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98030
98031 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98032
98033         * lib/error.h, getline.h, modechange.h:
98034         Remove "2000" from Copyright line, as the file hasn't been
98035         changed this year other than in the copyright notice.
98036
98037         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98038         was changed this year.
98039
98040 2000-10-29  Jim Meyering  <meyering@lucent.com>
98041
98042         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98043         renaming.
98044         * m4/ls-mntd-fs.m4: Likewise
98045
98046 2000-10-29  Jim Meyering  <meyering@lucent.com>
98047
98048         * lib/xstat.in: Fix grammar in comment.
98049
98050 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98051
98052         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98053         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98054         doesn't define __restrict_arr.
98055
98056 2000-10-28  Jim Meyering  <meyering@lucent.com>
98057
98058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98059         (jm_PREREQ_MEMCHR): New function.
98060
98061 2000-10-28  Jim Meyering  <meyering@lucent.com>
98062
98063         * lib/memchr.c: Update from libc.
98064         Adjust for portability:
98065         [HAVE_STDLIB_H]: Include stdlib.h.
98066         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98067         Undef __memchr, too.
98068         [!weak_alias]: Define __memchr to memchr.
98069
98070         * lib/regex.c: Update from libc.
98071         * lib/regex.h: Likewise.
98072         * lib/getopt1.c: Likewise.
98073         * lib/memcmp.c: Likewise.
98074
98075         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98076         Avoid using fseek, when possible -- it's broken by design.
98077         Patch by Ulrich Drepper.
98078
98079 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98080
98081         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98082         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98083         Giving in to popular pressure to shut up the compiler with casts.
98084
98085 2000-10-26  Jim Meyering  <meyering@lucent.com>
98086
98087         * lib/strftime.c: Update from libc.
98088
98089 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98090
98091         * regex.c: More `unsigned char' -> `re_char' changes.
98092         Also change several `int' into `re_wchar_t'.
98093         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98094         (PUSH_FAILURE_POINTER): Don't cast any more.
98095         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98096         We want GCC to complain, since this piece of code makes
98097         re_match non-reentrant, which *should* be fixed.
98098         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98099         (EXTEND_BUFFER): Use RETALLOC.
98100         (SET_LIST_BIT): Don't cast.
98101         (re_wchar_t): New type.
98102         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98103         that those two functions will always properly return.
98104         (IMMEDIATE_QUIT_CHECK): Cast to void.
98105         (analyse_first): Use recursion rather than an explicit stack.
98106         (re_compile_fastmap): Can't fail anymore.
98107         (re_search_2): Don't check re_compile_fastmap for failure.
98108         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98109         Now also sets the new value (passed in a new argument).
98110         (re_match_2_internal): Use it.
98111         Also, use a new var `reg' of type size_t when looping through regs
98112         rather than reuse the inappropriate `mcnt'.
98113
98114 2000-10-25  Jim Meyering  <meyering@lucent.com>
98115
98116         * lib/obstack.c: Update from libc.
98117
98118 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98119
98120         * regex.c (regex_compile): Change the way of handling a range from
98121         a char less than 256 to a char not less than 256.
98122
98123 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98124
98125         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98126         NT-Emacs only.
98127         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98128         so that re_search functions only quit when callers expect them to.
98129
98130 2000-10-23  Jim Meyering  <meyering@lucent.com>
98131
98132         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98133         wrong.  That set_locale call must not have any side effects.
98134         From Paul Eggert.
98135
98136 2000-10-22  Jim Meyering  <meyering@lucent.com>
98137
98138         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98139         [CYCLIC]: Remove now-unused definition.
98140
98141         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98142         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98143         Suggestion from Ulrich Drepper.
98144
98145 2000-10-21  Jim Meyering  <meyering@lucent.com>
98146
98147         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98148         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98149         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98150
98151 2000-10-21  Jim Meyering  <meyering@lucent.com>
98152
98153         * lib/dirname.c (memrchr): Declare if necessary.
98154         (dir_name): Remove the restriction that there be no
98155         trailing slashes.  Now, this code skips past them, effectively
98156         ignoring them.
98157         [TEST_DIRNAME] (main): New unit tests.
98158
98159         * lib/memrchr.c: New file from GNU libc.
98160         Undef __memrchr, too.
98161         [!weak_alias]: Define __memrchr to memrchr.
98162         Guard weak_alias use with `#ifdef weak_alias'.
98163
98164 2000-10-21  Jim Meyering  <meyering@lucent.com>
98165
98166         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98167         (dir_name): Use dir_name_r.
98168         * lib/dirname.h (dir_name_r): Declare it.
98169
98170 2000-10-17  Jim Meyering  <meyering@lucent.com>
98171
98172         * lib/quote.h (PARAMS): Define and use.
98173         Reported by Akim Demaille.
98174
98175         * lib/getopt.c: Update from libc.
98176
98177 2000-10-16  Jim Meyering  <meyering@lucent.com>
98178
98179         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98180         setlocale.
98181         From Jan Fedak.
98182
98183 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98184
98185         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98186
98187 2000-09-25  Jim Meyering  <meyering@lucent.com>
98188
98189         * lib/md5.h (rol): Define (from GnuPG).
98190
98191         * lib/sha.c: Give credit (GnuPG) where due.
98192         (M): Use rol rather than open-coding it.
98193         Add a FIXME comment.
98194
98195 2000-09-21  Jim Meyering  <meyering@lucent.com>
98196
98197         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98198         Reported by Michael Stone.
98199
98200 2000-09-20  Jim Meyering  <meyering@lucent.com>
98201
98202         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98203         (noinst_HEADERS): Add sha.h.
98204         Based on code from Scott G. Miller and from GnuPG.
98205
98206 2000-09-18  Jim Meyering  <meyering@lucent.com>
98207
98208         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98209         LIBS. Otherwise, everyone ends up linking with -lelf for some
98210         configurations.
98211         Reported by Mike Stone.
98212
98213 2000-09-15  Jim Meyering  <meyering@lucent.com>
98214
98215         * lib/regex.c: Update from libc.
98216
98217 2000-09-10  Jim Meyering  <meyering@lucent.com>
98218
98219         * lib/getopt.c (_getopt_internal): Update from glibc.
98220
98221 2000-09-09  Jim Meyering  <meyering@lucent.com>
98222
98223         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98224         think it should be used as a general replacement for isascii.
98225         * lib/fnmatch.c: Likewise.
98226         * lib/mbswidth.c: Likewise
98227         * lib/regex.c: Likewise.
98228
98229         Don't use atoi.
98230         * lib/userspec.c: Include sys/param.h and limits.h.
98231         Include xstrtol.h.
98232         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98233         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98234         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98235         UID, GID.  Check range.
98236
98237 2000-09-06  Jim Meyering  <meyering@lucent.com>
98238
98239         * lib/getopt.c (_getopt_internal): Update from glibc.
98240
98241 2000-08-30  Jim Meyering  <meyering@lucent.com>
98242
98243         * lib/strftime.c: Merge in changes from GNU libc.
98244
98245 2000-08-26  Jim Meyering  <meyering@lucent.com>
98246
98247         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98248         * m4/fpending.m4: New file.
98249
98250 2000-08-26  Jim Meyering  <meyering@lucent.com>
98251
98252         * lib/closeout.c: Include "__fpending.h".
98253         (close_stdout_status): Return right away if there's nothing to flush.
98254
98255         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98256         * lib/__fpending.c: New file.
98257         * lib/__fpending.h: New file.
98258
98259 2000-08-20  Jim Meyering  <meyering@lucent.com>
98260
98261         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98262         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98263         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98264
98265 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98266
98267         Improve fileutils installation on systems where running
98268         programs (like install) can't be unlinked.
98269         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98270         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98271
98272 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98273
98274         Standardize on "memory exhausted" instead of "Memory exhausted"
98275         or "virtual memory exhausted".
98276         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98277         "virtual memory exhausted".
98278         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98279         our own message.
98280         * lib/userspec.c (parse_user_spec): Likewise.
98281         * lib/bumpalloc.h: comment fix
98282         * lib/same.c, userspec.c: Include xalloc.h.
98283
98284         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98285         not char *const and pointing to a constant array.
98286         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98287         (xrealloc): Comment fix.
98288
98289         * lib/userspec.c (parse_user_spec):
98290         Don't translate a message until just before returning,
98291         to avoid unnecessary translation.
98292
98293 2000-08-07  Jim Meyering  <meyering@lucent.com>
98294
98295         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98296         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98297         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98298         getgroups.c, gethostname.c, getopt.h, group-member.c,
98299         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98300         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98301         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98302         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98303         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98304         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98305         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98306         yesno.c: Back out Copyright date changes for each file with no change
98307         this year.  This eases coordination with other programs using the same
98308         source code modules.  From Paul Eggert.
98309
98310 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98311
98312         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98313         not char, for compatibility with glibc 2.1.3 strftime.c.
98314
98315 2000-08-03  Greg McGary  <greg@mcgary.org>
98316
98317         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98318         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98319         (EXTEND_BUFFER): Use them.
98320
98321 2000-08-01  Jim Meyering  <meyering@lucent.com>
98322
98323         * lib/dirname.c (ISSLASH): Define.
98324         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98325         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98326         both `\' and `/' may be use as path separators.
98327         Based on a patch from Prashant TR.
98328
98329 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98330
98331         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98332         slot vector a constant, since it might get modified.
98333
98334 2000-07-31  Jim Meyering  <meyering@lucent.com>
98335
98336         * lib/xmalloc.c: Use `virtual memory exhausted', not
98337         `Memory exhausted'.
98338         * lib/obstack.c (print_and_abort): Likewise.
98339
98340 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98341
98342         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98343         buffer, so that the caller can always quote one small
98344         component of a "memory exhausted" message in slot 0.
98345         From a suggestion by Jim Meyering.
98346
98347 2000-07-30  Jim Meyering  <meyering@lucent.com>
98348
98349         * lib/makepath.c (make_path): Quote the other instance, too.
98350
98351         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98352         (STATIC_BUF_SIZE): Define.
98353         (quotearg_n_options): Use only statically allocated storage when
98354         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98355         than STATIC_BUF_SIZE.
98356
98357 2000-07-29  Jim Meyering  <meyering@lucent.com>
98358
98359         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98360         * lib/dirname.c (dir_name): Likewise.
98361
98362         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98363         `/'.
98364
98365         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98366         (dir_name): Assert that there are no trailing slashes.
98367
98368 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98369
98370         * lib/mbswidth.h (mbswidth): Add a flags argument.
98371         (mbswidth): New declaration.
98372         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98373         * lib/mbswidth.c (mbswidth): Add a flags argument.
98374         (mbsnwidth): New function.
98375
98376 2000-07-24  Jim Meyering  <meyering@lucent.com>
98377
98378         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98379
98380 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98381
98382         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98383
98384 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98385
98386         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98387         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98388         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98389         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98390         invoke multibyte primitives.
98391
98392 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98393
98394         * lib/quotearg.c:
98395         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98396         so that mbstate_t is always defined.
98397
98398         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98399         be 1 in at least one GCC installation, and this configuration
98400         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98401         performance on hosts that have mbrtowc but have only unibyte
98402         locales, but I assume these hosts are rare.
98403
98404 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98405
98406         * lib/mbswidth.c (_XOPEN_SOURCE):
98407         Don't define; this causes problems on Solaris 7.
98408         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98409
98410 2000-07-23  Jim Meyering  <meyering@lucent.com>
98411
98412         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98413         too: getgrgid, getpwuid, getuid.
98414
98415 2000-07-23  Jim Meyering  <meyering@lucent.com>
98416
98417         * lib/basename.c (base_name): Add an assertion.
98418
98419 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98420
98421         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98422         shadow its mbsinit function.
98423
98424 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98425
98426         * lib/mbswidth.h: New file.
98427         * lib/mbswidth.c: New file.
98428         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98429         (noinst_HEADERS): Add mbswidth.h.
98430
98431 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98432
98433         * lib/config.charset: Add support for FreeBSD. Improve support for
98434         HP-UX and IRIX 6.
98435
98436 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98437
98438         * m4/mbswidth.m4: New file.
98439         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98440
98441 2000-07-15  Jim Meyering  <meyering@lucent.com>
98442
98443         * lib/makepath.c: Include quote.h.
98444         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98445         corresponding argument in a `quote (...)' call.
98446         Give better diagnostics.
98447
98448         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98449         (noinst_HEADERS): Add quote.h.
98450
98451         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98452         from tar's src/misc.c.
98453         * lib/quote.h: New file.  Prototypes for same.
98454
98455 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98456
98457         From a suggestion by Bruno Haible.
98458         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98459         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98460         to decide whether to define the BeOS workaround macro;
98461         this adjusts to the change to AC_MBSTATE_T.
98462
98463 2000-07-14  Jim Meyering  <meyering@lucent.com>
98464
98465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98466         jm_AC_TYPE_UINTMAX_T.
98467
98468 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98469
98470         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98471
98472         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98473         quotearg_buffer_restyled): Add support for
98474         clocale_quoting_style.  Undo previous change to
98475         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98476         and "{RIGHT QUOTATION MARK}" msgids.
98477
98478 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98479
98480         From a suggestion by Bruno Haible.
98481         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98482         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98483         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98484         and mbstate_t, to a single-part test that simply defines mbstate_t.
98485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98486         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98487
98488 2000-07-10  Jim Meyering  <meyering@lucent.com>
98489
98490         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98491
98492         * m4/gnu-source.m4: Output to confdefs.h directly.
98493         Suggestion from Akim Demaille.
98494
98495 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98496
98497         The old behavior of quoting `like this' doesn't look good with
98498         newer, ISO-style fonts.  See:
98499         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98500
98501         Instead, quote "like this" by default.  Let the translator
98502         tailor the locale-specific quoting behavior by providing
98503         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98504
98505         * lib/quotearg.c (N_): New macro.
98506         (gettext_default): New function.
98507         (quotearg_buffer_restyled): Use
98508         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98509         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98510
98511 2000-07-09  Jim Meyering  <meyering@lucent.com>
98512
98513         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98514         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98515
98516         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98518
98519 2000-07-09  Jim Meyering  <meyering@lucent.com>
98520
98521         * lib/Most files: Update copyright dates to include 2000.
98522
98523 2000-07-08  Jim Meyering  <meyering@lucent.com>
98524
98525         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98526         if not defined.
98527         (xgethostname): Remove now-unnecessary #ifdef.
98528         Move declaration of `err' into loop where it's used.
98529
98530 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98531         and Bruno Haible  <haible@clisp.cons.org>
98532
98533         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98534         only if the test for an object-type mbstate_t fails.  This
98535         prevents us from mistakenly reporting that mbstate_t is a
98536         system object type after we "#define mbstate_t int" to work
98537         around its lack.
98538
98539 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98540         and Bruno Haible  <haible@clisp.cons.org>
98541
98542         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98543
98544 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98545
98546         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98547         to strerror_r.
98548         Include <ctype.h> for use of isalpha.
98549
98550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98551
98552         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98553         by allocating a larger buffer. Test the gethostname return value for
98554         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98555         returns an error and ENAMETOOLONG isn't defined.
98556
98557 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98558
98559         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98560         dimension.
98561
98562 2000-07-04  Jim Meyering  <meyering@lucent.com>
98563
98564         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98565         of the deprecated AC_CHECKING.
98566
98567 2000-07-04  Jim Meyering  <meyering@lucent.com>
98568
98569         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98570         Reported by Bruno Haible.
98571
98572 2000-07-04  Jim Meyering  <meyering@lucent.com>
98573
98574         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98575         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98576         lacks mbrtowc.
98577
98578 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98579
98580         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98581         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98582
98583 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98584         and Bruno Haible  <haible@clisp.cons.org>
98585
98586         * lib/quotearg.c (mbrtowc):
98587         Assign to *pwc, and return 1 only if result is nonzero.
98588         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98589
98590 2000-07-03  Jim Meyering  <meyering@lucent.com>
98591
98592         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98593
98594 2000-07-03  Jim Meyering  <meyering@lucent.com>
98595
98596         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98597         This is necessary to get a definition of e.g., UTMP_FILE on
98598         HP-UX 10.20.
98599         From Bob Proulx.
98600
98601 2000-07-02  Jim Meyering  <meyering@lucent.com>
98602
98603         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98604
98605         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98606         AC_LIBOBJ(function_name).
98607         * m4/chown.m4: Likewise.
98608         * m4/fnmatch.m4: Likewise.
98609         * m4/ftruncate.m4: Likewise.
98610         * m4/getgroups.m4: Likewise.
98611         * m4/getline.m4: Likewise.
98612         * m4/group-member.m4: Likewise.
98613         * m4/jm-macros.m4: Likewise.
98614         * m4/lstat.m4: Likewise.
98615         * m4/malloc.m4: Likewise.
98616         * m4/memcmp.m4: Likewise.
98617         * m4/nanosleep.m4: Likewise.
98618         * m4/putenv.m4: Likewise.
98619         * m4/realloc.m4: Likewise.
98620         * m4/regex.m4: Likewise.
98621         * m4/stat.m4: Likewise.
98622         * m4/strftime.m4: Likewise.
98623
98624 2000-07-02  Jim Meyering  <meyering@lucent.com>
98625
98626         * lib/quotearg.c (mbstate_t): Don't define here.
98627
98628 2000-07-02  Jim Meyering  <meyering@lucent.com>
98629
98630         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98631
98632 2000-07-01  Jim Meyering  <meyering@lucent.com>
98633
98634         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98635
98636 2000-07-01  Jim Meyering  <meyering@lucent.com>
98637
98638         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98639         problem.
98640
98641 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98642
98643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98644         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98645
98646 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98647
98648         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98649         per change in ../m4/ls-mntd-fs.m4.
98650         (read_filesystem_list): Ignore symbolic links.
98651
98652 2000-06-29  Jim Meyering  <meyering@lucent.com>
98653
98654         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98655         for declaration of strcmp.
98656
98657         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98658
98659         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98660         Avoid warning by casting result to `char *' to remove `const'.
98661
98662 2000-06-28  Jim Meyering  <meyering@lucent.com>
98663
98664         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98665         included by quotearg.c, for which we perform this test.  From
98666         Bruno Haible.
98667
98668 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98669
98670         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98671         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98672         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98673
98674 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98675
98676         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98677
98678 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98679
98680         savedir now sets errno on failure and invokes xmalloc to get memory.
98681         Fix a couple of other minor bugs while we're at it.
98682
98683         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98684         (NAMLEN): Remove macro.
98685         (malloc, realloc): Remove decls.
98686         (stpcpy): Likewise.
98687         ("xalloc.h"): Include.
98688         (NAME_SIZE_DEFAULT): New macro.
98689         (savedir): Use xmalloc / xrealloc to allocate memory.
98690         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98691         Skip "" directory entries.
98692         Use strlen to calculate directory entry length, since the old method
98693         is rarely used these days and isn't worth supporting.
98694         Don't use a pointer after freeing it.
98695         Check for integer overflow when calculating allocation size.
98696         Use memcpy to copy entries, instead of stpcpy.
98697         Set errno properly when returning NULL.
98698         Check for readdir error.
98699
98700 2000-06-26  Jim Meyering  <meyering@lucent.com>
98701
98702         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98703
98704 2000-06-25  Jim Meyering  <meyering@lucent.com>
98705
98706         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98707         Linux header bug when _XOPEN_SOURCE is defined to 500.
98708
98709 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98710
98711         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98712         deficiency.
98713
98714 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98715
98716         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98717         Include xalloc.h.
98718         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98719
98720 2000-06-24  Jim Meyering  <meyering@lucent.com>
98721
98722         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98723         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98724         for which strerror does return char*, but which lacks a conveniently
98725         accessible declaration of the function.  If the compile-test says
98726         strerror_r doesn't work, then resort to a `run'-test that works on
98727         BeOS and segfaults on DEC Unix.
98728
98729 2000-06-24  Jim Meyering  <meyering@lucent.com>
98730
98731         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98732
98733 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98734
98735         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98736         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98737
98738 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98739
98740         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98741         (mbrtowc, mbstate_t): Define substitutes if
98742         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98743         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98744         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98745
98746 2000-06-23  Jim Meyering  <meyering@lucent.com>
98747
98748         * m4/afs.m4: Add missing AC_MSG_RESULT.
98749         Reported by Bruno Haible.
98750
98751         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98752         Suggestion from Bruno Haible.
98753
98754 2000-06-23  Jim Meyering  <meyering@lucent.com>
98755
98756         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98757
98758 2000-06-21  Jim Meyering  <meyering@lucent.com>
98759
98760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98761
98762 2000-06-21  Jim Meyering  <meyering@lucent.com>
98763
98764         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98765         (noinst_HEADERS): Add getstr.h.
98766
98767         * lib/getline.c (getstr): Move into a separate file.
98768         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98769         the following changes: new parameter, delim2; both delim[12]
98770         parameters have type `int', not `char'.  The latter would lose
98771         with 8-bit delimiters.
98772         * lib/getstr.h: New file.
98773
98774 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98775
98776         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98777         than 1024, return a memory chunk of least possible size, instead
98778         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98779         Use free/xmalloc instead of xrealloc to avoid copying for very long
98780         paths.
98781
98782 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98783
98784         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98785         the empty string.
98786
98787 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98788
98789         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98790         address, not strdup.  Include <stdlib.h> and don't declare free().
98791
98792 2000-06-19  Jim Meyering  <meyering@lucent.com>
98793
98794         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98795
98796 2000-06-18  Jim Meyering  <meyering@lucent.com>
98797
98798         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98799
98800         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98801         `checking whether...' message to be consistent with that of the
98802         lstat test.
98803
98804 2000-06-18  Jim Meyering  <meyering@lucent.com>
98805
98806         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98807         Besides, these days every porting target provides a mkdir function.
98808
98809         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98810         needed. (this snippet comes from src/system.h).
98811
98812 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98813
98814         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98815
98816 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98817
98818         * lib/human.c (adjust_value): New function.
98819         (human_readable_inexact): Apply rounding style even when
98820         printing approximate values.
98821
98822 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98823
98824         * lib/human.c (human_readable_inexact): Allow an input block
98825         size that is not a multiple of the output block size, and vice versa.
98826         Reported by Piergiorgio Sartor.
98827
98828 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98829
98830         * lib/getdate.y (get_date): Apply relative times after time
98831         zone indicator, not before.  Reported by Todd A. Jacobs.
98832
98833 2000-06-13  Jim Meyering  <meyering@lucent.com>
98834
98835         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98836
98837         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98838
98839 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98840
98841         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98842
98843 2000-06-12  Jim Meyering  <meyering@lucent.com>
98844
98845         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98846         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98847         optional argument.
98848         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98849         the optional argument, `lib'.
98850
98851 2000-06-08  Jim Meyering  <meyering@lucent.com>
98852
98853         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98854
98855 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98856
98857         Rewrite largefile configuration so that we don't need to run
98858         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98859         AC_CANONICAL_HOST in configure.in -- jmm]
98860
98861         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98862         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98863         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98864         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98865         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98866         All uses changed.
98867         Instead of inspecting the output of getconf, try to compile the
98868         test program without and with the macro definition.
98869         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98870         for getconf.  Instead, check for the needed flags by compiling
98871         test programs.
98872
98873 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98874
98875         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98876
98877 2000-06-04  Jim Meyering  <meyering@lucent.com>
98878
98879         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98880         SunOS 4.1.4 for which gid_t is an unsigned type.
98881
98882 2000-06-03  Jim Meyering  <meyering@lucent.com>
98883
98884         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98885         now that autoconf requires that.
98886
98887         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98888         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98889         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98890
98891 2000-06-03  Jim Meyering  <meyering@lucent.com>
98892
98893         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98894
98895 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98896
98897         * m4/glibc21.m4: New file.
98898         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98899
98900 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98901
98902         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98903         newer, don't install charset.alias.
98904         * lib/config.charset: Change the Linux/glibc rules so they become empty
98905         on glibc-2.1 or newer.
98906
98907 2000-06-02  Jim Meyering  <meyering@lucent.com>
98908
98909         * lib/mountlist.c: Back out last change.  Instead, do this...
98910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98911         me_dummy member using the same `ignore'-testing code.
98912         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98913         fs_type strings.
98914         From Mark D. Roth.
98915
98916 2000-05-29  Jim Meyering  <meyering@lucent.com>
98917
98918         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98919         mounts with the `ignore' attribute.  Based on a patch from
98920         Mark D. Roth.
98921
98922 2000-05-28  Jim Meyering  <meyering@lucent.com>
98923
98924         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98925         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98926         * m4/stat.m4: Likewise.
98927         * m4/lstat.m4: Likewise.
98928         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98929
98930         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98931         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98932
98933 2000-05-26  Jim Meyering  <meyering@lucent.com>
98934
98935         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98936
98937 2000-05-24  Jim Meyering  <meyering@lucent.com>
98938
98939         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98940         autoconf requires that.
98941         * m4/lib-check.m4: Likewise.
98942         * m4/jm-macros.m4: Likewise.
98943         * m4/strftime.m4: Likewise.
98944
98945         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98946         AC_CHECK_DECLS, now that autoconf requires that.
98947
98948 2000-05-22  Jim Meyering  <meyering@lucent.com>
98949
98950         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98951         * m4/lstat.m4: Likewise.
98952
98953 2000-05-22  Jim Meyering  <meyering@lucent.com>
98954
98955         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98956
98957 2000-05-20  Jim Meyering  <meyering@lucent.com>
98958
98959         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98960         (jm_PREREQ): Use it.
98961
98962 2000-05-18  Jim Meyering  <meyering@lucent.com>
98963
98964         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98965         back, too, since it may have been modified by allocate_entry.
98966         (hash_delete): Rewrite to use neither the assignment operator
98967         nor the comma operator in an if-expression.
98968
98969 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98970
98971         * lib/closeout.c:
98972         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98973         Remove; no longer needed.
98974         "quotearg.h": Add include.
98975         (file_name): Do not bother to explicitly initialize to NULL; it's less
98976         efficient on some hosts.
98977         (close_stdout_status): Remove test as to whether stdout was already
98978         closed; it breaks for the case "echo x | sort >&-".
98979         Quote file name colons.
98980         Do not assume that _("write error") lacks format strings.
98981
98982 2000-05-15  Jim Meyering  <meyering@lucent.com>
98983
98984         * lib/version-etc.c (version_etc_copyright): Update the copyright
98985         string used in all --version output.
98986
98987 2000-05-14  Jim Meyering  <meyering@lucent.com>
98988
98989         * lib/closeout.c (close_stdout_set_file_name): New function.
98990         (close_stdout_status): Use new file-scoped global.
98991         Return right away if fstat says the stdout file descriptor is invalid.
98992         * lib/closeout.h (close_stdout_set_file_name): Declare.
98993
98994 2000-05-10  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98997         (close_stdout_set_status): New function.
98998         * lib/closeout.h (close_stdout_set_status): Declare.
98999
99000 2000-05-09  Jim Meyering  <meyering@lucent.com>
99001
99002         * m4/gettext.m4: Rename this...
99003         * m4/libintl.m4: ...to this.
99004
99005 2000-05-08  Jim Meyering  <meyering@lucent.com>
99006
99007         * lib/long-options.c: Don't include closeout.h.
99008         (parse_long_options): Don't call close_stdout for --version.
99009
99010 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99011
99012         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99013         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99014         2.1.3 bug.  This avoids a clash when files like regex.c define
99015         _GNU_SOURCE.
99016
99017 2000-05-06  Jim Meyering  <meyering@lucent.com>
99018
99019         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99020         (AC_REPLACE_FUNCS): Add strnlen.
99021
99022         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99023         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99024
99025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99026         AC_SEARCH_LIBS call for nanosleep.
99027         (LIB_NANOSLEEP): Set and AC_SUBST.
99028
99029 2000-05-06  Jim Meyering  <meyering@lucent.com>
99030
99031         * lib/strnlen.c: Undefine __strnlen and strnlen.
99032         [!weak_alias]: Define __strnlen to strnlen.
99033
99034         * lib/atexit.c: New file, from libiberty.
99035
99036 2000-05-06  Jim Meyering  <meyering@lucent.com>
99037
99038         * lib/closeout.c (close_stdout_status): Also check for errors on the
99039         stderr stream.
99040
99041 2000-05-05  Jim Meyering  <meyering@lucent.com>
99042
99043         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99044         AC_SEARCH_LIBS call for clock_gettime.
99045         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99046
99047         * m4/search-libs.m4: Update from autoconf.
99048
99049         su doesn't work on Solaris 2.6.
99050         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99051         <shadow.h>.  Reported by Dragos Harabor.
99052
99053 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99054
99055         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99056         memcpy instead of xmalloc, xrealloc, path_concat.
99057         (locale_charset): Treat empty environment variables as absent.
99058         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99059
99060 2000-05-04  Jim Meyering  <meyering@lucent.com>
99061
99062         * lib/getopt.c: Update from glibc.
99063         * lib/obstack.c: Likewise.
99064         * lib/obstack.h: Likewise.
99065         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99066         file
99067
99068         * lib/regex.h: Likewise.
99069         * lib/strndup.c: Likewise.
99070         * lib/strnlen.c: New file, from glibc.
99071
99072 2000-05-03  Jim Meyering  <meyering@lucent.com>
99073
99074         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99075
99076 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99077
99078         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99079         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99080         compile-time test, rather than inspecting host and OS, to
99081         decide whether to define _LARGEFILE_SOURCE.
99082
99083 2000-05-01  Jim Meyering  <meyering@lucent.com>
99084
99085         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99086
99087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99088         Based on a patch from Bruno Haible.
99089
99090 2000-05-01  Jim Meyering  <meyering@lucent.com>
99091
99092         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99093
99094 2000-04-29  Jim Meyering  <meyering@lucent.com>
99095
99096         * lib/path-concat.c: Declare strdup only if it's not defined.
99097         * lib/canon-host.c: Likewise.
99098
99099 2000-04-28  Jim Meyering  <meyering@lucent.com>
99100
99101         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99102         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99103         is included first, then limits.h is included by locale.h by libintl.h.
99104         From John David Anglin.
99105
99106 2000-04-25  Jim Meyering  <meyering@lucent.com>
99107
99108         * lib/makepath.c (S_IRWXUGO): Define.
99109         (make_path): Always perform explicit chmod if MODE specifies any
99110         of the `special' permission bits.  Prompted by a bug report against
99111         install from Mate Wierdl and Joost van Baal.
99112
99113 2000-04-18  Jim Meyering  <meyering@lucent.com>
99114
99115         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99116         (jm_PREREQ): Use it.
99117
99118 2000-04-18  Jim Meyering  <meyering@lucent.com>
99119
99120         * lib/README: New file.
99121
99122         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99123         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99124
99125 2000-04-17  Jim Meyering  <meyering@lucent.com>
99126
99127         Get it right :-)
99128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99129         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99130         Suggestion from Akim Demaille.
99131
99132 2000-04-17  Jim Meyering  <meyering@lucent.com>
99133
99134         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99135         the definition of it to rpl_strftime also defined-away the system's
99136         declaration.
99137
99138 2000-04-15  Jim Meyering  <meyering@lucent.com>
99139
99140         Use `C' to denote so-called `contiguous' files, the same way
99141         that tar does.
99142         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99143         (ftypelet): Use S_ISCTG.
99144         From Michael Deutschmann.
99145
99146 2000-04-14  Jim Meyering  <meyering@lucent.com>
99147
99148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99149         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99150         clobbered.
99151
99152 2000-04-14  Jim Meyering  <meyering@lucent.com>
99153
99154         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99155
99156 2000-04-13  Jim Meyering  <meyering@lucent.com>
99157
99158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99159         AH_VERBATIM to insert required #ifndef into config.h.in.
99160         Suggestion from Akim Demaille.
99161
99162 2000-04-12  Jim Meyering  <meyering@lucent.com>
99163
99164         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99165         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99166         Christian Krackowizer.
99167
99168         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99169         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99170         (AC_SYS_LARGEFILE): Require.
99171         (AM_C_PROTOTYPES): Require.
99172
99173 2000-04-08  Jim Meyering  <meyering@lucent.com>
99174
99175         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99176         names don't conflict.  Reported by Eli Zaretskii.
99177
99178 2000-04-07  Jim Meyering  <meyering@lucent.com>
99179
99180         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99181         sys/types.h, to work around system header problems on AIX 3.2.5.
99182         From Bruno Haible.
99183
99184 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99185
99186         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99187         bug.  Deal with the different error behavior of Irix iconv.
99188
99189 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99190
99191         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99192         IRIX if the installer said otherwise.
99193
99194 2000-04-05  Jim Meyering  <meyering@lucent.com>
99195
99196         Portability tweaks required for ultrix4.3.
99197         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99198         (jm_CHECK_DECLS): Add getutent to the list of functions.
99199         (_jm_DECL_HEADERS): Add utmpx.h.
99200         From John David Anglin.
99201
99202         * m4/strftime.m4: Back out the 2000-04-02 change.
99203         Instead of that change, simply undefine putenv in the test program.
99204
99205 2000-04-05  Jim Meyering  <meyering@lucent.com>
99206
99207         Portability tweaks required for ultrix4.3.
99208         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99209         getutent.
99210         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99211         * lib/canon-host.c: Declare strdup.
99212         * lib/path-concat.c: Likewise.
99213         From John David Anglin.
99214
99215 2000-04-04  Jim Meyering  <meyering@lucent.com>
99216
99217         Be more DOS 8.3-friendly.
99218         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99219         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99220         * lib/Makefile.am: Reflect renaming.
99221         Reported by Eli Zaretskii.
99222
99223         Use a temporary file name that won't clash with `charset.alias'
99224         in the DOS 8.3 name space.
99225         * lib/Makefile.am (charset_tmp): Define.
99226         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99227         (uninstall-local): Likewise.
99228         Reported by Eli Zaretskii.
99229
99230 2000-04-03  Jim Meyering  <meyering@lucent.com>
99231
99232         * m4/gettext.m4: Fix typo in comment.
99233
99234         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99235         textutils/configure.in).  Suggestion from Paul Eggert.
99236         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99237
99238 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99239
99240         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99241         variable in the shell rather than using putenv, which isn't
99242         portable.  This avoids the configure-time inter-test dependency
99243         on the potentially-renamed putenv function.
99244
99245 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99246
99247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99248         before checking struct stat.st_blksize, so that
99249         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99250
99251 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99252
99253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99254         since strftime.c uses HAVE_STRFTIME to decide whether to use
99255         the underlying strftime.
99256
99257 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99258
99259         * lib/time/strftime.c (my_strftime): Make sure we call the system
99260         strftime, not ourselves, when invoking the underlying strftime.
99261
99262 2000-03-24  Jim Meyering  <meyering@lucent.com>
99263
99264         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99265         (charset_alias): Define.
99266         (install-exec-local): Factor out common code.
99267         (uninstall-local): Split lines longer than 80.
99268         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99269         (SUFFIXES): Define.
99270         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99271         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99272
99273 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99274
99275         * lib/config.charset: Output a line containing "Packages using this
99276         file".
99277         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99278         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99279         ref-del.sed): New rules.
99280
99281 2000-03-17  Jim Meyering  <meyering@lucent.com>
99282
99283         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99284         Otherwise, include <strings.h>
99285
99286 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99287
99288         * lib/unicodeio.c (utf8_wctomb): New function.
99289         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99290         format instead of in UCS-4 with platform dependent endianness.
99291
99292 2000-03-10  Jim Meyering  <meyering@lucent.com>
99293
99294         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99295         From Marco Franzen.
99296
99297 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99298
99299         * lib/savedir.c (savedir): Work even if directory size is
99300         negative; this can happen with some screwy NFS configurations.
99301
99302 2000-03-06  Jim Meyering  <meyering@lucent.com>
99303
99304         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99305         if it's NULL (because we ran out of memory).  From Bruno Haible.
99306
99307 2000-03-05  Jim Meyering  <meyering@lucent.com>
99308
99309         * lib/localcharset.c ("path-concat.h"): Include.
99310         (get_charset_aliases): Use path_concat instead of ANSI string
99311         concatenation.
99312
99313         * lib/unicodeio.h (PARAMS): Define.
99314         Use it to guard prototype.
99315
99316 2000-03-04  Jim Meyering  <meyering@lucent.com>
99317
99318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99319         for lib/localcharset.c.
99320
99321 2000-03-04  Jim Meyering  <meyering@lucent.com>
99322
99323         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99324         installing into it.
99325         (uninstall-local): Uncomment this rule so `make distcheck' works
99326         once again.
99327
99328         * lib/unicodeio.c (<errno.h>): Include it.
99329         (errno): Declare if not defined.
99330
99331         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99332
99333         * lib/config.charset: New version, incorporating remarks from a linux
99334         i18n mailing list.  From Bruno Haible.
99335
99336 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99337
99338         * m4/codeset.m4: New file.
99339         * m4/iconv.m4: New file.
99340         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99341
99342 2000-03-03  Jim Meyering  <meyering@lucent.com>
99343
99344         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99345
99346 2000-03-02  Jim Meyering  <meyering@lucent.com>
99347
99348         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99349         the messages come out on separate lines.
99350
99351         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99352         rather than jm_CHECK_DECLARATIONS.
99353         * m4/decl.m4: Remove now-unused file.
99354
99355         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99356         geteuid.
99357
99358 2000-03-02  Jim Meyering  <meyering@lucent.com>
99359
99360         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99361
99362 2000-03-01  Jim Meyering  <meyering@lucent.com>
99363
99364         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99365         * lib/unicodeio.c: Likewise.
99366
99367 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99368
99369         * lib/config.charset: New file.
99370         * lib/localcharset.c: New file.
99371         * lib/unicodeio.h, lib/unicodeio.c: New files.
99372         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99373         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99374         (noinst_HEADERS): Add unicodeio.h.
99375         (all-local, install-exec-local, charset.alias): New targets.
99376
99377 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99378
99379         * lib/quotearg.c (ALERT_CHAR): New macro.
99380         (quotearg_buffer_restyled): Use it.
99381
99382 2000-02-27  Jim Meyering  <meyering@lucent.com>
99383
99384         * m4/check-decl.m4: Add getenv to the list.
99385
99386 2000-02-27  Jim Meyering  <meyering@lucent.com>
99387
99388         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99389         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99390
99391         * lib/backupfile.c: Guard inclusion of stdlib.h with
99392         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99393         Declare malloc if needed.
99394
99395         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99396         `#ifndef HAVE_DECL..'
99397         now that autoconf always defines the HAVE_DECL_ symbols.
99398         * lib/human.c: Likewise.
99399         * lib/same.c: Likewise.
99400         * lib/strtoumax.c: Likewise.
99401
99402         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99403         declaration check was not run.
99404         * lib/hash.c: Likewise.
99405         * lib/human.c: Likewise.
99406         * lib/same.c: Likewise.
99407         * lib/strtoumax.c: Likewise.
99408
99409         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99410         `.', then first look up the entire `.'-containing string as a login
99411         name.
99412
99413 2000-02-23  Jim Meyering  <meyering@lucent.com>
99414
99415         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99416         in place of my hack.
99417
99418 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99419
99420         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99421         (textint): New typedef.
99422         (parser_control): Member year changed from int to textint.
99423         All uses changed.
99424         (YYSTYPE): Removed; replaced by %union with int and textint members.
99425         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99426         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99427         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99428         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99429         (date, number, to_year): Use width of number in digits, not its value,
99430         to determine whether it's a 2-digit year, or a 2-digit time.
99431         (yylex): Store number of digits of numeric tokens.
99432         Reported by John Kendall.
99433
99434         (parser_control): Changed from struct parser_control to typedef (for
99435         consistency).  All uses changed.
99436
99437         (tID): Removed; not used.
99438         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99439
99440 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99441
99442         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99443         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99444
99445 2000-02-12  Jim Meyering  <meyering@lucent.com>
99446
99447         * lib/userspec.c (ISDIGIT): Define it.
99448         (isdigit): Remove definition.
99449         (is_number): Use ISDIGIT, not isdigit.
99450         <libintl.h>: Include.
99451         (_ and N_): Define.
99452         (parse_user_spec): Mark translatable strings.
99453
99454 2000-02-10  Jim Meyering  <meyering@lucent.com>
99455
99456         With these changes, nanosleep.[ch] are finally enough like the other
99457         lib/* replacement files to compile on a few more losing systems.
99458
99459         * lib/nanosleep.h: Don't include config.h.
99460         Remove prototype from declaration of nanosleep.
99461         (PARAMS): Remove now-unneeded definition.
99462         * lib/nanosleep.c: #undef nanosleep.
99463         (rpl_nanosleep): Rename from nanosleep.
99464
99465 2000-02-10  Jim Meyering  <meyering@lucent.com>
99466
99467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99468         gnu_nanosleep to rpl_nanosleep.
99469
99470 2000-02-09  Jim Meyering  <meyering@lucent.com>
99471
99472         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99473         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99474
99475 2000-02-08  Akim Demaille  <akim@epita.fr>
99476
99477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99478         `[' and `]' and remove uses of `changequote'.
99479         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99480         (AC_SYS_LARGEFILE): Likewise.
99481         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99483         of changequote.
99484         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99485         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99486         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99488
99489 2000-02-05  Jim Meyering  <meyering@lucent.com>
99490
99491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99492         Remove explicit use of AC_HEADER_TIME.  It is required by
99493         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99494         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99495         in autoconf whereby the expansion of the latter ended up preceding
99496         the expansion of its prerequisite, AC_HEADER_TIME.
99497         Reported by Volker Borchert.
99498
99499 2000-02-03  Jim Meyering  <meyering@lucent.com>
99500
99501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99502
99503 2000-02-03  Jim Meyering  <meyering@lucent.com>
99504
99505         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99506         rather than with `#if HAVE_UTMPNAME'.
99507
99508 2000-02-02  Jim Meyering  <meyering@lucent.com>
99509
99510         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99511         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99512         Reported by Eli Zaretskii.
99513
99514 2000-02-01  Jim Meyering  <meyering@lucent.com>
99515
99516         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99517
99518 2000-01-31  Jim Meyering  <meyering@lucent.com>
99519
99520         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99521         functions.  Add the time.h and sys/time.h headers along with the
99522         AC_REQUIRE'ment of AC_HEADER_TIME.
99523
99524 2000-01-31  Jim Meyering  <meyering@lucent.com>
99525
99526         * lib/nanosleep.h (nanosleep): Guard declaration with
99527         `#if ! HAVE_DECL_NANOSLEEP'.
99528         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99529         the declaration in that vendor's sys/timers.h.
99530         Reported by Christian Krackowizer.
99531
99532         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99533         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99534         (ISPRINT): Likewise.
99535         Reported by Tom Tromey.
99536
99537 2000-01-30  Jim Meyering  <meyering@lucent.com>
99538
99539         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99540
99541         * m4/prereq.m4 (utmp_includes): Define.
99542         Check for ut_user and ut_name members in both struct utmpx
99543         and struct utmp.
99544
99545 2000-01-30  Jim Meyering  <meyering@lucent.com>
99546
99547         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99548         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99549         header files where only utmpx.ut_user is declared.
99550
99551         * lib/readutmp.h (UT_USER): Define.
99552
99553 2000-01-29  Jim Meyering  <meyering@lucent.com>
99554
99555         * m4/lib-check.m4: New file containing library-related checks from
99556         fileutils and sh-utils (textutils had none).
99557
99558 2000-01-28  Jim Meyering  <meyering@lucent.com>
99559
99560         * m4/perl.m4: Change format of warning message to look more like that
99561         from the missing script.  Suggestion from François Pinard.
99562
99563 2000-01-25  Jim Meyering  <meyering@lucent.com>
99564
99565         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99566         well as time.h in the compile check.
99567         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99568         Fix typo in cross-compiling case: s/yes/no/.
99569
99570 2000-01-23  Jim Meyering  <meyering@lucent.com>
99571
99572         * m4/jm-macros.m4: Move df-related tests here from
99573         fileutils/configure.in
99574
99575         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99576         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99577
99578         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99579         s/space/ac_fsusage_space/.
99580         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99581
99582         * m4/ftruncate.m4: New file (derived from part of
99583         fileutils/configure.in).
99584         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99585         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99586
99587         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99588         AC_SUBST these here, rather than just in sh-util/configure.in, so
99589         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99590         all the same.
99591         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99592         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99593         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99594         (AC_SUBST(POW_LIBM)): Likewise.
99595         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99596
99597 2000-01-23  Jim Meyering  <meyering@lucent.com>
99598
99599         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99600         obstack.c.
99601
99602 2000-01-22  Jim Meyering  <meyering@lucent.com>
99603
99604         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99605
99606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99607
99608         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99609         configure.in
99610         (AC_CHECK_HEADERS): Likewise for sh-utils.
99611         (AC_CHECK_HEADERS): Likewise for textutils.
99612         Merge the three lists of headers.
99613
99614         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99615         from fileutils' configure.in.
99616
99617         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99618         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99619         check-decl.m4.
99620
99621         * m4/check-decl.m4: Use #if rather than #ifdef.
99622         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99623         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99624         (_jm_DECL_HEADERS): Define new function.
99625         (jm_CHECK_DECLARATIONS): Require it.
99626
99627 2000-01-22  Jim Meyering  <meyering@lucent.com>
99628
99629         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99630         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99631         Required for some AIX systems.  Reported by Christian Krackowizer.
99632         [TESTING] (main): New function.
99633
99634         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99635         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99636         letters.
99637
99638         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99639         iswprint.
99640
99641         * lib/strverscmp.c (ISDIGIT): Define.
99642         (strverscmp): Use ISDIGIT, not isdigit.
99643
99644 2000-01-19  Jim Meyering  <meyering@lucent.com>
99645
99646         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99647         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99648         defines `struct timespec' in <sys/time.h>
99649
99650         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99651         Thanks to Akim for explaining.
99652
99653 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99654
99655         * lib/nanosleep.c (nanosleep):
99656         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99657         POSIX.1 doesn't require SA_INTERRUPT and some systems
99658         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99659         it's been part of POSIX.1 since day 1 (in 1988).
99660
99661 2000-01-17  Jim Meyering  <meyering@lucent.com>
99662
99663         * lib/interlock: Remove unused file.  Reported by François Pinard.
99664
99665 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99666
99667         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99668         alert, backslash, formfeed, and vertical tab unnecessarily in
99669         shell quoting style.
99670
99671 2000-01-16  Jim Meyering  <meyering@lucent.com>
99672
99673         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99674         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99675         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99676         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99677
99678 2000-01-16  Jim Meyering  <meyering@lucent.com>
99679
99680         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99681         because the latter didn't work.
99682
99683 2000-01-15  Jim Meyering  <meyering@lucent.com>
99684
99685         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99686         (AC_REPLACE_FUNCS): Add memcpy and memset.
99687         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99688         Add strpbrk.
99689         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99690
99691 2000-01-12  Jim Meyering  <meyering@lucent.com>
99692
99693         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99694         (jm_PREREQ): Use it.
99695         (jm_PREREQ_READUTMP): New macro.
99696         (jm_PREREQ): Use it.
99697
99698 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99699
99700         Quote multibyte characters correctly.
99701         * m4/c-bs-a.m4: New file.
99702         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99703         (jm_PREREQ): Use it.
99704
99705 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99706
99707         * m4/uintmax_t.m4: Port to autoconf 2.13.
99708
99709 2000-01-08  Jim Meyering  <meyering@ascend.com>
99710
99711         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99712         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99713
99714 2000-01-04  Jim Meyering  <meyering@ascend.com>
99715
99716         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99717         jm_STRUCT_DIRENT_D_TYPE.
99718         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99719         jm_STRUCT_DIRENT_D_INO.
99720         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99721         jm_STRUCT_UTIMBUF.
99722         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99723         renamings.
99724         * m4/utime.m4: Likewise.
99725
99726         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99727         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99728
99729 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99730
99731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99732         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99733
99734 2000-01-02  Jim Meyering  <meyering@ascend.com>
99735
99736         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99737         remember if this is necessary.
99738
99739 1999-12-26  Jim Meyering  <meyering@ascend.com>
99740
99741         * m4/jm-macros.m4: Use it here.
99742         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99743
99744 1999-12-23  Jim Meyering  <meyering@ascend.com>
99745
99746         * m4/jm-macros.m4: Check for clock_gettime (moved from
99747         fileutils/configure.in)
99748         Check for gettimeofday.
99749
99750 1999-12-20  Jim Meyering  <meyering@ascend.com>
99751
99752         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99753         autoconf-2.14a-1999-12-20.
99754
99755 1999-12-19  Jim Meyering  <meyering@ascend.com>
99756
99757         * m4/lstat-slash.m4: New file.
99758         * m4/jm-macros.m4: Use the new macro:
99759         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99760
99761 1999-12-07  Jim Meyering  <meyering@ascend.com>
99762
99763         * m4/perl.m4: Require that File::Compare be available, too.
99764         Too many systems seem to lack it.
99765
99766         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99767         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99768
99769 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99770
99771         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99772         problem with the QNX 4.25 shell, which doesn't propagate exit
99773         status of failed commands inside shell assignments.
99774
99775 1999-11-17  Jim Meyering  <meyering@ascend.com>
99776
99777         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99778
99779 1999-11-07  Jim Meyering  <meyering@ascend.com>
99780
99781         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99782
99783 1999-11-06  Jim Meyering  <meyering@ascend.com>
99784
99785         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99786         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99787
99788 1999-11-05  Jim Meyering  <meyering@ascend.com>
99789
99790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99791         configure.in of textutils, fileutils, and sh-utils into this one
99792         (shared between those packages) file.
99793         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99794         AC_STRUCT_ST_BLKSIZE.
99795
99796 1999-11-03  Jim Meyering  <meyering@ascend.com>
99797
99798         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99799         of AC_CHECK_TYPE checks includes unistd.h.
99800         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99801         Suggestion from Akim Demaille.
99802
99803 1999-10-30  Jim Meyering  <meyering@ascend.com>
99804
99805         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99806         m4-quoted string.
99807         * m4/ls-mntd-fs.m4: Likewise.
99808         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99809         * m4/jm-winsz1.m4: Likewise.
99810
99811         * m4/const.m4: Remove file, since the fix made it into the experimental
99812         version of autoconf.
99813         * m4/mktime.m4: Likewise.
99814
99815         * m4/check-type.m4: Remove file, now that the latest version of
99816         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99817
99818         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99819         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99820         AC_CHECK_TYPE.
99821
99822 1999-10-04  Jim Meyering  <meyering@ascend.com>
99823
99824         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99825
99826 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99827
99828         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99829         2.95.1 bug with HP-UX 10.20.
99830
99831 1999-09-17  Jim Meyering  <meyering@ascend.com>
99832
99833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99834         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99835         due to missing strdup (against sh-utils-2.0).
99836
99837 1999-08-29  Jim Meyering  <meyering@ascend.com>
99838
99839         * m4/jm-macros.m4: Require jm_BISON.
99840         * m4/bison.m4: New file.
99841
99842 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99843
99844         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99845         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99846
99847 1999-08-05  Jim Meyering  <meyering@ascend.com>
99848
99849         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99850         to avoid conflicts with `conftest' on 8+3 filesystems.
99851         Suggestion from Eli Zaretskii.
99852
99853 1999-08-04  Jim Meyering  <meyering@ascend.com>
99854
99855         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99856         fileutils and sh-utils (textutils's getline test was inadequate).
99857         (AM_FUNC_GETLINE): Run this test.
99858         (AC_CHECK_FUNCS): Check for getdelim.
99859         Reported by Bob Proulx.
99860
99861 1999-08-02  Jim Meyering  <meyering@ascend.com>
99862
99863         * m4/jm-macros.m4: Add a comment.
99864
99865 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99866
99867         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99868         <inttypes.h> defines strtoumax as a macro (and not as a
99869         function).
99870
99871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99872
99873         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99874         that we can shift, multiply and divide unsigned long long
99875         values; Ultrix cc can't do it.
99876
99877 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99878
99879         * m4/mktime.m4: New file, which is a preview of what should appear
99880         in the next public autoconf release.
99881
99882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99883
99884         * m4/lfs.m4: Remove this file.
99885         * m4/largefile.m4: New file.  It contains the old contents of
99886         lfs.m4, except that all names with prefix AC_LFS have been
99887         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99888         compatible with future autoconf versions.  Also, some minor m4
99889         quoting problems have been fixed.
99890
99891 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99892
99893         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99894         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99895         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99896         and simplify the shell code.
99897
99898 1999-08-01  Jim Meyering  <meyering@ascend.com>
99899
99900         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99901         m4.
99902
99903 1999-07-20  Jim Meyering  <meyering@ascend.com>
99904
99905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99906
99907 1999-07-15  Jim Meyering  <meyering@ascend.com>
99908
99909         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99910
99911 1999-05-22  Jim Meyering  <meyering@ascend.com>
99912
99913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99914
99915 1999-05-20  Jim Meyering  <meyering@ascend.com>
99916
99917         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99918         Add a colon after each `then' in case $4 is empty.
99919
99920 1999-05-16  Jim Meyering  <meyering@ascend.com>
99921
99922         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99923
99924 1999-05-10  Jim Meyering  <meyering@ascend.com>
99925
99926         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99927
99928         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99929         AC_FUNC_MKTIME.
99930
99931 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99932
99933         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99934
99935 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99936
99937         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99938         not CPPFLAGS, so that linking works correctly in IRIX.
99939
99940 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99941
99942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99943
99944 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99945
99946         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99947         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99949         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99950         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99951
99952         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99953
99954 1999-04-20  Jim Meyering  <meyering@ascend.com>
99955
99956         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99957         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99958         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99959
99960 1999-04-18  Jim Meyering  <meyering@ascend.com>
99961
99962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99963         * m4/jm-macros.m4: Use it.
99964
99965 1999-04-06  Jim Meyering  <meyering@ascend.com>
99966
99967         * m4/strftime.m4: Remove test for %f.
99968
99969 1999-03-29  Jim Meyering  <meyering@ascend.com>
99970
99971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99972         superset of the AC_TYPE_* checks in the textutils, fileutils,
99973         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99974         AC_TYPE_PID_T.
99975
99976 1999-03-28  Jim Meyering  <meyering@ascend.com>
99977
99978         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99979         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99980         replaced e.g., in the *.sh files of the sh-utils.
99981
99982 1999-03-20  Jim Meyering  <meyering@ascend.com>
99983
99984         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99985         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99986         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99987
99988 1999-03-19  Jim Meyering  <meyering@ascend.com>
99989
99990         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99991
99992 1999-03-12  Jim Meyering  <meyering@ascend.com>
99993
99994         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99995
99996 1999-03-07  Jim Meyering  <meyering@ascend.com>
99997
99998         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99999         declared.
100000
100001 1999-02-17  Jim Meyering  <meyering@ascend.com>
100002
100003         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100004         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100005
100006 1999-02-07  Jim Meyering  <meyering@ascend.com>
100007
100008         * m4/group-member.m4: New file -- extracted from sh-utils'
100009         configure.in.
100010
100011         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100012         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100013
100014 1999-02-06  Jim Meyering  <meyering@ascend.com>
100015
100016         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100017         * m4/fnmatch.m4: Likewise.
100018         * m4/getgroups.m4: Likewise.
100019         * m4/lstat.m4: Likewise.
100020         * m4/malloc.m4: Likewise.
100021         * m4/putenv.m4: Likewise.
100022         * m4/realloc.m4: Likewise.
100023         * m4/regex.m4: Likewise.
100024         * m4/stat.m4: Likewise.
100025         * m4/strftime.m4: Likewise.
100026         Suggestion from Alain Magloire.
100027
100028         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100029         * m4/fnmatch.m4: Likewise.
100030         * m4/getgroups.m4: Likewise.
100031         * m4/getline.m4: Likewise.
100032         * m4/lstat.m4: Likewise.
100033         * m4/malloc.m4: Likewise.
100034         * m4/memcmp.m4: Likewise.
100035         * m4/putenv.m4: Likewise.
100036         * m4/realloc.m4: Likewise.
100037         * m4/regex.m4: Likewise.
100038         * m4/stat.m4: Likewise.
100039         * m4/strftime.m4: Likewise.
100040         Suggestion from Alain Magloire.
100041
100042         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100043         an argument.
100044
100045         * m4/regex.m4: Add a run-time Test for proper operation of
100046         re_compile_pattern.
100047
100048 1999-01-31  Jim Meyering  <meyering@ascend.com>
100049
100050         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100051
100052 1999-01-30  Jim Meyering  <meyering@ascend.com>
100053
100054         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100055
100056         * m4/jm-mktime.m4: Make this a wrapper around the official
100057         AM_FUNC_MKTIME rather than my private copy, now that the official one
100058         is up to date.
100059         * m4/mktime.m4: Remove file.
100060
100061         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100062         * m4/uptime.m4: Likewise.
100063         * m4/uintmax_t.m4: Likewise.
100064
100065 1999-01-28  Jim Meyering  <meyering@ascend.com>
100066
100067         * m4/jm-macros.m4: Use jm_AFS.
100068         * m4/afs.m4: New file (from fileutils' configure.in).
100069
100070         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100071         * m4/chown.m4: Likewise.
100072         * m4/d-ino.m4: Likewise.
100073         * m4/d-type.m4: Likewise.
100074         * m4/fnmatch.m4: Likewise.
100075         * m4/getgroups.m4: Likewise.
100076         * m4/gettext.m4: Likewise.
100077         * m4/jm-mktime.m4: Likewise.
100078         * m4/jm-winsz2.m4: Likewise.
100079         * m4/lcmessage.m4: Likewise.
100080         * m4/ls-mntd-fs.m4: Likewise.
100081         * m4/malloc.m4: Likewise.
100082         * m4/memcmp.m4: Likewise.
100083         * m4/putenv.m4: Likewise.
100084         * m4/realloc.m4: Likewise.
100085         * m4/st_mtim.m4: Likewise.
100086         * m4/strftime.m4: Likewise.
100087
100088 1999-01-16  Jim Meyering  <meyering@ascend.com>
100089
100090         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100091         (ARGMATCH_DIE_DECL): Define.
100092
100093 1999-01-12  Jim Meyering  <meyering@ascend.com>
100094
100095         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100096         Reported by Lars Hecking.
100097
100098 1999-01-10  Jim Meyering  <meyering@ascend.com>
100099
100100         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100101         gross kludge.
100102         * m4/inttypes_h.m4: Likewise.
100103         * m4/lstat.m4: Likewise.
100104         * m4/malloc.m4: Likewise.
100105         * m4/readdir.m4: Likewise.
100106         * m4/realloc.m4: Likewise.
100107         * m4/st_dm_mode.m4: Likewise.
100108         * m4/stat.m4: Likewise.
100109         * m4/utimbuf.m4: Likewise.
100110         * m4/utimes.m4: Likewise.
100111
100112         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100113         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100114         comments in config.h.in are meaningful.
100115
100116         * m4/jm-macros.m4: Require autoconf-2.13 here.
100117
100118         * m4/regex.m4: By default, don't use the included regex.c on systems
100119         with glibc 2.  Suggestion from Uli Drepper.
100120
100121 1999-01-02  Jim Meyering  <meyering@ascend.com>
100122
100123         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100124
100125 1998-12-18  Jim Meyering  <meyering@ascend.com>
100126
100127         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100128         Based on a suggestion from Lars Hecking.
100129
100130 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100131
100132         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100133
100134 1998-11-16  Jim Meyering  <meyering@ascend.com>
100135
100136         * m4/lfs.m4: Double-quote the `uname...` expression.
100137
100138 1998-11-14  Jim Meyering  <meyering@ascend.com>
100139
100140         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100141         * m4/stat.m4: Likewise.
100142
100143 1998-11-03  Jim Meyering  <meyering@ascend.com>
100144
100145         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100146         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100147
100148 1998-10-18  Jim Meyering  <meyering@ascend.com>
100149
100150         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100151
100152 1998-10-17  Jim Meyering  <meyering@ascend.com>
100153
100154         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100155         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100156         calls for those previously hard-coded headers.  Instead, take a new
100157         parameter.
100158         (jm_CHECK_DECLARATIONS): Reflect interface change.
100159         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100160         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100161
100162         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100163
100164 1998-10-14  Jim Meyering  <meyering@ascend.com>
100165
100166         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100167         instead of "TZ=America/Vancouver".  From Paul Eggert.
100168
100169 1998-10-11  Jim Meyering  <meyering@ascend.com>
100170
100171         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100172         This adds a test for a recently added compatibility fix for mktime.c.
100173         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100174
100175 1998-09-27  Jim Meyering  <meyering@ascend.com>
100176
100177         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100178
100179         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100180         ../configure.in, including a change from Gordon Matzigkeit to allow
100181         cross-compiling for the Hurd.
100182
100183         * m4/glibc.m4: New file/macro to test for the GNU C Library
100184         versions 1 and 2.  From Gordon Matzigkeit.
100185         Indent.
100186
100187 1998-09-21  Jim Meyering  <meyering@ascend.com>
100188
100189         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100190
100191 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100192
100193         Port nanosecond-resolution times to UnixWare 2.1.2 and
100194         pedantic Solaris 2.6.
100195
100196         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100197         AC_STRUCT_ST_MTIM.
100198         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100199         Generate name of ns member, instead of just 1 or undef.
100200         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100201
100202 1998-08-15  Jim Meyering  <meyering@ascend.com>
100203
100204         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100205         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100206         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100207         instead of jm_TYPE_SSIZE_T.
100208
100209 1998-08-12  Jim Meyering  <meyering@ascend.com>
100210
100211         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100212
100213 1998-08-02  Jim Meyering  <meyering@ascend.com>
100214
100215         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100216         in acconfig.h manually.
100217
100218 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100219
100220         * m4/st_mtim.m4: New file.
100221
100222 1998-07-28  Jim Meyering  <meyering@ascend.com>
100223
100224         * m4/utimes.m4: Undef stat.
100225
100226 1998-07-25  Jim Meyering  <meyering@ascend.com>
100227
100228         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100229         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100230
100231 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100232
100233         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100234         uid and gid actually remain unchanged.
100235
100236 1998-07-07  Jim Meyering  <meyering@ascend.com>
100237
100238         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100239
100240 1998-07-04  Jim Meyering  <meyering@ascend.com>
100241
100242         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100243         to prove that this macro can be used in packages without regex.c.
100244
100245 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100246
100247         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100248         is to be used.
100249
100250 1998-07-03  Jim Meyering  <meyering@ascend.com>
100251
100252         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100253
100254         * m4/gettext.m4: New file -- from gettext-0.10.35.
100255         * m4/lcmessage.m4: Likewise.
100256         * m4/progtest.m4: Likewise.
100257
100258         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100259         * m4/jm-macros.m4: Require the new macro.
100260
100261 1998-06-29  Jim Meyering  <meyering@ascend.com>
100262
100263         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100264         for the definition of NGROUPS (used in a system header included
100265         by sys/mount.h).
100266
100267 1998-06-28  Jim Meyering  <meyering@ascend.com>
100268
100269         * m4/ls-mntd-fs.m4: New file.
100270         * m4/fstypename.m4: New file.
100271
100272         * m4/jm-macros.m4: Require the new macro.
100273         * m4/jm-glibc-io.m4: New file.
100274
100275 1998-05-19  Jim Meyering  <meyering@ascend.com>
100276
100277         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100278         * m4/lchown.m4: New file.
100279
100280         * m4/Makefile.am.in: New file.
100281         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100282
100283 1998-05-14  Jim Meyering  <meyering@ascend.com>
100284
100285         * m4/Makefile.am (EXTRA_DIST): Add them.
100286         * m4/jm-macros.m4: New file.
100287         * m4/utimbuf.m4: New file.
100288
100289 1998-05-12  Jim Meyering  <meyering@ascend.com>
100290
100291         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100292
100293 1998-05-11  Jim Meyering  <meyering@ascend.com>
100294
100295         * m4/isc-posix.m4: New file.
100296
100297 1998-05-10  Jim Meyering  <meyering@ascend.com>
100298
100299         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100300
100301 1998-05-09  Jim Meyering  <meyering@ascend.com>
100302
100303         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100304         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100305         with automake.
100306
100307         * m4/ssize_t.m4: New file.
100308         * m4/mktime.m4: Remove file -- the new automake has this now.
100309
100310 1998-04-26  Jim Meyering  <meyering@ascend.com>
100311
100312         * m4/assert.m4: New file.
100313         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100314
100315 1998-04-05  Jim Meyering  <meyering@ascend.com>
100316
100317         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100318         (jm_PREREQ): Use it here.
100319
100320 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100321
100322         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100323         in acconfig.h.
100324
100325 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100326
100327         * m4/prereq.m4: New file.
100328         * m4/error.m4: New file.
100329         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100330
100331 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100332
100333         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100334         cache-check for the same variable -- that defeated the purpose of
100335         the test; the test program was never run.  This was a problem only
100336         on systems with losing getline functions -- HP-UX 10.20 is one.
100337         Reported by Bjorn Helgaas.
100338
100339 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100340
100341         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100342
100343 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100344
100345         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100346
100347         * m4/const.m4: New file.  Use an initializer in this declaration
100348         typedef int charset[2]; const charset x;
100349         Reported by Bob Glickstein.
100350
100351 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100352
100353         * m4/chown.m4: Fix reversed types on -1 args to chown.
100354         From Kaveh Ghazi.
100355
100356 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100357
100358         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100359         Add lseek and memchr.
100360
100361         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100362         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100363         have a 20-character limit on names.
100364
100365 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100366
100367         * m4/inttypes_h.m4: New file.
100368         * m4/uintmax_t.m4: New file.
100369         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100370
100371
100372         -----
100373
100374         Local Variables:
100375         coding: utf-8
100376         End:
100377
100378         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100379
100380         Copying and distribution of this file, with or without
100381         modification, are permitted provided the copyright notice
100382         and this notice are preserved.